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=":"
1534 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1537 echo "configuring for bacula $VERSION ($DATE)"
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546 if test -n "$ac_tool_prefix"; then
1547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$CC"; then
1555 ac_cv_prog_CC="$CC" # Let the user override the test.
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 if test -n "$CC"; then
1575 echo "$as_me:$LINENO: result: $CC" >&5
1576 echo "${ECHO_T}$CC" >&6
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1583 if test -z "$ac_cv_prog_CC"; then
1585 # Extract the first word of "gcc", so it can be a program name with args.
1586 set dummy gcc; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 if test -n "$ac_ct_CC"; then
1593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 ac_cv_prog_ac_ct_CC="gcc"
1603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1612 if test -n "$ac_ct_CC"; then
1613 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1614 echo "${ECHO_T}$ac_ct_CC" >&6
1616 echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1625 if test -z "$CC"; then
1626 if test -n "$ac_tool_prefix"; then
1627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1628 set dummy ${ac_tool_prefix}cc; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 if test -n "$CC"; then
1635 ac_cv_prog_CC="$CC" # Let the user override the test.
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_CC="${ac_tool_prefix}cc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 if test -n "$CC"; then
1655 echo "$as_me:$LINENO: result: $CC" >&5
1656 echo "${ECHO_T}$CC" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1663 if test -z "$ac_cv_prog_CC"; then
1665 # Extract the first word of "cc", so it can be a program name with args.
1666 set dummy cc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$ac_ct_CC"; then
1673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CC="cc"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692 if test -n "$ac_ct_CC"; then
1693 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694 echo "${ECHO_T}$ac_ct_CC" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1706 if test -z "$CC"; then
1707 # Extract the first word of "cc", so it can be a program name with args.
1708 set dummy cc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1726 ac_prog_rejected=yes
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 if test $ac_prog_rejected = yes; then
1737 # We found a bogon in the path, so make sure we never use it.
1738 set dummy $ac_cv_prog_CC
1740 if test $# != 0; then
1741 # We chose a different compiler from the bogus one.
1742 # However, it has the same basename, so the bogon will be chosen
1743 # first if we set CC to just the basename; use the full file name.
1745 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1751 if test -n "$CC"; then
1752 echo "$as_me:$LINENO: result: $CC" >&5
1753 echo "${ECHO_T}$CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1760 if test -z "$CC"; then
1761 if test -n "$ac_tool_prefix"; then
1764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 if test -n "$CC"; then
1792 echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1799 test -n "$CC" && break
1802 if test -z "$CC"; then
1806 # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy $ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC="$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1841 test -n "$ac_ct_CC" && break
1850 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: no acceptable C compiler found in \$PATH
1853 See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }
1856 # Provide some information about the compiler.
1857 echo "$as_me:$LINENO:" \
1858 "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861 (eval $ac_compiler --version </dev/null >&5) 2>&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }
1865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866 (eval $ac_compiler -v </dev/null >&5) 2>&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871 (eval $ac_compiler -V </dev/null >&5) 2>&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1876 cat >conftest.$ac_ext <<_ACEOF
1879 cat confdefs.h >>conftest.$ac_ext
1880 cat >>conftest.$ac_ext <<_ACEOF
1881 /* end confdefs.h. */
1891 ac_clean_files_save=$ac_clean_files
1892 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893 # Try to create an executable without -o first, disregard a.out.
1894 # It will help us diagnose broken compilers, and finding out an intuition
1896 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1897 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1898 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900 (eval $ac_link_default) 2>&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # Find the output, starting from the most likely. This scheme is
1905 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1908 # Be careful to initialize this variable, since it used to be cached.
1909 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1911 # b.out is created by i960 compilers.
1912 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1914 test -f "$ac_file" || continue
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1919 # This is the source file.
1922 # We found the default executable, but exeext='' is most
1926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927 # FIXME: I believe we export ac_cv_exeext for Libtool,
1928 # but it would be cool to find out if it's true. Does anybody
1929 # maintain Libtool? --akim.
1937 echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: C compiler cannot create executables
1943 See \`config.log' for more details." >&2;}
1944 { (exit 77); exit 77; }; }
1947 ac_exeext=$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_file" >&5
1949 echo "${ECHO_T}$ac_file" >&6
1951 # Check the compiler produces executables we can run. If not, either
1952 # the compiler is broken, or we cross compile.
1953 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1954 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956 # If not cross compiling, check that we can run a simple program.
1957 if test "$cross_compiling" != yes; then
1958 if { ac_try='./$ac_file'
1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; }; then
1966 if test "$cross_compiling" = maybe; then
1969 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1970 If you meant to cross compile, use \`--host'.
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot run C compiled programs.
1973 If you meant to cross compile, use \`--host'.
1974 See \`config.log' for more details." >&2;}
1975 { (exit 1); exit 1; }; }
1979 echo "$as_me:$LINENO: result: yes" >&5
1980 echo "${ECHO_T}yes" >&6
1982 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1983 ac_clean_files=$ac_clean_files_save
1984 # Check the compiler produces executables we can run. If not, either
1985 # the compiler is broken, or we cross compile.
1986 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1987 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1988 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1989 echo "${ECHO_T}$cross_compiling" >&6
1991 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1992 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1994 (eval $ac_link) 2>&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; then
1998 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1999 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2000 # work properly (i.e., refer to `conftest.exe'), while it won't with
2002 for ac_file in conftest.exe conftest conftest.*; do
2003 test -f "$ac_file" || continue
2005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2006 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2013 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2016 See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2020 rm -f conftest$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2022 echo "${ECHO_T}$ac_cv_exeext" >&6
2024 rm -f conftest.$ac_ext
2025 EXEEXT=$ac_cv_exeext
2027 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2028 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2029 if test "${ac_cv_objext+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.$ac_ext <<_ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2047 rm -f conftest.o conftest.obj
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2056 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2061 echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2071 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2073 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2074 echo "${ECHO_T}$ac_cv_objext" >&6
2075 OBJEXT=$ac_cv_objext
2077 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2078 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2079 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 cat >conftest.$ac_ext <<_ACEOF
2085 cat confdefs.h >>conftest.$ac_ext
2086 cat >>conftest.$ac_ext <<_ACEOF
2087 /* end confdefs.h. */
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>conftest.er1
2104 grep -v '^ *+' conftest.er1 >conftest.err
2106 cat conftest.err >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -z "$ac_c_werror_flag"
2110 || test ! -s conftest.err'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2124 echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2133 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2134 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2135 GCC=`test $ac_compiler_gnu = yes && echo yes`
2136 ac_test_CFLAGS=${CFLAGS+set}
2137 ac_save_CFLAGS=$CFLAGS
2139 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2140 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2141 if test "${ac_cv_prog_cc_g+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2163 grep -v '^ *+' conftest.er1 >conftest.err
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2190 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2191 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2192 if test "$ac_test_CFLAGS" = set; then
2193 CFLAGS=$ac_save_CFLAGS
2194 elif test $ac_cv_prog_cc_g = yes; then
2195 if test "$GCC" = yes; then
2201 if test "$GCC" = yes; then
2207 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2208 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 ac_cv_prog_cc_stdc=no
2214 cat >conftest.$ac_ext <<_ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h. */
2222 #include <sys/types.h>
2223 #include <sys/stat.h>
2224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2225 struct buf { int x; };
2226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2227 static char *e (p, i)
2233 static char *f (char * (*g) (char **, int), char **p, ...)
2238 s = g (p, va_arg (v,int));
2243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2244 function prototypes and stuff, but not '\xHH' hex character constants.
2245 These don't provoke an error unfortunately, instead are silently treated
2246 as 'x'. The following induces an error, until -std1 is added to get
2247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2248 array size at least. It's necessary to write '\x00'==0 to get something
2249 that's true only with -std1. */
2250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2252 int test (int i, double x);
2253 struct s1 {int (*f) (int a);};
2254 struct s2 {int (*f) (double a);};
2255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2266 # Don't try gcc -ansi; that turns off useful extensions and
2267 # breaks some systems' header files.
2268 # AIX -qlanglvl=ansi
2269 # Ultrix and OSF/1 -std1
2270 # HP-UX 10.20 and later -Ae
2271 # HP-UX older versions -Aa -D_HPUX_SOURCE
2272 # SVR4 -Xc -D__EXTENSIONS__
2273 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2275 CC="$ac_save_CC $ac_arg"
2276 rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>conftest.er1
2280 grep -v '^ *+' conftest.er1 >conftest.err
2282 cat conftest.err >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -z "$ac_c_werror_flag"
2286 || test ! -s conftest.err'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_cv_prog_cc_stdc=$ac_arg
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2305 rm -f conftest.err conftest.$ac_objext
2307 rm -f conftest.$ac_ext conftest.$ac_objext
2312 case "x$ac_cv_prog_cc_stdc" in
2314 echo "$as_me:$LINENO: result: none needed" >&5
2315 echo "${ECHO_T}none needed" >&6 ;;
2317 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2318 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2319 CC="$CC $ac_cv_prog_cc_stdc" ;;
2322 # Some people use a C++ compiler to compile C. Since we use `exit',
2323 # in C++ we need to declare it. In case someone uses the same compiler
2324 # for both compiling C and C++ we need to have the C++ compiler decide
2325 # the declaration of exit, since it's the most demanding environment.
2326 cat >conftest.$ac_ext <<_ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2335 grep -v '^ *+' conftest.er1 >conftest.err
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 for ac_declaration in \
2355 'extern "C" void std::exit (int) throw (); using std::exit;' \
2356 'extern "C" void std::exit (int); using std::exit;' \
2357 'extern "C" void exit (int) throw ();' \
2358 'extern "C" void exit (int);' \
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag"
2387 || test ! -s conftest.err'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407 cat >conftest.$ac_ext <<_ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2426 grep -v '^ *+' conftest.er1 >conftest.err
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag"
2432 || test ! -s conftest.err'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 if test -n "$ac_declaration"; then
2454 echo '#ifdef __cplusplus' >>confdefs.h
2455 echo $ac_declaration >>confdefs.h
2456 echo '#endif' >>confdefs.h
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 ac_cpp='$CXXCPP $CPPFLAGS'
2473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2477 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_CXX+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$CXX"; then
2487 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test -n "$CXX"; then
2507 echo "$as_me:$LINENO: result: $CXX" >&5
2508 echo "${ECHO_T}$CXX" >&6
2510 echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2514 test -n "$CXX" && break
2517 if test -z "$CXX"; then
2519 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test -n "$ac_ct_CXX"; then
2529 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_ac_ct_CXX="$ac_prog"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2548 if test -n "$ac_ct_CXX"; then
2549 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2550 echo "${ECHO_T}$ac_ct_CXX" >&6
2552 echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2556 test -n "$ac_ct_CXX" && break
2558 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2564 # Provide some information about the compiler.
2565 echo "$as_me:$LINENO:" \
2566 "checking for C++ compiler version" >&5
2567 ac_compiler=`set X $ac_compile; echo $2`
2568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2569 (eval $ac_compiler --version </dev/null >&5) 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2574 (eval $ac_compiler -v </dev/null >&5) 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2579 (eval $ac_compiler -V </dev/null >&5) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2586 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 cat >conftest.$ac_ext <<_ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1 >conftest.err
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_cxx_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2640 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2641 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2642 GXX=`test $ac_compiler_gnu = yes && echo yes`
2643 ac_test_CXXFLAGS=${CXXFLAGS+set}
2644 ac_save_CXXFLAGS=$CXXFLAGS
2646 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2647 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2648 if test "${ac_cv_prog_cxx_g+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1 >conftest.err
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_cxx_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_cv_prog_cxx_g=yes
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2699 if test "$ac_test_CXXFLAGS" = set; then
2700 CXXFLAGS=$ac_save_CXXFLAGS
2701 elif test $ac_cv_prog_cxx_g = yes; then
2702 if test "$GXX" = yes; then
2708 if test "$GXX" = yes; then
2714 for ac_declaration in \
2716 'extern "C" void std::exit (int) throw (); using std::exit;' \
2717 'extern "C" void std::exit (int); using std::exit;' \
2718 'extern "C" void exit (int) throw ();' \
2719 'extern "C" void exit (int);' \
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>conftest.er1
2742 grep -v '^ *+' conftest.er1 >conftest.err
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -z "$ac_cxx_werror_flag"
2748 || test ! -s conftest.err'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_cxx_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 if test -n "$ac_declaration"; then
2815 echo '#ifdef __cplusplus' >>confdefs.h
2816 echo $ac_declaration >>confdefs.h
2817 echo '#endif' >>confdefs.h
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 if test "x$CC" != xcc; then
2827 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2828 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2830 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2831 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2833 set dummy $CC; ac_cc=`echo $2 |
2834 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2835 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 cat >conftest.$ac_ext <<_ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2853 # Make sure it works both with $CC and with simple cc.
2854 # We do the test twice because some compilers refuse to overwrite an
2855 # existing .o file with -o, though they will create one.
2856 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); };
2868 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2869 if test "x$CC" != xcc; then
2870 # Test first that cc exists at all.
2871 if { ac_try='cc -c conftest.$ac_ext >&5'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2878 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); };
2892 # cc exists but doesn't like -o.
2893 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2898 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2904 echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6
2907 echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2910 cat >>confdefs.h <<\_ACEOF
2911 #define NO_MINUS_C_MINUS_O 1
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2923 # On Suns, sometimes $CPP names a directory.
2924 if test -n "$CPP" && test -d "$CPP"; then
2927 if test -z "$CPP"; then
2928 if test "${ac_cv_prog_CPP+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 # Double quotes because CPP needs to be expanded
2932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2935 for ac_c_preproc_warn_flag in '' yes
2937 # Use a header file that comes with gcc, so configuring glibc
2938 # with a fresh cross-compiler works.
2939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2940 # <limits.h> exists even on freestanding compilers.
2941 # On the NeXT, cc -E runs the code through the compiler's parser,
2942 # not just through cpp. "Syntax error" is here to catch this case.
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2950 # include <limits.h>
2952 # include <assert.h>
2956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } >/dev/null; then
2964 if test -s conftest.err; then
2965 ac_cpp_err=$ac_c_preproc_warn_flag
2966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2973 if test -z "$ac_cpp_err"; then
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 # Broken: fails on valid input.
2982 rm -f conftest.err conftest.$ac_ext
2984 # OK, works on sane cases. Now check whether non-existent headers
2985 # can be detected and how.
2986 cat >conftest.$ac_ext <<_ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2992 #include <ac_nonexistent.h>
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3011 if test -z "$ac_cpp_err"; then
3012 # Broken: success on invalid input.
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 # Passes both tests.
3022 rm -f conftest.err conftest.$ac_ext
3025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3026 rm -f conftest.err conftest.$ac_ext
3027 if $ac_preproc_ok; then
3039 echo "$as_me:$LINENO: result: $CPP" >&5
3040 echo "${ECHO_T}$CPP" >&6
3042 for ac_c_preproc_warn_flag in '' yes
3044 # Use a header file that comes with gcc, so configuring glibc
3045 # with a fresh cross-compiler works.
3046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3047 # <limits.h> exists even on freestanding compilers.
3048 # On the NeXT, cc -E runs the code through the compiler's parser,
3049 # not just through cpp. "Syntax error" is here to catch this case.
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3057 # include <limits.h>
3059 # include <assert.h>
3063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } >/dev/null; then
3071 if test -s conftest.err; then
3072 ac_cpp_err=$ac_c_preproc_warn_flag
3073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3080 if test -z "$ac_cpp_err"; then
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 # Broken: fails on valid input.
3089 rm -f conftest.err conftest.$ac_ext
3091 # OK, works on sane cases. Now check whether non-existent headers
3092 # can be detected and how.
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3099 #include <ac_nonexistent.h>
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null; then
3109 if test -s conftest.err; then
3110 ac_cpp_err=$ac_c_preproc_warn_flag
3111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3118 if test -z "$ac_cpp_err"; then
3119 # Broken: success on invalid input.
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 # Passes both tests.
3129 rm -f conftest.err conftest.$ac_ext
3132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3133 rm -f conftest.err conftest.$ac_ext
3134 if $ac_preproc_ok; then
3137 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3140 See \`config.log' for more details." >&2;}
3141 { (exit 1); exit 1; }; }
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 echo "$as_me:$LINENO: checking for egrep" >&5
3152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3153 if test "${ac_cv_prog_egrep+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3157 then ac_cv_prog_egrep='grep -E'
3158 else ac_cv_prog_egrep='egrep'
3161 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3162 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3163 EGREP=$ac_cv_prog_egrep
3166 if test $ac_cv_c_compiler_gnu = yes; then
3167 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3168 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3169 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 ac_pattern="Autoconf.*'x'"
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3184 ac_cv_prog_gcc_traditional=yes
3186 ac_cv_prog_gcc_traditional=no
3191 if test $ac_cv_prog_gcc_traditional = no; then
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3203 ac_cv_prog_gcc_traditional=yes
3209 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3210 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3211 if test $ac_cv_prog_gcc_traditional = yes; then
3212 CC="$CC -traditional"
3216 BASECC=`basename $CC`
3218 if test "x$BASECC" = xgcc; then
3219 cat >>confdefs.h <<\_ACEOF
3225 # Extract the first word of "$CXX", so it can be a program name with args.
3226 set dummy $CXX; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_path_CXX+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3257 if test -n "$CXX"; then
3258 echo "$as_me:$LINENO: result: $CXX" >&5
3259 echo "${ECHO_T}$CXX" >&6
3261 echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3265 if test ! -e $CXX; then
3266 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3267 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3268 { (exit 1); exit 1; }; }
3271 # Find a good install program. We prefer a C program (faster),
3272 # so one script is as good as another. But avoid the broken or
3273 # incompatible versions:
3274 # SysV /etc/install, /usr/sbin/install
3275 # SunOS /usr/etc/install
3276 # IRIX /sbin/install
3278 # AmigaOS /C/install, which installs bootblocks on floppy discs
3279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3282 # OS/2's system install, which has a completely different semantic
3283 # ./install, which can be erroneously created by make from ./install.sh.
3284 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3286 if test -z "$INSTALL"; then
3287 if test "${ac_cv_path_install+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 # Account for people who put trailing slashes in PATH elements.
3297 ./ | .// | /cC/* | \
3298 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3299 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3302 # OSF1 and SCO ODT 3.0 have their own names for install.
3303 # Don't use installbsd from OSF since it installs stuff as root
3305 for ac_prog in ginstall scoinst install; do
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3308 if test $ac_prog = install &&
3309 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3310 # AIX install. It has an incompatible calling convention.
3312 elif test $ac_prog = install &&
3313 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314 # program-specific install script used by HP pwplus--don't use.
3317 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3329 if test "${ac_cv_path_install+set}" = set; then
3330 INSTALL=$ac_cv_path_install
3332 # As a last resort, use the slow shell script. We don't cache a
3333 # path for INSTALL within a source directory, because that will
3334 # break other packages using the cache if that directory is
3335 # removed, or if the path is relative.
3336 INSTALL=$ac_install_sh
3339 echo "$as_me:$LINENO: result: $INSTALL" >&5
3340 echo "${ECHO_T}$INSTALL" >&6
3342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3343 # It thinks the first close brace ends the variable substitution.
3344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_RANLIB+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$RANLIB"; then
3359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 RANLIB=$ac_cv_prog_RANLIB
3378 if test -n "$RANLIB"; then
3379 echo "$as_me:$LINENO: result: $RANLIB" >&5
3380 echo "${ECHO_T}$RANLIB" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3387 if test -z "$ac_cv_prog_RANLIB"; then
3388 ac_ct_RANLIB=$RANLIB
3389 # Extract the first word of "ranlib", so it can be a program name with args.
3390 set dummy ranlib; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$ac_ct_RANLIB"; then
3397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_RANLIB="ranlib"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3417 if test -n "$ac_ct_RANLIB"; then
3418 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3419 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3425 RANLIB=$ac_ct_RANLIB
3427 RANLIB="$ac_cv_prog_RANLIB"
3430 # Extract the first word of "mv", so it can be a program name with args.
3431 set dummy mv; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_path_MV+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3462 if test -n "$MV"; then
3463 echo "$as_me:$LINENO: result: $MV" >&5
3464 echo "${ECHO_T}$MV" >&6
3466 echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3470 # Extract the first word of "rm", so it can be a program name with args.
3471 set dummy rm; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_path_RM+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3502 if test -n "$RM"; then
3503 echo "$as_me:$LINENO: result: $RM" >&5
3504 echo "${ECHO_T}$RM" >&6
3506 echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3510 # Extract the first word of "cp", so it can be a program name with args.
3511 set dummy cp; ac_word=$2
3512 echo "$as_me:$LINENO: checking for $ac_word" >&5
3513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3514 if test "${ac_cv_path_CP+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3542 if test -n "$CP"; then
3543 echo "$as_me:$LINENO: result: $CP" >&5
3544 echo "${ECHO_T}$CP" >&6
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3550 # Extract the first word of "sed", so it can be a program name with args.
3551 set dummy sed; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_path_SED+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3582 if test -n "$SED"; then
3583 echo "$as_me:$LINENO: result: $SED" >&5
3584 echo "${ECHO_T}$SED" >&6
3586 echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3590 # Extract the first word of "echo", so it can be a program name with args.
3591 set dummy echo; ac_word=$2
3592 echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 if test "${ac_cv_path_ECHO+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3620 ECHO=$ac_cv_path_ECHO
3622 if test -n "$ECHO"; then
3623 echo "$as_me:$LINENO: result: $ECHO" >&5
3624 echo "${ECHO_T}$ECHO" >&6
3626 echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3630 # Extract the first word of "cmp", so it can be a program name with args.
3631 set dummy cmp; ac_word=$2
3632 echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634 if test "${ac_cv_path_CMP+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3662 if test -n "$CMP"; then
3663 echo "$as_me:$LINENO: result: $CMP" >&5
3664 echo "${ECHO_T}$CMP" >&6
3666 echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3670 # Extract the first word of "tbl", so it can be a program name with args.
3671 set dummy tbl; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_path_TBL+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3702 if test -n "$TBL"; then
3703 echo "$as_me:$LINENO: result: $TBL" >&5
3704 echo "${ECHO_T}$TBL" >&6
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3710 # Extract the first word of "ar", so it can be a program name with args.
3711 set dummy ar; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_path_AR+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3742 if test -n "$AR"; then
3743 echo "$as_me:$LINENO: result: $AR" >&5
3744 echo "${ECHO_T}$AR" >&6
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3750 # Extract the first word of "openssl", so it can be a program name with args.
3751 set dummy openssl; ac_word=$2
3752 echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_path_OPENSSL+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3780 OPENSSL=$ac_cv_path_OPENSSL
3782 if test -n "$OPENSSL"; then
3783 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3784 echo "${ECHO_T}$OPENSSL" >&6
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3790 # Extract the first word of "mtx", so it can be a program name with args.
3791 set dummy mtx; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_path_MTX+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3822 if test -n "$MTX"; then
3823 echo "$as_me:$LINENO: result: $MTX" >&5
3824 echo "${ECHO_T}$MTX" >&6
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3830 # Extract the first word of "dd", so it can be a program name with args.
3831 set dummy dd; ac_word=$2
3832 echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_path_DD+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3862 if test -n "$DD"; then
3863 echo "$as_me:$LINENO: result: $DD" >&5
3864 echo "${ECHO_T}$DD" >&6
3866 echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3870 # Extract the first word of "mkisofs", so it can be a program name with args.
3871 set dummy mkisofs; ac_word=$2
3872 echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874 if test "${ac_cv_path_MKISOFS+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3900 MKISOFS=$ac_cv_path_MKISOFS
3902 if test -n "$MKISOFS"; then
3903 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3904 echo "${ECHO_T}$MKISOFS" >&6
3906 echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3910 # Extract the first word of "python", so it can be a program name with args.
3911 set dummy python; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_path_PYTHON+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3940 PYTHON=$ac_cv_path_PYTHON
3942 if test -n "$PYTHON"; then
3943 echo "$as_me:$LINENO: result: $PYTHON" >&5
3944 echo "${ECHO_T}$PYTHON" >&6
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 # Extract the first word of "growisofs", so it can be a program name with args.
3951 set dummy growisofs; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3980 GROWISOFS=$ac_cv_path_GROWISOFS
3982 if test -n "$GROWISOFS"; then
3983 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3984 echo "${ECHO_T}$GROWISOFS" >&6
3986 echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3990 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3991 set dummy dvd+rw-mediainfo; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 case $DVDRWMEDIAINFO in
3999 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4020 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4022 if test -n "$DVDRWMEDIAINFO"; then
4023 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4024 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4026 echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4030 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4031 set dummy dvd+rw-format; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 case $DVDRWFORMAT in
4039 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4060 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4062 if test -n "$DVDRWFORMAT"; then
4063 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4064 echo "${ECHO_T}$DVDRWFORMAT" >&6
4066 echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4070 # Extract the first word of "pkg-config", so it can be a program name with args.
4071 set dummy pkg-config; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4100 PKGCONFIG=$ac_cv_path_PKGCONFIG
4102 if test -n "$PKGCONFIG"; then
4103 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4104 echo "${ECHO_T}$PKGCONFIG" >&6
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4111 if test "x$WXCONFIG" = x; then
4114 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4115 set dummy ${WXCONFIG}; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4144 WXCONFIG=$ac_cv_path_WXCONFIG
4146 if test -n "$WXCONFIG"; then
4147 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4148 echo "${ECHO_T}$WXCONFIG" >&6
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4155 # Extract the first word of "cdrecord", so it can be a program name with args.
4156 set dummy cdrecord; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_path_CDRECORD+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4185 CDRECORD=$ac_cv_path_CDRECORD
4187 if test -n "$CDRECORD"; then
4188 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4189 echo "${ECHO_T}$CDRECORD" >&6
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4195 # Extract the first word of "pidof", so it can be a program name with args.
4196 set dummy pidof; ac_word=$2
4197 echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_path_PIDOF+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4225 PIDOF=$ac_cv_path_PIDOF
4227 if test -n "$PIDOF"; then
4228 echo "$as_me:$LINENO: result: $PIDOF" >&5
4229 echo "${ECHO_T}$PIDOF" >&6
4231 echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4235 for ac_prog in gawk mawk nawk awk
4237 # Extract the first word of "$ac_prog", so it can be a program name with args.
4238 set dummy $ac_prog; ac_word=$2
4239 echo "$as_me:$LINENO: checking for $ac_word" >&5
4240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4241 if test "${ac_cv_prog_AWK+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 if test -n "$AWK"; then
4245 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254 ac_cv_prog_AWK="$ac_prog"
4255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 if test -n "$AWK"; then
4265 echo "$as_me:$LINENO: result: $AWK" >&5
4266 echo "${ECHO_T}$AWK" >&6
4268 echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4272 test -n "$AWK" && break
4275 # Some AWK programs fail, so test it and warn the user
4276 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4277 { if ((prog == $2) || (("(" prog ")") == $2) ||
4278 (("" prog "") == $2) ||
4279 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4281 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4282 The regex engine of $AWK is too broken to be used you
4283 might want to install GNU AWK.
4284 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4285 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4286 The regex engine of $AWK is too broken to be used you
4287 might want to install GNU AWK.
4288 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4289 { (exit 1); exit 1; }; }
4292 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4293 set dummy $THE_AWK; ac_word=$2
4294 echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4296 if test "${ac_cv_path_AWK+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4324 if test -n "$AWK"; then
4325 echo "$as_me:$LINENO: result: $AWK" >&5
4326 echo "${ECHO_T}$AWK" >&6
4328 echo "$as_me:$LINENO: result: no" >&5
4329 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 # ------------------------------------------------------------------
6775 # All list of languages for which a translation exist. Each
6776 # language is separated by a space.
6777 # ------------------------------------------------------------------
6780 for ac_prog in msgfmt
6782 # Extract the first word of "$ac_prog", so it can be a program name with args.
6783 set dummy $ac_prog; ac_word=$2
6784 echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6786 if test "${ac_cv_path_MSGFMT+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 MSGFMT=$ac_cv_path_MSGFMT
6813 if test -n "$MSGFMT"; then
6814 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6815 echo "${ECHO_T}$MSGFMT" >&6
6817 echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6
6821 test -n "$MSGFMT" && break
6823 test -n "$MSGFMT" || MSGFMT="no"
6825 if test "$MSGFMT" = "no"
6827 echo 'msgfmt program not found, disabling NLS !'
6829 USE_INCLUDED_LIBINTL=no
6832 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6833 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6834 if test "${ac_cv_gnu_library_2+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.$ac_ext <<_ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6844 #include <features.h>
6845 #ifdef __GNU_LIBRARY__
6846 #if (__GLIBC__ >= 2)
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6854 ac_cv_gnu_library_2=yes
6856 ac_cv_gnu_library_2=no
6863 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6864 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6866 GLIBC2="$ac_cv_gnu_library_2"
6870 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6871 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6872 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 ac_check_lib_save_LIBS=$LIBS
6876 LIBS="-lcposix $LIBS"
6877 cat >conftest.$ac_ext <<_ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6884 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>conftest.er1
6903 grep -v '^ *+' conftest.er1 >conftest.err
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest$ac_exeext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_lib_cposix_strerror=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 ac_cv_lib_cposix_strerror=no
6928 rm -f conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6930 LIBS=$ac_check_lib_save_LIBS
6932 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6933 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6934 if test $ac_cv_lib_cposix_strerror = yes; then
6935 LIBS="$LIBS -lcposix"
6940 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6941 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6942 if test "${ac_cv_header_stdc+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966 (eval $ac_compile) 2>conftest.er1
6968 grep -v '^ *+' conftest.er1 >conftest.err
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } &&
6973 { ac_try='test -z "$ac_c_werror_flag"
6974 || test ! -s conftest.err'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest.$ac_objext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 ac_cv_header_stdc=yes
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6991 ac_cv_header_stdc=no
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 if test $ac_cv_header_stdc = yes; then
6996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "memchr" >/dev/null 2>&1; then
7010 ac_cv_header_stdc=no
7016 if test $ac_cv_header_stdc = yes; then
7017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028 $EGREP "free" >/dev/null 2>&1; then
7031 ac_cv_header_stdc=no
7037 if test $ac_cv_header_stdc = yes; then
7038 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7039 if test "$cross_compiling" = yes; then
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7049 #if ((' ' & 0x0FF) == 0x020)
7050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7053 # define ISLOWER(c) \
7054 (('a' <= (c) && (c) <= 'i') \
7055 || ('j' <= (c) && (c) <= 'r') \
7056 || ('s' <= (c) && (c) <= 'z'))
7057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7065 for (i = 0; i < 256; i++)
7066 if (XOR (islower (i), ISLOWER (i))
7067 || toupper (i) != TOUPPER (i))
7072 rm -f conftest$ac_exeext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074 (eval $ac_link) 2>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7085 echo "$as_me: program exited with status $ac_status" >&5
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_header_stdc=no
7092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7096 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7098 if test $ac_cv_header_stdc = yes; then
7100 cat >>confdefs.h <<\_ACEOF
7101 #define STDC_HEADERS 1
7106 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7107 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7108 if test "${ac_cv_c_const+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 cat >conftest.$ac_ext <<_ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7121 /* FIXME: Include the comments suggested by Paul. */
7123 /* Ultrix mips cc rejects this. */
7124 typedef int charset[2];
7126 /* SunOS 4.1.1 cc rejects this. */
7127 char const *const *ccp;
7129 /* NEC SVR4.0.2 mips cc rejects this. */
7130 struct point {int x, y;};
7131 static struct point const zero = {0,0};
7132 /* AIX XL C 1.02.0.0 rejects this.
7133 It does not let you subtract one const X* pointer from another in
7134 an arm of an if-expression whose if-part is not a constant
7136 const char *g = "string";
7137 ccp = &g + (g ? g-g : 0);
7138 /* HPUX 7.0 cc rejects these. */
7141 ccp = (char const *const *) p;
7142 { /* SCO 3.2v4 cc rejects this. */
7144 char const *s = 0 ? (char *) 0 : (char const *) 0;
7148 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7150 const int *foo = &x[0];
7153 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7154 typedef const int *iptr;
7158 { /* AIX XL C 1.02.0.0 rejects this saying
7159 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7160 struct s { int j; const int *ap[3]; };
7161 struct s *b; b->j = 5;
7163 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7172 rm -f conftest.$ac_objext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174 (eval $ac_compile) 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest.$ac_objext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7203 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7204 echo "${ECHO_T}$ac_cv_c_const" >&6
7205 if test $ac_cv_c_const = no; then
7207 cat >>confdefs.h <<\_ACEOF
7214 echo "$as_me:$LINENO: checking for signed" >&5
7215 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7216 if test "${bh_cv_c_signed+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7234 rm -f conftest.$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236 (eval $ac_compile) 2>conftest.er1
7238 grep -v '^ *+' conftest.er1 >conftest.err
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag"
7244 || test ! -s conftest.err'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try='test -s conftest.$ac_objext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7265 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7266 echo "${ECHO_T}$bh_cv_c_signed" >&6
7267 if test $bh_cv_c_signed = no; then
7269 cat >>confdefs.h <<\_ACEOF
7275 echo "$as_me:$LINENO: checking for inline" >&5
7276 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7277 if test "${ac_cv_c_inline+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 for ac_kw in inline __inline__ __inline; do
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7290 static $ac_kw foo_t static_foo () {return 0; }
7291 $ac_kw foo_t foo () {return 0; }
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 ac_cv_c_inline=$ac_kw; break
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7328 echo "${ECHO_T}$ac_cv_c_inline" >&6
7331 case $ac_cv_c_inline in
7334 case $ac_cv_c_inline in
7336 *) ac_val=$ac_cv_c_inline;;
7338 cat >>confdefs.h <<_ACEOF
7340 #define inline $ac_val
7346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7357 inttypes.h stdint.h unistd.h
7359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360 echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7373 #include <$ac_header>
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7379 grep -v '^ *+' conftest.er1 >conftest.err
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 eval "$as_ac_Header=yes"
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 eval "$as_ac_Header=no"
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7409 cat >>confdefs.h <<_ACEOF
7410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7418 echo "$as_me:$LINENO: checking for off_t" >&5
7419 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7420 if test "${ac_cv_type_off_t+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>conftest.er1
7445 grep -v '^ *+' conftest.er1 >conftest.err
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag"
7451 || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_type_off_t=yes
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7473 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7474 if test $ac_cv_type_off_t = yes; then
7478 cat >>confdefs.h <<_ACEOF
7484 echo "$as_me:$LINENO: checking for size_t" >&5
7485 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7486 if test "${ac_cv_type_size_t+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 cat >conftest.$ac_ext <<_ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7501 if (sizeof (size_t))
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest.$ac_objext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_type_size_t=yes
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_type_size_t=no
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7539 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7540 if test $ac_cv_type_size_t = yes; then
7544 cat >>confdefs.h <<_ACEOF
7545 #define size_t unsigned
7551 echo "$as_me:$LINENO: checking for long long" >&5
7552 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7553 if test "${ac_cv_type_long_long+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 long long ll = 1LL; int i = 63;
7566 long long llmax = (long long) -1;
7567 return ll << i | ll >> i | llmax / ll | llmax % ll;
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_cv_type_long_long=yes
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 ac_cv_type_long_long=no
7601 rm -f conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7604 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7605 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7606 if test $ac_cv_type_long_long = yes; then
7608 cat >>confdefs.h <<\_ACEOF
7609 #define HAVE_LONG_LONG 1
7615 echo "$as_me:$LINENO: checking for long double" >&5
7616 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7617 if test "${gt_cv_c_long_double+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 if test "$GCC" = yes; then
7621 gt_cv_c_long_double=yes
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7630 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7631 long double foo = 0.0;
7632 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7633 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>conftest.er1
7647 grep -v '^ *+' conftest.er1 >conftest.err
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 gt_cv_c_long_double=yes
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 gt_cv_c_long_double=no
7672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7675 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7676 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7677 if test $gt_cv_c_long_double = yes; then
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_LONG_DOUBLE 1
7686 echo "$as_me:$LINENO: checking for wchar_t" >&5
7687 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7688 if test "${gt_cv_c_wchar_t+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7698 wchar_t foo = (wchar_t)'\0';
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7711 grep -v '^ *+' conftest.er1 >conftest.err
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7738 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7739 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7740 if test $gt_cv_c_wchar_t = yes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_WCHAR_T 1
7749 echo "$as_me:$LINENO: checking for wint_t" >&5
7750 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7751 if test "${gt_cv_c_wint_t+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7761 wint_t foo = (wchar_t)'\0';
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7802 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7803 if test $gt_cv_c_wint_t = yes; then
7805 cat >>confdefs.h <<\_ACEOF
7806 #define HAVE_WINT_T 1
7812 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7813 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7814 if test "${gl_cv_header_inttypes_h+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 cat >conftest.$ac_ext <<_ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7823 #include <sys/types.h>
7824 #include <inttypes.h>
7828 uintmax_t i = (uintmax_t) -1;
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835 (eval $ac_compile) 2>conftest.er1
7837 grep -v '^ *+' conftest.er1 >conftest.err
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -z "$ac_c_werror_flag"
7843 || test ! -s conftest.err'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 gl_cv_header_inttypes_h=yes
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 gl_cv_header_inttypes_h=no
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7865 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7866 if test $gl_cv_header_inttypes_h = yes; then
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7875 echo "$as_me:$LINENO: checking for stdint.h" >&5
7876 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7877 if test "${gl_cv_header_stdint_h+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <sys/types.h>
7891 uintmax_t i = (uintmax_t) -1;
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 gl_cv_header_stdint_h=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 gl_cv_header_stdint_h=no
7925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7928 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7929 if test $gl_cv_header_stdint_h = yes; then
7931 cat >>confdefs.h <<_ACEOF
7932 #define HAVE_STDINT_H_WITH_UINTMAX 1
7940 echo "$as_me:$LINENO: checking for intmax_t" >&5
7941 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7942 if test "${gt_cv_c_intmax_t+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 cat >conftest.$ac_ext <<_ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7954 #if HAVE_STDINT_H_WITH_UINTMAX
7957 #if HAVE_INTTYPES_H_WITH_UINTMAX
7958 #include <inttypes.h>
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 gt_cv_c_intmax_t=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8001 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8002 if test $gt_cv_c_intmax_t = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_INTMAX_T 1
8012 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8013 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8014 if test "${gt_cv_func_printf_posix+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 if test "$cross_compiling" = yes; then
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8027 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033 $EGREP "notposix" >/dev/null 2>&1; then
8034 gt_cv_func_printf_posix="guessing no"
8036 gt_cv_func_printf_posix="guessing yes"
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8051 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8052 dollar expansion (possibly an autoconf bug). */
8053 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8054 static char buf[100];
8057 sprintf (buf, format, 33, 55);
8058 return (strcmp (buf, "55 33") != 0);
8061 rm -f conftest$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 gt_cv_func_printf_posix=yes
8074 echo "$as_me: program exited with status $ac_status" >&5
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8079 gt_cv_func_printf_posix=no
8081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8086 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8087 case $gt_cv_func_printf_posix in
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_POSIX_PRINTF 1
8097 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8098 # for constant arguments. Useless!
8099 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8100 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8101 if test "${ac_cv_working_alloca_h+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8114 char *p = (char *) alloca (2 * sizeof (int));
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag"
8129 || test ! -s conftest.err'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 ac_cv_working_alloca_h=yes
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 ac_cv_working_alloca_h=no
8148 rm -f conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8151 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8152 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8153 if test $ac_cv_working_alloca_h = yes; then
8155 cat >>confdefs.h <<\_ACEOF
8156 #define HAVE_ALLOCA_H 1
8161 echo "$as_me:$LINENO: checking for alloca" >&5
8162 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8163 if test "${ac_cv_func_alloca_works+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 # define alloca __builtin_alloca
8176 # include <malloc.h>
8177 # define alloca _alloca
8180 # include <alloca.h>
8185 # ifndef alloca /* predefined by HP cc +Olibcalls */
8196 char *p = (char *) alloca (1);
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_cv_func_alloca_works=yes
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_func_alloca_works=no
8230 rm -f conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8233 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8234 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8236 if test $ac_cv_func_alloca_works = yes; then
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_ALLOCA 1
8243 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8244 # that cause trouble. Some versions do not even contain alloca or
8245 # contain a buggy version. If you still want to use their alloca,
8246 # use ar to extract alloca.o from them instead of compiling alloca.c.
8248 ALLOCA=alloca.$ac_objext
8250 cat >>confdefs.h <<\_ACEOF
8255 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8256 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8257 if test "${ac_cv_os_cray+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 #if defined(CRAY) && ! defined(CRAY2)
8273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8274 $EGREP "webecray" >/dev/null 2>&1; then
8282 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8283 echo "${ECHO_T}$ac_cv_os_cray" >&6
8284 if test $ac_cv_os_cray = yes; then
8285 for ac_func in _getb67 GETB67 getb67; do
8286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8287 echo "$as_me:$LINENO: checking for $ac_func" >&5
8288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8289 if eval "test \"\${$as_ac_var+set}\" = set"; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8300 #define $ac_func innocuous_$ac_func
8302 /* System header to define __stub macros and hopefully few prototypes,
8303 which can conflict with char $ac_func (); below.
8304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305 <limits.h> exists even on freestanding compilers. */
8308 # include <limits.h>
8310 # include <assert.h>
8315 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8323 /* The GNU C library defines this for functions which it implements
8324 to always fail with ENOSYS. Some functions are actually named
8325 something starting with __ and the normal name is an alias. */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8329 char (*f) () = $ac_func;
8338 return f != $ac_func;
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 eval "$as_ac_var=yes"
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 eval "$as_ac_var=no"
8372 rm -f conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8377 if test `eval echo '${'$as_ac_var'}'` = yes; then
8379 cat >>confdefs.h <<_ACEOF
8380 #define CRAY_STACKSEG_END $ac_func
8389 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8390 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8391 if test "${ac_cv_c_stack_direction+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 if test "$cross_compiling" = yes; then
8395 ac_cv_c_stack_direction=0
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8404 find_stack_direction ()
8406 static char *addr = 0;
8411 return find_stack_direction ();
8414 return (&dummy > addr) ? 1 : -1;
8420 exit (find_stack_direction () < 0);
8423 rm -f conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_c_stack_direction=1
8436 echo "$as_me: program exited with status $ac_status" >&5
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_c_stack_direction=-1
8443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8446 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8447 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8449 cat >>confdefs.h <<_ACEOF
8450 #define STACK_DIRECTION $ac_cv_c_stack_direction
8458 for ac_header in stdlib.h unistd.h
8460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8462 echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8470 # Is the header compilable?
8471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 $ac_includes_default
8480 #include <$ac_header>
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_header_compiler=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_header_compiler=no
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6
8515 # Is the header present?
8516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <$ac_header>
8526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } >/dev/null; then
8534 if test -s conftest.err; then
8535 ac_cpp_err=$ac_c_preproc_warn_flag
8536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8543 if test -z "$ac_cpp_err"; then
8544 ac_header_preproc=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 ac_header_preproc=no
8551 rm -f conftest.err conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8553 echo "${ECHO_T}$ac_header_preproc" >&6
8555 # So? What about this header?
8556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8562 ac_header_preproc=yes
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8579 ## ------------------------------------------ ##
8580 ## Report this to the AC_PACKAGE_NAME lists. ##
8581 ## ------------------------------------------ ##
8584 sed "s/^/$as_me: WARNING: /" >&2
8587 echo "$as_me:$LINENO: checking for $ac_header" >&5
8588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 eval "$as_ac_Header=\$ac_header_preproc"
8594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8599 cat >>confdefs.h <<_ACEOF
8600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8608 for ac_func in getpagesize
8610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8611 echo "$as_me:$LINENO: checking for $ac_func" >&5
8612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_var+set}\" = set"; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 cat >conftest.$ac_ext <<_ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8624 #define $ac_func innocuous_$ac_func
8626 /* System header to define __stub macros and hopefully few prototypes,
8627 which can conflict with char $ac_func (); below.
8628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 <limits.h> exists even on freestanding compilers. */
8632 # include <limits.h>
8634 # include <assert.h>
8639 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8647 /* The GNU C library defines this for functions which it implements
8648 to always fail with ENOSYS. Some functions are actually named
8649 something starting with __ and the normal name is an alias. */
8650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8653 char (*f) () = $ac_func;
8662 return f != $ac_func;
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669 (eval $ac_link) 2>conftest.er1
8671 grep -v '^ *+' conftest.er1 >conftest.err
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -z "$ac_c_werror_flag"
8677 || test ! -s conftest.err'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest$ac_exeext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 eval "$as_ac_var=yes"
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 eval "$as_ac_var=no"
8696 rm -f conftest.err conftest.$ac_objext \
8697 conftest$ac_exeext conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8701 if test `eval echo '${'$as_ac_var'}'` = yes; then
8702 cat >>confdefs.h <<_ACEOF
8703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8709 echo "$as_me:$LINENO: checking for working mmap" >&5
8710 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8711 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 if test "$cross_compiling" = yes; then
8715 ac_cv_func_mmap_fixed_mapped=no
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $ac_includes_default
8724 /* malloc might have been renamed as rpl_malloc. */
8727 /* Thanks to Mike Haertel and Jim Avera for this test.
8728 Here is a matrix of mmap possibilities:
8729 mmap private not fixed
8730 mmap private fixed at somewhere currently unmapped
8731 mmap private fixed at somewhere already mapped
8732 mmap shared not fixed
8733 mmap shared fixed at somewhere currently unmapped
8734 mmap shared fixed at somewhere already mapped
8735 For private mappings, we should verify that changes cannot be read()
8736 back from the file, nor mmap's back from the file at a different
8737 address. (There have been systems where private was not correctly
8738 implemented like the infamous i386 svr4.0, and systems where the
8739 VM page cache was not coherent with the file system buffer cache
8740 like early versions of FreeBSD and possibly contemporary NetBSD.)
8741 For shared mappings, we should conversely verify that changes get
8742 propagated back to all the places they're supposed to be.
8744 Grep wants private fixed already mapped.
8745 The main things grep needs to know about mmap are:
8746 * does it exist and is it safe to write into the mmap'd area
8747 * how to use it (BSD variants) */
8750 #include <sys/mman.h>
8752 #if !STDC_HEADERS && !HAVE_STDLIB_H
8756 /* This mess was copied from the GNU getpagesize.h. */
8757 #if !HAVE_GETPAGESIZE
8758 /* Assume that all systems that can run configure have sys/param.h. */
8759 # if !HAVE_SYS_PARAM_H
8760 # define HAVE_SYS_PARAM_H 1
8763 # ifdef _SC_PAGESIZE
8764 # define getpagesize() sysconf(_SC_PAGESIZE)
8765 # else /* no _SC_PAGESIZE */
8766 # if HAVE_SYS_PARAM_H
8767 # include <sys/param.h>
8768 # ifdef EXEC_PAGESIZE
8769 # define getpagesize() EXEC_PAGESIZE
8770 # else /* no EXEC_PAGESIZE */
8772 # define getpagesize() NBPG * CLSIZE
8775 # endif /* no CLSIZE */
8776 # else /* no NBPG */
8778 # define getpagesize() NBPC
8779 # else /* no NBPC */
8781 # define getpagesize() PAGESIZE
8782 # endif /* PAGESIZE */
8783 # endif /* no NBPC */
8784 # endif /* no NBPG */
8785 # endif /* no EXEC_PAGESIZE */
8786 # else /* no HAVE_SYS_PARAM_H */
8787 # define getpagesize() 8192 /* punt totally */
8788 # endif /* no HAVE_SYS_PARAM_H */
8789 # endif /* no _SC_PAGESIZE */
8791 #endif /* no HAVE_GETPAGESIZE */
8796 char *data, *data2, *data3;
8800 pagesize = getpagesize ();
8802 /* First, make a file with some known garbage in it. */
8803 data = (char *) malloc (pagesize);
8806 for (i = 0; i < pagesize; ++i)
8807 *(data + i) = rand ();
8809 fd = creat ("conftest.mmap", 0600);
8812 if (write (fd, data, pagesize) != pagesize)
8816 /* Next, try to mmap the file at a fixed address which already has
8817 something else allocated at it. If we can, also make sure that
8818 we see the same garbage. */
8819 fd = open ("conftest.mmap", O_RDWR);
8822 data2 = (char *) malloc (2 * pagesize);
8825 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8826 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8827 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8829 for (i = 0; i < pagesize; ++i)
8830 if (*(data + i) != *(data2 + i))
8833 /* Finally, make sure that changes to the mapped area do not
8834 percolate back to the file as seen by read(). (This is a bug on
8835 some variants of i386 svr4.0.) */
8836 for (i = 0; i < pagesize; ++i)
8837 *(data2 + i) = *(data2 + i) + 1;
8838 data3 = (char *) malloc (pagesize);
8841 if (read (fd, data3, pagesize) != pagesize)
8843 for (i = 0; i < pagesize; ++i)
8844 if (*(data + i) != *(data3 + i))
8850 rm -f conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ac_cv_func_mmap_fixed_mapped=yes
8863 echo "$as_me: program exited with status $ac_status" >&5
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_cv_func_mmap_fixed_mapped=no
8870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8873 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8874 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8875 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8877 cat >>confdefs.h <<\_ACEOF
8885 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8886 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8887 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8897 #include <features.h>
8898 #ifdef __GNU_LIBRARY__
8899 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8906 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8907 ac_cv_gnu_library_2_1=yes
8909 ac_cv_gnu_library_2_1=no
8916 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8917 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8919 GLIBC21="$ac_cv_gnu_library_2_1"
8924 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8925 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8926 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 if test "$cross_compiling" = yes; then
8932 # Guess based on the CPU.
8934 alpha* | i3456786 | m68k | s390*)
8935 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8937 gt_cv_int_divbyzero_sigfpe="guessing no";;
8941 cat >conftest.$ac_ext <<_ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8953 sigfpe_handler (int sig)
8955 sigfpe_handler (sig) int sig;
8958 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8959 exit (sig != SIGFPE);
8969 signal (SIGFPE, sigfpe_handler);
8970 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8971 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8972 signal (SIGTRAP, sigfpe_handler);
8974 /* Linux/SPARC yields signal SIGILL. */
8975 #if defined (__sparc__) && defined (__linux__)
8976 signal (SIGILL, sigfpe_handler);
8985 rm -f conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 gt_cv_int_divbyzero_sigfpe=yes
8998 echo "$as_me: program exited with status $ac_status" >&5
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9003 gt_cv_int_divbyzero_sigfpe=no
9005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9009 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9010 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9011 case "$gt_cv_int_divbyzero_sigfpe" in
9016 cat >>confdefs.h <<_ACEOF
9017 #define INTDIV0_RAISES_SIGFPE $value
9022 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9023 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9024 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 unsigned long long ull = 1ULL; int i = 63;
9037 unsigned long long ullmax = (unsigned long long) -1;
9038 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag"
9053 || test ! -s conftest.err'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 ac_cv_type_unsigned_long_long=yes
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9070 ac_cv_type_unsigned_long_long=no
9072 rm -f conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9076 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9077 if test $ac_cv_type_unsigned_long_long = yes; then
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_UNSIGNED_LONG_LONG 1
9088 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9090 test $ac_cv_type_unsigned_long_long = yes \
9091 && ac_type='unsigned long long' \
9092 || ac_type='unsigned long'
9094 cat >>confdefs.h <<_ACEOF
9095 #define uintmax_t $ac_type
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_UINTMAX_T 1
9107 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9108 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9109 if test "${gt_cv_header_inttypes_h+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 cat >conftest.$ac_ext <<_ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9119 #include <sys/types.h>
9120 #include <inttypes.h>
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>conftest.er1
9133 grep -v '^ *+' conftest.er1 >conftest.err
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } &&
9138 { ac_try='test -z "$ac_c_werror_flag"
9139 || test ! -s conftest.err'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; } &&
9145 { ac_try='test -s conftest.$ac_objext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 gt_cv_header_inttypes_h=yes
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 gt_cv_header_inttypes_h=no
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9162 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9163 if test $gt_cv_header_inttypes_h = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_INTTYPES_H 1
9173 if test $gt_cv_header_inttypes_h = yes; then
9174 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9175 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9176 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 #include <inttypes.h>
9199 rm -f conftest.$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201 (eval $ac_compile) 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -z "$ac_c_werror_flag"
9209 || test ! -s conftest.err'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try='test -s conftest.$ac_objext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 gt_cv_inttypes_pri_broken=no
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 gt_cv_inttypes_pri_broken=yes
9228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9232 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9234 if test "$gt_cv_inttypes_pri_broken" = yes; then
9236 cat >>confdefs.h <<_ACEOF
9237 #define PRI_MACROS_BROKEN 1
9244 for ac_header in stdint.h
9246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248 echo "$as_me:$LINENO: checking for $ac_header" >&5
9249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9256 # Is the header compilable?
9257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9259 cat >conftest.$ac_ext <<_ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9265 $ac_includes_default
9266 #include <$ac_header>
9268 rm -f conftest.$ac_objext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270 (eval $ac_compile) 2>conftest.er1
9272 grep -v '^ *+' conftest.er1 >conftest.err
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -z "$ac_c_werror_flag"
9278 || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_header_compiler=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_header_compiler=no
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9299 echo "${ECHO_T}$ac_header_compiler" >&6
9301 # Is the header present?
9302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 #include <$ac_header>
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9315 grep -v '^ *+' conftest.er1 >conftest.err
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } >/dev/null; then
9320 if test -s conftest.err; then
9321 ac_cpp_err=$ac_c_preproc_warn_flag
9322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9329 if test -z "$ac_cpp_err"; then
9330 ac_header_preproc=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_header_preproc=no
9337 rm -f conftest.err conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9339 echo "${ECHO_T}$ac_header_preproc" >&6
9341 # So? What about this header?
9342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9348 ac_header_preproc=yes
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9365 ## ------------------------------------------ ##
9366 ## Report this to the AC_PACKAGE_NAME lists. ##
9367 ## ------------------------------------------ ##
9370 sed "s/^/$as_me: WARNING: /" >&2
9373 echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 eval "$as_ac_Header=\$ac_header_preproc"
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9394 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9396 cat >conftest.$ac_ext <<_ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 $EGREP "Found it" >/dev/null 2>&1; then
9418 if test -z "$result"; then
9419 if test "$cross_compiling" = yes; then
9420 # Depending upon the size, compute the lo and hi bounds.
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9431 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440 (eval $ac_compile) 2>conftest.er1
9442 grep -v '^ *+' conftest.er1 >conftest.err
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag"
9448 || test ! -s conftest.err'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; } &&
9454 { ac_try='test -s conftest.$ac_objext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9472 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481 (eval $ac_compile) 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_hi=$ac_mid; break
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9506 ac_lo=`expr $ac_mid + 1`
9507 if test $ac_lo -le $ac_mid; then
9511 ac_mid=`expr 2 '*' $ac_mid + 1`
9513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 cat >conftest.$ac_ext <<_ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9529 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9540 grep -v '^ *+' conftest.er1 >conftest.err
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9570 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest.$ac_objext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_lo=$ac_mid; break
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9604 ac_hi=`expr '(' $ac_mid ')' - 1`
9605 if test $ac_mid -le $ac_hi; then
9609 ac_mid=`expr 2 '*' $ac_mid`
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9622 # Binary search between lo and hi bounds.
9623 while test "x$ac_lo" != "x$ac_hi"; do
9624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9635 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644 (eval $ac_compile) 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag"
9652 || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest.$ac_objext'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_lo=`expr '(' $ac_mid ')' + 1`
9671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9678 if test "$cross_compiling" = yes; then
9679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9680 See \`config.log' for more details." >&5
9681 echo "$as_me: error: cannot run test program while cross compiling
9682 See \`config.log' for more details." >&2;}
9683 { (exit 1); exit 1; }; }
9685 cat >conftest.$ac_ext <<_ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9692 long longval () { return ~(size_t)0 / 10; }
9693 unsigned long ulongval () { return ~(size_t)0 / 10; }
9700 FILE *f = fopen ("conftest.val", "w");
9703 if ((~(size_t)0 / 10) < 0)
9705 long i = longval ();
9706 if (i != (~(size_t)0 / 10))
9708 fprintf (f, "%ld\n", i);
9712 unsigned long i = ulongval ();
9713 if (i != (~(size_t)0 / 10))
9715 fprintf (f, "%lu\n", i);
9717 exit (ferror (f) || fclose (f) != 0);
9723 rm -f conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 res_hi=`cat conftest.val`
9736 echo "$as_me: program exited with status $ac_status" >&5
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9747 if test "$cross_compiling" = yes; then
9748 # Depending upon the size, compute the lo and hi bounds.
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9759 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768 (eval $ac_compile) 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag"
9776 || test ! -s conftest.err'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest.$ac_objext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9800 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_hi=$ac_mid; break
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_lo=`expr $ac_mid + 1`
9835 if test $ac_lo -le $ac_mid; then
9839 ac_mid=`expr 2 '*' $ac_mid + 1`
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 cat >conftest.$ac_ext <<_ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9857 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9888 cat >conftest.$ac_ext <<_ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9898 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907 (eval $ac_compile) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest.$ac_objext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_lo=$ac_mid; break
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_hi=`expr '(' $ac_mid ')' - 1`
9933 if test $ac_mid -le $ac_hi; then
9937 ac_mid=`expr 2 '*' $ac_mid`
9939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9950 # Binary search between lo and hi bounds.
9951 while test "x$ac_lo" != "x$ac_hi"; do
9952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9963 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972 (eval $ac_compile) 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag"
9980 || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_lo=`expr '(' $ac_mid ')' + 1`
9999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10002 ?*) res_lo=$ac_lo;;
10006 if test "$cross_compiling" = yes; then
10007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10008 See \`config.log' for more details." >&5
10009 echo "$as_me: error: cannot run test program while cross compiling
10010 See \`config.log' for more details." >&2;}
10011 { (exit 1); exit 1; }; }
10013 cat >conftest.$ac_ext <<_ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019 #include <stddef.h>
10020 long longval () { return ~(size_t)0 % 10; }
10021 unsigned long ulongval () { return ~(size_t)0 % 10; }
10023 #include <stdlib.h>
10028 FILE *f = fopen ("conftest.val", "w");
10031 if ((~(size_t)0 % 10) < 0)
10033 long i = longval ();
10034 if (i != (~(size_t)0 % 10))
10036 fprintf (f, "%ld\n", i);
10040 unsigned long i = ulongval ();
10041 if (i != (~(size_t)0 % 10))
10043 fprintf (f, "%lu\n", i);
10045 exit (ferror (f) || fclose (f) != 0);
10051 rm -f conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 res_lo=`cat conftest.val`
10064 echo "$as_me: program exited with status $ac_status" >&5
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ( exit $ac_status )
10071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10075 if test "$cross_compiling" = yes; then
10076 # Depending upon the size, compute the lo and hi bounds.
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #include <stddef.h>
10087 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10094 rm -f conftest.$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>conftest.er1
10098 grep -v '^ *+' conftest.er1 >conftest.err
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag"
10104 || test ! -s conftest.err'
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); }; } &&
10110 { ac_try='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <stddef.h>
10128 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
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); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_hi=$ac_mid; break
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_lo=`expr $ac_mid + 1`
10163 if test $ac_lo -le $ac_mid; then
10167 ac_mid=`expr 2 '*' $ac_mid + 1`
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 cat >conftest.$ac_ext <<_ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 #include <stddef.h>
10185 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
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); }; } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <stddef.h>
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
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); }; } &&
10249 { ac_try='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_lo=$ac_mid; break
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_hi=`expr '(' $ac_mid ')' - 1`
10261 if test $ac_mid -le $ac_hi; then
10265 ac_mid=`expr 2 '*' $ac_mid`
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 # Binary search between lo and hi bounds.
10279 while test "x$ac_lo" != "x$ac_hi"; do
10280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10281 cat >conftest.$ac_ext <<_ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 #include <stddef.h>
10291 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10302 grep -v '^ *+' conftest.er1 >conftest.err
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
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); }; } &&
10314 { ac_try='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_lo=`expr '(' $ac_mid ')' + 1`
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10330 ?*) fits_in_uint=$ac_lo;;
10334 if test "$cross_compiling" = yes; then
10335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10336 See \`config.log' for more details." >&5
10337 echo "$as_me: error: cannot run test program while cross compiling
10338 See \`config.log' for more details." >&2;}
10339 { (exit 1); exit 1; }; }
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <stddef.h>
10348 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10349 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10351 #include <stdlib.h>
10356 FILE *f = fopen ("conftest.val", "w");
10359 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10361 long i = longval ();
10362 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10364 fprintf (f, "%ld\n", i);
10368 unsigned long i = ulongval ();
10369 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10371 fprintf (f, "%lu\n", i);
10373 exit (ferror (f) || fclose (f) != 0);
10379 rm -f conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 fits_in_uint=`cat conftest.val`
10392 echo "$as_me: program exited with status $ac_status" >&5
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ( exit $ac_status )
10399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10403 if test "$fits_in_uint" = 1; then
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <stddef.h>
10412 extern unsigned long foo;
10422 rm -f conftest.$ac_objext
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424 (eval $ac_compile) 2>conftest.er1
10426 grep -v '^ *+' conftest.er1 >conftest.err
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } &&
10431 { ac_try='test -z "$ac_c_werror_flag"
10432 || test ! -s conftest.err'
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); }; } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10452 if test -z "$result"; then
10453 if test "$fits_in_uint" = 1; then
10454 result="$res_hi$res_lo"U
10456 result="$res_hi$res_lo"UL
10459 result='~(size_t)0'
10462 echo "$as_me:$LINENO: result: $result" >&5
10463 echo "${ECHO_T}$result" >&6
10464 if test "$result" != yes; then
10466 cat >>confdefs.h <<_ACEOF
10467 #define SIZE_MAX $result
10476 for ac_header in stdint.h
10478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10480 echo "$as_me:$LINENO: checking for $ac_header" >&5
10481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10488 # Is the header compilable?
10489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 $ac_includes_default
10498 #include <$ac_header>
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>conftest.er1
10504 grep -v '^ *+' conftest.er1 >conftest.err
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
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); }; } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_header_compiler=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_header_compiler=no
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531 echo "${ECHO_T}$ac_header_compiler" >&6
10533 # Is the header present?
10534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 #include <$ac_header>
10544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } >/dev/null; then
10552 if test -s conftest.err; then
10553 ac_cpp_err=$ac_c_preproc_warn_flag
10554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10561 if test -z "$ac_cpp_err"; then
10562 ac_header_preproc=yes
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ac_header_preproc=no
10569 rm -f conftest.err conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10571 echo "${ECHO_T}$ac_header_preproc" >&6
10573 # So? What about this header?
10574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10580 ac_header_preproc=yes
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10597 ## ------------------------------------------ ##
10598 ## Report this to the AC_PACKAGE_NAME lists. ##
10599 ## ------------------------------------------ ##
10602 sed "s/^/$as_me: WARNING: /" >&2
10605 echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 eval "$as_ac_Header=\$ac_header_preproc"
10612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10617 cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10632 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10633 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10634 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 $ac_includes_default
10647 if ((ptrdiff_t *) 0)
10649 if (sizeof (ptrdiff_t))
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657 (eval $ac_compile) 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
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); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_type_ptrdiff_t=yes
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_cv_type_ptrdiff_t=no
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10686 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10687 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10688 if test $ac_cv_type_ptrdiff_t = yes; then
10692 cat >>confdefs.h <<\_ACEOF
10693 #define ptrdiff_t long
10709 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10710 stdlib.h string.h unistd.h sys/param.h
10712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714 echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10722 # Is the header compilable?
10723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 $ac_includes_default
10732 #include <$ac_header>
10734 rm -f conftest.$ac_objext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736 (eval $ac_compile) 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -z "$ac_c_werror_flag"
10744 || test ! -s conftest.err'
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); }; } &&
10750 { ac_try='test -s conftest.$ac_objext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_header_compiler=yes
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 ac_header_compiler=no
10763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6
10767 # Is the header present?
10768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <$ac_header>
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_c_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10795 if test -z "$ac_cpp_err"; then
10796 ac_header_preproc=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_header_preproc=no
10803 rm -f conftest.err conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 echo "${ECHO_T}$ac_header_preproc" >&6
10807 # So? What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814 ac_header_preproc=yes
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10831 ## ------------------------------------------ ##
10832 ## Report this to the AC_PACKAGE_NAME lists. ##
10833 ## ------------------------------------------ ##
10836 sed "s/^/$as_me: WARNING: /" >&2
10839 echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 eval "$as_ac_Header=\$ac_header_preproc"
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10883 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10884 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888 echo "$as_me:$LINENO: checking for $ac_func" >&5
10889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10890 if eval "test \"\${$as_ac_var+set}\" = set"; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 cat >conftest.$ac_ext <<_ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10901 #define $ac_func innocuous_$ac_func
10903 /* System header to define __stub macros and hopefully few prototypes,
10904 which can conflict with char $ac_func (); below.
10905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906 <limits.h> exists even on freestanding compilers. */
10909 # include <limits.h>
10911 # include <assert.h>
10916 /* Override any gcc2 internal prototype to avoid an error. */
10921 /* We use char because int might match the return type of a gcc2
10922 builtin and then its argument prototype would still apply. */
10924 /* The GNU C library defines this for functions which it implements
10925 to always fail with ENOSYS. Some functions are actually named
10926 something starting with __ and the normal name is an alias. */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10930 char (*f) () = $ac_func;
10939 return f != $ac_func;
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946 (eval $ac_link) 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -z "$ac_c_werror_flag"
10954 || test ! -s conftest.err'
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); }; } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 eval "$as_ac_var=yes"
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 eval "$as_ac_var=no"
10973 rm -f conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10978 if test `eval echo '${'$as_ac_var'}'` = yes; then
10979 cat >>confdefs.h <<_ACEOF
10980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10988 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10989 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10990 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11005 char *p = (char *) _snprintf;
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag"
11022 || test ! -s conftest.err'
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); }; } &&
11028 { ac_try='test -s conftest.$ac_objext'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_have_decl__snprintf=yes
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_cv_have_decl__snprintf=no
11041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11043 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11044 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11045 if test $ac_cv_have_decl__snprintf = yes; then
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_DECL__SNPRINTF $gt_value
11057 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11058 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11059 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 cat >conftest.$ac_ext <<_ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11074 char *p = (char *) _snwprintf;
11081 rm -f conftest.$ac_objext
11082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083 (eval $ac_compile) 2>conftest.er1
11085 grep -v '^ *+' conftest.er1 >conftest.err
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } &&
11090 { ac_try='test -z "$ac_c_werror_flag"
11091 || test ! -s conftest.err'
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); }; } &&
11097 { ac_try='test -s conftest.$ac_objext'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103 ac_cv_have_decl__snwprintf=yes
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_cv_have_decl__snwprintf=no
11110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11112 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11113 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11114 if test $ac_cv_have_decl__snwprintf = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_DECL__SNWPRINTF $gt_value
11127 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11128 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11129 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11143 #ifndef feof_unlocked
11144 char *p = (char *) feof_unlocked;
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153 (eval $ac_compile) 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag"
11161 || test ! -s conftest.err'
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); }; } &&
11167 { ac_try='test -s conftest.$ac_objext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_have_decl_feof_unlocked=yes
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_cv_have_decl_feof_unlocked=no
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11183 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11184 if test $ac_cv_have_decl_feof_unlocked = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11196 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11197 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11198 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11212 #ifndef fgets_unlocked
11213 char *p = (char *) fgets_unlocked;
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>conftest.er1
11224 grep -v '^ *+' conftest.er1 >conftest.err
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag"
11230 || test ! -s conftest.err'
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); }; } &&
11236 { ac_try='test -s conftest.$ac_objext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 ac_cv_have_decl_fgets_unlocked=yes
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 ac_cv_have_decl_fgets_unlocked=no
11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11252 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11253 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11265 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11266 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11267 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 cat >conftest.$ac_ext <<_ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11281 #ifndef getc_unlocked
11282 char *p = (char *) getc_unlocked;
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291 (eval $ac_compile) 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_c_werror_flag"
11299 || test ! -s conftest.err'
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); }; } &&
11305 { ac_try='test -s conftest.$ac_objext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_cv_have_decl_getc_unlocked=yes
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_cv_have_decl_getc_unlocked=no
11318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11320 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11321 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11322 if test $ac_cv_have_decl_getc_unlocked = yes; then
11328 cat >>confdefs.h <<_ACEOF
11329 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11334 case $gt_cv_func_printf_posix in
11335 *yes) HAVE_POSIX_PRINTF=1 ;;
11336 *) HAVE_POSIX_PRINTF=0 ;;
11339 if test "$ac_cv_func_asprintf" = yes; then
11345 if test "$ac_cv_func_snprintf" = yes; then
11351 if test "$ac_cv_func_wprintf" = yes; then
11363 am_save_CPPFLAGS="$CPPFLAGS"
11365 for element in $INCICONV; do
11367 for x in $CPPFLAGS; do
11369 acl_save_prefix="$prefix"
11370 prefix="$acl_final_prefix"
11371 acl_save_exec_prefix="$exec_prefix"
11372 exec_prefix="$acl_final_exec_prefix"
11374 exec_prefix="$acl_save_exec_prefix"
11375 prefix="$acl_save_prefix"
11377 if test "X$x" = "X$element"; then
11382 if test -z "$haveit"; then
11383 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11388 echo "$as_me:$LINENO: checking for iconv" >&5
11389 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11390 if test "${am_cv_func_iconv+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 am_cv_func_iconv="no, consider installing GNU libiconv"
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <stdlib.h>
11407 iconv_t cd = iconv_open("","");
11408 iconv(cd,NULL,NULL,NULL,NULL);
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>conftest.er1
11418 grep -v '^ *+' conftest.er1 >conftest.err
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag"
11424 || test ! -s conftest.err'
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); }; } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 am_cv_func_iconv=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11442 rm -f conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11444 if test "$am_cv_func_iconv" != yes; then
11445 am_save_LIBS="$LIBS"
11446 LIBS="$LIBS $LIBICONV"
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <stdlib.h>
11458 iconv_t cd = iconv_open("","");
11459 iconv(cd,NULL,NULL,NULL,NULL);
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11467 (eval $ac_link) 2>conftest.er1
11469 grep -v '^ *+' conftest.er1 >conftest.err
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag"
11475 || test ! -s conftest.err'
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); }; } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 am_cv_lib_iconv=yes
11488 am_cv_func_iconv=yes
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11494 rm -f conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS="$am_save_LIBS"
11500 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11501 echo "${ECHO_T}$am_cv_func_iconv" >&6
11502 if test "$am_cv_func_iconv" = yes; then
11504 cat >>confdefs.h <<\_ACEOF
11505 #define HAVE_ICONV 1
11509 if test "$am_cv_lib_iconv" = yes; then
11510 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11511 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11512 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11513 echo "${ECHO_T}$LIBICONV" >&6
11515 CPPFLAGS="$am_save_CPPFLAGS"
11522 if test "$am_cv_func_iconv" = yes; then
11523 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11524 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11525 if test "${am_cv_proto_iconv+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11536 #include <stdlib.h>
11542 #if defined(__STDC__) || defined(__cplusplus)
11543 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11560 grep -v '^ *+' conftest.er1 >conftest.err
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -z "$ac_c_werror_flag"
11566 || test ! -s conftest.err'
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); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 am_cv_proto_iconv_arg1=""
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 am_cv_proto_iconv_arg1="const"
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586 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);"
11589 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11590 echo "$as_me:$LINENO: result: ${ac_t:-
11591 }$am_cv_proto_iconv" >&5
11592 echo "${ECHO_T}${ac_t:-
11593 }$am_cv_proto_iconv" >&6
11595 cat >>confdefs.h <<_ACEOF
11596 #define ICONV_CONST $am_cv_proto_iconv_arg1
11602 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11603 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11604 if test "${am_cv_langinfo_codeset+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #include <langinfo.h>
11617 char* cs = nl_langinfo(CODESET);
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624 (eval $ac_link) 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -z "$ac_c_werror_flag"
11632 || test ! -s conftest.err'
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); }; } &&
11638 { ac_try='test -s conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 am_cv_langinfo_codeset=yes
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 am_cv_langinfo_codeset=no
11651 rm -f conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11655 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11656 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11657 if test $am_cv_langinfo_codeset = yes; then
11659 cat >>confdefs.h <<\_ACEOF
11660 #define HAVE_LANGINFO_CODESET 1
11665 if test $ac_cv_header_locale_h = yes; then
11667 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11668 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11669 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 #include <locale.h>
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689 (eval $ac_link) 2>conftest.er1
11691 grep -v '^ *+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag"
11697 || test ! -s conftest.err'
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); }; } &&
11703 { ac_try='test -s conftest$ac_exeext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 gt_cv_val_LC_MESSAGES=yes
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 gt_cv_val_LC_MESSAGES=no
11716 rm -f conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11719 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11720 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11721 if test $gt_cv_val_LC_MESSAGES = yes; then
11723 cat >>confdefs.h <<\_ACEOF
11724 #define HAVE_LC_MESSAGES 1
11731 if test -n "$INTL_MACOSX_LIBS"; then
11732 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11735 for ac_prog in bison
11737 # Extract the first word of "$ac_prog", so it can be a program name with args.
11738 set dummy $ac_prog; ac_word=$2
11739 echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 if test -n "$INTLBISON"; then
11745 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_INTLBISON="$ac_prog"
11755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 INTLBISON=$ac_cv_prog_INTLBISON
11764 if test -n "$INTLBISON"; then
11765 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11766 echo "${ECHO_T}$INTLBISON" >&6
11768 echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11772 test -n "$INTLBISON" && break
11775 if test -z "$INTLBISON"; then
11778 echo "$as_me:$LINENO: checking version of bison" >&5
11779 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11780 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11781 case $ac_prog_version in
11782 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11783 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11784 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11785 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11787 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11788 echo "${ECHO_T}$ac_prog_version" >&6
11790 if test $ac_verc_fail = yes; then
11809 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11810 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11811 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 gt_save_CPPFLAGS="$CPPFLAGS"
11815 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11816 gt_save_LIBS="$LIBS"
11817 LIBS="$LIBS -framework CoreFoundation"
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 #include <CFPreferences.h>
11828 CFPreferencesCopyAppValue(NULL, NULL)
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835 (eval $ac_link) 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag"
11843 || test ! -s conftest.err'
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); }; } &&
11849 { ac_try='test -s conftest$ac_exeext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 gt_cv_func_CFPreferencesCopyAppValue=yes
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 gt_cv_func_CFPreferencesCopyAppValue=no
11862 rm -f conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11864 CPPFLAGS="$gt_save_CPPFLAGS"
11865 LIBS="$gt_save_LIBS"
11867 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11868 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11869 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11876 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11877 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11878 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 gt_save_CPPFLAGS="$CPPFLAGS"
11882 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11883 gt_save_LIBS="$LIBS"
11884 LIBS="$LIBS -framework CoreFoundation"
11885 cat >conftest.$ac_ext <<_ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 #include <CFLocale.h>
11895 CFLocaleCopyCurrent();
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>conftest.er1
11904 grep -v '^ *+' conftest.er1 >conftest.err
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
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); }; } &&
11916 { ac_try='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 gt_cv_func_CFLocaleCopyCurrent=yes
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 gt_cv_func_CFLocaleCopyCurrent=no
11929 rm -f conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931 CPPFLAGS="$gt_save_CPPFLAGS"
11932 LIBS="$gt_save_LIBS"
11934 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11935 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11936 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_CFLOCALECOPYCURRENT 1
11944 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11945 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11951 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11952 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11953 # Check whether --enable-nls or --disable-nls was given.
11954 if test "${enable_nls+set}" = set; then
11955 enableval="$enable_nls"
11960 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11961 echo "${ECHO_T}$USE_NLS" >&6
11966 BUILD_INCLUDED_LIBINTL=no
11967 USE_INCLUDED_LIBINTL=no
11973 if test "$USE_NLS" = "yes"; then
11974 gt_use_preinstalled_gnugettext=no
11976 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11977 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11979 # Check whether --with-included-gettext or --without-included-gettext was given.
11980 if test "${with_included_gettext+set}" = set; then
11981 withval="$with_included_gettext"
11982 nls_cv_force_use_gnu_gettext=$withval
11984 nls_cv_force_use_gnu_gettext=no
11986 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11987 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11989 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11990 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11997 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11998 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11999 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 cat >conftest.$ac_ext <<_ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 #include <libintl.h>
12009 extern int _nl_msg_cat_cntr;
12010 extern int *_nl_domain_bindings;
12014 bindtextdomain ("", "");
12015 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022 (eval $ac_link) 2>conftest.er1
12024 grep -v '^ *+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag"
12030 || test ! -s conftest.err'
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); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 gt_cv_func_gnugettext1_libc=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 gt_cv_func_gnugettext1_libc=no
12049 rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12052 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12053 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12055 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12061 acl_save_prefix="$prefix"
12062 prefix="$acl_final_prefix"
12063 acl_save_exec_prefix="$exec_prefix"
12064 exec_prefix="$acl_final_exec_prefix"
12066 eval additional_includedir=\"$includedir\"
12067 eval additional_libdir=\"$libdir\"
12069 exec_prefix="$acl_save_exec_prefix"
12070 prefix="$acl_save_prefix"
12073 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12074 if test "${with_libintl_prefix+set}" = set; then
12075 withval="$with_libintl_prefix"
12077 if test "X$withval" = "Xno"; then
12080 if test "X$withval" = "X"; then
12082 acl_save_prefix="$prefix"
12083 prefix="$acl_final_prefix"
12084 acl_save_exec_prefix="$exec_prefix"
12085 exec_prefix="$acl_final_exec_prefix"
12087 eval additional_includedir=\"$includedir\"
12088 eval additional_libdir=\"$libdir\"
12090 exec_prefix="$acl_save_exec_prefix"
12091 prefix="$acl_save_prefix"
12094 additional_includedir="$withval/include"
12095 additional_libdir="$withval/lib"
12105 names_already_handled=
12106 names_next_round='intl '
12107 while test -n "$names_next_round"; do
12108 names_this_round="$names_next_round"
12110 for name in $names_this_round; do
12112 for n in $names_already_handled; do
12113 if test "$n" = "$name"; then
12114 already_handled=yes
12118 if test -z "$already_handled"; then
12119 names_already_handled="$names_already_handled $name"
12120 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12121 eval value=\"\$HAVE_LIB$uppername\"
12122 if test -n "$value"; then
12123 if test "$value" = yes; then
12124 eval value=\"\$LIB$uppername\"
12125 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12126 eval value=\"\$LTLIB$uppername\"
12127 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12136 if test $use_additional = yes; then
12137 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12138 found_dir="$additional_libdir"
12139 found_so="$additional_libdir/lib$name.$shlibext"
12140 if test -f "$additional_libdir/lib$name.la"; then
12141 found_la="$additional_libdir/lib$name.la"
12144 if test -f "$additional_libdir/lib$name.$libext"; then
12145 found_dir="$additional_libdir"
12146 found_a="$additional_libdir/lib$name.$libext"
12147 if test -f "$additional_libdir/lib$name.la"; then
12148 found_la="$additional_libdir/lib$name.la"
12153 if test "X$found_dir" = "X"; then
12154 for x in $LDFLAGS $LTLIBINTL; do
12156 acl_save_prefix="$prefix"
12157 prefix="$acl_final_prefix"
12158 acl_save_exec_prefix="$exec_prefix"
12159 exec_prefix="$acl_final_exec_prefix"
12161 exec_prefix="$acl_save_exec_prefix"
12162 prefix="$acl_save_prefix"
12166 dir=`echo "X$x" | sed -e 's/^X-L//'`
12167 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12169 found_so="$dir/lib$name.$shlibext"
12170 if test -f "$dir/lib$name.la"; then
12171 found_la="$dir/lib$name.la"
12174 if test -f "$dir/lib$name.$libext"; then
12176 found_a="$dir/lib$name.$libext"
12177 if test -f "$dir/lib$name.la"; then
12178 found_la="$dir/lib$name.la"
12184 if test "X$found_dir" != "X"; then
12189 if test "X$found_dir" != "X"; then
12190 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12191 if test "X$found_so" != "X"; then
12192 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12193 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12196 for x in $ltrpathdirs; do
12197 if test "X$x" = "X$found_dir"; then
12202 if test -z "$haveit"; then
12203 ltrpathdirs="$ltrpathdirs $found_dir"
12205 if test "$hardcode_direct" = yes; then
12206 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12208 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12209 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12211 for x in $rpathdirs; do
12212 if test "X$x" = "X$found_dir"; then
12217 if test -z "$haveit"; then
12218 rpathdirs="$rpathdirs $found_dir"
12222 for x in $LDFLAGS $LIBINTL; do
12224 acl_save_prefix="$prefix"
12225 prefix="$acl_final_prefix"
12226 acl_save_exec_prefix="$exec_prefix"
12227 exec_prefix="$acl_final_exec_prefix"
12229 exec_prefix="$acl_save_exec_prefix"
12230 prefix="$acl_save_prefix"
12232 if test "X$x" = "X-L$found_dir"; then
12237 if test -z "$haveit"; then
12238 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12240 if test "$hardcode_minus_L" != no; then
12241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12243 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12249 if test "X$found_a" != "X"; then
12250 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12252 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12255 additional_includedir=
12256 case "$found_dir" in
12258 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12259 additional_includedir="$basedir/include"
12262 if test "X$additional_includedir" != "X"; then
12263 if test "X$additional_includedir" != "X/usr/include"; then
12265 if test "X$additional_includedir" = "X/usr/local/include"; then
12266 if test -n "$GCC"; then
12268 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12272 if test -z "$haveit"; then
12273 for x in $CPPFLAGS $INCINTL; do
12275 acl_save_prefix="$prefix"
12276 prefix="$acl_final_prefix"
12277 acl_save_exec_prefix="$exec_prefix"
12278 exec_prefix="$acl_final_exec_prefix"
12280 exec_prefix="$acl_save_exec_prefix"
12281 prefix="$acl_save_prefix"
12283 if test "X$x" = "X-I$additional_includedir"; then
12288 if test -z "$haveit"; then
12289 if test -d "$additional_includedir"; then
12290 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12296 if test -n "$found_la"; then
12297 save_libdir="$libdir"
12298 case "$found_la" in
12299 */* | *\\*) . "$found_la" ;;
12300 *) . "./$found_la" ;;
12302 libdir="$save_libdir"
12303 for dep in $dependency_libs; do
12306 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12307 if test "X$additional_libdir" != "X/usr/lib"; then
12309 if test "X$additional_libdir" = "X/usr/local/lib"; then
12310 if test -n "$GCC"; then
12312 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12316 if test -z "$haveit"; then
12318 for x in $LDFLAGS $LIBINTL; do
12320 acl_save_prefix="$prefix"
12321 prefix="$acl_final_prefix"
12322 acl_save_exec_prefix="$exec_prefix"
12323 exec_prefix="$acl_final_exec_prefix"
12325 exec_prefix="$acl_save_exec_prefix"
12326 prefix="$acl_save_prefix"
12328 if test "X$x" = "X-L$additional_libdir"; then
12333 if test -z "$haveit"; then
12334 if test -d "$additional_libdir"; then
12335 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12339 for x in $LDFLAGS $LTLIBINTL; do
12341 acl_save_prefix="$prefix"
12342 prefix="$acl_final_prefix"
12343 acl_save_exec_prefix="$exec_prefix"
12344 exec_prefix="$acl_final_exec_prefix"
12346 exec_prefix="$acl_save_exec_prefix"
12347 prefix="$acl_save_prefix"
12349 if test "X$x" = "X-L$additional_libdir"; then
12354 if test -z "$haveit"; then
12355 if test -d "$additional_libdir"; then
12356 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12363 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12364 if test "$enable_rpath" != no; then
12366 for x in $rpathdirs; do
12367 if test "X$x" = "X$dir"; then
12372 if test -z "$haveit"; then
12373 rpathdirs="$rpathdirs $dir"
12376 for x in $ltrpathdirs; do
12377 if test "X$x" = "X$dir"; then
12382 if test -z "$haveit"; then
12383 ltrpathdirs="$ltrpathdirs $dir"
12388 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12391 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12394 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12395 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12401 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12402 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12408 if test "X$rpathdirs" != "X"; then
12409 if test -n "$hardcode_libdir_separator"; then
12411 for found_dir in $rpathdirs; do
12412 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12414 acl_save_libdir="$libdir"
12416 eval flag=\"$hardcode_libdir_flag_spec\"
12417 libdir="$acl_save_libdir"
12418 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12420 for found_dir in $rpathdirs; do
12421 acl_save_libdir="$libdir"
12422 libdir="$found_dir"
12423 eval flag=\"$hardcode_libdir_flag_spec\"
12424 libdir="$acl_save_libdir"
12425 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12429 if test "X$ltrpathdirs" != "X"; then
12430 for found_dir in $ltrpathdirs; do
12431 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12435 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12436 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12437 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 gt_save_CPPFLAGS="$CPPFLAGS"
12441 CPPFLAGS="$CPPFLAGS $INCINTL"
12442 gt_save_LIBS="$LIBS"
12443 LIBS="$LIBS $LIBINTL"
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <libintl.h>
12451 extern int _nl_msg_cat_cntr;
12456 const char *_nl_expand_alias (const char *);
12460 bindtextdomain ("", "");
12461 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
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); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 gt_cv_func_gnugettext1_libintl=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 gt_cv_func_gnugettext1_libintl=no
12495 rm -f conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12498 LIBS="$LIBS $LIBICONV"
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #include <libintl.h>
12506 extern int _nl_msg_cat_cntr;
12511 const char *_nl_expand_alias (const char *);
12515 bindtextdomain ("", "");
12516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag"
12531 || test ! -s conftest.err'
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); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 LIBINTL="$LIBINTL $LIBICONV"
12544 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12545 gt_cv_func_gnugettext1_libintl=yes
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 CPPFLAGS="$gt_save_CPPFLAGS"
12556 LIBS="$gt_save_LIBS"
12558 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12559 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12562 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12563 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12564 && test "$PACKAGE" != gettext-runtime \
12565 && test "$PACKAGE" != gettext-tools; }; then
12566 gt_use_preinstalled_gnugettext=yes
12574 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12575 nls_cv_use_gnu_gettext=yes
12579 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12580 BUILD_INCLUDED_LIBINTL=yes
12581 USE_INCLUDED_LIBINTL=yes
12582 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12583 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12584 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12588 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12589 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12594 if test -n "$INTL_MACOSX_LIBS"; then
12595 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12596 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12597 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12598 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12602 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12603 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12605 cat >>confdefs.h <<\_ACEOF
12606 #define ENABLE_NLS 1
12614 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12615 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12616 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12617 echo "${ECHO_T}$USE_NLS" >&6
12618 if test "$USE_NLS" = "yes"; then
12619 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12620 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12621 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12622 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12623 gt_source="external libintl"
12628 gt_source="included intl directory"
12630 echo "$as_me:$LINENO: result: $gt_source" >&5
12631 echo "${ECHO_T}$gt_source" >&6
12634 if test "$USE_NLS" = "yes"; then
12636 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12637 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12638 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12639 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12640 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12641 echo "${ECHO_T}$LIBINTL" >&6
12643 for element in $INCINTL; do
12645 for x in $CPPFLAGS; do
12647 acl_save_prefix="$prefix"
12648 prefix="$acl_final_prefix"
12649 acl_save_exec_prefix="$exec_prefix"
12650 exec_prefix="$acl_final_exec_prefix"
12652 exec_prefix="$acl_save_exec_prefix"
12653 prefix="$acl_save_prefix"
12655 if test "X$x" = "X$element"; then
12660 if test -z "$haveit"; then
12661 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_GETTEXT 1
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_DCGETTEXT 1
12683 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12684 BUILD_INCLUDED_LIBINTL=yes
12691 nls_cv_header_intl=
12692 nls_cv_header_libgt=
12704 if test "$USE_INCLUDED_LIBINTL" = yes; then
12705 INTLOBJS="\$(GETTOBJS)"
12709 INTL_LIBTOOL_SUFFIX_PREFIX=
12713 INTLLIBS="$LIBINTL"
12726 support_postgresql=no
12727 support_smartalloc=yes
12728 support_readline=yes
12732 support_wx_console=no
12737 support_static_tools=no
12738 support_static_fd=no
12739 support_static_sd=no
12740 support_static_dir=no
12741 support_static_cons=no
12743 build_client_only=no
12751 # -------------------------------------------
12752 # gnome (default off)
12753 # -------------------------------------------
12754 # Check whether --enable-gnome or --disable-gnome was given.
12755 if test "${enable_gnome+set}" = set; then
12756 enableval="$enable_gnome"
12757 if test x$enableval = xyes; then
12763 if test x$support_gnome = xyes; then
12764 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12766 if test $pkg = 0; then
12767 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12768 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12769 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12770 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12775 GNOME_DIR=src/gnome2-console
12776 gnome_version="Version 2.x"
12778 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12779 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12780 { (exit 1); exit 1; }; }
12785 # -------------------------------------------
12786 # bat (default off)
12787 # -------------------------------------------
12788 # Check whether --enable-bat or --disable-bat was given.
12789 if test "${enable_bat+set}" = set; then
12790 enableval="$enable_bat"
12791 if test x$enableval = xyes; then
12793 cat >>confdefs.h <<\_ACEOF
12802 if test x$support_bat = xyes; then
12803 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12805 if test $pkg = 0; then
12806 BAT_DIR=src/qt-console
12808 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12809 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12810 { (exit 1); exit 1; }; }
12815 # If bat is enabled, we need the qwt library
12819 if test x$support_bat = xyes; then
12820 echo "$as_me:$LINENO: checking for qwt support" >&5
12821 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12823 # Check whether --with-qwt or --without-qwt was given.
12824 if test "${with_qwt+set}" = set; then
12825 withval="$with_qwt"
12827 case "$with_qwt" in
12831 if test -f ${with_qwt}/include/qwt.h; then
12832 QWT_INC="${with_qwt}/include"
12833 QWT_LDFLAGS="-L${with_qwt}/lib"
12841 # Search in standard places, or --with-qwt not specified
12843 if test x$QWT_INC = x; then
12844 for root in /usr /usr/local; do
12845 for ver in qwt qwt5; do
12846 if test -f ${root}/include/${ver}/qwt.h; then
12847 QWT_INC="${root}/include/${ver}"
12848 if test -d ${root}/lib64/; then
12849 QWT_LDFLAGS="-L${root}/lib64"
12851 QWT_LDFLAGS="-L${root}/lib"
12859 if test x$QWT_INC = x; then
12860 echo "$as_me:$LINENO: result: no" >&5
12861 echo "${ECHO_T}no" >&6
12862 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12863 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12864 { (exit 1); exit 1; }; }
12868 echo "$as_me:$LINENO: result: yes" >&5
12869 echo "${ECHO_T}yes" >&6
12878 # -------------------------------------------
12879 # bwx-console (default off)
12880 # -------------------------------------------
12881 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12882 if test "${enable_bwx_console+set}" = set; then
12883 enableval="$enable_bwx_console"
12884 if test x$enableval = xyes; then
12885 support_wx_console=yes
12890 if test x$support_wx_console = xyes; then
12891 abc=`$WXCONFIG $WXFLAGS --cppflags`
12893 if test $pkg = 0; then
12894 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12895 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12896 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12900 WX_DIR=src/wx-console
12903 echo "wx-config program not found. bwx-console disabled."
12905 support_wx_console=no
12911 # -------------------------------------------
12912 # tray-monitor (default off)
12913 # -------------------------------------------
12914 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12915 if test "${enable_tray_monitor+set}" = set; then
12916 enableval="$enable_tray_monitor"
12917 if test x$enableval = xyes; then
12918 support_tray_monitor=yes
12923 if test x$support_tray_monitor = xyes; then
12924 abc=`$PKGCONFIG --exists gtk+-2.0`
12926 if test $pkg = 0; then
12927 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12928 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12931 TRAY_MONITOR_DIR=src/tray-monitor
12932 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12934 if test $pkg = 0; then
12935 cat >>confdefs.h <<\_ACEOF
12936 #define HAVE_GTK_2_4 1
12944 # -------------------------------------------
12945 # smartalloc (default off)
12946 # -------------------------------------------
12947 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12948 if test "${enable_smartalloc+set}" = set; then
12949 enableval="$enable_smartalloc"
12950 if test x$enableval = xno; then
12951 support_smartalloc=no
12955 if test x$support_smartalloc = xyes; then
12956 cat >>confdefs.h <<\_ACEOF
12957 #define SMARTALLOC 1
12962 # -------------------------------------------
12963 # static-tools (default off)
12964 # -------------------------------------------
12965 # Check whether --enable-static-tools or --disable-static-tools was given.
12966 if test "${enable_static_tools+set}" = set; then
12967 enableval="$enable_static_tools"
12968 if test x$enableval = xyes; then
12969 support_static_tools=yes
12974 if test x$support_static_tools = xyes; then
12975 TTOOL_LDFLAGS="-static"
12979 # -------------------------------------------
12980 # static-fd (default off)
12981 # -------------------------------------------
12982 # Check whether --enable-static-fd or --disable-static-fd was given.
12983 if test "${enable_static_fd+set}" = set; then
12984 enableval="$enable_static_fd"
12985 if test x$enableval = xyes; then
12986 support_static_fd=yes
12991 if test x$support_static_fd = xyes; then
12992 STATIC_FD="static-bacula-fd"
12996 # -------------------------------------------
12997 # static-sd (default off)
12998 # -------------------------------------------
12999 # Check whether --enable-static-sd or --disable-static-sd was given.
13000 if test "${enable_static_sd+set}" = set; then
13001 enableval="$enable_static_sd"
13002 if test x$enableval = xyes; then
13003 support_static_sd=yes
13008 if test x$support_static_sd = xyes; then
13009 STATIC_SD="static-bacula-sd"
13013 # -------------------------------------------
13014 # static-dir (default off)
13015 # -------------------------------------------
13016 # Check whether --enable-static-dir or --disable-static-dir was given.
13017 if test "${enable_static_dir+set}" = set; then
13018 enableval="$enable_static_dir"
13019 if test x$enableval = xyes; then
13020 support_static_dir=yes
13025 if test x$support_static_dir = xyes; then
13026 STATIC_DIR="static-bacula-dir"
13030 # -------------------------------------------
13031 # static-cons (default off)
13032 # -------------------------------------------
13033 # Check whether --enable-static-cons or --disable-static-cons was given.
13034 if test "${enable_static_cons+set}" = set; then
13035 enableval="$enable_static_cons"
13036 if test x$enableval = xyes; then
13037 support_static_cons=yes
13044 if test x$support_static_cons = xyes; then
13045 STATIC_CONS="static-bconsole"
13046 STATIC_GNOME_CONS="static-bgnome-console"
13047 STATIC_WX_CONS="static-bwx-console"
13053 # -------------------------------------------
13054 # client_only (default off)
13055 # -------------------------------------------
13056 # Check whether --enable-client-only or --disable-client-only was given.
13057 if test "${enable_client_only+set}" = set; then
13058 enableval="$enable_client_only"
13059 if test x$enableval = xyes; then
13060 build_client_only=yes
13065 if test x$build_client_only = xno; then
13072 # -------------------------------------------
13073 # director (default on)
13074 # -------------------------------------------
13075 # Check whether --enable-build-dird or --disable-build-dird was given.
13076 if test "${enable_build_dird+set}" = set; then
13077 enableval="$enable_build_dird"
13078 if test x$enableval = xno; then
13082 if test x$build_dird = xyes; then
13083 DIRD_DIR="src/dird"
13084 DIR_TOOLS="DIRTOOLS"
13087 DIR_TOOLS="NODIRTOOLS"
13092 # -------------------------------------------
13093 # stored (default on)
13094 # -------------------------------------------
13095 # Check whether --enable-build-stored or --disable-build-stored was given.
13096 if test "${enable_build_stored+set}" = set; then
13097 enableval="$enable_build_stored"
13098 if test x$enableval = xno; then
13102 if test x$build_stored = xyes; then
13103 STORED_DIR="src/stored"
13109 # ---------------------------------------------------
13110 # Check for conio (Bacula readline substitute)(
13111 # ---------------------------------------------------
13112 # this allows you to turn it completely off
13113 # Check whether --enable-conio or --disable-conio was given.
13114 if test "${enable_conio+set}" = set; then
13115 enableval="$enable_conio"
13116 if test x$enableval = xno; then
13123 # ---------------------------------------------------
13124 # Check for IPv6 support
13125 # ---------------------------------------------------
13126 # this allows you to turn it completely off
13128 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13129 if test "${enable_ipv6+set}" = set; then
13130 enableval="$enable_ipv6"
13131 if test x$enableval = xno; then
13137 if test x$support_ipv6 = xyes; then
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 #include <sys/types.h>
13145 #include <sys/socket.h>
13146 #include <netinet/in.h>
13150 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13157 (eval $ac_link) 2>conftest.er1
13159 grep -v '^ *+' conftest.er1 >conftest.err
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag"
13165 || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest$ac_exeext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13184 rm -f conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13188 if test x$support_ipv6 = xyes; then
13190 cat >>confdefs.h <<\_ACEOF
13191 #define HAVE_IPV6 1
13199 if test x$support_conio = xyes; then
13200 if test "${ac_cv_header_termcap_h+set}" = set; then
13201 echo "$as_me:$LINENO: checking for termcap.h" >&5
13202 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13203 if test "${ac_cv_header_termcap_h+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13207 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13209 # Is the header compilable?
13210 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13211 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 $ac_includes_default
13219 #include <termcap.h>
13221 rm -f conftest.$ac_objext
13222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13223 (eval $ac_compile) 2>conftest.er1
13225 grep -v '^ *+' conftest.er1 >conftest.err
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -z "$ac_c_werror_flag"
13231 || test ! -s conftest.err'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest.$ac_objext'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 ac_header_compiler=yes
13245 echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ac_header_compiler=no
13250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13252 echo "${ECHO_T}$ac_header_compiler" >&6
13254 # Is the header present?
13255 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13256 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13257 cat >conftest.$ac_ext <<_ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h. */
13263 #include <termcap.h>
13265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } >/dev/null; then
13273 if test -s conftest.err; then
13274 ac_cpp_err=$ac_c_preproc_warn_flag
13275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13282 if test -z "$ac_cpp_err"; then
13283 ac_header_preproc=yes
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ac_header_preproc=no
13290 rm -f conftest.err conftest.$ac_ext
13291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13292 echo "${ECHO_T}$ac_header_preproc" >&6
13294 # So? What about this header?
13295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13297 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13298 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13299 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13300 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13301 ac_header_preproc=yes
13304 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13305 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13306 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13307 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13308 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13309 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13311 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13312 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13313 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13314 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13315 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13318 ## ------------------------------------------ ##
13319 ## Report this to the AC_PACKAGE_NAME lists. ##
13320 ## ------------------------------------------ ##
13323 sed "s/^/$as_me: WARNING: /" >&2
13326 echo "$as_me:$LINENO: checking for termcap.h" >&5
13327 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13328 if test "${ac_cv_header_termcap_h+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 ac_cv_header_termcap_h=$ac_header_preproc
13333 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13334 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13337 if test $ac_cv_header_termcap_h = yes; then
13338 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13339 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13340 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 ac_check_lib_save_LIBS=$LIBS
13344 LIBS="-ltermcap $LIBS"
13345 cat >conftest.$ac_ext <<_ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13352 /* Override any gcc2 internal prototype to avoid an error. */
13356 /* We use char because int might match the return type of a gcc2
13357 builtin and then its argument prototype would still apply. */
13367 rm -f conftest.$ac_objext conftest$ac_exeext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13369 (eval $ac_link) 2>conftest.er1
13371 grep -v '^ *+' conftest.er1 >conftest.err
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
13376 { ac_try='test -z "$ac_c_werror_flag"
13377 || test ! -s conftest.err'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; } &&
13383 { ac_try='test -s conftest$ac_exeext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_cv_lib_termcap_tgetent=yes
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_cv_lib_termcap_tgetent=no
13396 rm -f conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13398 LIBS=$ac_check_lib_save_LIBS
13400 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13401 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13402 if test $ac_cv_lib_termcap_tgetent = yes; then
13403 CONS_LIBS="-ltermcap"
13407 support_readline=no
13409 cat >>confdefs.h <<\_ACEOF
13410 #define HAVE_CONIO 1
13415 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13416 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13417 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 ac_check_lib_save_LIBS=$LIBS
13421 LIBS="-lncurses $LIBS"
13422 cat >conftest.$ac_ext <<_ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13429 /* Override any gcc2 internal prototype to avoid an error. */
13433 /* We use char because int might match the return type of a gcc2
13434 builtin and then its argument prototype would still apply. */
13444 rm -f conftest.$ac_objext conftest$ac_exeext
13445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13446 (eval $ac_link) 2>conftest.er1
13448 grep -v '^ *+' conftest.er1 >conftest.err
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag"
13454 || test ! -s conftest.err'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest$ac_exeext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 ac_cv_lib_ncurses_tgetent=yes
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 ac_cv_lib_ncurses_tgetent=no
13473 rm -f conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13475 LIBS=$ac_check_lib_save_LIBS
13477 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13478 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13479 if test $ac_cv_lib_ncurses_tgetent = yes; then
13480 CONS_LIBS="-lncurses"
13484 support_readline=no
13486 cat >>confdefs.h <<\_ACEOF
13487 #define HAVE_CONIO 1
13500 for ac_header in curses.h
13502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13504 echo "$as_me:$LINENO: checking for $ac_header" >&5
13505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13512 # Is the header compilable?
13513 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13515 cat >conftest.$ac_ext <<_ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 $ac_includes_default
13522 #include <$ac_header>
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>conftest.er1
13528 grep -v '^ *+' conftest.er1 >conftest.err
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_header_compiler=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_header_compiler=no
13553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13555 echo "${ECHO_T}$ac_header_compiler" >&6
13557 # Is the header present?
13558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 #include <$ac_header>
13568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13571 grep -v '^ *+' conftest.er1 >conftest.err
13573 cat conftest.err >&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } >/dev/null; then
13576 if test -s conftest.err; then
13577 ac_cpp_err=$ac_c_preproc_warn_flag
13578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13585 if test -z "$ac_cpp_err"; then
13586 ac_header_preproc=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_header_preproc=no
13593 rm -f conftest.err conftest.$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6
13597 # So? What about this header?
13598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13604 ac_header_preproc=yes
13607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13621 ## ------------------------------------------ ##
13622 ## Report this to the AC_PACKAGE_NAME lists. ##
13623 ## ------------------------------------------ ##
13626 sed "s/^/$as_me: WARNING: /" >&2
13629 echo "$as_me:$LINENO: checking for $ac_header" >&5
13630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 eval "$as_ac_Header=\$ac_header_preproc"
13636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13641 cat >>confdefs.h <<_ACEOF
13642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13649 echo "$as_me:$LINENO: checking for term.h" >&5
13650 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13651 if test "${ac_cv_header_term_h+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 cat >conftest.$ac_ext <<_ACEOF
13657 cat confdefs.h >>conftest.$ac_ext
13658 cat >>conftest.$ac_ext <<_ACEOF
13659 /* end confdefs.h. */
13661 #include <curses.h>
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669 (eval $ac_compile) 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try='test -z "$ac_c_werror_flag"
13677 || test ! -s conftest.err'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest.$ac_objext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_header_term_h=yes
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 ac_cv_header_term_h=no
13696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13699 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13700 if test $ac_cv_header_term_h = yes; then
13701 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13702 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13703 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 ac_check_lib_save_LIBS=$LIBS
13707 LIBS="-lcurses $LIBS"
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13715 /* Override any gcc2 internal prototype to avoid an error. */
13719 /* We use char because int might match the return type of a gcc2
13720 builtin and then its argument prototype would still apply. */
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>conftest.er1
13734 grep -v '^ *+' conftest.er1 >conftest.err
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest$ac_exeext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_lib_curses_tgetent=yes
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ac_cv_lib_curses_tgetent=no
13759 rm -f conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13763 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13764 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13765 if test $ac_cv_lib_curses_tgetent = yes; then
13766 CONS_LIBS="-lcurses"
13770 support_readline=no
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_CONIO 1
13781 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13792 # ---------------------------------------------------
13793 # Check for readline support/directory (default off)
13794 # ---------------------------------------------------
13795 # this allows you to turn it completely off
13796 # Check whether --enable-readline or --disable-readline was given.
13797 if test "${enable_readline+set}" = set; then
13798 enableval="$enable_readline"
13799 if test x$enableval = xno; then
13800 support_readline=no
13806 if test x$support_readline = xyes; then
13808 # Check whether --with-readline or --without-readline was given.
13809 if test "${with_readline+set}" = set; then
13810 withval="$with_readline"
13812 case "$with_readline" in
13815 if test -f ${with_readline}/readline.h; then
13816 CONS_INC="-I${with_readline}"
13817 CONS_LDFLAGS="-L$with_readline"
13818 elif test -f ${with_readline}/include/readline/readline.h; then
13819 CONS_INC="-I${with_readline}/include/readline"
13820 CONS_LDFLAGS="-L${with_readline}/lib"
13821 with_readline="${with_readline}/include/readline"
13823 with_readline="/usr/include/readline"
13825 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13827 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13828 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13835 # Is the header compilable?
13836 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13837 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13838 cat >conftest.$ac_ext <<_ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13844 $ac_includes_default
13845 #include <${with_readline}/readline.h>
13847 rm -f conftest.$ac_objext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13849 (eval $ac_compile) 2>conftest.er1
13851 grep -v '^ *+' conftest.er1 >conftest.err
13853 cat conftest.err >&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
13856 { ac_try='test -z "$ac_c_werror_flag"
13857 || test ! -s conftest.err'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } &&
13863 { ac_try='test -s conftest.$ac_objext'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
13869 ac_header_compiler=yes
13871 echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13874 ac_header_compiler=no
13876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13878 echo "${ECHO_T}$ac_header_compiler" >&6
13880 # Is the header present?
13881 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13882 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13883 cat >conftest.$ac_ext <<_ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13889 #include <${with_readline}/readline.h>
13891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13894 grep -v '^ *+' conftest.er1 >conftest.err
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } >/dev/null; then
13899 if test -s conftest.err; then
13900 ac_cpp_err=$ac_c_preproc_warn_flag
13901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13908 if test -z "$ac_cpp_err"; then
13909 ac_header_preproc=yes
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13914 ac_header_preproc=no
13916 rm -f conftest.err conftest.$ac_ext
13917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13918 echo "${ECHO_T}$ac_header_preproc" >&6
13920 # So? What about this header?
13921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13923 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13924 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13926 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13927 ac_header_preproc=yes
13930 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13931 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13933 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13935 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13937 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13939 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13940 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13941 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13944 ## ------------------------------------------ ##
13945 ## Report this to the AC_PACKAGE_NAME lists. ##
13946 ## ------------------------------------------ ##
13949 sed "s/^/$as_me: WARNING: /" >&2
13952 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13953 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 eval "$as_ac_Header=\$ac_header_preproc"
13959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_READLINE 1
13968 CONS_LIBS="-lreadline -lhistory -ltermcap"
13973 echo "readline.h not found. readline turned off ..."
13985 # check for standard readline library
13986 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13987 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13988 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13989 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13993 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13995 # Is the header compilable?
13996 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13997 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13998 cat >conftest.$ac_ext <<_ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h. */
14004 $ac_includes_default
14005 #include </usr/include/readline/readline.h>
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009 (eval $ac_compile) 2>conftest.er1
14011 grep -v '^ *+' conftest.er1 >conftest.err
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -z "$ac_c_werror_flag"
14017 || test ! -s conftest.err'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try='test -s conftest.$ac_objext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 ac_header_compiler=yes
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 ac_header_compiler=no
14036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14038 echo "${ECHO_T}$ac_header_compiler" >&6
14040 # Is the header present?
14041 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14042 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14043 cat >conftest.$ac_ext <<_ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 #include </usr/include/readline/readline.h>
14051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14054 grep -v '^ *+' conftest.er1 >conftest.err
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } >/dev/null; then
14059 if test -s conftest.err; then
14060 ac_cpp_err=$ac_c_preproc_warn_flag
14061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14068 if test -z "$ac_cpp_err"; then
14069 ac_header_preproc=yes
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_header_preproc=no
14076 rm -f conftest.err conftest.$ac_ext
14077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14078 echo "${ECHO_T}$ac_header_preproc" >&6
14080 # So? What about this header?
14081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14083 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14084 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14086 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14087 ac_header_preproc=yes
14090 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14091 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14092 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14093 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14095 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14097 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14099 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14101 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14104 ## ------------------------------------------ ##
14105 ## Report this to the AC_PACKAGE_NAME lists. ##
14106 ## ------------------------------------------ ##
14109 sed "s/^/$as_me: WARNING: /" >&2
14112 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14113 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14114 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14119 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14120 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14123 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14124 cat >>confdefs.h <<\_ACEOF
14125 #define HAVE_READLINE 1
14129 CONS_INC="-I/usr/include/readline"
14130 CONS_LIBS="-lreadline -ltermcap"
14134 # Did not find standard library, so try Bacula's default
14135 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14137 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14138 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14145 # Is the header compilable?
14146 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14147 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14148 cat >conftest.$ac_ext <<_ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 $ac_includes_default
14155 #include <${TOP_DIR}/depkgs/readline/readline.h>
14157 rm -f conftest.$ac_objext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14159 (eval $ac_compile) 2>conftest.er1
14161 grep -v '^ *+' conftest.er1 >conftest.err
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag"
14167 || test ! -s conftest.err'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try='test -s conftest.$ac_objext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_header_compiler=yes
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_header_compiler=no
14186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14188 echo "${ECHO_T}$ac_header_compiler" >&6
14190 # Is the header present?
14191 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14192 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14193 cat >conftest.$ac_ext <<_ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14199 #include <${TOP_DIR}/depkgs/readline/readline.h>
14201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14204 grep -v '^ *+' conftest.er1 >conftest.err
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } >/dev/null; then
14209 if test -s conftest.err; then
14210 ac_cpp_err=$ac_c_preproc_warn_flag
14211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14218 if test -z "$ac_cpp_err"; then
14219 ac_header_preproc=yes
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14224 ac_header_preproc=no
14226 rm -f conftest.err conftest.$ac_ext
14227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14228 echo "${ECHO_T}$ac_header_preproc" >&6
14230 # So? What about this header?
14231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14234 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14235 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14236 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14237 ac_header_preproc=yes
14240 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14241 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14243 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14251 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14254 ## ------------------------------------------ ##
14255 ## Report this to the AC_PACKAGE_NAME lists. ##
14256 ## ------------------------------------------ ##
14259 sed "s/^/$as_me: WARNING: /" >&2
14262 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14263 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 eval "$as_ac_Header=\$ac_header_preproc"
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14274 cat >>confdefs.h <<\_ACEOF
14275 #define HAVE_READLINE 1
14279 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14280 CONS_LIBS="-lreadline -lhistory -ltermcap"
14281 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14282 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14286 echo "readline.h not found. readline turned off ..."
14312 # Minimal stuff for readline Makefile configuration
14315 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14316 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14317 if test "${ac_cv_header_stat_broken+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 cat >conftest.$ac_ext <<_ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 #include <sys/types.h>
14327 #include <sys/stat.h>
14329 #if defined(S_ISBLK) && defined(S_IFDIR)
14330 # if S_ISBLK (S_IFDIR)
14335 #if defined(S_ISBLK) && defined(S_IFCHR)
14336 # if S_ISBLK (S_IFCHR)
14341 #if defined(S_ISLNK) && defined(S_IFREG)
14342 # if S_ISLNK (S_IFREG)
14347 #if defined(S_ISSOCK) && defined(S_IFREG)
14348 # if S_ISSOCK (S_IFREG)
14354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14355 $EGREP "You lose" >/dev/null 2>&1; then
14356 ac_cv_header_stat_broken=yes
14358 ac_cv_header_stat_broken=no
14363 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14364 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14365 if test $ac_cv_header_stat_broken = yes; then
14367 cat >>confdefs.h <<\_ACEOF
14368 #define STAT_MACROS_BROKEN 1
14378 ac_header_dirent=no
14379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14380 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14381 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 cat >conftest.$ac_ext <<_ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 #include <sys/types.h>
14404 rm -f conftest.$ac_objext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406 (eval $ac_compile) 2>conftest.er1
14408 grep -v '^ *+' conftest.er1 >conftest.err
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -z "$ac_c_werror_flag"
14414 || test ! -s conftest.err'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest.$ac_objext'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 eval "$as_ac_Header=yes"
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 eval "$as_ac_Header=no"
14433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14442 ac_header_dirent=$ac_hdr; break
14446 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14447 if test $ac_header_dirent = dirent.h; then
14448 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14450 if test "${ac_cv_search_opendir+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 ac_func_search_save_LIBS=$LIBS
14454 ac_cv_search_opendir=no
14455 cat >conftest.$ac_ext <<_ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14462 /* Override any gcc2 internal prototype to avoid an error. */
14466 /* We use char because int might match the return type of a gcc2
14467 builtin and then its argument prototype would still apply. */
14477 rm -f conftest.$ac_objext conftest$ac_exeext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14479 (eval $ac_link) 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest$ac_exeext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_search_opendir="none required"
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14505 rm -f conftest.err conftest.$ac_objext \
14506 conftest$ac_exeext conftest.$ac_ext
14507 if test "$ac_cv_search_opendir" = no; then
14508 for ac_lib in dir; do
14509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 /* Override any gcc2 internal prototype to avoid an error. */
14521 /* We use char because int might match the return type of a gcc2
14522 builtin and then its argument prototype would still apply. */
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534 (eval $ac_link) 2>conftest.er1
14536 grep -v '^ *+' conftest.er1 >conftest.err
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag"
14542 || test ! -s conftest.err'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; } &&
14548 { ac_try='test -s conftest$ac_exeext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_cv_search_opendir="-l$ac_lib"
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14561 rm -f conftest.err conftest.$ac_objext \
14562 conftest$ac_exeext conftest.$ac_ext
14565 LIBS=$ac_func_search_save_LIBS
14567 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14568 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14569 if test "$ac_cv_search_opendir" != no; then
14570 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14575 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14576 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14577 if test "${ac_cv_search_opendir+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 ac_func_search_save_LIBS=$LIBS
14581 ac_cv_search_opendir=no
14582 cat >conftest.$ac_ext <<_ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14589 /* Override any gcc2 internal prototype to avoid an error. */
14593 /* We use char because int might match the return type of a gcc2
14594 builtin and then its argument prototype would still apply. */
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14606 (eval $ac_link) 2>conftest.er1
14608 grep -v '^ *+' conftest.er1 >conftest.err
14610 cat conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -z "$ac_c_werror_flag"
14614 || test ! -s conftest.err'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; } &&
14620 { ac_try='test -s conftest$ac_exeext'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14626 ac_cv_search_opendir="none required"
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14632 rm -f conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14634 if test "$ac_cv_search_opendir" = no; then
14635 for ac_lib in x; do
14636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14637 cat >conftest.$ac_ext <<_ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14644 /* Override any gcc2 internal prototype to avoid an error. */
14648 /* We use char because int might match the return type of a gcc2
14649 builtin and then its argument prototype would still apply. */
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14661 (eval $ac_link) 2>conftest.er1
14663 grep -v '^ *+' conftest.er1 >conftest.err
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try='test -z "$ac_c_werror_flag"
14669 || test ! -s conftest.err'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest$ac_exeext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_cv_search_opendir="-l$ac_lib"
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14688 rm -f conftest.err conftest.$ac_objext \
14689 conftest$ac_exeext conftest.$ac_ext
14692 LIBS=$ac_func_search_save_LIBS
14694 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14695 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14696 if test "$ac_cv_search_opendir" != no; then
14697 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14710 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14713 echo "$as_me:$LINENO: checking for $ac_func" >&5
14714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14715 if eval "test \"\${$as_ac_var+set}\" = set"; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14726 #define $ac_func innocuous_$ac_func
14728 /* System header to define __stub macros and hopefully few prototypes,
14729 which can conflict with char $ac_func (); below.
14730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14731 <limits.h> exists even on freestanding compilers. */
14734 # include <limits.h>
14736 # include <assert.h>
14741 /* Override any gcc2 internal prototype to avoid an error. */
14746 /* We use char because int might match the return type of a gcc2
14747 builtin and then its argument prototype would still apply. */
14749 /* The GNU C library defines this for functions which it implements
14750 to always fail with ENOSYS. Some functions are actually named
14751 something starting with __ and the normal name is an alias. */
14752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14755 char (*f) () = $ac_func;
14764 return f != $ac_func;
14769 rm -f conftest.$ac_objext conftest$ac_exeext
14770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14771 (eval $ac_link) 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_c_werror_flag"
14779 || test ! -s conftest.err'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; } &&
14785 { ac_try='test -s conftest$ac_exeext'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791 eval "$as_ac_var=yes"
14793 echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14796 eval "$as_ac_var=no"
14798 rm -f conftest.err conftest.$ac_objext \
14799 conftest$ac_exeext conftest.$ac_ext
14801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14803 if test `eval echo '${'$as_ac_var'}'` = yes; then
14804 cat >>confdefs.h <<_ACEOF
14805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14813 for ac_func in nanosleep nl_langinfo
14815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14816 echo "$as_me:$LINENO: checking for $ac_func" >&5
14817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14818 if eval "test \"\${$as_ac_var+set}\" = set"; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 cat >conftest.$ac_ext <<_ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14829 #define $ac_func innocuous_$ac_func
14831 /* System header to define __stub macros and hopefully few prototypes,
14832 which can conflict with char $ac_func (); below.
14833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14834 <limits.h> exists even on freestanding compilers. */
14837 # include <limits.h>
14839 # include <assert.h>
14844 /* Override any gcc2 internal prototype to avoid an error. */
14849 /* We use char because int might match the return type of a gcc2
14850 builtin and then its argument prototype would still apply. */
14852 /* The GNU C library defines this for functions which it implements
14853 to always fail with ENOSYS. Some functions are actually named
14854 something starting with __ and the normal name is an alias. */
14855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14858 char (*f) () = $ac_func;
14867 return f != $ac_func;
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874 (eval $ac_link) 2>conftest.er1
14876 grep -v '^ *+' conftest.er1 >conftest.err
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -z "$ac_c_werror_flag"
14882 || test ! -s conftest.err'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest$ac_exeext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 eval "$as_ac_var=yes"
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 eval "$as_ac_var=no"
14901 rm -f conftest.err conftest.$ac_objext \
14902 conftest$ac_exeext conftest.$ac_ext
14904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14906 if test `eval echo '${'$as_ac_var'}'` = yes; then
14907 cat >>confdefs.h <<_ACEOF
14908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14915 for ac_header in varargs.h
14917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14919 echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14927 # Is the header compilable?
14928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 $ac_includes_default
14937 #include <$ac_header>
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941 (eval $ac_compile) 2>conftest.er1
14943 grep -v '^ *+' conftest.er1 >conftest.err
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
14948 { ac_try='test -z "$ac_c_werror_flag"
14949 || test ! -s conftest.err'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; } &&
14955 { ac_try='test -s conftest.$ac_objext'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 ac_header_compiler=yes
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_header_compiler=no
14968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 echo "${ECHO_T}$ac_header_compiler" >&6
14972 # Is the header present?
14973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 #include <$ac_header>
14983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14986 grep -v '^ *+' conftest.er1 >conftest.err
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } >/dev/null; then
14991 if test -s conftest.err; then
14992 ac_cpp_err=$ac_c_preproc_warn_flag
14993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15000 if test -z "$ac_cpp_err"; then
15001 ac_header_preproc=yes
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_header_preproc=no
15008 rm -f conftest.err conftest.$ac_ext
15009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15010 echo "${ECHO_T}$ac_header_preproc" >&6
15012 # So? What about this header?
15013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15019 ac_header_preproc=yes
15022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15036 ## ------------------------------------------ ##
15037 ## Report this to the AC_PACKAGE_NAME lists. ##
15038 ## ------------------------------------------ ##
15041 sed "s/^/$as_me: WARNING: /" >&2
15044 echo "$as_me:$LINENO: checking for $ac_header" >&5
15045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 eval "$as_ac_Header=\$ac_header_preproc"
15051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15056 cat >>confdefs.h <<_ACEOF
15057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15065 # End of readline/conio stuff
15066 # -----------------------------------------------------------------------
15068 # -----------------------------------------------------------------------
15069 # Check for Python support
15071 echo "$as_me:$LINENO: checking for Python support" >&5
15072 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15074 # Check whether --with-python or --without-python was given.
15075 if test "${with_python+set}" = set; then
15076 withval="$with_python"
15080 if test "$withval" != "no"; then
15081 if test "$withval" = "yes"; then
15082 for python_root in /usr /usr/local /usr/sfw; do
15083 for ver in python2.2 python2.3 python2.4 python2.5; do
15084 if test -f $python_root/include/${ver}/Python.h; then
15085 PYTHON_INCDIR=-I$python_root/include/${ver}
15086 if test -d $python_root/lib64/${ver}/config; then
15087 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15089 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15095 if test x$PYTHON_INCDIR = x; then
15096 if test -f $prefix/include/Python.h; then
15097 PYTHON_INCDIR=-I$prefix/include
15098 if test -d $prefix/lib64/config; then
15099 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15101 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15104 echo "$as_me:$LINENO: result: no" >&5
15105 echo "${ECHO_T}no" >&6
15106 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15107 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15108 { (exit 1); exit 1; }; }
15112 if test -f $withval/Python.h; then
15113 PYTHON_INCDIR=-I$withval
15114 PYTHON_LIBS="-L$withval/config -lpython"
15115 elif test -f $withval/include/Python.h; then
15116 PYTHON_INCDIR=-I$withval/include
15117 if test -d $withval/lib64/config; then
15118 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15120 PYTHON_LIBS="-L$withval/lib/config -lpython"
15122 elif test -f $withval/include/python/Python.h; then
15123 PYTHON_INCDIR=-I$withval/include/python
15124 if test -d $withval/lib64/python/config; then
15125 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15127 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15130 echo "$as_me:$LINENO: result: no" >&5
15131 echo "${ECHO_T}no" >&6
15132 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15133 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15134 { (exit 1); exit 1; }; }
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_PYTHON 1
15141 echo "$as_me:$LINENO: result: yes" >&5
15142 echo "${ECHO_T}yes" >&6
15144 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15145 echo "$as_me: checking for more Python libs" >&6;}
15146 saved_LIBS="$LIBS"; LIBS=
15147 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15148 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15149 if test "${ac_cv_search_shm_open+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 ac_func_search_save_LIBS=$LIBS
15153 ac_cv_search_shm_open=no
15154 cat >conftest.$ac_ext <<_ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15161 /* Override any gcc2 internal prototype to avoid an error. */
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15180 grep -v '^ *+' conftest.er1 >conftest.err
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag"
15186 || test ! -s conftest.err'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } &&
15192 { ac_try='test -s conftest$ac_exeext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 ac_cv_search_shm_open="none required"
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15204 rm -f conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206 if test "$ac_cv_search_shm_open" = no; then
15207 for ac_lib in rt; do
15208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15209 cat >conftest.$ac_ext <<_ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15216 /* Override any gcc2 internal prototype to avoid an error. */
15220 /* We use char because int might match the return type of a gcc2
15221 builtin and then its argument prototype would still apply. */
15231 rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15233 (eval $ac_link) 2>conftest.er1
15235 grep -v '^ *+' conftest.er1 >conftest.err
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } &&
15240 { ac_try='test -z "$ac_c_werror_flag"
15241 || test ! -s conftest.err'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; } &&
15247 { ac_try='test -s conftest$ac_exeext'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 ac_cv_search_shm_open="-l$ac_lib"
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15260 rm -f conftest.err conftest.$ac_objext \
15261 conftest$ac_exeext conftest.$ac_ext
15264 LIBS=$ac_func_search_save_LIBS
15266 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15267 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15268 if test "$ac_cv_search_shm_open" != no; then
15269 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15274 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15275 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15276 if test "${ac_cv_lib_util_openpty+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 ac_check_lib_save_LIBS=$LIBS
15280 LIBS="-lutil $LIBS"
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15288 /* Override any gcc2 internal prototype to avoid an error. */
15292 /* We use char because int might match the return type of a gcc2
15293 builtin and then its argument prototype would still apply. */
15303 rm -f conftest.$ac_objext conftest$ac_exeext
15304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15305 (eval $ac_link) 2>conftest.er1
15307 grep -v '^ *+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -z "$ac_c_werror_flag"
15313 || test ! -s conftest.err'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; } &&
15319 { ac_try='test -s conftest$ac_exeext'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 ac_cv_lib_util_openpty=yes
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 ac_cv_lib_util_openpty=no
15332 rm -f conftest.err conftest.$ac_objext \
15333 conftest$ac_exeext conftest.$ac_ext
15334 LIBS=$ac_check_lib_save_LIBS
15336 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15337 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15338 if test $ac_cv_lib_util_openpty = yes; then
15339 cat >>confdefs.h <<_ACEOF
15340 #define HAVE_LIBUTIL 1
15343 LIBS="-lutil $LIBS"
15347 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15350 echo "$as_me:$LINENO: result: no" >&5
15351 echo "${ECHO_T}no" >&6
15356 echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15364 # Find where sockets are (especially for Solaris)
15365 # Do this before the TCP Wrappers test since tcp wrappers
15366 # uses the socket library and some linkers are stupid.
15368 echo "$as_me:$LINENO: checking for socket" >&5
15369 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15370 if test "${ac_cv_func_socket+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15381 #define socket innocuous_socket
15383 /* System header to define __stub macros and hopefully few prototypes,
15384 which can conflict with char socket (); below.
15385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15386 <limits.h> exists even on freestanding compilers. */
15389 # include <limits.h>
15391 # include <assert.h>
15396 /* Override any gcc2 internal prototype to avoid an error. */
15401 /* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15404 /* The GNU C library defines this for functions which it implements
15405 to always fail with ENOSYS. Some functions are actually named
15406 something starting with __ and the normal name is an alias. */
15407 #if defined (__stub_socket) || defined (__stub___socket)
15410 char (*f) () = socket;
15419 return f != socket;
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15426 (eval $ac_link) 2>conftest.er1
15428 grep -v '^ *+' conftest.er1 >conftest.err
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
15433 { ac_try='test -z "$ac_c_werror_flag"
15434 || test ! -s conftest.err'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest$ac_exeext'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446 ac_cv_func_socket=yes
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15451 ac_cv_func_socket=no
15453 rm -f conftest.err conftest.$ac_objext \
15454 conftest$ac_exeext conftest.$ac_ext
15456 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15457 echo "${ECHO_T}$ac_cv_func_socket" >&6
15458 if test $ac_cv_func_socket = yes; then
15459 echo "$as_me:$LINENO: result: using libc's socket" >&5
15460 echo "${ECHO_T}using libc's socket" >&6
15463 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15464 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15465 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 ac_check_lib_save_LIBS=$LIBS
15469 LIBS="-lxnet $LIBS"
15470 cat >conftest.$ac_ext <<_ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15477 /* Override any gcc2 internal prototype to avoid an error. */
15481 /* We use char because int might match the return type of a gcc2
15482 builtin and then its argument prototype would still apply. */
15492 rm -f conftest.$ac_objext conftest$ac_exeext
15493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15494 (eval $ac_link) 2>conftest.er1
15496 grep -v '^ *+' conftest.er1 >conftest.err
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try='test -z "$ac_c_werror_flag"
15502 || test ! -s conftest.err'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest$ac_exeext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_cv_lib_xnet_socket=yes
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 ac_cv_lib_xnet_socket=no
15521 rm -f conftest.err conftest.$ac_objext \
15522 conftest$ac_exeext conftest.$ac_ext
15523 LIBS=$ac_check_lib_save_LIBS
15525 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15526 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15527 if test $ac_cv_lib_xnet_socket = yes; then
15528 cat >>confdefs.h <<_ACEOF
15529 #define HAVE_LIBXNET 1
15532 LIBS="-lxnet $LIBS"
15537 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15538 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15539 if test "${ac_cv_lib_socket_socket+set}" = set; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15542 ac_check_lib_save_LIBS=$LIBS
15543 LIBS="-lsocket $LIBS"
15544 cat >conftest.$ac_ext <<_ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h. */
15551 /* Override any gcc2 internal prototype to avoid an error. */
15555 /* We use char because int might match the return type of a gcc2
15556 builtin and then its argument prototype would still apply. */
15566 rm -f conftest.$ac_objext conftest$ac_exeext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15568 (eval $ac_link) 2>conftest.er1
15570 grep -v '^ *+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag"
15576 || test ! -s conftest.err'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; } &&
15582 { ac_try='test -s conftest$ac_exeext'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588 ac_cv_lib_socket_socket=yes
15590 echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_cv_lib_socket_socket=no
15595 rm -f conftest.err conftest.$ac_objext \
15596 conftest$ac_exeext conftest.$ac_ext
15597 LIBS=$ac_check_lib_save_LIBS
15599 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15600 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15601 if test $ac_cv_lib_socket_socket = yes; then
15602 cat >>confdefs.h <<_ACEOF
15603 #define HAVE_LIBSOCKET 1
15606 LIBS="-lsocket $LIBS"
15611 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15612 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15613 if test "${ac_cv_lib_inet_socket+set}" = set; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 ac_check_lib_save_LIBS=$LIBS
15617 LIBS="-linet $LIBS"
15618 cat >conftest.$ac_ext <<_ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15625 /* Override any gcc2 internal prototype to avoid an error. */
15629 /* We use char because int might match the return type of a gcc2
15630 builtin and then its argument prototype would still apply. */
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15642 (eval $ac_link) 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -z "$ac_c_werror_flag"
15650 || test ! -s conftest.err'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; } &&
15656 { ac_try='test -s conftest$ac_exeext'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 ac_cv_lib_inet_socket=yes
15664 echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15667 ac_cv_lib_inet_socket=no
15669 rm -f conftest.err conftest.$ac_objext \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LIBS=$ac_check_lib_save_LIBS
15673 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15674 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15675 if test $ac_cv_lib_inet_socket = yes; then
15676 cat >>confdefs.h <<_ACEOF
15677 #define HAVE_LIBINET 1
15680 LIBS="-linet $LIBS"
15688 # -----------------------------------------------------------
15689 # Check whether user wants TCP wrappers support (default off)
15690 # -----------------------------------------------------------
15694 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15695 if test "${with_tcp_wrappers+set}" = set; then
15696 withval="$with_tcp_wrappers"
15698 if test "x$withval" != "xno" ; then
15700 LIBS="$saved_LIBS -lwrap"
15701 echo "$as_me:$LINENO: checking for libwrap" >&5
15702 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15703 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15704 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15705 if test "${ac_cv_search_nanosleep+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 ac_func_search_save_LIBS=$LIBS
15709 ac_cv_search_nanosleep=no
15710 cat >conftest.$ac_ext <<_ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15717 /* Override any gcc2 internal prototype to avoid an error. */
15721 /* We use char because int might match the return type of a gcc2
15722 builtin and then its argument prototype would still apply. */
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734 (eval $ac_link) 2>conftest.er1
15736 grep -v '^ *+' conftest.er1 >conftest.err
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
15741 { ac_try='test -z "$ac_c_werror_flag"
15742 || test ! -s conftest.err'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } &&
15748 { ac_try='test -s conftest$ac_exeext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_cv_search_nanosleep="none required"
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15760 rm -f conftest.err conftest.$ac_objext \
15761 conftest$ac_exeext conftest.$ac_ext
15762 if test "$ac_cv_search_nanosleep" = no; then
15763 for ac_lib in rt; do
15764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15765 cat >conftest.$ac_ext <<_ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15772 /* Override any gcc2 internal prototype to avoid an error. */
15776 /* We use char because int might match the return type of a gcc2
15777 builtin and then its argument prototype would still apply. */
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15789 (eval $ac_link) 2>conftest.er1
15791 grep -v '^ *+' conftest.er1 >conftest.err
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -z "$ac_c_werror_flag"
15797 || test ! -s conftest.err'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; } &&
15803 { ac_try='test -s conftest$ac_exeext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_cv_search_nanosleep="-l$ac_lib"
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15816 rm -f conftest.err conftest.$ac_objext \
15817 conftest$ac_exeext conftest.$ac_ext
15820 LIBS=$ac_func_search_save_LIBS
15822 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15823 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15824 if test "$ac_cv_search_nanosleep" != no; then
15825 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 #include <sys/types.h>
15837 int deny_severity = 0;
15838 int allow_severity = 0;
15839 struct request_info *req;
15848 rm -f conftest.$ac_objext conftest$ac_exeext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15850 (eval $ac_link) 2>conftest.er1
15852 grep -v '^ *+' conftest.er1 >conftest.err
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag"
15858 || test ! -s conftest.err'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest$ac_exeext'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15871 echo "$as_me:$LINENO: result: yes" >&5
15872 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
15932 cat >>confdefs.h <<\_ACEOF
15933 #define HAVE_LIBWRAP 1
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15945 echo "$as_me: error: *** libwrap missing" >&2;}
15946 { (exit 1); exit 1; }; }
15949 rm -f conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
15953 rm -f conftest.err conftest.$ac_objext \
15954 conftest$ac_exeext conftest.$ac_ext
15960 # -----------------------------------------------------------
15961 # Check whether OpenSSL is available
15962 # -----------------------------------------------------------
15963 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15964 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15966 # Check whether --with-openssl or --without-openssl was given.
15967 if test "${with_openssl+set}" = set; then
15968 withval="$with_openssl"
15969 with_openssl_directory=${withval}
15972 if test "x$with_openssl_directory" != "x"; then
15973 OPENSSL_LIBS="-lssl -lcrypto"
15976 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15977 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15978 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15981 saved_LIBS="${LIBS}"
15982 saved_CFLAGS="${CFLAGS}"
15983 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15984 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15986 cat >conftest.$ac_ext <<_ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 #include <openssl/ssl.h>
15996 CRYPTO_set_id_callback(NULL);
16001 rm -f conftest.$ac_objext conftest$ac_exeext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16003 (eval $ac_link) 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -z "$ac_c_werror_flag"
16011 || test ! -s conftest.err'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try='test -s conftest$ac_exeext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16025 support_crypto="yes"
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16034 rm -f conftest.err conftest.$ac_objext \
16035 conftest$ac_exeext conftest.$ac_ext
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 #include <openssl/evp.h>
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054 (eval $ac_link) 2>conftest.er1
16056 grep -v '^ *+' conftest.er1 >conftest.err
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } &&
16061 { ac_try='test -z "$ac_c_werror_flag"
16062 || test ! -s conftest.err'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try='test -s conftest$ac_exeext'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074 ac_cv_openssl_sha2="yes"
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 ac_cv_openssl_sha2="no"
16082 rm -f conftest.err conftest.$ac_objext \
16083 conftest$ac_exeext conftest.$ac_ext
16085 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16086 # implementation, presumably for export reasons. If 192bit AES
16087 # is available, we assume that we're running with a 'non-export'
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 #include <openssl/evp.h>
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106 (eval $ac_link) 2>conftest.er1
16108 grep -v '^ *+' conftest.er1 >conftest.err
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try='test -z "$ac_c_werror_flag"
16114 || test ! -s conftest.err'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_cv_openssl_export="no"
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_cv_openssl_export="yes"
16134 rm -f conftest.err conftest.$ac_objext \
16135 conftest$ac_exeext conftest.$ac_ext
16137 LIBS="${saved_LIBS}"
16138 CFLAGS="${saved_CFLAGS}"
16140 if test "$support_tls" = "yes"; then
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_OPENSSL 1
16147 cat >>confdefs.h <<\_ACEOF
16152 cat >>confdefs.h <<\_ACEOF
16153 #define HAVE_CRYPTO 1
16158 if test "$ac_cv_openssl_sha2" = "yes"; then
16160 cat >>confdefs.h <<\_ACEOF
16161 #define HAVE_SHA2 1
16166 if test "$ac_cv_openssl_export" = "yes"; then
16168 cat >>confdefs.h <<\_ACEOF
16169 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16175 support_crypto="no"
16180 echo "$as_me:$LINENO: result: $support_tls" >&5
16181 echo "${ECHO_T}$support_tls" >&6
16186 # -----------------------------------------------------------
16187 # Python and OpenSSL are using dlopen
16188 # -----------------------------------------------------------
16190 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16191 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16192 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16193 if test "${ac_cv_search_dlopen+set}" = set; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 ac_func_search_save_LIBS=$LIBS
16197 ac_cv_search_dlopen=no
16198 cat >conftest.$ac_ext <<_ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16205 /* Override any gcc2 internal prototype to avoid an error. */
16209 /* We use char because int might match the return type of a gcc2
16210 builtin and then its argument prototype would still apply. */
16220 rm -f conftest.$ac_objext conftest$ac_exeext
16221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16222 (eval $ac_link) 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_c_werror_flag"
16230 || test ! -s conftest.err'
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; } &&
16236 { ac_try='test -s conftest$ac_exeext'
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 ac_cv_search_dlopen="none required"
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16248 rm -f conftest.err conftest.$ac_objext \
16249 conftest$ac_exeext conftest.$ac_ext
16250 if test "$ac_cv_search_dlopen" = no; then
16251 for ac_lib in dl; do
16252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16260 /* Override any gcc2 internal prototype to avoid an error. */
16264 /* We use char because int might match the return type of a gcc2
16265 builtin and then its argument prototype would still apply. */
16275 rm -f conftest.$ac_objext conftest$ac_exeext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16277 (eval $ac_link) 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag"
16285 || test ! -s conftest.err'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest$ac_exeext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 ac_cv_search_dlopen="-l$ac_lib"
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16304 rm -f conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16308 LIBS=$ac_func_search_save_LIBS
16310 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16311 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16312 if test "$ac_cv_search_dlopen" != no; then
16313 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16319 # ------------------------------------------
16320 # Where to place working dir
16321 # ------------------------------------------
16322 working_dir=`eval echo ${prefix}/var/bacula/working`
16324 # Check whether --with-working-dir or --without-working-dir was given.
16325 if test "${with_working_dir+set}" = set; then
16326 withval="$with_working_dir"
16328 if test "x$withval" != "xno" ; then
16329 working_dir=$withval
16338 # ------------------------------------------
16339 # Where to place scriptdir (script files)
16340 # ------------------------------------------
16341 scriptdir=`eval echo ${sysconfdir}`
16343 # Check whether --with-scriptdir or --without-scriptdir was given.
16344 if test "${with_scriptdir+set}" = set; then
16345 withval="$with_scriptdir"
16347 if test "x$withval" != "xno" ; then
16357 # ------------------------------------------
16358 # Where to send dump email
16359 # ------------------------------------------
16360 dump_email=root@localhost
16362 # Check whether --with-dump-email or --without-dump-email was given.
16363 if test "${with_dump_email+set}" = set; then
16364 withval="$with_dump_email"
16366 if test "x$withval" != "xno" ; then
16367 dump_email=$withval
16375 # ------------------------------------------
16376 # Where to send job email
16377 # ------------------------------------------
16378 job_email=root@localhost
16380 # Check whether --with-job-email or --without-job-email was given.
16381 if test "${with_job_email+set}" = set; then
16382 withval="$with_job_email"
16384 if test "x$withval" != "xno" ; then
16393 # ------------------------------------------
16394 # Where to find smtp host
16395 # ------------------------------------------
16396 smtp_host=localhost
16398 # Check whether --with-smtp_host or --without-smtp_host was given.
16399 if test "${with_smtp_host+set}" = set; then
16400 withval="$with_smtp_host"
16402 if test "x$withval" != "xno" ; then
16412 # ------------------------------------
16413 # Where to place pid files
16414 # ------------------------------------
16417 # Check whether --with-pid-dir or --without-pid-dir was given.
16418 if test "${with_pid_dir+set}" = set; then
16419 withval="$with_pid_dir"
16421 if test "x$withval" != "xno" ; then
16428 cat >>confdefs.h <<_ACEOF
16429 #define _PATH_BACULA_PIDDIR "$piddir"
16435 # ------------------------------------
16436 # Where to place subsys "lock file"
16437 # ------------------------------------
16438 subsysdir=/var/run/subsys
16439 if test -d /var/run/subsys; then
16440 subsysdir=/var/run/subsys
16441 elif test -d /var/lock/subsys; then
16442 subsysdir=/var/lock/subsys
16444 subsysdir=/var/run/subsys
16447 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16448 if test "${with_subsys_dir+set}" = set; then
16449 withval="$with_subsys_dir"
16451 if test "x$withval" != "xno" ; then
16462 # ------------------------------------
16463 # Where to start assigning ports
16464 # ------------------------------------
16467 # Check whether --with-baseport or --without-baseport was given.
16468 if test "${with_baseport+set}" = set; then
16469 withval="$with_baseport"
16471 if test "x$withval" != "xno" ; then
16479 dir_port=`expr $baseport`
16480 fd_port=`expr $baseport + 1`
16481 sd_port=`expr $fd_port + 1`
16488 # ------------------------------------------
16489 # Generate passwords
16490 # ------------------------------------------
16493 # Check whether --with-dir-password or --without-dir-password was given.
16494 if test "${with_dir_password+set}" = set; then
16495 withval="$with_dir_password"
16497 if test "x$withval" != "xno" ; then
16498 dir_password=$withval
16504 if test "x$dir_password" = "x" ; then
16505 if test "x$OPENSSL" = "xnone" ; then
16506 key=`autoconf/randpass 33`
16508 key=`openssl rand -base64 33`
16515 # Check whether --with-fd-password or --without-fd-password was given.
16516 if test "${with_fd_password+set}" = set; then
16517 withval="$with_fd_password"
16519 if test "x$withval" != "xno" ; then
16520 fd_password=$withval
16526 if test "x$fd_password" = "x" ; then
16527 if test "x$OPENSSL" = "xnone" ; then
16528 key=`autoconf/randpass 37`
16530 key=`openssl rand -base64 33`
16537 # Check whether --with-sd-password or --without-sd-password was given.
16538 if test "${with_sd_password+set}" = set; then
16539 withval="$with_sd_password"
16541 if test "x$withval" != "xno" ; then
16542 sd_password=$withval
16548 if test "x$sd_password" = "x" ; then
16549 if test "x$OPENSSL" = "xnone" ; then
16550 key=`autoconf/randpass 41`
16552 key=`openssl rand -base64 33`
16559 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16560 if test "${with_mon_dir_password+set}" = set; then
16561 withval="$with_mon_dir_password"
16563 if test "x$withval" != "xno" ; then
16564 mon_dir_password=$withval
16570 if test "x$mon_dir_password" = "x" ; then
16571 if test "x$OPENSSL" = "xnone" ; then
16572 key=`autoconf/randpass 33`
16574 key=`openssl rand -base64 33`
16576 mon_dir_password=$key
16581 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16582 if test "${with_mon_fd_password+set}" = set; then
16583 withval="$with_mon_fd_password"
16585 if test "x$withval" != "xno" ; then
16586 mon_fd_password=$withval
16592 if test "x$mon_fd_password" = "x" ; then
16593 if test "x$OPENSSL" = "xnone" ; then
16594 key=`autoconf/randpass 37`
16596 key=`openssl rand -base64 33`
16598 mon_fd_password=$key
16603 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16604 if test "${with_mon_sd_password+set}" = set; then
16605 withval="$with_mon_sd_password"
16607 if test "x$withval" != "xno" ; then
16608 mon_sd_password=$withval
16614 if test "x$mon_sd_password" = "x" ; then
16615 if test "x$OPENSSL" = "xnone" ; then
16616 key=`autoconf/randpass 41`
16618 key=`openssl rand -base64 33`
16620 mon_sd_password=$key
16631 # Pickup any database name
16635 # Check whether --with-db_name or --without-db_name was given.
16636 if test "${with_db_name+set}" = set; then
16637 withval="$with_db_name"
16639 if test "x$withval" != "x" ; then
16649 # Check whether --with-db_user or --without-db_user was given.
16650 if test "${with_db_user+set}" = set; then
16651 withval="$with_db_user"
16653 if test "x$withval" != "x" ; then
16663 # Handle users and groups for each daemon
16667 # Check whether --with-dir_user or --without-dir_user was given.
16668 if test "${with_dir_user+set}" = set; then
16669 withval="$with_dir_user"
16671 if test "x$withval" != "x" ; then
16680 # Check whether --with-dir_group or --without-dir_group was given.
16681 if test "${with_dir_group+set}" = set; then
16682 withval="$with_dir_group"
16684 if test "x$withval" != "x" ; then
16693 # Check whether --with-sd_user or --without-sd_user was given.
16694 if test "${with_sd_user+set}" = set; then
16695 withval="$with_sd_user"
16697 if test "x$withval" != "x" ; then
16706 # Check whether --with-sd_group or --without-sd_group was given.
16707 if test "${with_sd_group+set}" = set; then
16708 withval="$with_sd_group"
16710 if test "x$withval" != "x" ; then
16719 # Check whether --with-fd_user or --without-fd_user was given.
16720 if test "${with_fd_user+set}" = set; then
16721 withval="$with_fd_user"
16723 if test "x$withval" != "x" ; then
16732 # Check whether --with-fd_group or --without-fd_group was given.
16733 if test "${with_fd_group+set}" = set; then
16734 withval="$with_fd_group"
16736 if test "x$withval" != "x" ; then
16751 # allow setting default executable permissions
16755 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16756 if test "${with_sbin_perm+set}" = set; then
16757 withval="$with_sbin_perm"
16759 if test "x$withval" != "x" ; then
16768 # ------------------------------------------------
16769 # Bacula check for various SQL database engines
16770 # ------------------------------------------------
16774 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16775 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16777 # Check whether --with-postgresql or --without-postgresql was given.
16778 if test "${with_postgresql+set}" = set; then
16779 withval="$with_postgresql"
16781 if test "$withval" != "no"; then
16782 if test "$db_found" = "yes"; then
16783 echo "$as_me:$LINENO: result: error" >&5
16784 echo "${ECHO_T}error" >&6
16785 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16786 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16787 { (exit 1); exit 1; }; };
16789 if test "$withval" = "yes"; then
16790 PG_CONFIG=`which pg_config`
16791 if test -n "$PG_CONFIG";then
16792 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16793 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16794 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16795 elif test -f /usr/local/include/libpq-fe.h; then
16796 POSTGRESQL_INCDIR=/usr/local/include
16797 if test -d /usr/local/lib64; then
16798 POSTGRESQL_LIBDIR=/usr/local/lib64
16800 POSTGRESQL_LIBDIR=/usr/local/lib
16802 POSTGRESQL_BINDIR=/usr/local/bin
16803 elif test -f /usr/include/libpq-fe.h; then
16804 POSTGRESQL_INCDIR=/usr/include
16805 if test -d /usr/lib64; then
16806 POSTGRESQL_LIBDIR=/usr/lib64
16808 POSTGRESQL_LIBDIR=/usr/lib
16810 POSTGRESQL_BINDIR=/usr/bin
16811 elif test -f /usr/include/pgsql/libpq-fe.h; then
16812 POSTGRESQL_INCDIR=/usr/include/pgsql
16813 if test -d /usr/lib64/pgsql; then
16814 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16816 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16818 POSTGRESQL_BINDIR=/usr/bin
16819 elif test -f /usr/include/postgresql/libpq-fe.h; then
16820 POSTGRESQL_INCDIR=/usr/include/postgresql
16821 if test -d /usr/lib64/postgresql; then
16822 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16824 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16826 POSTGRESQL_BINDIR=/usr/bin
16828 echo "$as_me:$LINENO: result: no" >&5
16829 echo "${ECHO_T}no" >&6
16830 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16831 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16832 { (exit 1); exit 1; }; }
16834 elif test -f $withval/include/libpq-fe.h; then
16835 POSTGRESQL_INCDIR=$withval/include
16836 POSTGRESQL_LIBDIR=$withval/lib
16837 POSTGRESQL_BINDIR=$withval/bin
16838 elif test -f $withval/include/postgresql/libpq-fe.h; then
16839 POSTGRESQL_INCDIR=$withval/include/postgresql
16840 if test -d $withval/lib64; then
16841 POSTGRESQL_LIBDIR=$withval/lib64
16843 POSTGRESQL_LIBDIR=$withval/lib
16845 POSTGRESQL_BINDIR=$withval/bin
16847 echo "$as_me:$LINENO: result: no" >&5
16848 echo "${ECHO_T}no" >&6
16849 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16850 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16851 { (exit 1); exit 1; }; }
16853 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16854 echo "$as_me:$LINENO: checking for crypt" >&5
16855 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16856 if test "${ac_cv_func_crypt+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16867 #define crypt innocuous_crypt
16869 /* System header to define __stub macros and hopefully few prototypes,
16870 which can conflict with char crypt (); below.
16871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16872 <limits.h> exists even on freestanding compilers. */
16875 # include <limits.h>
16877 # include <assert.h>
16882 /* Override any gcc2 internal prototype to avoid an error. */
16887 /* We use char because int might match the return type of a gcc2
16888 builtin and then its argument prototype would still apply. */
16890 /* The GNU C library defines this for functions which it implements
16891 to always fail with ENOSYS. Some functions are actually named
16892 something starting with __ and the normal name is an alias. */
16893 #if defined (__stub_crypt) || defined (__stub___crypt)
16896 char (*f) () = crypt;
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>conftest.er1
16914 grep -v '^ *+' conftest.er1 >conftest.err
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_func_crypt=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_func_crypt=no
16939 rm -f conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16942 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16943 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16944 if test $ac_cv_func_crypt = yes; then
16947 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16948 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16949 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 ac_check_lib_save_LIBS=$LIBS
16953 LIBS="-lcrypt $LIBS"
16954 cat >conftest.$ac_ext <<_ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16961 /* Override any gcc2 internal prototype to avoid an error. */
16965 /* We use char because int might match the return type of a gcc2
16966 builtin and then its argument prototype would still apply. */
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16978 (eval $ac_link) 2>conftest.er1
16980 grep -v '^ *+' conftest.er1 >conftest.err
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -z "$ac_c_werror_flag"
16986 || test ! -s conftest.err'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try='test -s conftest$ac_exeext'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
16998 ac_cv_lib_crypt_crypt=yes
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 ac_cv_lib_crypt_crypt=no
17005 rm -f conftest.err conftest.$ac_objext \
17006 conftest$ac_exeext conftest.$ac_ext
17007 LIBS=$ac_check_lib_save_LIBS
17009 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17010 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17011 if test $ac_cv_lib_crypt_crypt = yes; then
17012 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17017 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17018 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17019 SQL_BINDIR=$POSTGRESQL_BINDIR
17020 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17022 cat >>confdefs.h <<\_ACEOF
17023 #define HAVE_POSTGRESQL 1
17026 echo "$as_me:$LINENO: result: yes" >&5
17027 echo "${ECHO_T}yes" >&6
17029 support_postgresql=yes
17033 echo "$as_me:$LINENO: result: no" >&5
17034 echo "${ECHO_T}no" >&6
17039 echo "$as_me:$LINENO: result: no" >&5
17040 echo "${ECHO_T}no" >&6
17051 echo "$as_me:$LINENO: checking for MySQL support" >&5
17052 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17054 # Check whether --with-mysql or --without-mysql was given.
17055 if test "${with_mysql+set}" = set; then
17056 withval="$with_mysql"
17058 if test "$withval" != "no"; then
17059 if test "$withval" = "yes"; then
17060 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17061 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17062 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17063 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17064 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17066 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17068 MYSQL_BINDIR=/usr/local/mysql/bin
17069 elif test -f /usr/include/mysql/mysql.h; then
17070 MYSQL_INCDIR=/usr/include/mysql
17071 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17072 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17073 MYSQL_LIBDIR=/usr/lib64/mysql
17074 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17075 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17076 MYSQL_LIBDIR=/usr/lib/mysql
17078 MYSQL_LIBDIR=/usr/lib
17080 MYSQL_BINDIR=/usr/bin
17081 elif test -f /usr/include/mysql.h; then
17082 MYSQL_INCDIR=/usr/include
17083 if test -f /usr/lib64/libmysqlclient_r.a \
17084 -o -f /usr/lib64/libmysqlclient_r.so; then
17085 MYSQL_LIBDIR=/usr/lib64
17087 MYSQL_LIBDIR=/usr/lib
17089 MYSQL_BINDIR=/usr/bin
17090 elif test -f /usr/local/include/mysql/mysql.h; then
17091 MYSQL_INCDIR=/usr/local/include/mysql
17092 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17093 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17094 MYSQL_LIBDIR=/usr/local/lib64/mysql
17096 MYSQL_LIBDIR=/usr/local/lib/mysql
17098 MYSQL_BINDIR=/usr/local/bin
17099 elif test -f /usr/local/include/mysql.h; then
17100 MYSQL_INCDIR=/usr/local/include
17101 if test -f /usr/local/lib64/libmysqlclient_r.a \
17102 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17103 MYSQL_LIBDIR=/usr/local/lib64
17105 MYSQL_LIBDIR=/usr/local/lib
17107 MYSQL_BINDIR=/usr/local/bin
17109 echo "$as_me:$LINENO: result: no" >&5
17110 echo "${ECHO_T}no" >&6
17111 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17112 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17113 { (exit 1); exit 1; }; }
17116 if test -f $withval/include/mysql/mysql.h; then
17117 MYSQL_INCDIR=$withval/include/mysql
17118 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17119 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17120 MYSQL_LIBDIR=$withval/lib64/mysql
17122 MYSQL_LIBDIR=$withval/lib/mysql
17124 if test -f $withval/lib/libmysqlclient_r.so; then
17125 MYSQL_LIBDIR=$withval/lib
17128 MYSQL_BINDIR=$withval/bin
17129 elif test -f $withval/include/mysql.h; then
17130 MYSQL_INCDIR=$withval/include
17131 if test -f $withval/lib64/libmysqlclient_r.a \
17132 -o -f $withval/lib64/libmysqlclient_r.so; then
17133 MYSQL_LIBDIR=$withval/lib64
17135 MYSQL_LIBDIR=$withval/lib
17137 MYSQL_BINDIR=$withval/bin
17139 echo "$as_me:$LINENO: result: no" >&5
17140 echo "${ECHO_T}no" >&6
17141 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17142 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17143 { (exit 1); exit 1; }; }
17146 SQL_INCLUDE=-I$MYSQL_INCDIR
17147 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17148 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17149 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17150 cat >>confdefs.h <<\_ACEOF
17151 #define HAVE_THREAD_SAFE_MYSQL 1
17155 SQL_BINDIR=$MYSQL_BINDIR
17156 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17158 cat >>confdefs.h <<\_ACEOF
17159 #define HAVE_MYSQL 1
17162 echo "$as_me:$LINENO: result: yes" >&5
17163 echo "${ECHO_T}yes" >&6
17170 echo "$as_me:$LINENO: result: no" >&5
17171 echo "${ECHO_T}no" >&6
17178 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17179 if test "${with_embedded_mysql+set}" = set; then
17180 withval="$with_embedded_mysql"
17182 if test "$withval" != "no"; then
17183 if test "$withval" = "yes"; then
17184 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17185 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17186 if test -d /usr/local/mysql/lib64/mysql; then
17187 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17189 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17191 MYSQL_BINDIR=/usr/local/mysql/bin
17192 elif test -f /usr/include/mysql/mysql.h; then
17193 MYSQL_INCDIR=/usr/include/mysql
17194 if test -d /usr/lib64/mysql; then
17195 MYSQL_LIBDIR=/usr/lib64/mysql
17197 MYSQL_LIBDIR=/usr/lib/mysql
17199 MYSQL_BINDIR=/usr/bin
17200 elif test -f /usr/include/mysql.h; then
17201 MYSQL_INCDIR=/usr/include
17202 if test -d /usr/lib64; then
17203 MYSQL_LIBDIR=/usr/lib64
17205 MYSQL_LIBDIR=/usr/lib
17207 MYSQL_BINDIR=/usr/bin
17208 elif test -f /usr/local/include/mysql/mysql.h; then
17209 MYSQL_INCDIR=/usr/local/include/mysql
17210 if test -d /usr/local/lib64/mysql; then
17211 MYSQL_LIBDIR=/usr/local/lib64/mysql
17213 MYSQL_LIBDIR=/usr/local/lib/mysql
17215 MYSQL_BINDIR=/usr/local/bin
17216 elif test -f /usr/local/include/mysql.h; then
17217 MYSQL_INCDIR=/usr/local/include
17218 if test -d /usr/local/lib64; then
17219 MYSQL_LIBDIR=/usr/local/lib64
17221 MYSQL_LIBDIR=/usr/local/lib
17223 MYSQL_BINDIR=/usr/local/bin
17225 echo "$as_me:$LINENO: result: no" >&5
17226 echo "${ECHO_T}no" >&6
17227 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17228 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17229 { (exit 1); exit 1; }; }
17232 if test -f $withval/include/mysql/mysql.h; then
17233 MYSQL_INCDIR=$withval/include/mysql
17234 if test -d $withval/lib64/mysql; then
17235 MYSQL_LIBDIR=$withval/lib64/mysql
17237 MYSQL_LIBDIR=$withval/lib/mysql
17239 MYSQL_BINDIR=$withval/bin
17240 elif test -f $withval/include/mysql.h; then
17241 MYSQL_INCDIR=$withval/include
17242 if test -d $withval/lib64; then
17243 MYSQL_LIBDIR=$withval/lib64
17245 MYSQL_LIBDIR=$withval/lib
17247 MYSQL_BINDIR=$withval/bin
17249 echo "$as_me:$LINENO: result: no" >&5
17250 echo "${ECHO_T}no" >&6
17251 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17252 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17253 { (exit 1); exit 1; }; }
17256 SQL_INCLUDE=-I$MYSQL_INCDIR
17257 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17258 SQL_BINDIR=$MYSQL_BINDIR
17259 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_MYSQL 1
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_EMBEDDED_MYSQL 1
17269 echo "$as_me:$LINENO: result: yes" >&5
17270 echo "${ECHO_T}yes" >&6
17277 echo "$as_me:$LINENO: result: no" >&5
17278 echo "${ECHO_T}no" >&6
17293 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17294 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17296 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17297 if test "${with_sqlite3+set}" = set; then
17298 withval="$with_sqlite3"
17300 if test "$withval" != "no"; then
17301 if test "$withval" = "yes"; then
17302 if test -f /usr/local/include/sqlite3.h; then
17303 SQLITE_INCDIR=/usr/local/include
17304 if test -d /usr/local/lib64; then
17305 SQLITE_LIBDIR=/usr/local/lib64
17307 SQLITE_LIBDIR=/usr/local/lib
17309 SQLITE_BINDIR=/usr/local/bin
17310 elif test -f /usr/include/sqlite3.h; then
17311 SQLITE_INCDIR=/usr/include
17312 if test -d /usr/lib64; then
17313 SQLITE_LIBDIR=/usr/lib64
17315 SQLITE_LIBDIR=/usr/lib
17317 SQLITE_BINDIR=/usr/bin
17318 elif test -f $prefix/include/sqlite3.h; then
17319 SQLITE_INCDIR=$prefix/include
17320 if test -d $prefix/lib64; then
17321 SQLITE_LIBDIR=$prefix/lib64
17323 SQLITE_LIBDIR=$prefix/lib
17325 SQLITE_BINDIR=$prefix/bin
17327 echo "$as_me:$LINENO: result: no" >&5
17328 echo "${ECHO_T}no" >&6
17329 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17330 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17331 { (exit 1); exit 1; }; }
17334 if test -f $withval/sqlite3.h; then
17335 SQLITE_INCDIR=$withval
17336 SQLITE_LIBDIR=$withval
17337 SQLITE_BINDIR=$withval
17338 elif test -f $withval/include/sqlite3.h; then
17339 SQLITE_INCDIR=$withval/include
17340 if test -d $withval/lib64; then
17341 SQLITE_LIBDIR=$withval/lib64
17343 SQLITE_LIBDIR=$withval/lib
17345 SQLITE_BINDIR=$withval/bin
17347 echo "$as_me:$LINENO: result: no" >&5
17348 echo "${ECHO_T}no" >&6
17349 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17350 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17351 { (exit 1); exit 1; }; }
17354 SQL_INCLUDE=-I$SQLITE_INCDIR
17355 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17356 SQL_BINDIR=$SQLITE_BINDIR
17357 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17359 cat >>confdefs.h <<\_ACEOF
17360 #define HAVE_SQLITE3 1
17363 echo "$as_me:$LINENO: result: yes" >&5
17364 echo "${ECHO_T}yes" >&6
17366 support_sqlite3=yes
17371 echo "$as_me:$LINENO: result: no" >&5
17372 echo "${ECHO_T}no" >&6
17377 echo "$as_me:$LINENO: result: no" >&5
17378 echo "${ECHO_T}no" >&6
17389 echo "$as_me:$LINENO: checking for SQLite support" >&5
17390 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17392 # Check whether --with-sqlite or --without-sqlite was given.
17393 if test "${with_sqlite+set}" = set; then
17394 withval="$with_sqlite"
17396 if test "$withval" != "no"; then
17397 if test "$withval" = "yes"; then
17398 if test -f /usr/local/include/sqlite.h; then
17399 SQLITE_INCDIR=/usr/local/include
17400 if test -d /usr/local/lib64; then
17401 SQLITE_LIBDIR=/usr/local/lib64
17403 SQLITE_LIBDIR=/usr/local/lib
17405 SQLITE_BINDIR=/usr/local/bin
17406 elif test -f /usr/include/sqlite.h; then
17407 SQLITE_INCDIR=/usr/include
17408 if test -d /usr/lib64; then
17409 SQLITE_LIBDIR=/usr/lib64
17411 SQLITE_LIBDIR=/usr/lib
17413 SQLITE_BINDIR=/usr/bin
17414 elif test -f $prefix/include/sqlite.h; then
17415 SQLITE_INCDIR=$prefix/include
17416 if test -d $prefix/lib64; then
17417 SQLITE_LIBDIR=$prefix/lib64
17419 SQLITE_LIBDIR=$prefix/lib
17421 SQLITE_BINDIR=$prefix/bin
17423 echo "$as_me:$LINENO: result: no" >&5
17424 echo "${ECHO_T}no" >&6
17425 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17426 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17427 { (exit 1); exit 1; }; }
17430 if test -f $withval/sqlite.h; then
17431 SQLITE_INCDIR=$withval
17432 SQLITE_LIBDIR=$withval
17433 SQLITE_BINDIR=$withval
17434 elif test -f $withval/include/sqlite.h; then
17435 SQLITE_INCDIR=$withval/include
17436 if test -d $withval/lib64; then
17437 SQLITE_LIBDIR=$withval/lib64
17439 SQLITE_LIBDIR=$withval/lib
17441 SQLITE_BINDIR=$withval/bin
17443 echo "$as_me:$LINENO: result: no" >&5
17444 echo "${ECHO_T}no" >&6
17445 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17446 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17447 { (exit 1); exit 1; }; }
17450 SQL_INCLUDE=-I$SQLITE_INCDIR
17451 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17452 SQL_BINDIR=$SQLITE_BINDIR
17453 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_SQLITE 1
17459 echo "$as_me:$LINENO: result: yes" >&5
17460 echo "${ECHO_T}yes" >&6
17467 echo "$as_me:$LINENO: result: no" >&5
17468 echo "${ECHO_T}no" >&6
17473 echo "$as_me:$LINENO: result: no" >&5
17474 echo "${ECHO_T}no" >&6
17486 # -------------------------------------------
17487 # enable batch attribute DB insert (default on)
17488 # -------------------------------------------
17489 support_batch_insert=no
17490 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17492 if test $pkg = 0; then
17493 support_batch_insert=yes
17494 # Check whether --enable-batch-insert or --disable-batch-insert was given.
17495 if test "${enable_batch_insert+set}" = set; then
17496 enableval="$enable_batch_insert"
17497 if test x$enableval = xno; then
17498 support_batch_insert=no
17500 support_batch_insert=yes
17505 if test $support_batch_insert = yes ; then
17507 cat >>confdefs.h <<\_ACEOF
17508 #define HAVE_BATCH_FILE_INSERT 1
17514 cat >>confdefs.h <<\_ACEOF
17515 #define PROTOTYPES 1
17519 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17520 if test -z "$CCOPTS"; then
17521 CCOPTS='-g -O2 -Wall'
17529 largefile_support="no"
17531 # Check whether --enable-largefile or --disable-largefile was given.
17532 if test "${enable_largefile+set}" = set; then
17533 enableval="$enable_largefile"
17536 if test "$enable_largefile" != no; then
17537 if test -n "$ac_tool_prefix"; then
17538 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17539 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17540 echo "$as_me:$LINENO: checking for $ac_word" >&5
17541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17542 if test "${ac_cv_prog_GETCONF+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 if test -n "$GETCONF"; then
17546 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17549 for as_dir in $PATH
17552 test -z "$as_dir" && as_dir=.
17553 for ac_exec_ext in '' $ac_executable_extensions; do
17554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17555 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17564 GETCONF=$ac_cv_prog_GETCONF
17565 if test -n "$GETCONF"; then
17566 echo "$as_me:$LINENO: result: $GETCONF" >&5
17567 echo "${ECHO_T}$GETCONF" >&6
17569 echo "$as_me:$LINENO: result: no" >&5
17570 echo "${ECHO_T}no" >&6
17574 if test -z "$ac_cv_prog_GETCONF"; then
17575 ac_ct_GETCONF=$GETCONF
17576 # Extract the first word of "getconf", so it can be a program name with args.
17577 set dummy getconf; ac_word=$2
17578 echo "$as_me:$LINENO: checking for $ac_word" >&5
17579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17580 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 if test -n "$ac_ct_GETCONF"; then
17584 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17587 for as_dir in $PATH
17590 test -z "$as_dir" && as_dir=.
17591 for ac_exec_ext in '' $ac_executable_extensions; do
17592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17593 ac_cv_prog_ac_ct_GETCONF="getconf"
17594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17602 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17603 if test -n "$ac_ct_GETCONF"; then
17604 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17605 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17607 echo "$as_me:$LINENO: result: no" >&5
17608 echo "${ECHO_T}no" >&6
17611 GETCONF=$ac_ct_GETCONF
17613 GETCONF="$ac_cv_prog_GETCONF"
17616 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17617 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17618 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17622 ac_cv_sys_largefile_CFLAGS=no
17624 # IRIX 6.2 and later require cc -n32.
17625 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17626 if test "$GCC" != yes; then
17627 ac_cv_sys_largefile_CFLAGS=-n32
17630 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17631 cat >conftest.$ac_ext <<_ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>conftest.er1
17650 grep -v '^ *+' conftest.er1 >conftest.err
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
17655 { ac_try='test -z "$ac_c_werror_flag"
17656 || test ! -s conftest.err'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest$ac_exeext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 ac_cv_sys_largefile_CFLAGS=no
17675 rm -f conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17681 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17682 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17683 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17684 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17685 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17689 ac_cv_sys_largefile_LDFLAGS=no
17693 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17694 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17695 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17696 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17697 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17701 ac_cv_sys_largefile_LIBS=no
17705 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17706 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17708 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17711 -D_FILE_OFFSET_BITS=*) ;;
17712 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17713 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17718 case "$CPPFLAGS" in
17719 '') CPPFLAGS="$ac_flag" ;;
17720 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17728 '') CFLAGS="$ac_flag" ;;
17729 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17734 case "$ac_cv_sys_largefile_LDFLAGS" in
17738 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17739 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17742 case "$ac_cv_sys_largefile_LIBS" in
17746 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17747 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17750 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17751 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17752 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 ac_cv_sys_file_offset_bits=no
17756 ac_cv_sys_file_offset_bits=64
17757 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17759 -D_FILE_OFFSET_BITS)
17760 ac_cv_sys_file_offset_bits=1 ;;
17761 -D_FILE_OFFSET_BITS=*)
17762 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17767 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17768 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17769 if test "$ac_cv_sys_file_offset_bits" != no; then
17771 cat >>confdefs.h <<_ACEOF
17772 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17776 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17777 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17778 if test "${ac_cv_sys_largefile_source+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17781 ac_cv_sys_largefile_source=no
17782 ac_cv_sys_largefile_source=1
17783 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17785 -D_LARGEFILE_SOURCE)
17786 ac_cv_sys_largefile_source=1 ;;
17787 -D_LARGEFILE_SOURCE=*)
17788 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17793 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17794 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17795 if test "$ac_cv_sys_largefile_source" != no; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17802 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17803 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17804 if test "${ac_cv_sys_large_files+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17807 ac_cv_sys_large_files=no
17808 ac_cv_sys_large_files=1
17809 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17812 ac_cv_sys_large_files=1 ;;
17814 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17819 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17820 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17821 if test "$ac_cv_sys_large_files" != no; then
17823 cat >>confdefs.h <<_ACEOF
17824 #define _LARGE_FILES $ac_cv_sys_large_files
17832 echo "$as_me:$LINENO: checking for X" >&5
17833 echo $ECHO_N "checking for X... $ECHO_C" >&6
17836 # Check whether --with-x or --without-x was given.
17837 if test "${with_x+set}" = set; then
17841 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17842 if test "x$with_x" = xno; then
17843 # The user explicitly disabled X.
17846 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17847 # Both variables are already set.
17850 if test "${ac_cv_have_x+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 # One or both of the vars are not set, and there is no cached value.
17854 ac_x_includes=no ac_x_libraries=no
17855 rm -fr conftest.dir
17856 if mkdir conftest.dir; then
17858 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17859 cat >Imakefile <<'_ACEOF'
17861 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17863 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17864 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17865 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17866 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17867 for ac_extension in a so sl; do
17868 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17869 test -f $ac_im_libdir/libX11.$ac_extension; then
17870 ac_im_usrlibdir=$ac_im_libdir; break
17873 # Screen out bogus values from the imake configuration. They are
17874 # bogus both because they are the default anyway, and because
17875 # using them would break gcc on systems where it needs fixed includes.
17876 case $ac_im_incroot in
17878 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17880 case $ac_im_usrlibdir in
17881 /usr/lib | /lib) ;;
17882 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17886 rm -fr conftest.dir
17889 # Standard set of common directories for X headers.
17890 # Check X11 before X11Rn because it is often a symlink to the current release.
17902 /usr/local/X11/include
17903 /usr/local/X11R6/include
17904 /usr/local/X11R5/include
17905 /usr/local/X11R4/include
17907 /usr/local/include/X11
17908 /usr/local/include/X11R6
17909 /usr/local/include/X11R5
17910 /usr/local/include/X11R4
17914 /usr/XFree86/include/X11
17918 /usr/unsupported/include
17919 /usr/athena/include
17920 /usr/local/x11r5/include
17921 /usr/lpp/Xamples/include
17923 /usr/openwin/include
17924 /usr/openwin/share/include'
17926 if test "$ac_x_includes" = no; then
17927 # Guess where to find include files, by looking for Xlib.h.
17928 # First, try using that file with no special directory specified.
17929 cat >conftest.$ac_ext <<_ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17935 #include <X11/Xlib.h>
17937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17940 grep -v '^ *+' conftest.er1 >conftest.err
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } >/dev/null; then
17945 if test -s conftest.err; then
17946 ac_cpp_err=$ac_c_preproc_warn_flag
17947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17954 if test -z "$ac_cpp_err"; then
17955 # We can compile using X headers with no special include directory.
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 for ac_dir in $ac_x_header_dirs; do
17962 if test -r "$ac_dir/X11/Xlib.h"; then
17963 ac_x_includes=$ac_dir
17968 rm -f conftest.err conftest.$ac_ext
17969 fi # $ac_x_includes = no
17971 if test "$ac_x_libraries" = no; then
17972 # Check for the libraries.
17973 # See if we find them without any special options.
17974 # Don't add to $LIBS permanently.
17977 cat >conftest.$ac_ext <<_ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 #include <X11/Xlib.h>
17992 rm -f conftest.$ac_objext conftest$ac_exeext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 (eval $ac_link) 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try='test -s conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18015 # We can link X programs with no special library path.
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18022 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18024 # Don't even attempt the hair of trying to link an X program!
18025 for ac_extension in a so sl; do
18026 if test -r $ac_dir/libXt.$ac_extension; then
18027 ac_x_libraries=$ac_dir
18033 rm -f conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035 fi # $ac_x_libraries = no
18037 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18038 # Didn't find X anywhere. Cache the known absence of X.
18039 ac_cv_have_x="have_x=no"
18041 # Record where we found X for the cache.
18042 ac_cv_have_x="have_x=yes \
18043 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18048 eval "$ac_cv_have_x"
18051 if test "$have_x" != yes; then
18052 echo "$as_me:$LINENO: result: $have_x" >&5
18053 echo "${ECHO_T}$have_x" >&6
18056 # If each of the values was on the command line, it overrides each guess.
18057 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18058 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18059 # Update the cache value to reflect the command line values.
18060 ac_cv_have_x="have_x=yes \
18061 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18062 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18063 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18066 if test "$no_x" = yes; then
18067 # Not all programs may use this symbol, but it does not hurt to define it.
18069 cat >>confdefs.h <<\_ACEOF
18070 #define X_DISPLAY_MISSING 1
18073 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18075 if test -n "$x_includes"; then
18076 X_CFLAGS="$X_CFLAGS -I$x_includes"
18079 # It would also be nice to do this for all -L options, not just this one.
18080 if test -n "$x_libraries"; then
18081 X_LIBS="$X_LIBS -L$x_libraries"
18082 # For Solaris; some versions of Sun CC require a space after -R and
18083 # others require no space. Words are not sufficient . . . .
18084 case `(uname -sr) 2>/dev/null` in
18086 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18087 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18088 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18089 cat >conftest.$ac_ext <<_ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106 (eval $ac_link) 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag"
18114 || test ! -s conftest.err'
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest$ac_exeext'
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18128 echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18133 rm -f conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18135 if test $ac_R_nospace = yes; then
18136 echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6
18138 X_LIBS="$X_LIBS -R$x_libraries"
18140 LIBS="$ac_xsave_LIBS -R $x_libraries"
18141 cat >conftest.$ac_ext <<_ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18158 (eval $ac_link) 2>conftest.er1
18160 grep -v '^ *+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag"
18166 || test ! -s conftest.err'
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; } &&
18172 { ac_try='test -s conftest$ac_exeext'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18180 echo "$as_me: failed program was:" >&5
18181 sed 's/^/| /' conftest.$ac_ext >&5
18185 rm -f conftest.err conftest.$ac_objext \
18186 conftest$ac_exeext conftest.$ac_ext
18187 if test $ac_R_space = yes; then
18188 echo "$as_me:$LINENO: result: yes" >&5
18189 echo "${ECHO_T}yes" >&6
18190 X_LIBS="$X_LIBS -R $x_libraries"
18192 echo "$as_me:$LINENO: result: neither works" >&5
18193 echo "${ECHO_T}neither works" >&6
18196 LIBS=$ac_xsave_LIBS
18200 # Check for system-dependent libraries X programs must link with.
18201 # Do this before checking for the system-independent R6 libraries
18202 # (-lICE), since we may need -lsocket or whatever for X linking.
18204 if test "$ISC" = yes; then
18205 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18207 # Martyn Johnson says this is needed for Ultrix, if the X
18208 # libraries were built with DECnet support. And Karl Berry says
18209 # the Alpha needs dnet_stub (dnet does not exist).
18210 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18218 /* Override any gcc2 internal prototype to avoid an error. */
18222 /* We use char because int might match the return type of a gcc2
18223 builtin and then its argument prototype would still apply. */
18224 char XOpenDisplay ();
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18235 (eval $ac_link) 2>conftest.er1
18237 grep -v '^ *+' conftest.er1 >conftest.err
18239 cat conftest.err >&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } &&
18242 { ac_try='test -z "$ac_c_werror_flag"
18243 || test ! -s conftest.err'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; } &&
18249 { ac_try='test -s conftest$ac_exeext'
18250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251 (eval $ac_try) 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; }; then
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18261 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18262 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 ac_check_lib_save_LIBS=$LIBS
18266 LIBS="-ldnet $LIBS"
18267 cat >conftest.$ac_ext <<_ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18274 /* Override any gcc2 internal prototype to avoid an error. */
18278 /* We use char because int might match the return type of a gcc2
18279 builtin and then its argument prototype would still apply. */
18289 rm -f conftest.$ac_objext conftest$ac_exeext
18290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18291 (eval $ac_link) 2>conftest.er1
18293 grep -v '^ *+' conftest.er1 >conftest.err
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
18298 { ac_try='test -z "$ac_c_werror_flag"
18299 || test ! -s conftest.err'
18300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try='test -s conftest$ac_exeext'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; }; then
18311 ac_cv_lib_dnet_dnet_ntoa=yes
18313 echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18316 ac_cv_lib_dnet_dnet_ntoa=no
18318 rm -f conftest.err conftest.$ac_objext \
18319 conftest$ac_exeext conftest.$ac_ext
18320 LIBS=$ac_check_lib_save_LIBS
18322 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18323 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18324 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18325 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18328 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18329 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18330 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18331 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-ldnet_stub $LIBS"
18336 cat >conftest.$ac_ext <<_ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18343 /* Override any gcc2 internal prototype to avoid an error. */
18347 /* We use char because int might match the return type of a gcc2
18348 builtin and then its argument prototype would still apply. */
18358 rm -f conftest.$ac_objext conftest$ac_exeext
18359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18360 (eval $ac_link) 2>conftest.er1
18362 grep -v '^ *+' conftest.er1 >conftest.err
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag"
18368 || test ! -s conftest.err'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest$ac_exeext'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ac_cv_lib_dnet_stub_dnet_ntoa=no
18387 rm -f conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18391 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18392 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18393 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18394 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18399 rm -f conftest.err conftest.$ac_objext \
18400 conftest$ac_exeext conftest.$ac_ext
18401 LIBS="$ac_xsave_LIBS"
18403 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18404 # to get the SysV transport functions.
18405 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18407 # The nsl library prevents programs from opening the X display
18408 # on Irix 5.2, according to T.E. Dickey.
18409 # The functions gethostbyname, getservbyname, and inet_addr are
18410 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18411 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18412 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18413 if test "${ac_cv_func_gethostbyname+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 cat >conftest.$ac_ext <<_ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18424 #define gethostbyname innocuous_gethostbyname
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char gethostbyname (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18432 # include <limits.h>
18434 # include <assert.h>
18437 #undef gethostbyname
18439 /* Override any gcc2 internal prototype to avoid an error. */
18444 /* We use char because int might match the return type of a gcc2
18445 builtin and then its argument prototype would still apply. */
18446 char gethostbyname ();
18447 /* The GNU C library defines this for functions which it implements
18448 to always fail with ENOSYS. Some functions are actually named
18449 something starting with __ and the normal name is an alias. */
18450 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18453 char (*f) () = gethostbyname;
18462 return f != gethostbyname;
18467 rm -f conftest.$ac_objext conftest$ac_exeext
18468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18469 (eval $ac_link) 2>conftest.er1
18471 grep -v '^ *+' conftest.er1 >conftest.err
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } &&
18476 { ac_try='test -z "$ac_c_werror_flag"
18477 || test ! -s conftest.err'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; } &&
18483 { ac_try='test -s conftest$ac_exeext'
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 ac_cv_func_gethostbyname=yes
18491 echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18494 ac_cv_func_gethostbyname=no
18496 rm -f conftest.err conftest.$ac_objext \
18497 conftest$ac_exeext conftest.$ac_ext
18499 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18500 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18502 if test $ac_cv_func_gethostbyname = no; then
18503 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18504 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18505 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 ac_check_lib_save_LIBS=$LIBS
18510 cat >conftest.$ac_ext <<_ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18517 /* Override any gcc2 internal prototype to avoid an error. */
18521 /* We use char because int might match the return type of a gcc2
18522 builtin and then its argument prototype would still apply. */
18523 char gethostbyname ();
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534 (eval $ac_link) 2>conftest.er1
18536 grep -v '^ *+' conftest.er1 >conftest.err
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -z "$ac_c_werror_flag"
18542 || test ! -s conftest.err'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest$ac_exeext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_lib_nsl_gethostbyname=yes
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18559 ac_cv_lib_nsl_gethostbyname=no
18561 rm -f conftest.err conftest.$ac_objext \
18562 conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18565 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18566 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18567 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18571 if test $ac_cv_lib_nsl_gethostbyname = no; then
18572 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18573 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18574 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 ac_check_lib_save_LIBS=$LIBS
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18586 /* Override any gcc2 internal prototype to avoid an error. */
18590 /* We use char because int might match the return type of a gcc2
18591 builtin and then its argument prototype would still apply. */
18592 char gethostbyname ();
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18603 (eval $ac_link) 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_c_werror_flag"
18611 || test ! -s conftest.err'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest$ac_exeext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_lib_bsd_gethostbyname=yes
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18628 ac_cv_lib_bsd_gethostbyname=no
18630 rm -f conftest.err conftest.$ac_objext \
18631 conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_lib_save_LIBS
18634 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18635 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18636 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18637 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18643 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18644 # socket/setsockopt and other routines are undefined under SCO ODT
18645 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18646 # on later versions), says Simon Leinen: it contains gethostby*
18647 # variants that don't use the name server (or something). -lsocket
18648 # must be given before -lnsl if both are needed. We assume that
18649 # if connect needs -lnsl, so does gethostbyname.
18650 echo "$as_me:$LINENO: checking for connect" >&5
18651 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18652 if test "${ac_cv_func_connect+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18661 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18663 #define connect innocuous_connect
18665 /* System header to define __stub macros and hopefully few prototypes,
18666 which can conflict with char connect (); below.
18667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18668 <limits.h> exists even on freestanding compilers. */
18671 # include <limits.h>
18673 # include <assert.h>
18678 /* Override any gcc2 internal prototype to avoid an error. */
18683 /* We use char because int might match the return type of a gcc2
18684 builtin and then its argument prototype would still apply. */
18686 /* The GNU C library defines this for functions which it implements
18687 to always fail with ENOSYS. Some functions are actually named
18688 something starting with __ and the normal name is an alias. */
18689 #if defined (__stub_connect) || defined (__stub___connect)
18692 char (*f) () = connect;
18701 return f != connect;
18706 rm -f conftest.$ac_objext conftest$ac_exeext
18707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18708 (eval $ac_link) 2>conftest.er1
18710 grep -v '^ *+' conftest.er1 >conftest.err
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag"
18716 || test ! -s conftest.err'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } &&
18722 { ac_try='test -s conftest$ac_exeext'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 ac_cv_func_connect=yes
18730 echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18733 ac_cv_func_connect=no
18735 rm -f conftest.err conftest.$ac_objext \
18736 conftest$ac_exeext conftest.$ac_ext
18738 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18739 echo "${ECHO_T}$ac_cv_func_connect" >&6
18741 if test $ac_cv_func_connect = no; then
18742 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18743 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18744 if test "${ac_cv_lib_socket_connect+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 ac_check_lib_save_LIBS=$LIBS
18748 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18749 cat >conftest.$ac_ext <<_ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18756 /* Override any gcc2 internal prototype to avoid an error. */
18760 /* We use char because int might match the return type of a gcc2
18761 builtin and then its argument prototype would still apply. */
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18773 (eval $ac_link) 2>conftest.er1
18775 grep -v '^ *+' conftest.er1 >conftest.err
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_c_werror_flag"
18781 || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_cv_lib_socket_connect=yes
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18798 ac_cv_lib_socket_connect=no
18800 rm -f conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18804 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18805 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18806 if test $ac_cv_lib_socket_connect = yes; then
18807 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18812 # Guillermo Gomez says -lposix is necessary on A/UX.
18813 echo "$as_me:$LINENO: checking for remove" >&5
18814 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18815 if test "${ac_cv_func_remove+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18818 cat >conftest.$ac_ext <<_ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18824 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18826 #define remove innocuous_remove
18828 /* System header to define __stub macros and hopefully few prototypes,
18829 which can conflict with char remove (); below.
18830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18831 <limits.h> exists even on freestanding compilers. */
18834 # include <limits.h>
18836 # include <assert.h>
18841 /* Override any gcc2 internal prototype to avoid an error. */
18846 /* We use char because int might match the return type of a gcc2
18847 builtin and then its argument prototype would still apply. */
18849 /* The GNU C library defines this for functions which it implements
18850 to always fail with ENOSYS. Some functions are actually named
18851 something starting with __ and the normal name is an alias. */
18852 #if defined (__stub_remove) || defined (__stub___remove)
18855 char (*f) () = remove;
18864 return f != remove;
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18871 (eval $ac_link) 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest$ac_exeext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 ac_cv_func_remove=yes
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18896 ac_cv_func_remove=no
18898 rm -f conftest.err conftest.$ac_objext \
18899 conftest$ac_exeext conftest.$ac_ext
18901 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18902 echo "${ECHO_T}$ac_cv_func_remove" >&6
18904 if test $ac_cv_func_remove = no; then
18905 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18906 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18907 if test "${ac_cv_lib_posix_remove+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18910 ac_check_lib_save_LIBS=$LIBS
18911 LIBS="-lposix $LIBS"
18912 cat >conftest.$ac_ext <<_ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18919 /* Override any gcc2 internal prototype to avoid an error. */
18923 /* We use char because int might match the return type of a gcc2
18924 builtin and then its argument prototype would still apply. */
18934 rm -f conftest.$ac_objext conftest$ac_exeext
18935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18936 (eval $ac_link) 2>conftest.er1
18938 grep -v '^ *+' conftest.er1 >conftest.err
18940 cat conftest.err >&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
18943 { ac_try='test -z "$ac_c_werror_flag"
18944 || test ! -s conftest.err'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; } &&
18950 { ac_try='test -s conftest$ac_exeext'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; }; then
18956 ac_cv_lib_posix_remove=yes
18958 echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_cv_lib_posix_remove=no
18963 rm -f conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18965 LIBS=$ac_check_lib_save_LIBS
18967 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18968 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18969 if test $ac_cv_lib_posix_remove = yes; then
18970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18975 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18976 echo "$as_me:$LINENO: checking for shmat" >&5
18977 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18978 if test "${ac_cv_func_shmat+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 cat >conftest.$ac_ext <<_ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18989 #define shmat innocuous_shmat
18991 /* System header to define __stub macros and hopefully few prototypes,
18992 which can conflict with char shmat (); below.
18993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18994 <limits.h> exists even on freestanding compilers. */
18997 # include <limits.h>
18999 # include <assert.h>
19004 /* Override any gcc2 internal prototype to avoid an error. */
19009 /* We use char because int might match the return type of a gcc2
19010 builtin and then its argument prototype would still apply. */
19012 /* The GNU C library defines this for functions which it implements
19013 to always fail with ENOSYS. Some functions are actually named
19014 something starting with __ and the normal name is an alias. */
19015 #if defined (__stub_shmat) || defined (__stub___shmat)
19018 char (*f) () = shmat;
19032 rm -f conftest.$ac_objext conftest$ac_exeext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19034 (eval $ac_link) 2>conftest.er1
19036 grep -v '^ *+' conftest.er1 >conftest.err
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_c_werror_flag"
19042 || test ! -s conftest.err'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest$ac_exeext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_func_shmat=yes
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_cv_func_shmat=no
19061 rm -f conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext conftest.$ac_ext
19064 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19065 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19067 if test $ac_cv_func_shmat = no; then
19068 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19069 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19070 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 ac_check_lib_save_LIBS=$LIBS
19075 cat >conftest.$ac_ext <<_ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19082 /* Override any gcc2 internal prototype to avoid an error. */
19086 /* We use char because int might match the return type of a gcc2
19087 builtin and then its argument prototype would still apply. */
19097 rm -f conftest.$ac_objext conftest$ac_exeext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19099 (eval $ac_link) 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_c_werror_flag"
19107 || test ! -s conftest.err'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest$ac_exeext'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_cv_lib_ipc_shmat=yes
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19124 ac_cv_lib_ipc_shmat=no
19126 rm -f conftest.err conftest.$ac_objext \
19127 conftest$ac_exeext conftest.$ac_ext
19128 LIBS=$ac_check_lib_save_LIBS
19130 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19131 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19132 if test $ac_cv_lib_ipc_shmat = yes; then
19133 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19139 # Check for libraries that X11R6 Xt/Xaw programs need.
19140 ac_save_LDFLAGS=$LDFLAGS
19141 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19142 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19143 # check for ICE first), but we must link in the order -lSM -lICE or
19144 # we get undefined symbols. So assume we have SM if we have ICE.
19145 # These have to be linked with before -lX11, unlike the other
19146 # libraries we check for below, so use a different variable.
19147 # John Interrante, Karl Berry
19148 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19149 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19150 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 ac_check_lib_save_LIBS=$LIBS
19154 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19162 /* Override any gcc2 internal prototype to avoid an error. */
19166 /* We use char because int might match the return type of a gcc2
19167 builtin and then its argument prototype would still apply. */
19168 char IceConnectionNumber ();
19172 IceConnectionNumber ();
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19179 (eval $ac_link) 2>conftest.er1
19181 grep -v '^ *+' conftest.er1 >conftest.err
19183 cat conftest.err >&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } &&
19186 { ac_try='test -z "$ac_c_werror_flag"
19187 || test ! -s conftest.err'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest$ac_exeext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_lib_ICE_IceConnectionNumber=yes
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ac_cv_lib_ICE_IceConnectionNumber=no
19206 rm -f conftest.err conftest.$ac_objext \
19207 conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19210 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19211 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19212 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19213 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19216 LDFLAGS=$ac_save_LDFLAGS
19278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19280 echo "$as_me:$LINENO: checking for $ac_header" >&5
19281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19288 # Is the header compilable?
19289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19291 cat >conftest.$ac_ext <<_ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 $ac_includes_default
19298 #include <$ac_header>
19300 rm -f conftest.$ac_objext
19301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19302 (eval $ac_compile) 2>conftest.er1
19304 grep -v '^ *+' conftest.er1 >conftest.err
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } &&
19309 { ac_try='test -z "$ac_c_werror_flag"
19310 || test ! -s conftest.err'
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; } &&
19316 { ac_try='test -s conftest.$ac_objext'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_header_compiler=yes
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_header_compiler=no
19329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19331 echo "${ECHO_T}$ac_header_compiler" >&6
19333 # Is the header present?
19334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19336 cat >conftest.$ac_ext <<_ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 #include <$ac_header>
19344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } >/dev/null; then
19352 if test -s conftest.err; then
19353 ac_cpp_err=$ac_c_preproc_warn_flag
19354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19361 if test -z "$ac_cpp_err"; then
19362 ac_header_preproc=yes
19364 echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19367 ac_header_preproc=no
19369 rm -f conftest.err conftest.$ac_ext
19370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19371 echo "${ECHO_T}$ac_header_preproc" >&6
19373 # So? What about this header?
19374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19380 ac_header_preproc=yes
19383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19397 ## ------------------------------------------ ##
19398 ## Report this to the AC_PACKAGE_NAME lists. ##
19399 ## ------------------------------------------ ##
19402 sed "s/^/$as_me: WARNING: /" >&2
19405 echo "$as_me:$LINENO: checking for $ac_header" >&5
19406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 eval "$as_ac_Header=\$ac_header_preproc"
19412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19417 cat >>confdefs.h <<_ACEOF
19418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19425 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19426 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19427 if test "${ac_cv_header_stdc+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 cat >conftest.$ac_ext <<_ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 #include <stdlib.h>
19437 #include <stdarg.h>
19438 #include <string.h>
19449 rm -f conftest.$ac_objext
19450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19451 (eval $ac_compile) 2>conftest.er1
19453 grep -v '^ *+' conftest.er1 >conftest.err
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -z "$ac_c_werror_flag"
19459 || test ! -s conftest.err'
19460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461 (eval $ac_try) 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; } &&
19465 { ac_try='test -s conftest.$ac_objext'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; }; then
19471 ac_cv_header_stdc=yes
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476 ac_cv_header_stdc=no
19478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19480 if test $ac_cv_header_stdc = yes; then
19481 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19482 cat >conftest.$ac_ext <<_ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19488 #include <string.h>
19491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19492 $EGREP "memchr" >/dev/null 2>&1; then
19495 ac_cv_header_stdc=no
19501 if test $ac_cv_header_stdc = yes; then
19502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19503 cat >conftest.$ac_ext <<_ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19509 #include <stdlib.h>
19512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19513 $EGREP "free" >/dev/null 2>&1; then
19516 ac_cv_header_stdc=no
19522 if test $ac_cv_header_stdc = yes; then
19523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19524 if test "$cross_compiling" = yes; then
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 #if ((' ' & 0x0FF) == 0x020)
19535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19538 # define ISLOWER(c) \
19539 (('a' <= (c) && (c) <= 'i') \
19540 || ('j' <= (c) && (c) <= 'r') \
19541 || ('s' <= (c) && (c) <= 'z'))
19542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19550 for (i = 0; i < 256; i++)
19551 if (XOR (islower (i), ISLOWER (i))
19552 || toupper (i) != TOUPPER (i))
19557 rm -f conftest$ac_exeext
19558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19559 (eval $ac_link) 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19570 echo "$as_me: program exited with status $ac_status" >&5
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ( exit $ac_status )
19575 ac_cv_header_stdc=no
19577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19581 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19582 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19583 if test $ac_cv_header_stdc = yes; then
19585 cat >>confdefs.h <<\_ACEOF
19586 #define STDC_HEADERS 1
19591 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19592 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19593 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 cat >conftest.$ac_ext <<_ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 #include <sys/types.h>
19606 return makedev(0, 0);
19611 rm -f conftest.$ac_objext conftest$ac_exeext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19613 (eval $ac_link) 2>conftest.er1
19615 grep -v '^ *+' conftest.er1 >conftest.err
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
19620 { ac_try='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest$ac_exeext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_cv_header_sys_types_h_makedev=yes
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_cv_header_sys_types_h_makedev=no
19640 rm -f conftest.err conftest.$ac_objext \
19641 conftest$ac_exeext conftest.$ac_ext
19644 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19645 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19647 if test $ac_cv_header_sys_types_h_makedev = no; then
19648 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19649 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19650 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19651 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19655 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19657 # Is the header compilable?
19658 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19659 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19666 $ac_includes_default
19667 #include <sys/mkdev.h>
19669 rm -f conftest.$ac_objext
19670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19671 (eval $ac_compile) 2>conftest.er1
19673 grep -v '^ *+' conftest.er1 >conftest.err
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
19678 { ac_try='test -z "$ac_c_werror_flag"
19679 || test ! -s conftest.err'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest.$ac_objext'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 ac_header_compiler=yes
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 ac_header_compiler=no
19698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19700 echo "${ECHO_T}$ac_header_compiler" >&6
19702 # Is the header present?
19703 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19704 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19705 cat >conftest.$ac_ext <<_ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 #include <sys/mkdev.h>
19713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19716 grep -v '^ *+' conftest.er1 >conftest.err
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } >/dev/null; then
19721 if test -s conftest.err; then
19722 ac_cpp_err=$ac_c_preproc_warn_flag
19723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19730 if test -z "$ac_cpp_err"; then
19731 ac_header_preproc=yes
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ac_header_preproc=no
19738 rm -f conftest.err conftest.$ac_ext
19739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19740 echo "${ECHO_T}$ac_header_preproc" >&6
19742 # So? What about this header?
19743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19745 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19746 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19747 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19748 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19749 ac_header_preproc=yes
19752 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19753 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19755 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19756 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19757 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19758 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19759 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19760 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19761 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19762 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19763 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19766 ## ------------------------------------------ ##
19767 ## Report this to the AC_PACKAGE_NAME lists. ##
19768 ## ------------------------------------------ ##
19771 sed "s/^/$as_me: WARNING: /" >&2
19774 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19775 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19776 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19781 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19782 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19785 if test $ac_cv_header_sys_mkdev_h = yes; then
19787 cat >>confdefs.h <<\_ACEOF
19788 #define MAJOR_IN_MKDEV 1
19795 if test $ac_cv_header_sys_mkdev_h = no; then
19796 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19797 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19798 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19799 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19803 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19805 # Is the header compilable?
19806 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19807 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19808 cat >conftest.$ac_ext <<_ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 $ac_includes_default
19815 #include <sys/sysmacros.h>
19817 rm -f conftest.$ac_objext
19818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19819 (eval $ac_compile) 2>conftest.er1
19821 grep -v '^ *+' conftest.er1 >conftest.err
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } &&
19826 { ac_try='test -z "$ac_c_werror_flag"
19827 || test ! -s conftest.err'
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; } &&
19833 { ac_try='test -s conftest.$ac_objext'
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; }; then
19839 ac_header_compiler=yes
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19844 ac_header_compiler=no
19846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19848 echo "${ECHO_T}$ac_header_compiler" >&6
19850 # Is the header present?
19851 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19852 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 #include <sys/sysmacros.h>
19861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } >/dev/null; then
19869 if test -s conftest.err; then
19870 ac_cpp_err=$ac_c_preproc_warn_flag
19871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19878 if test -z "$ac_cpp_err"; then
19879 ac_header_preproc=yes
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_header_preproc=no
19886 rm -f conftest.err conftest.$ac_ext
19887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19888 echo "${ECHO_T}$ac_header_preproc" >&6
19890 # So? What about this header?
19891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19893 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19894 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19896 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19897 ac_header_preproc=yes
19900 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19901 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19902 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19903 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19904 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19905 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19906 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19907 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19908 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19909 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19910 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19911 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19914 ## ------------------------------------------ ##
19915 ## Report this to the AC_PACKAGE_NAME lists. ##
19916 ## ------------------------------------------ ##
19919 sed "s/^/$as_me: WARNING: /" >&2
19922 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19923 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19924 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19927 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19929 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19930 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19933 if test $ac_cv_header_sys_sysmacros_h = yes; then
19935 cat >>confdefs.h <<\_ACEOF
19936 #define MAJOR_IN_SYSMACROS 1
19950 ac_header_dirent=no
19951 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19952 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19953 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19954 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19956 echo $ECHO_N "(cached) $ECHO_C" >&6
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 #include <sys/types.h>
19976 rm -f conftest.$ac_objext
19977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19978 (eval $ac_compile) 2>conftest.er1
19980 grep -v '^ *+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -z "$ac_c_werror_flag"
19986 || test ! -s conftest.err'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; } &&
19992 { ac_try='test -s conftest.$ac_objext'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; }; then
19998 eval "$as_ac_Header=yes"
20000 echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 eval "$as_ac_Header=no"
20005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20010 cat >>confdefs.h <<_ACEOF
20011 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20014 ac_header_dirent=$ac_hdr; break
20018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20019 if test $ac_header_dirent = dirent.h; then
20020 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20021 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20022 if test "${ac_cv_search_opendir+set}" = set; then
20023 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 ac_func_search_save_LIBS=$LIBS
20026 ac_cv_search_opendir=no
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20034 /* Override any gcc2 internal prototype to avoid an error. */
20038 /* We use char because int might match the return type of a gcc2
20039 builtin and then its argument prototype would still apply. */
20049 rm -f conftest.$ac_objext conftest$ac_exeext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20051 (eval $ac_link) 2>conftest.er1
20053 grep -v '^ *+' conftest.er1 >conftest.err
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try='test -z "$ac_c_werror_flag"
20059 || test ! -s conftest.err'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } &&
20065 { ac_try='test -s conftest$ac_exeext'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; }; then
20071 ac_cv_search_opendir="none required"
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20077 rm -f conftest.err conftest.$ac_objext \
20078 conftest$ac_exeext conftest.$ac_ext
20079 if test "$ac_cv_search_opendir" = no; then
20080 for ac_lib in dir; do
20081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20082 cat >conftest.$ac_ext <<_ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20089 /* Override any gcc2 internal prototype to avoid an error. */
20093 /* We use char because int might match the return type of a gcc2
20094 builtin and then its argument prototype would still apply. */
20104 rm -f conftest.$ac_objext conftest$ac_exeext
20105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20106 (eval $ac_link) 2>conftest.er1
20108 grep -v '^ *+' conftest.er1 >conftest.err
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
20113 { ac_try='test -z "$ac_c_werror_flag"
20114 || test ! -s conftest.err'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; } &&
20120 { ac_try='test -s conftest$ac_exeext'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126 ac_cv_search_opendir="-l$ac_lib"
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20133 rm -f conftest.err conftest.$ac_objext \
20134 conftest$ac_exeext conftest.$ac_ext
20137 LIBS=$ac_func_search_save_LIBS
20139 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20140 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20141 if test "$ac_cv_search_opendir" != no; then
20142 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20147 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20148 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20149 if test "${ac_cv_search_opendir+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 ac_func_search_save_LIBS=$LIBS
20153 ac_cv_search_opendir=no
20154 cat >conftest.$ac_ext <<_ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20161 /* Override any gcc2 internal prototype to avoid an error. */
20165 /* We use char because int might match the return type of a gcc2
20166 builtin and then its argument prototype would still apply. */
20176 rm -f conftest.$ac_objext conftest$ac_exeext
20177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20178 (eval $ac_link) 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } &&
20185 { ac_try='test -z "$ac_c_werror_flag"
20186 || test ! -s conftest.err'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest$ac_exeext'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; }; then
20198 ac_cv_search_opendir="none required"
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20204 rm -f conftest.err conftest.$ac_objext \
20205 conftest$ac_exeext conftest.$ac_ext
20206 if test "$ac_cv_search_opendir" = no; then
20207 for ac_lib in x; do
20208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20216 /* Override any gcc2 internal prototype to avoid an error. */
20220 /* We use char because int might match the return type of a gcc2
20221 builtin and then its argument prototype would still apply. */
20231 rm -f conftest.$ac_objext conftest$ac_exeext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20233 (eval $ac_link) 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
20240 { ac_try='test -z "$ac_c_werror_flag"
20241 || test ! -s conftest.err'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; } &&
20247 { ac_try='test -s conftest$ac_exeext'
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
20253 ac_cv_search_opendir="-l$ac_lib"
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20260 rm -f conftest.err conftest.$ac_objext \
20261 conftest$ac_exeext conftest.$ac_ext
20264 LIBS=$ac_func_search_save_LIBS
20266 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20267 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20268 if test "$ac_cv_search_opendir" != no; then
20269 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20275 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20276 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20277 if test "${ac_cv_header_stat_broken+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 #include <sys/types.h>
20287 #include <sys/stat.h>
20289 #if defined(S_ISBLK) && defined(S_IFDIR)
20290 # if S_ISBLK (S_IFDIR)
20295 #if defined(S_ISBLK) && defined(S_IFCHR)
20296 # if S_ISBLK (S_IFCHR)
20301 #if defined(S_ISLNK) && defined(S_IFREG)
20302 # if S_ISLNK (S_IFREG)
20307 #if defined(S_ISSOCK) && defined(S_IFREG)
20308 # if S_ISSOCK (S_IFREG)
20314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20315 $EGREP "You lose" >/dev/null 2>&1; then
20316 ac_cv_header_stat_broken=yes
20318 ac_cv_header_stat_broken=no
20323 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20324 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20325 if test $ac_cv_header_stat_broken = yes; then
20327 cat >>confdefs.h <<\_ACEOF
20328 #define STAT_MACROS_BROKEN 1
20333 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20334 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20335 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20344 #include <sys/types.h>
20345 #include <sys/wait.h>
20346 #ifndef WEXITSTATUS
20347 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20350 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20358 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365 (eval $ac_compile) 2>conftest.er1
20367 grep -v '^ *+' conftest.er1 >conftest.err
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag"
20373 || test ! -s conftest.err'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } &&
20379 { ac_try='test -s conftest.$ac_objext'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_cv_header_sys_wait_h=yes
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 ac_cv_header_sys_wait_h=no
20392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20394 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20395 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20396 if test $ac_cv_header_sys_wait_h = yes; then
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_SYS_WAIT_H 1
20404 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20405 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20406 if test "${ac_cv_header_time+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 #include <sys/types.h>
20416 #include <sys/time.h>
20422 if ((struct tm *) 0)
20428 rm -f conftest.$ac_objext
20429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20430 (eval $ac_compile) 2>conftest.er1
20432 grep -v '^ *+' conftest.er1 >conftest.err
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
20437 { ac_try='test -z "$ac_c_werror_flag"
20438 || test ! -s conftest.err'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; } &&
20444 { ac_try='test -s conftest.$ac_objext'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 ac_cv_header_time=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_cv_header_time=no
20457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20459 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20460 echo "${ECHO_T}$ac_cv_header_time" >&6
20461 if test $ac_cv_header_time = yes; then
20463 cat >>confdefs.h <<\_ACEOF
20464 #define TIME_WITH_SYS_TIME 1
20470 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20471 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20472 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 $ac_includes_default
20485 static struct stat ac_aggr;
20486 if (ac_aggr.st_blksize)
20492 rm -f conftest.$ac_objext
20493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20494 (eval $ac_compile) 2>conftest.er1
20496 grep -v '^ *+' conftest.er1 >conftest.err
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } &&
20501 { ac_try='test -z "$ac_c_werror_flag"
20502 || test ! -s conftest.err'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try='test -s conftest.$ac_objext'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20514 ac_cv_member_struct_stat_st_blksize=yes
20516 echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20519 cat >conftest.$ac_ext <<_ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h. */
20525 $ac_includes_default
20529 static struct stat ac_aggr;
20530 if (sizeof ac_aggr.st_blksize)
20536 rm -f conftest.$ac_objext
20537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20538 (eval $ac_compile) 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } &&
20545 { ac_try='test -z "$ac_c_werror_flag"
20546 || test ! -s conftest.err'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; } &&
20552 { ac_try='test -s conftest.$ac_objext'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ac_cv_member_struct_stat_st_blksize=yes
20560 echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20563 ac_cv_member_struct_stat_st_blksize=no
20565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20570 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20571 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20573 cat >>confdefs.h <<_ACEOF
20574 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20578 cat >>confdefs.h <<\_ACEOF
20579 #define HAVE_ST_BLKSIZE 1
20585 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20586 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20587 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20590 cat >conftest.$ac_ext <<_ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20596 $ac_includes_default
20600 static struct stat ac_aggr;
20601 if (ac_aggr.st_blocks)
20607 rm -f conftest.$ac_objext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20609 (eval $ac_compile) 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -z "$ac_c_werror_flag"
20617 || test ! -s conftest.err'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest.$ac_objext'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; }; then
20629 ac_cv_member_struct_stat_st_blocks=yes
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 $ac_includes_default
20644 static struct stat ac_aggr;
20645 if (sizeof ac_aggr.st_blocks)
20651 rm -f conftest.$ac_objext
20652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20653 (eval $ac_compile) 2>conftest.er1
20655 grep -v '^ *+' conftest.er1 >conftest.err
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag"
20661 || test ! -s conftest.err'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; } &&
20667 { ac_try='test -s conftest.$ac_objext'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 ac_cv_member_struct_stat_st_blocks=yes
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ac_cv_member_struct_stat_st_blocks=no
20680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20684 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20685 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20686 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20688 cat >>confdefs.h <<_ACEOF
20689 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20693 cat >>confdefs.h <<\_ACEOF
20694 #define HAVE_ST_BLOCKS 1
20699 "fileblocks.$ac_objext" | \
20700 *" fileblocks.$ac_objext" | \
20701 "fileblocks.$ac_objext "* | \
20702 *" fileblocks.$ac_objext "* ) ;;
20703 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20709 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20710 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20711 if test "${ac_cv_struct_tm+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 #include <sys/types.h>
20726 struct tm *tp; tp->tm_sec;
20731 rm -f conftest.$ac_objext
20732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733 (eval $ac_compile) 2>conftest.er1
20735 grep -v '^ *+' conftest.er1 >conftest.err
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
20740 { ac_try='test -z "$ac_c_werror_flag"
20741 || test ! -s conftest.err'
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; } &&
20747 { ac_try='test -s conftest.$ac_objext'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753 ac_cv_struct_tm=time.h
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 ac_cv_struct_tm=sys/time.h
20760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20763 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20764 if test $ac_cv_struct_tm = sys/time.h; then
20766 cat >>confdefs.h <<\_ACEOF
20767 #define TM_IN_SYS_TIME 1
20772 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20773 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20774 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20777 cat >conftest.$ac_ext <<_ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 #include <sys/types.h>
20784 #include <$ac_cv_struct_tm>
20790 static struct tm ac_aggr;
20791 if (ac_aggr.tm_zone)
20797 rm -f conftest.$ac_objext
20798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20799 (eval $ac_compile) 2>conftest.er1
20801 grep -v '^ *+' conftest.er1 >conftest.err
20803 cat conftest.err >&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } &&
20806 { ac_try='test -z "$ac_c_werror_flag"
20807 || test ! -s conftest.err'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } &&
20813 { ac_try='test -s conftest.$ac_objext'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
20819 ac_cv_member_struct_tm_tm_zone=yes
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20824 cat >conftest.$ac_ext <<_ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h. */
20830 #include <sys/types.h>
20831 #include <$ac_cv_struct_tm>
20837 static struct tm ac_aggr;
20838 if (sizeof ac_aggr.tm_zone)
20844 rm -f conftest.$ac_objext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20846 (eval $ac_compile) 2>conftest.er1
20848 grep -v '^ *+' conftest.er1 >conftest.err
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } &&
20853 { ac_try='test -z "$ac_c_werror_flag"
20854 || test ! -s conftest.err'
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; } &&
20860 { ac_try='test -s conftest.$ac_objext'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
20866 ac_cv_member_struct_tm_tm_zone=yes
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ac_cv_member_struct_tm_tm_zone=no
20873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20877 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20878 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20879 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20881 cat >>confdefs.h <<_ACEOF
20882 #define HAVE_STRUCT_TM_TM_ZONE 1
20888 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20890 cat >>confdefs.h <<\_ACEOF
20891 #define HAVE_TM_ZONE 1
20895 echo "$as_me:$LINENO: checking for tzname" >&5
20896 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20897 if test "${ac_cv_var_tzname+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20907 #ifndef tzname /* For SGI. */
20908 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20921 (eval $ac_link) 2>conftest.er1
20923 grep -v '^ *+' conftest.er1 >conftest.err
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } &&
20928 { ac_try='test -z "$ac_c_werror_flag"
20929 || test ! -s conftest.err'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; } &&
20935 { ac_try='test -s conftest$ac_exeext'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; }; then
20941 ac_cv_var_tzname=yes
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20946 ac_cv_var_tzname=no
20948 rm -f conftest.err conftest.$ac_objext \
20949 conftest$ac_exeext conftest.$ac_ext
20951 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20952 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20953 if test $ac_cv_var_tzname = yes; then
20955 cat >>confdefs.h <<\_ACEOF
20956 #define HAVE_TZNAME 1
20963 echo "$as_me:$LINENO: checking for utime.h" >&5
20964 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20965 if test "${ba_cv_header_utime_h+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20975 #include <sys/types.h>
20985 rm -f conftest.$ac_objext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20987 (eval $ac_compile) 2>conftest.er1
20989 grep -v '^ *+' conftest.er1 >conftest.err
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } &&
20994 { ac_try='test -z "$ac_c_werror_flag"
20995 || test ! -s conftest.err'
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; } &&
21001 { ac_try='test -s conftest.$ac_objext'
21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 ba_cv_header_utime_h=yes
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ba_cv_header_utime_h=no
21014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21016 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21017 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21018 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
21019 #define HAVE_UTIME_H 1
21023 echo "$as_me:$LINENO: checking for socklen_t" >&5
21024 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21025 if test "${ba_cv_header_socklen_t+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21028 cat >conftest.$ac_ext <<_ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21035 #include <sys/types.h>
21036 #include <sys/socket.h>
21045 rm -f conftest.$ac_objext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21047 (eval $ac_compile) 2>conftest.er1
21049 grep -v '^ *+' conftest.er1 >conftest.err
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } &&
21054 { ac_try='test -z "$ac_c_werror_flag"
21055 || test ! -s conftest.err'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } &&
21061 { ac_try='test -s conftest.$ac_objext'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 ba_cv_header_socklen_t=yes
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 ba_cv_header_socklen_t=no
21074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21076 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21077 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21078 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21079 #define HAVE_SOCKLEN_T 1
21083 echo "$as_me:$LINENO: checking for bigendian" >&5
21084 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21085 if test "${ba_cv_bigendian+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 if test "$cross_compiling" = yes; then
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21099 rm -f conftest$ac_exeext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21101 (eval $ac_link) 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ba_cv_bigendian=yes
21112 echo "$as_me: program exited with status $ac_status" >&5
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ( exit $ac_status )
21119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21122 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21123 echo "${ECHO_T}$ba_cv_bigendian" >&6
21124 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21125 #define HAVE_BIGENDIAN 1
21130 ac_cpp='$CXXCPP $CPPFLAGS'
21131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21136 echo "$as_me:$LINENO: checking for typeof" >&5
21137 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21138 if test "${ba_cv_have_typeof+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 if test "$cross_compiling" = yes; then
21142 ba_cv_have_typeof=no
21144 cat >conftest.$ac_ext <<_ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h. */
21150 main(){char *a = 0; a = (typeof a)a;}
21152 rm -f conftest$ac_exeext
21153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21154 (eval $ac_link) 2>&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159 (eval $ac_try) 2>&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); }; }; then
21163 ba_cv_have_typeof=yes
21165 echo "$as_me: program exited with status $ac_status" >&5
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169 ( exit $ac_status )
21170 ba_cv_have_typeof=no
21172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21175 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21176 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21177 test $ba_cv_have_typeof = yes &&
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_TYPEOF 1
21183 ac_cpp='$CPP $CPPFLAGS'
21184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21189 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21190 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21191 if test "${ac_cv_c_const+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21204 /* FIXME: Include the comments suggested by Paul. */
21205 #ifndef __cplusplus
21206 /* Ultrix mips cc rejects this. */
21207 typedef int charset[2];
21209 /* SunOS 4.1.1 cc rejects this. */
21210 char const *const *ccp;
21212 /* NEC SVR4.0.2 mips cc rejects this. */
21213 struct point {int x, y;};
21214 static struct point const zero = {0,0};
21215 /* AIX XL C 1.02.0.0 rejects this.
21216 It does not let you subtract one const X* pointer from another in
21217 an arm of an if-expression whose if-part is not a constant
21219 const char *g = "string";
21220 ccp = &g + (g ? g-g : 0);
21221 /* HPUX 7.0 cc rejects these. */
21224 ccp = (char const *const *) p;
21225 { /* SCO 3.2v4 cc rejects this. */
21227 char const *s = 0 ? (char *) 0 : (char const *) 0;
21231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21232 int x[] = {25, 17};
21233 const int *foo = &x[0];
21236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21237 typedef const int *iptr;
21241 { /* AIX XL C 1.02.0.0 rejects this saying
21242 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21243 struct s { int j; const int *ap[3]; };
21244 struct s *b; b->j = 5;
21246 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21247 const int foo = 10;
21255 rm -f conftest.$ac_objext
21256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257 (eval $ac_compile) 2>conftest.er1
21259 grep -v '^ *+' conftest.er1 >conftest.err
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } &&
21264 { ac_try='test -z "$ac_c_werror_flag"
21265 || test ! -s conftest.err'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest.$ac_objext'
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; }; then
21279 echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.$ac_ext >&5
21284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21287 echo "${ECHO_T}$ac_cv_c_const" >&6
21288 if test $ac_cv_c_const = no; then
21290 cat >>confdefs.h <<\_ACEOF
21298 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21299 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21301 # The order of these tests is important.
21302 cat >conftest.$ac_ext <<_ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h. */
21308 #include <sys/statvfs.h>
21309 #include <sys/fstyp.h>
21311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21314 grep -v '^ *+' conftest.er1 >conftest.err
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } >/dev/null; then
21319 if test -s conftest.err; then
21320 ac_cpp_err=$ac_c_preproc_warn_flag
21321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21328 if test -z "$ac_cpp_err"; then
21329 cat >>confdefs.h <<\_ACEOF
21330 #define FSTYPE_STATVFS 1
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21339 rm -f conftest.err conftest.$ac_ext
21340 if test $fstype = no; then
21341 cat >conftest.$ac_ext <<_ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 #include <sys/statfs.h>
21348 #include <sys/fstyp.h>
21350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21353 grep -v '^ *+' conftest.er1 >conftest.err
21355 cat conftest.err >&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } >/dev/null; then
21358 if test -s conftest.err; then
21359 ac_cpp_err=$ac_c_preproc_warn_flag
21360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21367 if test -z "$ac_cpp_err"; then
21368 cat >>confdefs.h <<\_ACEOF
21369 #define FSTYPE_USG_STATFS 1
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21378 rm -f conftest.err conftest.$ac_ext
21380 if test $fstype = no; then
21381 cat >conftest.$ac_ext <<_ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 #include <sys/statfs.h>
21388 #include <sys/vmount.h>
21390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21393 grep -v '^ *+' conftest.er1 >conftest.err
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } >/dev/null; then
21398 if test -s conftest.err; then
21399 ac_cpp_err=$ac_c_preproc_warn_flag
21400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21407 if test -z "$ac_cpp_err"; then
21408 cat >>confdefs.h <<\_ACEOF
21409 #define FSTYPE_AIX_STATFS 1
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21418 rm -f conftest.err conftest.$ac_ext
21420 if test $fstype = no; then
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <mntent.h>
21429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } >/dev/null; then
21437 if test -s conftest.err; then
21438 ac_cpp_err=$ac_c_preproc_warn_flag
21439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21446 if test -z "$ac_cpp_err"; then
21447 cat >>confdefs.h <<\_ACEOF
21448 #define FSTYPE_MNTENT 1
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21457 rm -f conftest.err conftest.$ac_ext
21459 if test $fstype = no; then
21460 cat >conftest.$ac_ext <<_ACEOF
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h. */
21466 #include <sys/mount.h>
21469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21470 $EGREP "f_type;" >/dev/null 2>&1; then
21471 cat >>confdefs.h <<\_ACEOF
21472 #define FSTYPE_STATFS 1
21479 if test $fstype = no; then
21480 cat >conftest.$ac_ext <<_ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21486 #include <sys/mount.h>
21487 #include <sys/fs_types.h>
21489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21492 grep -v '^ *+' conftest.er1 >conftest.err
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } >/dev/null; then
21497 if test -s conftest.err; then
21498 ac_cpp_err=$ac_c_preproc_warn_flag
21499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21506 if test -z "$ac_cpp_err"; then
21507 cat >>confdefs.h <<\_ACEOF
21508 #define FSTYPE_GETMNT 1
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21517 rm -f conftest.err conftest.$ac_ext
21519 echo "$as_me:$LINENO: result: $fstype" >&5
21520 echo "${ECHO_T}$fstype" >&6
21522 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21523 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21524 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21525 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21529 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21531 # Is the header compilable?
21532 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21533 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21534 cat >conftest.$ac_ext <<_ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21540 $ac_includes_default
21541 #include <sys/statvfs.h>
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545 (eval $ac_compile) 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } &&
21552 { ac_try='test -z "$ac_c_werror_flag"
21553 || test ! -s conftest.err'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest.$ac_objext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_header_compiler=yes
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_header_compiler=no
21572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21574 echo "${ECHO_T}$ac_header_compiler" >&6
21576 # Is the header present?
21577 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21578 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <sys/statvfs.h>
21587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21590 grep -v '^ *+' conftest.er1 >conftest.err
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev/null; then
21595 if test -s conftest.err; then
21596 ac_cpp_err=$ac_c_preproc_warn_flag
21597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21604 if test -z "$ac_cpp_err"; then
21605 ac_header_preproc=yes
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_header_preproc=no
21612 rm -f conftest.err conftest.$ac_ext
21613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21614 echo "${ECHO_T}$ac_header_preproc" >&6
21616 # So? What about this header?
21617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21619 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21620 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21622 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21623 ac_header_preproc=yes
21626 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21627 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21629 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21631 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21633 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21635 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21637 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21640 ## ------------------------------------------ ##
21641 ## Report this to the AC_PACKAGE_NAME lists. ##
21642 ## ------------------------------------------ ##
21645 sed "s/^/$as_me: WARNING: /" >&2
21648 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21649 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21650 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21651 echo $ECHO_N "(cached) $ECHO_C" >&6
21653 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21656 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21659 if test $ac_cv_header_sys_statvfs_h = yes; then
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_SYS_STATVFS_H 1
21669 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21670 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21671 if test "${ac_cv_type_signal+set}" = set; then
21672 echo $ECHO_N "(cached) $ECHO_C" >&6
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 #include <sys/types.h>
21681 #include <signal.h>
21686 extern "C" void (*signal (int, void (*)(int)))(int);
21688 void (*signal ()) ();
21699 rm -f conftest.$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>conftest.er1
21703 grep -v '^ *+' conftest.er1 >conftest.err
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
21708 { ac_try='test -z "$ac_c_werror_flag"
21709 || test ! -s conftest.err'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest.$ac_objext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 ac_cv_type_signal=void
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_cv_type_signal=int
21728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21730 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21731 echo "${ECHO_T}$ac_cv_type_signal" >&6
21733 cat >>confdefs.h <<_ACEOF
21734 #define RETSIGTYPE $ac_cv_type_signal
21739 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21740 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21741 if test "${bash_cv_signal_vintage+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 cat >conftest.$ac_ext <<_ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21751 #include <signal.h>
21757 struct sigaction sa;
21758 sigemptyset(&ss); sigsuspend(&ss);
21759 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21760 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21766 rm -f conftest.$ac_objext conftest$ac_exeext
21767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21768 (eval $ac_link) 2>conftest.er1
21770 grep -v '^ *+' conftest.er1 >conftest.err
21772 cat conftest.err >&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } &&
21775 { ac_try='test -z "$ac_c_werror_flag"
21776 || test ! -s conftest.err'
21777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778 (eval $ac_try) 2>&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; } &&
21782 { ac_try='test -s conftest$ac_exeext'
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; }; then
21788 bash_cv_signal_vintage="posix"
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21794 cat >conftest.$ac_ext <<_ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 #include <signal.h>
21805 int mask = sigmask(SIGINT);
21806 sigsetmask(mask); sigblock(mask); sigpause(mask);
21812 rm -f conftest.$ac_objext conftest$ac_exeext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21814 (eval $ac_link) 2>conftest.er1
21816 grep -v '^ *+' conftest.er1 >conftest.err
21818 cat conftest.err >&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
21821 { ac_try='test -z "$ac_c_werror_flag"
21822 || test ! -s conftest.err'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; } &&
21828 { ac_try='test -s conftest$ac_exeext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 bash_cv_signal_vintage="4.2bsd"
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21840 cat >conftest.$ac_ext <<_ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21847 #include <signal.h>
21848 RETSIGTYPE foo() { }
21853 int mask = sigmask(SIGINT);
21854 sigset(SIGINT, foo); sigrelse(SIGINT);
21855 sighold(SIGINT); sigpause(SIGINT);
21861 rm -f conftest.$ac_objext conftest$ac_exeext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21863 (eval $ac_link) 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } &&
21870 { ac_try='test -z "$ac_c_werror_flag"
21871 || test ! -s conftest.err'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; } &&
21877 { ac_try='test -s conftest$ac_exeext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 bash_cv_signal_vintage="svr3"
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 bash_cv_signal_vintage="v7"
21891 rm -f conftest.err conftest.$ac_objext \
21892 conftest$ac_exeext conftest.$ac_ext
21895 rm -f conftest.err conftest.$ac_objext \
21896 conftest$ac_exeext conftest.$ac_ext
21899 rm -f conftest.err conftest.$ac_objext \
21900 conftest$ac_exeext conftest.$ac_ext
21904 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21905 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21906 if test "$bash_cv_signal_vintage" = "posix"; then
21907 cat >>confdefs.h <<\_ACEOF
21908 #define HAVE_POSIX_SIGNALS 1
21911 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21912 cat >>confdefs.h <<\_ACEOF
21913 #define HAVE_BSD_SIGNALS 1
21916 elif test "$bash_cv_signal_vintage" = "svr3"; then
21917 cat >>confdefs.h <<\_ACEOF
21918 #define HAVE_USG_SIGHOLD 1
21923 echo "$as_me:$LINENO: checking for mode_t" >&5
21924 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21925 if test "${ac_cv_type_mode_t+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 cat >conftest.$ac_ext <<_ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h. */
21934 $ac_includes_default
21940 if (sizeof (mode_t))
21946 rm -f conftest.$ac_objext
21947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21948 (eval $ac_compile) 2>conftest.er1
21950 grep -v '^ *+' conftest.er1 >conftest.err
21952 cat conftest.err >&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } &&
21955 { ac_try='test -z "$ac_c_werror_flag"
21956 || test ! -s conftest.err'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; } &&
21962 { ac_try='test -s conftest.$ac_objext'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; }; then
21968 ac_cv_type_mode_t=yes
21970 echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21973 ac_cv_type_mode_t=no
21975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21977 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21978 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21979 if test $ac_cv_type_mode_t = yes; then
21983 cat >>confdefs.h <<_ACEOF
21989 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21990 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21991 if test "${ac_cv_type_uid_t+set}" = set; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21994 cat >conftest.$ac_ext <<_ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h. */
22000 #include <sys/types.h>
22003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22004 $EGREP "uid_t" >/dev/null 2>&1; then
22005 ac_cv_type_uid_t=yes
22007 ac_cv_type_uid_t=no
22012 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22013 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22014 if test $ac_cv_type_uid_t = no; then
22016 cat >>confdefs.h <<\_ACEOF
22021 cat >>confdefs.h <<\_ACEOF
22027 echo "$as_me:$LINENO: checking for size_t" >&5
22028 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22029 if test "${ac_cv_type_size_t+set}" = set; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22032 cat >conftest.$ac_ext <<_ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22038 $ac_includes_default
22044 if (sizeof (size_t))
22050 rm -f conftest.$ac_objext
22051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22052 (eval $ac_compile) 2>conftest.er1
22054 grep -v '^ *+' conftest.er1 >conftest.err
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } &&
22059 { ac_try='test -z "$ac_c_werror_flag"
22060 || test ! -s conftest.err'
22061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062 (eval $ac_try) 2>&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; } &&
22066 { ac_try='test -s conftest.$ac_objext'
22067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068 (eval $ac_try) 2>&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; }; then
22072 ac_cv_type_size_t=yes
22074 echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22077 ac_cv_type_size_t=no
22079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22081 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22082 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22083 if test $ac_cv_type_size_t = yes; then
22087 cat >>confdefs.h <<_ACEOF
22088 #define size_t unsigned
22093 echo "$as_me:$LINENO: checking for pid_t" >&5
22094 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22095 if test "${ac_cv_type_pid_t+set}" = set; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 $ac_includes_default
22110 if (sizeof (pid_t))
22116 rm -f conftest.$ac_objext
22117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22118 (eval $ac_compile) 2>conftest.er1
22120 grep -v '^ *+' conftest.er1 >conftest.err
22122 cat conftest.err >&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } &&
22125 { ac_try='test -z "$ac_c_werror_flag"
22126 || test ! -s conftest.err'
22127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128 (eval $ac_try) 2>&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; } &&
22132 { ac_try='test -s conftest.$ac_objext'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }; then
22138 ac_cv_type_pid_t=yes
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 ac_cv_type_pid_t=no
22145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22147 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22148 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22149 if test $ac_cv_type_pid_t = yes; then
22153 cat >>confdefs.h <<_ACEOF
22159 echo "$as_me:$LINENO: checking for off_t" >&5
22160 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22161 if test "${ac_cv_type_off_t+set}" = set; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 cat >conftest.$ac_ext <<_ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h. */
22170 $ac_includes_default
22176 if (sizeof (off_t))
22182 rm -f conftest.$ac_objext
22183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22184 (eval $ac_compile) 2>conftest.er1
22186 grep -v '^ *+' conftest.er1 >conftest.err
22188 cat conftest.err >&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } &&
22191 { ac_try='test -z "$ac_c_werror_flag"
22192 || test ! -s conftest.err'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; } &&
22198 { ac_try='test -s conftest.$ac_objext'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; }; then
22204 ac_cv_type_off_t=yes
22206 echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22209 ac_cv_type_off_t=no
22211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22213 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22214 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22215 if test $ac_cv_type_off_t = yes; then
22219 cat >>confdefs.h <<_ACEOF
22225 echo "$as_me:$LINENO: checking for ino_t" >&5
22226 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22227 if test "${ac_cv_type_ino_t+set}" = set; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22230 cat >conftest.$ac_ext <<_ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 $ac_includes_default
22242 if (sizeof (ino_t))
22248 rm -f conftest.$ac_objext
22249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22250 (eval $ac_compile) 2>conftest.er1
22252 grep -v '^ *+' conftest.er1 >conftest.err
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
22257 { ac_try='test -z "$ac_c_werror_flag"
22258 || test ! -s conftest.err'
22259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22260 (eval $ac_try) 2>&5
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); }; } &&
22264 { ac_try='test -s conftest.$ac_objext'
22265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266 (eval $ac_try) 2>&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }; }; then
22270 ac_cv_type_ino_t=yes
22272 echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22275 ac_cv_type_ino_t=no
22277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22279 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22280 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22281 if test $ac_cv_type_ino_t = yes; then
22285 cat >>confdefs.h <<_ACEOF
22286 #define ino_t unsigned long
22291 echo "$as_me:$LINENO: checking for dev_t" >&5
22292 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22293 if test "${ac_cv_type_dev_t+set}" = set; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22296 cat >conftest.$ac_ext <<_ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22302 $ac_includes_default
22308 if (sizeof (dev_t))
22314 rm -f conftest.$ac_objext
22315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22316 (eval $ac_compile) 2>conftest.er1
22318 grep -v '^ *+' conftest.er1 >conftest.err
22320 cat conftest.err >&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } &&
22323 { ac_try='test -z "$ac_c_werror_flag"
22324 || test ! -s conftest.err'
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; } &&
22330 { ac_try='test -s conftest.$ac_objext'
22331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332 (eval $ac_try) 2>&5
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); }; }; then
22336 ac_cv_type_dev_t=yes
22338 echo "$as_me: failed program was:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22341 ac_cv_type_dev_t=no
22343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22345 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22346 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22347 if test $ac_cv_type_dev_t = yes; then
22351 cat >>confdefs.h <<_ACEOF
22352 #define dev_t unsigned long
22357 echo "$as_me:$LINENO: checking for daddr_t" >&5
22358 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22359 if test "${ac_cv_type_daddr_t+set}" = set; then
22360 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 $ac_includes_default
22374 if (sizeof (daddr_t))
22380 rm -f conftest.$ac_objext
22381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22382 (eval $ac_compile) 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } &&
22389 { ac_try='test -z "$ac_c_werror_flag"
22390 || test ! -s conftest.err'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; } &&
22396 { ac_try='test -s conftest.$ac_objext'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; }; then
22402 ac_cv_type_daddr_t=yes
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22407 ac_cv_type_daddr_t=no
22409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22411 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22412 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22413 if test $ac_cv_type_daddr_t = yes; then
22417 cat >>confdefs.h <<_ACEOF
22418 #define daddr_t long
22423 echo "$as_me:$LINENO: checking for major_t" >&5
22424 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22425 if test "${ac_cv_type_major_t+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 cat >conftest.$ac_ext <<_ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22434 $ac_includes_default
22440 if (sizeof (major_t))
22446 rm -f conftest.$ac_objext
22447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22448 (eval $ac_compile) 2>conftest.er1
22450 grep -v '^ *+' conftest.er1 >conftest.err
22452 cat conftest.err >&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } &&
22455 { ac_try='test -z "$ac_c_werror_flag"
22456 || test ! -s conftest.err'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; } &&
22462 { ac_try='test -s conftest.$ac_objext'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; }; then
22468 ac_cv_type_major_t=yes
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22473 ac_cv_type_major_t=no
22475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22477 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22478 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22479 if test $ac_cv_type_major_t = yes; then
22483 cat >>confdefs.h <<_ACEOF
22484 #define major_t int
22489 echo "$as_me:$LINENO: checking for minor_t" >&5
22490 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22491 if test "${ac_cv_type_minor_t+set}" = set; then
22492 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 cat >conftest.$ac_ext <<_ACEOF
22497 cat confdefs.h >>conftest.$ac_ext
22498 cat >>conftest.$ac_ext <<_ACEOF
22499 /* end confdefs.h. */
22500 $ac_includes_default
22506 if (sizeof (minor_t))
22512 rm -f conftest.$ac_objext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22514 (eval $ac_compile) 2>conftest.er1
22516 grep -v '^ *+' conftest.er1 >conftest.err
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } &&
22521 { ac_try='test -z "$ac_c_werror_flag"
22522 || test ! -s conftest.err'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; } &&
22528 { ac_try='test -s conftest.$ac_objext'
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 ac_cv_type_minor_t=yes
22536 echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 ac_cv_type_minor_t=no
22541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22543 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22544 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22545 if test $ac_cv_type_minor_t = yes; then
22549 cat >>confdefs.h <<_ACEOF
22550 #define minor_t int
22555 echo "$as_me:$LINENO: checking for ssize_t" >&5
22556 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22557 if test "${ac_cv_type_ssize_t+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22560 cat >conftest.$ac_ext <<_ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 $ac_includes_default
22572 if (sizeof (ssize_t))
22578 rm -f conftest.$ac_objext
22579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22580 (eval $ac_compile) 2>conftest.er1
22582 grep -v '^ *+' conftest.er1 >conftest.err
22584 cat conftest.err >&5
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); } &&
22587 { ac_try='test -z "$ac_c_werror_flag"
22588 || test ! -s conftest.err'
22589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22590 (eval $ac_try) 2>&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); }; } &&
22594 { ac_try='test -s conftest.$ac_objext'
22595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596 (eval $ac_try) 2>&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }; }; then
22600 ac_cv_type_ssize_t=yes
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_cv_type_ssize_t=no
22607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22609 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22610 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22611 if test $ac_cv_type_ssize_t = yes; then
22615 cat >>confdefs.h <<_ACEOF
22616 #define ssize_t int
22621 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22622 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22623 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 cat >conftest.$ac_ext <<_ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22632 $ac_includes_default
22636 static struct stat ac_aggr;
22637 if (ac_aggr.st_blocks)
22643 rm -f conftest.$ac_objext
22644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22645 (eval $ac_compile) 2>conftest.er1
22647 grep -v '^ *+' conftest.er1 >conftest.err
22649 cat conftest.err >&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); } &&
22652 { ac_try='test -z "$ac_c_werror_flag"
22653 || test ! -s conftest.err'
22654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655 (eval $ac_try) 2>&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); }; } &&
22659 { ac_try='test -s conftest.$ac_objext'
22660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661 (eval $ac_try) 2>&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); }; }; then
22665 ac_cv_member_struct_stat_st_blocks=yes
22667 echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22670 cat >conftest.$ac_ext <<_ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22676 $ac_includes_default
22680 static struct stat ac_aggr;
22681 if (sizeof ac_aggr.st_blocks)
22687 rm -f conftest.$ac_objext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22689 (eval $ac_compile) 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } &&
22696 { ac_try='test -z "$ac_c_werror_flag"
22697 || test ! -s conftest.err'
22698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699 (eval $ac_try) 2>&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; } &&
22703 { ac_try='test -s conftest.$ac_objext'
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; }; then
22709 ac_cv_member_struct_stat_st_blocks=yes
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22714 ac_cv_member_struct_stat_st_blocks=no
22716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22720 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22721 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22722 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22724 cat >>confdefs.h <<_ACEOF
22725 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22729 cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_ST_BLOCKS 1
22735 "fileblocks.$ac_objext" | \
22736 *" fileblocks.$ac_objext" | \
22737 "fileblocks.$ac_objext "* | \
22738 *" fileblocks.$ac_objext "* ) ;;
22739 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22746 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22747 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22748 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22749 echo $ECHO_N "(cached) $ECHO_C" >&6
22751 cat >conftest.$ac_ext <<_ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22757 $ac_includes_default
22761 static struct stat ac_aggr;
22762 if (ac_aggr.st_rdev)
22768 rm -f conftest.$ac_objext
22769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22770 (eval $ac_compile) 2>conftest.er1
22772 grep -v '^ *+' conftest.er1 >conftest.err
22774 cat conftest.err >&5
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } &&
22777 { ac_try='test -z "$ac_c_werror_flag"
22778 || test ! -s conftest.err'
22779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22780 (eval $ac_try) 2>&5
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); }; } &&
22784 { ac_try='test -s conftest.$ac_objext'
22785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22786 (eval $ac_try) 2>&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); }; }; then
22790 ac_cv_member_struct_stat_st_rdev=yes
22792 echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22795 cat >conftest.$ac_ext <<_ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 $ac_includes_default
22805 static struct stat ac_aggr;
22806 if (sizeof ac_aggr.st_rdev)
22812 rm -f conftest.$ac_objext
22813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22814 (eval $ac_compile) 2>conftest.er1
22816 grep -v '^ *+' conftest.er1 >conftest.err
22818 cat conftest.err >&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); } &&
22821 { ac_try='test -z "$ac_c_werror_flag"
22822 || test ! -s conftest.err'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; } &&
22828 { ac_try='test -s conftest.$ac_objext'
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; }; then
22834 ac_cv_member_struct_stat_st_rdev=yes
22836 echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22839 ac_cv_member_struct_stat_st_rdev=no
22841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22846 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22847 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22849 cat >>confdefs.h <<_ACEOF
22850 #define HAVE_STRUCT_STAT_ST_RDEV 1
22854 cat >>confdefs.h <<\_ACEOF
22855 #define HAVE_ST_RDEV 1
22861 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22862 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22863 if test "${ac_cv_struct_tm+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22866 cat >conftest.$ac_ext <<_ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 #include <sys/types.h>
22878 struct tm *tp; tp->tm_sec;
22883 rm -f conftest.$ac_objext
22884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22885 (eval $ac_compile) 2>conftest.er1
22887 grep -v '^ *+' conftest.er1 >conftest.err
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } &&
22892 { ac_try='test -z "$ac_c_werror_flag"
22893 || test ! -s conftest.err'
22894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895 (eval $ac_try) 2>&5
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); }; } &&
22899 { ac_try='test -s conftest.$ac_objext'
22900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22901 (eval $ac_try) 2>&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); }; }; then
22905 ac_cv_struct_tm=time.h
22907 echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22910 ac_cv_struct_tm=sys/time.h
22912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22914 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22915 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22916 if test $ac_cv_struct_tm = sys/time.h; then
22918 cat >>confdefs.h <<\_ACEOF
22919 #define TM_IN_SYS_TIME 1
22924 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22925 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22926 if test "${ac_cv_c_const+set}" = set; then
22927 echo $ECHO_N "(cached) $ECHO_C" >&6
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22939 /* FIXME: Include the comments suggested by Paul. */
22940 #ifndef __cplusplus
22941 /* Ultrix mips cc rejects this. */
22942 typedef int charset[2];
22944 /* SunOS 4.1.1 cc rejects this. */
22945 char const *const *ccp;
22947 /* NEC SVR4.0.2 mips cc rejects this. */
22948 struct point {int x, y;};
22949 static struct point const zero = {0,0};
22950 /* AIX XL C 1.02.0.0 rejects this.
22951 It does not let you subtract one const X* pointer from another in
22952 an arm of an if-expression whose if-part is not a constant
22954 const char *g = "string";
22955 ccp = &g + (g ? g-g : 0);
22956 /* HPUX 7.0 cc rejects these. */
22959 ccp = (char const *const *) p;
22960 { /* SCO 3.2v4 cc rejects this. */
22962 char const *s = 0 ? (char *) 0 : (char const *) 0;
22966 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22967 int x[] = {25, 17};
22968 const int *foo = &x[0];
22971 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22972 typedef const int *iptr;
22976 { /* AIX XL C 1.02.0.0 rejects this saying
22977 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22978 struct s { int j; const int *ap[3]; };
22979 struct s *b; b->j = 5;
22981 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22982 const int foo = 10;
22990 rm -f conftest.$ac_objext
22991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22992 (eval $ac_compile) 2>conftest.er1
22994 grep -v '^ *+' conftest.er1 >conftest.err
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
22999 { ac_try='test -z "$ac_c_werror_flag"
23000 || test ! -s conftest.err'
23001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002 (eval $ac_try) 2>&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; } &&
23006 { ac_try='test -s conftest.$ac_objext'
23007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008 (eval $ac_try) 2>&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }; }; then
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23021 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23022 echo "${ECHO_T}$ac_cv_c_const" >&6
23023 if test $ac_cv_c_const = no; then
23025 cat >>confdefs.h <<\_ACEOF
23033 echo "$as_me:$LINENO: checking for char" >&5
23034 echo $ECHO_N "checking for char... $ECHO_C" >&6
23035 if test "${ac_cv_type_char+set}" = set; then
23036 echo $ECHO_N "(cached) $ECHO_C" >&6
23038 cat >conftest.$ac_ext <<_ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h. */
23044 $ac_includes_default
23056 rm -f conftest.$ac_objext
23057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23058 (eval $ac_compile) 2>conftest.er1
23060 grep -v '^ *+' conftest.er1 >conftest.err
23062 cat conftest.err >&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } &&
23065 { ac_try='test -z "$ac_c_werror_flag"
23066 || test ! -s conftest.err'
23067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068 (eval $ac_try) 2>&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); }; } &&
23072 { ac_try='test -s conftest.$ac_objext'
23073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23074 (eval $ac_try) 2>&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); }; }; then
23078 ac_cv_type_char=yes
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23087 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23088 echo "${ECHO_T}$ac_cv_type_char" >&6
23090 echo "$as_me:$LINENO: checking size of char" >&5
23091 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23092 if test "${ac_cv_sizeof_char+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23095 if test "$ac_cv_type_char" = yes; then
23096 # The cast to unsigned long works around a bug in the HP C Compiler
23097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23099 # This bug is HP SR number 8606223364.
23100 if test "$cross_compiling" = yes; then
23101 # Depending upon the size, compute the lo and hi bounds.
23102 cat >conftest.$ac_ext <<_ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h. */
23108 $ac_includes_default
23112 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23119 rm -f conftest.$ac_objext
23120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23121 (eval $ac_compile) 2>conftest.er1
23123 grep -v '^ *+' conftest.er1 >conftest.err
23125 cat conftest.err >&5
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } &&
23128 { ac_try='test -z "$ac_c_werror_flag"
23129 || test ! -s conftest.err'
23130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23131 (eval $ac_try) 2>&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); }; } &&
23135 { ac_try='test -s conftest.$ac_objext'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23143 cat >conftest.$ac_ext <<_ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 $ac_includes_default
23153 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23160 rm -f conftest.$ac_objext
23161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23162 (eval $ac_compile) 2>conftest.er1
23164 grep -v '^ *+' conftest.er1 >conftest.err
23166 cat conftest.err >&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
23169 { ac_try='test -z "$ac_c_werror_flag"
23170 || test ! -s conftest.err'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } &&
23176 { ac_try='test -s conftest.$ac_objext'
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23182 ac_hi=$ac_mid; break
23184 echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23187 ac_lo=`expr $ac_mid + 1`
23188 if test $ac_lo -le $ac_mid; then
23192 ac_mid=`expr 2 '*' $ac_mid + 1`
23194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 cat >conftest.$ac_ext <<_ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23206 $ac_includes_default
23210 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23217 rm -f conftest.$ac_objext
23218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23219 (eval $ac_compile) 2>conftest.er1
23221 grep -v '^ *+' conftest.er1 >conftest.err
23223 cat conftest.err >&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); } &&
23226 { ac_try='test -z "$ac_c_werror_flag"
23227 || test ! -s conftest.err'
23228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229 (eval $ac_try) 2>&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); }; } &&
23233 { ac_try='test -s conftest.$ac_objext'
23234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235 (eval $ac_try) 2>&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); }; }; then
23241 cat >conftest.$ac_ext <<_ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h. */
23247 $ac_includes_default
23251 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23258 rm -f conftest.$ac_objext
23259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23260 (eval $ac_compile) 2>conftest.er1
23262 grep -v '^ *+' conftest.er1 >conftest.err
23264 cat conftest.err >&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } &&
23267 { ac_try='test -z "$ac_c_werror_flag"
23268 || test ! -s conftest.err'
23269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; } &&
23274 { ac_try='test -s conftest.$ac_objext'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; }; then
23280 ac_lo=$ac_mid; break
23282 echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23285 ac_hi=`expr '(' $ac_mid ')' - 1`
23286 if test $ac_mid -le $ac_hi; then
23290 ac_mid=`expr 2 '*' $ac_mid`
23292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23303 # Binary search between lo and hi bounds.
23304 while test "x$ac_lo" != "x$ac_hi"; do
23305 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23306 cat >conftest.$ac_ext <<_ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 $ac_includes_default
23316 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23323 rm -f conftest.$ac_objext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23325 (eval $ac_compile) 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
23332 { ac_try='test -z "$ac_c_werror_flag"
23333 || test ! -s conftest.err'
23334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335 (eval $ac_try) 2>&5
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; } &&
23339 { ac_try='test -s conftest.$ac_objext'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23347 echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23350 ac_lo=`expr '(' $ac_mid ')' + 1`
23352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23355 ?*) ac_cv_sizeof_char=$ac_lo;;
23356 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23357 See \`config.log' for more details." >&5
23358 echo "$as_me: error: cannot compute sizeof (char), 77
23359 See \`config.log' for more details." >&2;}
23360 { (exit 1); exit 1; }; } ;;
23363 if test "$cross_compiling" = yes; then
23364 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23365 See \`config.log' for more details." >&5
23366 echo "$as_me: error: cannot run test program while cross compiling
23367 See \`config.log' for more details." >&2;}
23368 { (exit 1); exit 1; }; }
23370 cat >conftest.$ac_ext <<_ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h. */
23376 $ac_includes_default
23377 long longval () { return (long) (sizeof (char)); }
23378 unsigned long ulongval () { return (long) (sizeof (char)); }
23380 #include <stdlib.h>
23385 FILE *f = fopen ("conftest.val", "w");
23388 if (((long) (sizeof (char))) < 0)
23390 long i = longval ();
23391 if (i != ((long) (sizeof (char))))
23393 fprintf (f, "%ld\n", i);
23397 unsigned long i = ulongval ();
23398 if (i != ((long) (sizeof (char))))
23400 fprintf (f, "%lu\n", i);
23402 exit (ferror (f) || fclose (f) != 0);
23408 rm -f conftest$ac_exeext
23409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23410 (eval $ac_link) 2>&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 ac_cv_sizeof_char=`cat conftest.val`
23421 echo "$as_me: program exited with status $ac_status" >&5
23422 echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23425 ( exit $ac_status )
23426 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23427 See \`config.log' for more details." >&5
23428 echo "$as_me: error: cannot compute sizeof (char), 77
23429 See \`config.log' for more details." >&2;}
23430 { (exit 1); exit 1; }; }
23432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23437 ac_cv_sizeof_char=0
23440 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23441 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23442 cat >>confdefs.h <<_ACEOF
23443 #define SIZEOF_CHAR $ac_cv_sizeof_char
23447 echo "$as_me:$LINENO: checking for short int" >&5
23448 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23449 if test "${ac_cv_type_short_int+set}" = set; then
23450 echo $ECHO_N "(cached) $ECHO_C" >&6
23452 cat >conftest.$ac_ext <<_ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 $ac_includes_default
23462 if ((short int *) 0)
23464 if (sizeof (short int))
23470 rm -f conftest.$ac_objext
23471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23472 (eval $ac_compile) 2>conftest.er1
23474 grep -v '^ *+' conftest.er1 >conftest.err
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } &&
23479 { ac_try='test -z "$ac_c_werror_flag"
23480 || test ! -s conftest.err'
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; } &&
23486 { ac_try='test -s conftest.$ac_objext'
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; }; then
23492 ac_cv_type_short_int=yes
23494 echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23497 ac_cv_type_short_int=no
23499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23501 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23502 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23504 echo "$as_me:$LINENO: checking size of short int" >&5
23505 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23506 if test "${ac_cv_sizeof_short_int+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23509 if test "$ac_cv_type_short_int" = yes; then
23510 # The cast to unsigned long works around a bug in the HP C Compiler
23511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23513 # This bug is HP SR number 8606223364.
23514 if test "$cross_compiling" = yes; then
23515 # Depending upon the size, compute the lo and hi bounds.
23516 cat >conftest.$ac_ext <<_ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 $ac_includes_default
23526 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23533 rm -f conftest.$ac_objext
23534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23535 (eval $ac_compile) 2>conftest.er1
23537 grep -v '^ *+' conftest.er1 >conftest.err
23539 cat conftest.err >&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); } &&
23542 { ac_try='test -z "$ac_c_werror_flag"
23543 || test ! -s conftest.err'
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; } &&
23549 { ac_try='test -s conftest.$ac_objext'
23550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23551 (eval $ac_try) 2>&5
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; }; then
23557 cat >conftest.$ac_ext <<_ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h. */
23563 $ac_includes_default
23567 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23574 rm -f conftest.$ac_objext
23575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23576 (eval $ac_compile) 2>conftest.er1
23578 grep -v '^ *+' conftest.er1 >conftest.err
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } &&
23583 { ac_try='test -z "$ac_c_werror_flag"
23584 || test ! -s conftest.err'
23585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586 (eval $ac_try) 2>&5
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; } &&
23590 { ac_try='test -s conftest.$ac_objext'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 ac_hi=$ac_mid; break
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 ac_lo=`expr $ac_mid + 1`
23602 if test $ac_lo -le $ac_mid; then
23606 ac_mid=`expr 2 '*' $ac_mid + 1`
23608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23611 echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23614 cat >conftest.$ac_ext <<_ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620 $ac_includes_default
23624 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23631 rm -f conftest.$ac_objext
23632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23633 (eval $ac_compile) 2>conftest.er1
23635 grep -v '^ *+' conftest.er1 >conftest.err
23637 cat conftest.err >&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); } &&
23640 { ac_try='test -z "$ac_c_werror_flag"
23641 || test ! -s conftest.err'
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; } &&
23647 { ac_try='test -s conftest.$ac_objext'
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 $ac_includes_default
23665 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23672 rm -f conftest.$ac_objext
23673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23674 (eval $ac_compile) 2>conftest.er1
23676 grep -v '^ *+' conftest.er1 >conftest.err
23678 cat conftest.err >&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } &&
23681 { ac_try='test -z "$ac_c_werror_flag"
23682 || test ! -s conftest.err'
23683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684 (eval $ac_try) 2>&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); }; } &&
23688 { ac_try='test -s conftest.$ac_objext'
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; }; then
23694 ac_lo=$ac_mid; break
23696 echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23699 ac_hi=`expr '(' $ac_mid ')' - 1`
23700 if test $ac_mid -le $ac_hi; then
23704 ac_mid=`expr 2 '*' $ac_mid`
23706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23717 # Binary search between lo and hi bounds.
23718 while test "x$ac_lo" != "x$ac_hi"; do
23719 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23720 cat >conftest.$ac_ext <<_ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23726 $ac_includes_default
23730 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23737 rm -f conftest.$ac_objext
23738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23739 (eval $ac_compile) 2>conftest.er1
23741 grep -v '^ *+' conftest.er1 >conftest.err
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } &&
23746 { ac_try='test -z "$ac_c_werror_flag"
23747 || test ! -s conftest.err'
23748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23749 (eval $ac_try) 2>&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); }; } &&
23753 { ac_try='test -s conftest.$ac_objext'
23754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755 (eval $ac_try) 2>&5
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; }; then
23761 echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23764 ac_lo=`expr '(' $ac_mid ')' + 1`
23766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23769 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23770 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23771 See \`config.log' for more details." >&5
23772 echo "$as_me: error: cannot compute sizeof (short int), 77
23773 See \`config.log' for more details." >&2;}
23774 { (exit 1); exit 1; }; } ;;
23777 if test "$cross_compiling" = yes; then
23778 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23779 See \`config.log' for more details." >&5
23780 echo "$as_me: error: cannot run test program while cross compiling
23781 See \`config.log' for more details." >&2;}
23782 { (exit 1); exit 1; }; }
23784 cat >conftest.$ac_ext <<_ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 $ac_includes_default
23791 long longval () { return (long) (sizeof (short int)); }
23792 unsigned long ulongval () { return (long) (sizeof (short int)); }
23794 #include <stdlib.h>
23799 FILE *f = fopen ("conftest.val", "w");
23802 if (((long) (sizeof (short int))) < 0)
23804 long i = longval ();
23805 if (i != ((long) (sizeof (short int))))
23807 fprintf (f, "%ld\n", i);
23811 unsigned long i = ulongval ();
23812 if (i != ((long) (sizeof (short int))))
23814 fprintf (f, "%lu\n", i);
23816 exit (ferror (f) || fclose (f) != 0);
23822 rm -f conftest$ac_exeext
23823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23824 (eval $ac_link) 2>&5
23826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829 (eval $ac_try) 2>&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); }; }; then
23833 ac_cv_sizeof_short_int=`cat conftest.val`
23835 echo "$as_me: program exited with status $ac_status" >&5
23836 echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23839 ( exit $ac_status )
23840 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23841 See \`config.log' for more details." >&5
23842 echo "$as_me: error: cannot compute sizeof (short int), 77
23843 See \`config.log' for more details." >&2;}
23844 { (exit 1); exit 1; }; }
23846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23851 ac_cv_sizeof_short_int=0
23854 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23855 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23856 cat >>confdefs.h <<_ACEOF
23857 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23861 echo "$as_me:$LINENO: checking for int" >&5
23862 echo $ECHO_N "checking for int... $ECHO_C" >&6
23863 if test "${ac_cv_type_int+set}" = set; then
23864 echo $ECHO_N "(cached) $ECHO_C" >&6
23866 cat >conftest.$ac_ext <<_ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h. */
23872 $ac_includes_default
23884 rm -f conftest.$ac_objext
23885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23886 (eval $ac_compile) 2>conftest.er1
23888 grep -v '^ *+' conftest.er1 >conftest.err
23890 cat conftest.err >&5
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } &&
23893 { ac_try='test -z "$ac_c_werror_flag"
23894 || test ! -s conftest.err'
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; } &&
23900 { ac_try='test -s conftest.$ac_objext'
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; }; then
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23915 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23916 echo "${ECHO_T}$ac_cv_type_int" >&6
23918 echo "$as_me:$LINENO: checking size of int" >&5
23919 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23920 if test "${ac_cv_sizeof_int+set}" = set; then
23921 echo $ECHO_N "(cached) $ECHO_C" >&6
23923 if test "$ac_cv_type_int" = yes; then
23924 # The cast to unsigned long works around a bug in the HP C Compiler
23925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23927 # This bug is HP SR number 8606223364.
23928 if test "$cross_compiling" = yes; then
23929 # Depending upon the size, compute the lo and hi bounds.
23930 cat >conftest.$ac_ext <<_ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h. */
23936 $ac_includes_default
23940 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23947 rm -f conftest.$ac_objext
23948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23949 (eval $ac_compile) 2>conftest.er1
23951 grep -v '^ *+' conftest.er1 >conftest.err
23953 cat conftest.err >&5
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } &&
23956 { ac_try='test -z "$ac_c_werror_flag"
23957 || test ! -s conftest.err'
23958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23959 (eval $ac_try) 2>&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); }; } &&
23963 { ac_try='test -s conftest.$ac_objext'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; }; then
23971 cat >conftest.$ac_ext <<_ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23977 $ac_includes_default
23981 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23988 rm -f conftest.$ac_objext
23989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23990 (eval $ac_compile) 2>conftest.er1
23992 grep -v '^ *+' conftest.er1 >conftest.err
23994 cat conftest.err >&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } &&
23997 { ac_try='test -z "$ac_c_werror_flag"
23998 || test ! -s conftest.err'
23999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000 (eval $ac_try) 2>&5
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); }; } &&
24004 { ac_try='test -s conftest.$ac_objext'
24005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006 (eval $ac_try) 2>&5
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); }; }; then
24010 ac_hi=$ac_mid; break
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 ac_lo=`expr $ac_mid + 1`
24016 if test $ac_lo -le $ac_mid; then
24020 ac_mid=`expr 2 '*' $ac_mid + 1`
24022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24025 echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24028 cat >conftest.$ac_ext <<_ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 $ac_includes_default
24038 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24045 rm -f conftest.$ac_objext
24046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24047 (eval $ac_compile) 2>conftest.er1
24049 grep -v '^ *+' conftest.er1 >conftest.err
24051 cat conftest.err >&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } &&
24054 { ac_try='test -z "$ac_c_werror_flag"
24055 || test ! -s conftest.err'
24056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057 (eval $ac_try) 2>&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; } &&
24061 { ac_try='test -s conftest.$ac_objext'
24062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063 (eval $ac_try) 2>&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); }; }; then
24069 cat >conftest.$ac_ext <<_ACEOF
24072 cat confdefs.h >>conftest.$ac_ext
24073 cat >>conftest.$ac_ext <<_ACEOF
24074 /* end confdefs.h. */
24075 $ac_includes_default
24079 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24086 rm -f conftest.$ac_objext
24087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24088 (eval $ac_compile) 2>conftest.er1
24090 grep -v '^ *+' conftest.er1 >conftest.err
24092 cat conftest.err >&5
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); } &&
24095 { ac_try='test -z "$ac_c_werror_flag"
24096 || test ! -s conftest.err'
24097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098 (eval $ac_try) 2>&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); }; } &&
24102 { ac_try='test -s conftest.$ac_objext'
24103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24104 (eval $ac_try) 2>&5
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); }; }; then
24108 ac_lo=$ac_mid; break
24110 echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24113 ac_hi=`expr '(' $ac_mid ')' - 1`
24114 if test $ac_mid -le $ac_hi; then
24118 ac_mid=`expr 2 '*' $ac_mid`
24120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24123 echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.$ac_ext >&5
24128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24131 # Binary search between lo and hi bounds.
24132 while test "x$ac_lo" != "x$ac_hi"; do
24133 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24134 cat >conftest.$ac_ext <<_ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24140 $ac_includes_default
24144 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24151 rm -f conftest.$ac_objext
24152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24153 (eval $ac_compile) 2>conftest.er1
24155 grep -v '^ *+' conftest.er1 >conftest.err
24157 cat conftest.err >&5
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } &&
24160 { ac_try='test -z "$ac_c_werror_flag"
24161 || test ! -s conftest.err'
24162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24163 (eval $ac_try) 2>&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); }; } &&
24167 { ac_try='test -s conftest.$ac_objext'
24168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24169 (eval $ac_try) 2>&5
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); }; }; then
24175 echo "$as_me: failed program was:" >&5
24176 sed 's/^/| /' conftest.$ac_ext >&5
24178 ac_lo=`expr '(' $ac_mid ')' + 1`
24180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24183 ?*) ac_cv_sizeof_int=$ac_lo;;
24184 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24185 See \`config.log' for more details." >&5
24186 echo "$as_me: error: cannot compute sizeof (int), 77
24187 See \`config.log' for more details." >&2;}
24188 { (exit 1); exit 1; }; } ;;
24191 if test "$cross_compiling" = yes; then
24192 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24193 See \`config.log' for more details." >&5
24194 echo "$as_me: error: cannot run test program while cross compiling
24195 See \`config.log' for more details." >&2;}
24196 { (exit 1); exit 1; }; }
24198 cat >conftest.$ac_ext <<_ACEOF
24201 cat confdefs.h >>conftest.$ac_ext
24202 cat >>conftest.$ac_ext <<_ACEOF
24203 /* end confdefs.h. */
24204 $ac_includes_default
24205 long longval () { return (long) (sizeof (int)); }
24206 unsigned long ulongval () { return (long) (sizeof (int)); }
24208 #include <stdlib.h>
24213 FILE *f = fopen ("conftest.val", "w");
24216 if (((long) (sizeof (int))) < 0)
24218 long i = longval ();
24219 if (i != ((long) (sizeof (int))))
24221 fprintf (f, "%ld\n", i);
24225 unsigned long i = ulongval ();
24226 if (i != ((long) (sizeof (int))))
24228 fprintf (f, "%lu\n", i);
24230 exit (ferror (f) || fclose (f) != 0);
24236 rm -f conftest$ac_exeext
24237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24238 (eval $ac_link) 2>&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; }; then
24247 ac_cv_sizeof_int=`cat conftest.val`
24249 echo "$as_me: program exited with status $ac_status" >&5
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24253 ( exit $ac_status )
24254 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24255 See \`config.log' for more details." >&5
24256 echo "$as_me: error: cannot compute sizeof (int), 77
24257 See \`config.log' for more details." >&2;}
24258 { (exit 1); exit 1; }; }
24260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24268 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24269 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24270 cat >>confdefs.h <<_ACEOF
24271 #define SIZEOF_INT $ac_cv_sizeof_int
24275 echo "$as_me:$LINENO: checking for long int" >&5
24276 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24277 if test "${ac_cv_type_long_int+set}" = set; then
24278 echo $ECHO_N "(cached) $ECHO_C" >&6
24280 cat >conftest.$ac_ext <<_ACEOF
24283 cat confdefs.h >>conftest.$ac_ext
24284 cat >>conftest.$ac_ext <<_ACEOF
24285 /* end confdefs.h. */
24286 $ac_includes_default
24290 if ((long int *) 0)
24292 if (sizeof (long int))
24298 rm -f conftest.$ac_objext
24299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24300 (eval $ac_compile) 2>conftest.er1
24302 grep -v '^ *+' conftest.er1 >conftest.err
24304 cat conftest.err >&5
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } &&
24307 { ac_try='test -z "$ac_c_werror_flag"
24308 || test ! -s conftest.err'
24309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310 (eval $ac_try) 2>&5
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; } &&
24314 { ac_try='test -s conftest.$ac_objext'
24315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24316 (eval $ac_try) 2>&5
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); }; }; then
24320 ac_cv_type_long_int=yes
24322 echo "$as_me: failed program was:" >&5
24323 sed 's/^/| /' conftest.$ac_ext >&5
24325 ac_cv_type_long_int=no
24327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24329 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24330 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24332 echo "$as_me:$LINENO: checking size of long int" >&5
24333 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24334 if test "${ac_cv_sizeof_long_int+set}" = set; then
24335 echo $ECHO_N "(cached) $ECHO_C" >&6
24337 if test "$ac_cv_type_long_int" = yes; then
24338 # The cast to unsigned long works around a bug in the HP C Compiler
24339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24341 # This bug is HP SR number 8606223364.
24342 if test "$cross_compiling" = yes; then
24343 # Depending upon the size, compute the lo and hi bounds.
24344 cat >conftest.$ac_ext <<_ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350 $ac_includes_default
24354 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24361 rm -f conftest.$ac_objext
24362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24363 (eval $ac_compile) 2>conftest.er1
24365 grep -v '^ *+' conftest.er1 >conftest.err
24367 cat conftest.err >&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } &&
24370 { ac_try='test -z "$ac_c_werror_flag"
24371 || test ! -s conftest.err'
24372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373 (eval $ac_try) 2>&5
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; } &&
24377 { ac_try='test -s conftest.$ac_objext'
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; }; then
24385 cat >conftest.$ac_ext <<_ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 $ac_includes_default
24395 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24402 rm -f conftest.$ac_objext
24403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24404 (eval $ac_compile) 2>conftest.er1
24406 grep -v '^ *+' conftest.er1 >conftest.err
24408 cat conftest.err >&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } &&
24411 { ac_try='test -z "$ac_c_werror_flag"
24412 || test ! -s conftest.err'
24413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24414 (eval $ac_try) 2>&5
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); }; } &&
24418 { ac_try='test -s conftest.$ac_objext'
24419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24420 (eval $ac_try) 2>&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; }; then
24424 ac_hi=$ac_mid; break
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24429 ac_lo=`expr $ac_mid + 1`
24430 if test $ac_lo -le $ac_mid; then
24434 ac_mid=`expr 2 '*' $ac_mid + 1`
24436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24439 echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24442 cat >conftest.$ac_ext <<_ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h. */
24448 $ac_includes_default
24452 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24459 rm -f conftest.$ac_objext
24460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24461 (eval $ac_compile) 2>conftest.er1
24463 grep -v '^ *+' conftest.er1 >conftest.err
24465 cat conftest.err >&5
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } &&
24468 { ac_try='test -z "$ac_c_werror_flag"
24469 || test ! -s conftest.err'
24470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471 (eval $ac_try) 2>&5
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); }; } &&
24475 { ac_try='test -s conftest.$ac_objext'
24476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477 (eval $ac_try) 2>&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); }; }; then
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 $ac_includes_default
24493 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24500 rm -f conftest.$ac_objext
24501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24502 (eval $ac_compile) 2>conftest.er1
24504 grep -v '^ *+' conftest.er1 >conftest.err
24506 cat conftest.err >&5
24507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); } &&
24509 { ac_try='test -z "$ac_c_werror_flag"
24510 || test ! -s conftest.err'
24511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24512 (eval $ac_try) 2>&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); }; } &&
24516 { ac_try='test -s conftest.$ac_objext'
24517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24518 (eval $ac_try) 2>&5
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); }; }; then
24522 ac_lo=$ac_mid; break
24524 echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24527 ac_hi=`expr '(' $ac_mid ')' - 1`
24528 if test $ac_mid -le $ac_hi; then
24532 ac_mid=`expr 2 '*' $ac_mid`
24534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24537 echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24545 # Binary search between lo and hi bounds.
24546 while test "x$ac_lo" != "x$ac_hi"; do
24547 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24548 cat >conftest.$ac_ext <<_ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24554 $ac_includes_default
24558 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24565 rm -f conftest.$ac_objext
24566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24567 (eval $ac_compile) 2>conftest.er1
24569 grep -v '^ *+' conftest.er1 >conftest.err
24571 cat conftest.err >&5
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } &&
24574 { ac_try='test -z "$ac_c_werror_flag"
24575 || test ! -s conftest.err'
24576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24577 (eval $ac_try) 2>&5
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); }; } &&
24581 { ac_try='test -s conftest.$ac_objext'
24582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583 (eval $ac_try) 2>&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; }; then
24589 echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 ac_lo=`expr '(' $ac_mid ')' + 1`
24594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24597 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24599 See \`config.log' for more details." >&5
24600 echo "$as_me: error: cannot compute sizeof (long int), 77
24601 See \`config.log' for more details." >&2;}
24602 { (exit 1); exit 1; }; } ;;
24605 if test "$cross_compiling" = yes; then
24606 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24607 See \`config.log' for more details." >&5
24608 echo "$as_me: error: cannot run test program while cross compiling
24609 See \`config.log' for more details." >&2;}
24610 { (exit 1); exit 1; }; }
24612 cat >conftest.$ac_ext <<_ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h. */
24618 $ac_includes_default
24619 long longval () { return (long) (sizeof (long int)); }
24620 unsigned long ulongval () { return (long) (sizeof (long int)); }
24622 #include <stdlib.h>
24627 FILE *f = fopen ("conftest.val", "w");
24630 if (((long) (sizeof (long int))) < 0)
24632 long i = longval ();
24633 if (i != ((long) (sizeof (long int))))
24635 fprintf (f, "%ld\n", i);
24639 unsigned long i = ulongval ();
24640 if (i != ((long) (sizeof (long int))))
24642 fprintf (f, "%lu\n", i);
24644 exit (ferror (f) || fclose (f) != 0);
24650 rm -f conftest$ac_exeext
24651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24652 (eval $ac_link) 2>&5
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24657 (eval $ac_try) 2>&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; }; then
24661 ac_cv_sizeof_long_int=`cat conftest.val`
24663 echo "$as_me: program exited with status $ac_status" >&5
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24667 ( exit $ac_status )
24668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24669 See \`config.log' for more details." >&5
24670 echo "$as_me: error: cannot compute sizeof (long int), 77
24671 See \`config.log' for more details." >&2;}
24672 { (exit 1); exit 1; }; }
24674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24679 ac_cv_sizeof_long_int=0
24682 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24683 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24684 cat >>confdefs.h <<_ACEOF
24685 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24689 echo "$as_me:$LINENO: checking for long long int" >&5
24690 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24691 if test "${ac_cv_type_long_long_int+set}" = set; then
24692 echo $ECHO_N "(cached) $ECHO_C" >&6
24694 cat >conftest.$ac_ext <<_ACEOF
24697 cat confdefs.h >>conftest.$ac_ext
24698 cat >>conftest.$ac_ext <<_ACEOF
24699 /* end confdefs.h. */
24700 $ac_includes_default
24704 if ((long long int *) 0)
24706 if (sizeof (long long int))
24712 rm -f conftest.$ac_objext
24713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24714 (eval $ac_compile) 2>conftest.er1
24716 grep -v '^ *+' conftest.er1 >conftest.err
24718 cat conftest.err >&5
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); } &&
24721 { ac_try='test -z "$ac_c_werror_flag"
24722 || test ! -s conftest.err'
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; } &&
24728 { ac_try='test -s conftest.$ac_objext'
24729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730 (eval $ac_try) 2>&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); }; }; then
24734 ac_cv_type_long_long_int=yes
24736 echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24739 ac_cv_type_long_long_int=no
24741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24743 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24744 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24746 echo "$as_me:$LINENO: checking size of long long int" >&5
24747 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24748 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 if test "$ac_cv_type_long_long_int" = yes; then
24752 # The cast to unsigned long works around a bug in the HP C Compiler
24753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24755 # This bug is HP SR number 8606223364.
24756 if test "$cross_compiling" = yes; then
24757 # Depending upon the size, compute the lo and hi bounds.
24758 cat >conftest.$ac_ext <<_ACEOF
24761 cat confdefs.h >>conftest.$ac_ext
24762 cat >>conftest.$ac_ext <<_ACEOF
24763 /* end confdefs.h. */
24764 $ac_includes_default
24768 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24775 rm -f conftest.$ac_objext
24776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24777 (eval $ac_compile) 2>conftest.er1
24779 grep -v '^ *+' conftest.er1 >conftest.err
24781 cat conftest.err >&5
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } &&
24784 { ac_try='test -z "$ac_c_werror_flag"
24785 || test ! -s conftest.err'
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; } &&
24791 { ac_try='test -s conftest.$ac_objext'
24792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24793 (eval $ac_try) 2>&5
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); }; }; then
24799 cat >conftest.$ac_ext <<_ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h. */
24805 $ac_includes_default
24809 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24816 rm -f conftest.$ac_objext
24817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24818 (eval $ac_compile) 2>conftest.er1
24820 grep -v '^ *+' conftest.er1 >conftest.err
24822 cat conftest.err >&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } &&
24825 { ac_try='test -z "$ac_c_werror_flag"
24826 || test ! -s conftest.err'
24827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24828 (eval $ac_try) 2>&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); }; } &&
24832 { ac_try='test -s conftest.$ac_objext'
24833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834 (eval $ac_try) 2>&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); }; }; then
24838 ac_hi=$ac_mid; break
24840 echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24843 ac_lo=`expr $ac_mid + 1`
24844 if test $ac_lo -le $ac_mid; then
24848 ac_mid=`expr 2 '*' $ac_mid + 1`
24850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24853 echo "$as_me: failed program was:" >&5
24854 sed 's/^/| /' conftest.$ac_ext >&5
24856 cat >conftest.$ac_ext <<_ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24862 $ac_includes_default
24866 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24873 rm -f conftest.$ac_objext
24874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24875 (eval $ac_compile) 2>conftest.er1
24877 grep -v '^ *+' conftest.er1 >conftest.err
24879 cat conftest.err >&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } &&
24882 { ac_try='test -z "$ac_c_werror_flag"
24883 || test ! -s conftest.err'
24884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885 (eval $ac_try) 2>&5
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; } &&
24889 { ac_try='test -s conftest.$ac_objext'
24890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891 (eval $ac_try) 2>&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; }; then
24897 cat >conftest.$ac_ext <<_ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 $ac_includes_default
24907 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24914 rm -f conftest.$ac_objext
24915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24916 (eval $ac_compile) 2>conftest.er1
24918 grep -v '^ *+' conftest.er1 >conftest.err
24920 cat conftest.err >&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); } &&
24923 { ac_try='test -z "$ac_c_werror_flag"
24924 || test ! -s conftest.err'
24925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24926 (eval $ac_try) 2>&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); }; } &&
24930 { ac_try='test -s conftest.$ac_objext'
24931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932 (eval $ac_try) 2>&5
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); }; }; then
24936 ac_lo=$ac_mid; break
24938 echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24941 ac_hi=`expr '(' $ac_mid ')' - 1`
24942 if test $ac_mid -le $ac_hi; then
24946 ac_mid=`expr 2 '*' $ac_mid`
24948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24951 echo "$as_me: failed program was:" >&5
24952 sed 's/^/| /' conftest.$ac_ext >&5
24956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24959 # Binary search between lo and hi bounds.
24960 while test "x$ac_lo" != "x$ac_hi"; do
24961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24962 cat >conftest.$ac_ext <<_ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24968 $ac_includes_default
24972 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24979 rm -f conftest.$ac_objext
24980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24981 (eval $ac_compile) 2>conftest.er1
24983 grep -v '^ *+' conftest.er1 >conftest.err
24985 cat conftest.err >&5
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); } &&
24988 { ac_try='test -z "$ac_c_werror_flag"
24989 || test ! -s conftest.err'
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; } &&
24995 { ac_try='test -s conftest.$ac_objext'
24996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997 (eval $ac_try) 2>&5
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); }; }; then
25003 echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25006 ac_lo=`expr '(' $ac_mid ')' + 1`
25008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25011 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25012 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25013 See \`config.log' for more details." >&5
25014 echo "$as_me: error: cannot compute sizeof (long long int), 77
25015 See \`config.log' for more details." >&2;}
25016 { (exit 1); exit 1; }; } ;;
25019 if test "$cross_compiling" = yes; then
25020 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25021 See \`config.log' for more details." >&5
25022 echo "$as_me: error: cannot run test program while cross compiling
25023 See \`config.log' for more details." >&2;}
25024 { (exit 1); exit 1; }; }
25026 cat >conftest.$ac_ext <<_ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25032 $ac_includes_default
25033 long longval () { return (long) (sizeof (long long int)); }
25034 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25036 #include <stdlib.h>
25041 FILE *f = fopen ("conftest.val", "w");
25044 if (((long) (sizeof (long long int))) < 0)
25046 long i = longval ();
25047 if (i != ((long) (sizeof (long long int))))
25049 fprintf (f, "%ld\n", i);
25053 unsigned long i = ulongval ();
25054 if (i != ((long) (sizeof (long long int))))
25056 fprintf (f, "%lu\n", i);
25058 exit (ferror (f) || fclose (f) != 0);
25064 rm -f conftest$ac_exeext
25065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25066 (eval $ac_link) 2>&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
25075 ac_cv_sizeof_long_long_int=`cat conftest.val`
25077 echo "$as_me: program exited with status $ac_status" >&5
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25081 ( exit $ac_status )
25082 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25083 See \`config.log' for more details." >&5
25084 echo "$as_me: error: cannot compute sizeof (long long int), 77
25085 See \`config.log' for more details." >&2;}
25086 { (exit 1); exit 1; }; }
25088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25093 ac_cv_sizeof_long_long_int=0
25096 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25097 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25098 cat >>confdefs.h <<_ACEOF
25099 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25103 echo "$as_me:$LINENO: checking for int *" >&5
25104 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25105 if test "${ac_cv_type_int_p+set}" = set; then
25106 echo $ECHO_N "(cached) $ECHO_C" >&6
25108 cat >conftest.$ac_ext <<_ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h. */
25114 $ac_includes_default
25120 if (sizeof (int *))
25126 rm -f conftest.$ac_objext
25127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25128 (eval $ac_compile) 2>conftest.er1
25130 grep -v '^ *+' conftest.er1 >conftest.err
25132 cat conftest.err >&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); } &&
25135 { ac_try='test -z "$ac_c_werror_flag"
25136 || test ! -s conftest.err'
25137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138 (eval $ac_try) 2>&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; } &&
25142 { ac_try='test -s conftest.$ac_objext'
25143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144 (eval $ac_try) 2>&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); }; }; then
25148 ac_cv_type_int_p=yes
25150 echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.$ac_ext >&5
25153 ac_cv_type_int_p=no
25155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25157 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25158 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25160 echo "$as_me:$LINENO: checking size of int *" >&5
25161 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25162 if test "${ac_cv_sizeof_int_p+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25165 if test "$ac_cv_type_int_p" = yes; then
25166 # The cast to unsigned long works around a bug in the HP C Compiler
25167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25169 # This bug is HP SR number 8606223364.
25170 if test "$cross_compiling" = yes; then
25171 # Depending upon the size, compute the lo and hi bounds.
25172 cat >conftest.$ac_ext <<_ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h. */
25178 $ac_includes_default
25182 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25189 rm -f conftest.$ac_objext
25190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25191 (eval $ac_compile) 2>conftest.er1
25193 grep -v '^ *+' conftest.er1 >conftest.err
25195 cat conftest.err >&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } &&
25198 { ac_try='test -z "$ac_c_werror_flag"
25199 || test ! -s conftest.err'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; } &&
25205 { ac_try='test -s conftest.$ac_objext'
25206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; }; then
25213 cat >conftest.$ac_ext <<_ACEOF
25216 cat confdefs.h >>conftest.$ac_ext
25217 cat >>conftest.$ac_ext <<_ACEOF
25218 /* end confdefs.h. */
25219 $ac_includes_default
25223 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25230 rm -f conftest.$ac_objext
25231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25232 (eval $ac_compile) 2>conftest.er1
25234 grep -v '^ *+' conftest.er1 >conftest.err
25236 cat conftest.err >&5
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } &&
25239 { ac_try='test -z "$ac_c_werror_flag"
25240 || test ! -s conftest.err'
25241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242 (eval $ac_try) 2>&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); }; } &&
25246 { ac_try='test -s conftest.$ac_objext'
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; }; then
25252 ac_hi=$ac_mid; break
25254 echo "$as_me: failed program was:" >&5
25255 sed 's/^/| /' conftest.$ac_ext >&5
25257 ac_lo=`expr $ac_mid + 1`
25258 if test $ac_lo -le $ac_mid; then
25262 ac_mid=`expr 2 '*' $ac_mid + 1`
25264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25267 echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25270 cat >conftest.$ac_ext <<_ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25276 $ac_includes_default
25280 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25287 rm -f conftest.$ac_objext
25288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25289 (eval $ac_compile) 2>conftest.er1
25291 grep -v '^ *+' conftest.er1 >conftest.err
25293 cat conftest.err >&5
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); } &&
25296 { ac_try='test -z "$ac_c_werror_flag"
25297 || test ! -s conftest.err'
25298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25299 (eval $ac_try) 2>&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); }; } &&
25303 { ac_try='test -s conftest.$ac_objext'
25304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25305 (eval $ac_try) 2>&5
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); }; }; then
25311 cat >conftest.$ac_ext <<_ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h. */
25317 $ac_includes_default
25321 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25328 rm -f conftest.$ac_objext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25330 (eval $ac_compile) 2>conftest.er1
25332 grep -v '^ *+' conftest.er1 >conftest.err
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
25337 { ac_try='test -z "$ac_c_werror_flag"
25338 || test ! -s conftest.err'
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; } &&
25344 { ac_try='test -s conftest.$ac_objext'
25345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346 (eval $ac_try) 2>&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); }; }; then
25350 ac_lo=$ac_mid; break
25352 echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25355 ac_hi=`expr '(' $ac_mid ')' - 1`
25356 if test $ac_mid -le $ac_hi; then
25360 ac_mid=`expr 2 '*' $ac_mid`
25362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25373 # Binary search between lo and hi bounds.
25374 while test "x$ac_lo" != "x$ac_hi"; do
25375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25376 cat >conftest.$ac_ext <<_ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h. */
25382 $ac_includes_default
25386 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25393 rm -f conftest.$ac_objext
25394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25395 (eval $ac_compile) 2>conftest.er1
25397 grep -v '^ *+' conftest.er1 >conftest.err
25399 cat conftest.err >&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); } &&
25402 { ac_try='test -z "$ac_c_werror_flag"
25403 || test ! -s conftest.err'
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; } &&
25409 { ac_try='test -s conftest.$ac_objext'
25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
25417 echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420 ac_lo=`expr '(' $ac_mid ')' + 1`
25422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25425 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25426 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25427 See \`config.log' for more details." >&5
25428 echo "$as_me: error: cannot compute sizeof (int *), 77
25429 See \`config.log' for more details." >&2;}
25430 { (exit 1); exit 1; }; } ;;
25433 if test "$cross_compiling" = yes; then
25434 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25435 See \`config.log' for more details." >&5
25436 echo "$as_me: error: cannot run test program while cross compiling
25437 See \`config.log' for more details." >&2;}
25438 { (exit 1); exit 1; }; }
25440 cat >conftest.$ac_ext <<_ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25446 $ac_includes_default
25447 long longval () { return (long) (sizeof (int *)); }
25448 unsigned long ulongval () { return (long) (sizeof (int *)); }
25450 #include <stdlib.h>
25455 FILE *f = fopen ("conftest.val", "w");
25458 if (((long) (sizeof (int *))) < 0)
25460 long i = longval ();
25461 if (i != ((long) (sizeof (int *))))
25463 fprintf (f, "%ld\n", i);
25467 unsigned long i = ulongval ();
25468 if (i != ((long) (sizeof (int *))))
25470 fprintf (f, "%lu\n", i);
25472 exit (ferror (f) || fclose (f) != 0);
25478 rm -f conftest$ac_exeext
25479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25480 (eval $ac_link) 2>&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; }; then
25489 ac_cv_sizeof_int_p=`cat conftest.val`
25491 echo "$as_me: program exited with status $ac_status" >&5
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25495 ( exit $ac_status )
25496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25497 See \`config.log' for more details." >&5
25498 echo "$as_me: error: cannot compute sizeof (int *), 77
25499 See \`config.log' for more details." >&2;}
25500 { (exit 1); exit 1; }; }
25502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25507 ac_cv_sizeof_int_p=0
25510 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25511 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25512 cat >>confdefs.h <<_ACEOF
25513 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25518 # Check for sys/types.h types
25519 echo "$as_me:$LINENO: checking for u_int type" >&5
25520 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25521 if test "${ac_cv_have_u_int+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25525 cat >conftest.$ac_ext <<_ACEOF
25528 cat confdefs.h >>conftest.$ac_ext
25529 cat >>conftest.$ac_ext <<_ACEOF
25530 /* end confdefs.h. */
25531 #include <sys/types.h>
25540 rm -f conftest.$ac_objext
25541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25542 (eval $ac_compile) 2>conftest.er1
25544 grep -v '^ *+' conftest.er1 >conftest.err
25546 cat conftest.err >&5
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); } &&
25549 { ac_try='test -z "$ac_c_werror_flag"
25550 || test ! -s conftest.err'
25551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552 (eval $ac_try) 2>&5
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); }; } &&
25556 { ac_try='test -s conftest.$ac_objext'
25557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25558 (eval $ac_try) 2>&5
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); }; }; then
25562 ac_cv_have_u_int="yes"
25564 echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25567 ac_cv_have_u_int="no"
25570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25573 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25574 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25575 if test "x$ac_cv_have_u_int" = "xyes" ; then
25576 cat >>confdefs.h <<\_ACEOF
25577 #define HAVE_U_INT 1
25583 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25584 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25585 if test "${ac_cv_have_intmax_t+set}" = set; then
25586 echo $ECHO_N "(cached) $ECHO_C" >&6
25589 cat >conftest.$ac_ext <<_ACEOF
25592 cat confdefs.h >>conftest.$ac_ext
25593 cat >>conftest.$ac_ext <<_ACEOF
25594 /* end confdefs.h. */
25595 #include <sys/types.h>
25604 rm -f conftest.$ac_objext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25606 (eval $ac_compile) 2>conftest.er1
25608 grep -v '^ *+' conftest.er1 >conftest.err
25610 cat conftest.err >&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); } &&
25613 { ac_try='test -z "$ac_c_werror_flag"
25614 || test ! -s conftest.err'
25615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616 (eval $ac_try) 2>&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); }; } &&
25620 { ac_try='test -s conftest.$ac_objext'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; }; then
25626 ac_cv_have_intmax_t="yes"
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25632 cat >conftest.$ac_ext <<_ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25638 #include <stdint.h>
25647 rm -f conftest.$ac_objext
25648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25649 (eval $ac_compile) 2>conftest.er1
25651 grep -v '^ *+' conftest.er1 >conftest.err
25653 cat conftest.err >&5
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); } &&
25656 { ac_try='test -z "$ac_c_werror_flag"
25657 || test ! -s conftest.err'
25658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659 (eval $ac_try) 2>&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); }; } &&
25663 { ac_try='test -s conftest.$ac_objext'
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; }; then
25669 ac_cv_have_intmax_t="yes"
25671 echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25674 ac_cv_have_intmax_t="no"
25677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25685 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25686 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25687 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25688 cat >>confdefs.h <<\_ACEOF
25689 #define HAVE_INTMAX_T 1
25696 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25697 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25698 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25699 echo $ECHO_N "(cached) $ECHO_C" >&6
25702 cat >conftest.$ac_ext <<_ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h. */
25708 #include <sys/types.h>
25712 u_intmax_t a; a = 1;
25717 rm -f conftest.$ac_objext
25718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25719 (eval $ac_compile) 2>conftest.er1
25721 grep -v '^ *+' conftest.er1 >conftest.err
25723 cat conftest.err >&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } &&
25726 { ac_try='test -z "$ac_c_werror_flag"
25727 || test ! -s conftest.err'
25728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729 (eval $ac_try) 2>&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); }; } &&
25733 { ac_try='test -s conftest.$ac_objext'
25734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735 (eval $ac_try) 2>&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; }; then
25739 ac_cv_have_u_intmax_t="yes"
25741 echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25745 cat >conftest.$ac_ext <<_ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h. */
25751 #include <stdint.h>
25755 u_intmax_t a; a = 1;
25760 rm -f conftest.$ac_objext
25761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762 (eval $ac_compile) 2>conftest.er1
25764 grep -v '^ *+' conftest.er1 >conftest.err
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } &&
25769 { ac_try='test -z "$ac_c_werror_flag"
25770 || test ! -s conftest.err'
25771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772 (eval $ac_try) 2>&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); }; } &&
25776 { ac_try='test -s conftest.$ac_objext'
25777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778 (eval $ac_try) 2>&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); }; }; then
25782 ac_cv_have_u_intmax_t="yes"
25784 echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.$ac_ext >&5
25787 ac_cv_have_u_intmax_t="no"
25790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25797 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25798 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25799 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25800 cat >>confdefs.h <<\_ACEOF
25801 #define HAVE_U_INTMAX_T 1
25808 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25809 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25810 if test "${ac_cv_have_intxx_t+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25814 cat >conftest.$ac_ext <<_ACEOF
25817 cat confdefs.h >>conftest.$ac_ext
25818 cat >>conftest.$ac_ext <<_ACEOF
25819 /* end confdefs.h. */
25820 #include <sys/types.h>
25824 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25829 rm -f conftest.$ac_objext
25830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25831 (eval $ac_compile) 2>conftest.er1
25833 grep -v '^ *+' conftest.er1 >conftest.err
25835 cat conftest.err >&5
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); } &&
25838 { ac_try='test -z "$ac_c_werror_flag"
25839 || test ! -s conftest.err'
25840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25841 (eval $ac_try) 2>&5
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); }; } &&
25845 { ac_try='test -s conftest.$ac_objext'
25846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); }; }; then
25851 ac_cv_have_intxx_t="yes"
25853 echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25856 ac_cv_have_intxx_t="no"
25859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25862 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25863 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25864 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25865 cat >>confdefs.h <<\_ACEOF
25866 #define HAVE_INTXX_T 1
25872 echo "$as_me:$LINENO: checking for int64_t type" >&5
25873 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25874 if test "${ac_cv_have_int64_t+set}" = set; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25878 cat >conftest.$ac_ext <<_ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h. */
25884 #include <sys/types.h>
25893 rm -f conftest.$ac_objext
25894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25895 (eval $ac_compile) 2>conftest.er1
25897 grep -v '^ *+' conftest.er1 >conftest.err
25899 cat conftest.err >&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); } &&
25902 { ac_try='test -z "$ac_c_werror_flag"
25903 || test ! -s conftest.err'
25904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25905 (eval $ac_try) 2>&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); }; } &&
25909 { ac_try='test -s conftest.$ac_objext'
25910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25911 (eval $ac_try) 2>&5
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); }; }; then
25915 ac_cv_have_int64_t="yes"
25917 echo "$as_me: failed program was:" >&5
25918 sed 's/^/| /' conftest.$ac_ext >&5
25920 ac_cv_have_int64_t="no"
25923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25926 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25927 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25928 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25929 cat >>confdefs.h <<\_ACEOF
25930 #define HAVE_INT64_T 1
25936 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25937 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25938 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25939 echo $ECHO_N "(cached) $ECHO_C" >&6
25942 cat >conftest.$ac_ext <<_ACEOF
25945 cat confdefs.h >>conftest.$ac_ext
25946 cat >>conftest.$ac_ext <<_ACEOF
25947 /* end confdefs.h. */
25948 #include <sys/types.h>
25952 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25957 rm -f conftest.$ac_objext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25959 (eval $ac_compile) 2>conftest.er1
25961 grep -v '^ *+' conftest.er1 >conftest.err
25963 cat conftest.err >&5
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); } &&
25966 { ac_try='test -z "$ac_c_werror_flag"
25967 || test ! -s conftest.err'
25968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969 (eval $ac_try) 2>&5
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); }; } &&
25973 { ac_try='test -s conftest.$ac_objext'
25974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975 (eval $ac_try) 2>&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); }; }; then
25979 ac_cv_have_u_intxx_t="yes"
25981 echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25984 ac_cv_have_u_intxx_t="no"
25987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25990 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25991 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25992 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25993 cat >>confdefs.h <<\_ACEOF
25994 #define HAVE_U_INTXX_T 1
26000 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26001 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26002 if test "${ac_cv_have_u_int64_t+set}" = set; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26006 cat >conftest.$ac_ext <<_ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h. */
26012 #include <sys/types.h>
26016 u_int64_t a; a = 1;
26021 rm -f conftest.$ac_objext
26022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26023 (eval $ac_compile) 2>conftest.er1
26025 grep -v '^ *+' conftest.er1 >conftest.err
26027 cat conftest.err >&5
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); } &&
26030 { ac_try='test -z "$ac_c_werror_flag"
26031 || test ! -s conftest.err'
26032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033 (eval $ac_try) 2>&5
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); }; } &&
26037 { ac_try='test -s conftest.$ac_objext'
26038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039 (eval $ac_try) 2>&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); }; }; then
26043 ac_cv_have_u_int64_t="yes"
26045 echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26048 ac_cv_have_u_int64_t="no"
26051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26054 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26055 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26056 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26057 cat >>confdefs.h <<\_ACEOF
26058 #define HAVE_U_INT64_T 1
26064 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26065 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26067 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26068 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26069 cat >conftest.$ac_ext <<_ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h. */
26075 #include <sys/bitypes.h>
26079 int8_t a; int16_t b; int32_t c;
26080 u_int8_t e; u_int16_t f; u_int32_t g;
26081 a = b = c = e = f = g = 1;
26086 rm -f conftest.$ac_objext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26088 (eval $ac_compile) 2>conftest.er1
26090 grep -v '^ *+' conftest.er1 >conftest.err
26092 cat conftest.err >&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } &&
26095 { ac_try='test -z "$ac_c_werror_flag"
26096 || test ! -s conftest.err'
26097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098 (eval $ac_try) 2>&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; } &&
26102 { ac_try='test -s conftest.$ac_objext'
26103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104 (eval $ac_try) 2>&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; }; then
26108 cat >>confdefs.h <<\_ACEOF
26109 #define HAVE_U_INTXX_T 1
26112 cat >>confdefs.h <<\_ACEOF
26113 #define HAVE_INTXX_T 1
26116 cat >>confdefs.h <<\_ACEOF
26117 #define HAVE_SYS_BITYPES_H 1
26120 echo "$as_me:$LINENO: result: yes" >&5
26121 echo "${ECHO_T}yes" >&6
26123 echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 echo "$as_me:$LINENO: result: no" >&5
26127 echo "${ECHO_T}no" >&6
26130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26133 if test -z "$have_u_intxx_t" ; then
26134 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26135 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26136 if test "${ac_cv_have_uintxx_t+set}" = set; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26140 cat >conftest.$ac_ext <<_ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h. */
26146 #include <sys/types.h>
26150 uint8_t a; uint16_t b;
26151 uint32_t c; a = b = c = 1;
26156 rm -f conftest.$ac_objext
26157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26158 (eval $ac_compile) 2>conftest.er1
26160 grep -v '^ *+' conftest.er1 >conftest.err
26162 cat conftest.err >&5
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); } &&
26165 { ac_try='test -z "$ac_c_werror_flag"
26166 || test ! -s conftest.err'
26167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; } &&
26172 { ac_try='test -s conftest.$ac_objext'
26173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; }; then
26178 ac_cv_have_uintxx_t="yes"
26180 echo "$as_me: failed program was:" >&5
26181 sed 's/^/| /' conftest.$ac_ext >&5
26183 ac_cv_have_uintxx_t="no"
26186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26189 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26190 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26191 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26192 cat >>confdefs.h <<\_ACEOF
26193 #define HAVE_UINTXX_T 1
26199 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26200 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26202 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26203 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26204 cat >conftest.$ac_ext <<_ACEOF
26207 cat confdefs.h >>conftest.$ac_ext
26208 cat >>conftest.$ac_ext <<_ACEOF
26209 /* end confdefs.h. */
26210 #include <sys/bitypes.h>
26214 int64_t a; u_int64_t b;
26220 rm -f conftest.$ac_objext
26221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26222 (eval $ac_compile) 2>conftest.er1
26224 grep -v '^ *+' conftest.er1 >conftest.err
26226 cat conftest.err >&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } &&
26229 { ac_try='test -z "$ac_c_werror_flag"
26230 || test ! -s conftest.err'
26231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232 (eval $ac_try) 2>&5
26234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); }; } &&
26236 { ac_try='test -s conftest.$ac_objext'
26237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26238 (eval $ac_try) 2>&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); }; }; then
26242 cat >>confdefs.h <<\_ACEOF
26243 #define HAVE_U_INT64_T 1
26246 cat >>confdefs.h <<\_ACEOF
26247 #define HAVE_INT64_T 1
26250 echo "$as_me:$LINENO: result: yes" >&5
26251 echo "${ECHO_T}yes" >&6
26253 echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26256 echo "$as_me:$LINENO: result: no" >&5
26257 echo "${ECHO_T}no" >&6
26260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26263 if (test -z "$have_uintxx_t" && \
26264 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26266 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26267 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26268 cat >conftest.$ac_ext <<_ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h. */
26274 #include <sys/bitypes.h>
26278 uint8_t a; uint16_t b;
26279 uint32_t c; a = b = c = 1;
26284 rm -f conftest.$ac_objext
26285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26286 (eval $ac_compile) 2>conftest.er1
26288 grep -v '^ *+' conftest.er1 >conftest.err
26290 cat conftest.err >&5
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); } &&
26293 { ac_try='test -z "$ac_c_werror_flag"
26294 || test ! -s conftest.err'
26295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296 (eval $ac_try) 2>&5
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); }; } &&
26300 { ac_try='test -s conftest.$ac_objext'
26301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302 (eval $ac_try) 2>&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); }; }; then
26306 cat >>confdefs.h <<\_ACEOF
26307 #define HAVE_UINTXX_T 1
26310 echo "$as_me:$LINENO: result: yes" >&5
26311 echo "${ECHO_T}yes" >&6
26313 echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26316 echo "$as_me:$LINENO: result: no" >&5
26317 echo "${ECHO_T}no" >&6
26320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26357 echo "$as_me:$LINENO: checking for $ac_func" >&5
26358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26359 if eval "test \"\${$as_ac_var+set}\" = set"; then
26360 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 cat >conftest.$ac_ext <<_ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h. */
26368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26370 #define $ac_func innocuous_$ac_func
26372 /* System header to define __stub macros and hopefully few prototypes,
26373 which can conflict with char $ac_func (); below.
26374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26375 <limits.h> exists even on freestanding compilers. */
26378 # include <limits.h>
26380 # include <assert.h>
26385 /* Override any gcc2 internal prototype to avoid an error. */
26390 /* We use char because int might match the return type of a gcc2
26391 builtin and then its argument prototype would still apply. */
26393 /* The GNU C library defines this for functions which it implements
26394 to always fail with ENOSYS. Some functions are actually named
26395 something starting with __ and the normal name is an alias. */
26396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26399 char (*f) () = $ac_func;
26408 return f != $ac_func;
26413 rm -f conftest.$ac_objext conftest$ac_exeext
26414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26415 (eval $ac_link) 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } &&
26422 { ac_try='test -z "$ac_c_werror_flag"
26423 || test ! -s conftest.err'
26424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425 (eval $ac_try) 2>&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; } &&
26429 { ac_try='test -s conftest$ac_exeext'
26430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26431 (eval $ac_try) 2>&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); }; }; then
26435 eval "$as_ac_var=yes"
26437 echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26440 eval "$as_ac_var=no"
26442 rm -f conftest.err conftest.$ac_objext \
26443 conftest$ac_exeext conftest.$ac_ext
26445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26447 if test `eval echo '${'$as_ac_var'}'` = yes; then
26448 cat >>confdefs.h <<_ACEOF
26449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26453 echo 'configure: cannot find needed function.'; exit 1
26460 for ac_func in fchdir
26462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26463 echo "$as_me:$LINENO: checking for $ac_func" >&5
26464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26465 if eval "test \"\${$as_ac_var+set}\" = set"; then
26466 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 cat >conftest.$ac_ext <<_ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h. */
26474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26476 #define $ac_func innocuous_$ac_func
26478 /* System header to define __stub macros and hopefully few prototypes,
26479 which can conflict with char $ac_func (); below.
26480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26481 <limits.h> exists even on freestanding compilers. */
26484 # include <limits.h>
26486 # include <assert.h>
26491 /* Override any gcc2 internal prototype to avoid an error. */
26496 /* We use char because int might match the return type of a gcc2
26497 builtin and then its argument prototype would still apply. */
26499 /* The GNU C library defines this for functions which it implements
26500 to always fail with ENOSYS. Some functions are actually named
26501 something starting with __ and the normal name is an alias. */
26502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26505 char (*f) () = $ac_func;
26514 return f != $ac_func;
26519 rm -f conftest.$ac_objext conftest$ac_exeext
26520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26521 (eval $ac_link) 2>conftest.er1
26523 grep -v '^ *+' conftest.er1 >conftest.err
26525 cat conftest.err >&5
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } &&
26528 { ac_try='test -z "$ac_c_werror_flag"
26529 || test ! -s conftest.err'
26530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26531 (eval $ac_try) 2>&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); }; } &&
26535 { ac_try='test -s conftest$ac_exeext'
26536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537 (eval $ac_try) 2>&5
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; }; then
26541 eval "$as_ac_var=yes"
26543 echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26546 eval "$as_ac_var=no"
26548 rm -f conftest.err conftest.$ac_objext \
26549 conftest$ac_exeext conftest.$ac_ext
26551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26553 if test `eval echo '${'$as_ac_var'}'` = yes; then
26554 cat >>confdefs.h <<_ACEOF
26555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26557 cat >>confdefs.h <<\_ACEOF
26558 #define HAVE_FCHDIR 1
26565 for ac_func in strtoll
26567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26568 echo "$as_me:$LINENO: checking for $ac_func" >&5
26569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26570 if eval "test \"\${$as_ac_var+set}\" = set"; then
26571 echo $ECHO_N "(cached) $ECHO_C" >&6
26573 cat >conftest.$ac_ext <<_ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h. */
26579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26581 #define $ac_func innocuous_$ac_func
26583 /* System header to define __stub macros and hopefully few prototypes,
26584 which can conflict with char $ac_func (); below.
26585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26586 <limits.h> exists even on freestanding compilers. */
26589 # include <limits.h>
26591 # include <assert.h>
26596 /* Override any gcc2 internal prototype to avoid an error. */
26601 /* We use char because int might match the return type of a gcc2
26602 builtin and then its argument prototype would still apply. */
26604 /* The GNU C library defines this for functions which it implements
26605 to always fail with ENOSYS. Some functions are actually named
26606 something starting with __ and the normal name is an alias. */
26607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26610 char (*f) () = $ac_func;
26619 return f != $ac_func;
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26626 (eval $ac_link) 2>conftest.er1
26628 grep -v '^ *+' conftest.er1 >conftest.err
26630 cat conftest.err >&5
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); } &&
26633 { ac_try='test -z "$ac_c_werror_flag"
26634 || test ! -s conftest.err'
26635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636 (eval $ac_try) 2>&5
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); }; } &&
26640 { ac_try='test -s conftest$ac_exeext'
26641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642 (eval $ac_try) 2>&5
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); }; }; then
26646 eval "$as_ac_var=yes"
26648 echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26651 eval "$as_ac_var=no"
26653 rm -f conftest.err conftest.$ac_objext \
26654 conftest$ac_exeext conftest.$ac_ext
26656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26658 if test `eval echo '${'$as_ac_var'}'` = yes; then
26659 cat >>confdefs.h <<_ACEOF
26660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26662 cat >>confdefs.h <<\_ACEOF
26663 #define HAVE_STRTOLL 1
26670 for ac_func in posix_fadvise
26672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26673 echo "$as_me:$LINENO: checking for $ac_func" >&5
26674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26675 if eval "test \"\${$as_ac_var+set}\" = set"; then
26676 echo $ECHO_N "(cached) $ECHO_C" >&6
26678 cat >conftest.$ac_ext <<_ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h. */
26684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26686 #define $ac_func innocuous_$ac_func
26688 /* System header to define __stub macros and hopefully few prototypes,
26689 which can conflict with char $ac_func (); below.
26690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26691 <limits.h> exists even on freestanding compilers. */
26694 # include <limits.h>
26696 # include <assert.h>
26701 /* Override any gcc2 internal prototype to avoid an error. */
26706 /* We use char because int might match the return type of a gcc2
26707 builtin and then its argument prototype would still apply. */
26709 /* The GNU C library defines this for functions which it implements
26710 to always fail with ENOSYS. Some functions are actually named
26711 something starting with __ and the normal name is an alias. */
26712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26715 char (*f) () = $ac_func;
26724 return f != $ac_func;
26729 rm -f conftest.$ac_objext conftest$ac_exeext
26730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26731 (eval $ac_link) 2>conftest.er1
26733 grep -v '^ *+' conftest.er1 >conftest.err
26735 cat conftest.err >&5
26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737 (exit $ac_status); } &&
26738 { ac_try='test -z "$ac_c_werror_flag"
26739 || test ! -s conftest.err'
26740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741 (eval $ac_try) 2>&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); }; } &&
26745 { ac_try='test -s conftest$ac_exeext'
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; }; then
26751 eval "$as_ac_var=yes"
26753 echo "$as_me: failed program was:" >&5
26754 sed 's/^/| /' conftest.$ac_ext >&5
26756 eval "$as_ac_var=no"
26758 rm -f conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
26761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26763 if test `eval echo '${'$as_ac_var'}'` = yes; then
26764 cat >>confdefs.h <<_ACEOF
26765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26772 for ac_func in fdatasync
26774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26775 echo "$as_me:$LINENO: checking for $ac_func" >&5
26776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26777 if eval "test \"\${$as_ac_var+set}\" = set"; then
26778 echo $ECHO_N "(cached) $ECHO_C" >&6
26780 cat >conftest.$ac_ext <<_ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h. */
26786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26788 #define $ac_func innocuous_$ac_func
26790 /* System header to define __stub macros and hopefully few prototypes,
26791 which can conflict with char $ac_func (); below.
26792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26793 <limits.h> exists even on freestanding compilers. */
26796 # include <limits.h>
26798 # include <assert.h>
26803 /* Override any gcc2 internal prototype to avoid an error. */
26808 /* We use char because int might match the return type of a gcc2
26809 builtin and then its argument prototype would still apply. */
26811 /* The GNU C library defines this for functions which it implements
26812 to always fail with ENOSYS. Some functions are actually named
26813 something starting with __ and the normal name is an alias. */
26814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26817 char (*f) () = $ac_func;
26826 return f != $ac_func;
26831 rm -f conftest.$ac_objext conftest$ac_exeext
26832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26833 (eval $ac_link) 2>conftest.er1
26835 grep -v '^ *+' conftest.er1 >conftest.err
26837 cat conftest.err >&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); } &&
26840 { ac_try='test -z "$ac_c_werror_flag"
26841 || test ! -s conftest.err'
26842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26843 (eval $ac_try) 2>&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); }; } &&
26847 { ac_try='test -s conftest$ac_exeext'
26848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849 (eval $ac_try) 2>&5
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); }; }; then
26853 eval "$as_ac_var=yes"
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26858 eval "$as_ac_var=no"
26860 rm -f conftest.err conftest.$ac_objext \
26861 conftest$ac_exeext conftest.$ac_ext
26863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26865 if test `eval echo '${'$as_ac_var'}'` = yes; then
26866 cat >>confdefs.h <<_ACEOF
26867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26875 for ac_func in chflags
26877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26878 echo "$as_me:$LINENO: checking for $ac_func" >&5
26879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26880 if eval "test \"\${$as_ac_var+set}\" = set"; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26883 cat >conftest.$ac_ext <<_ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h. */
26889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26891 #define $ac_func innocuous_$ac_func
26893 /* System header to define __stub macros and hopefully few prototypes,
26894 which can conflict with char $ac_func (); below.
26895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26896 <limits.h> exists even on freestanding compilers. */
26899 # include <limits.h>
26901 # include <assert.h>
26906 /* Override any gcc2 internal prototype to avoid an error. */
26911 /* We use char because int might match the return type of a gcc2
26912 builtin and then its argument prototype would still apply. */
26914 /* The GNU C library defines this for functions which it implements
26915 to always fail with ENOSYS. Some functions are actually named
26916 something starting with __ and the normal name is an alias. */
26917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26920 char (*f) () = $ac_func;
26929 return f != $ac_func;
26934 rm -f conftest.$ac_objext conftest$ac_exeext
26935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26936 (eval $ac_link) 2>conftest.er1
26938 grep -v '^ *+' conftest.er1 >conftest.err
26940 cat conftest.err >&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } &&
26943 { ac_try='test -z "$ac_c_werror_flag"
26944 || test ! -s conftest.err'
26945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946 (eval $ac_try) 2>&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; } &&
26950 { ac_try='test -s conftest$ac_exeext'
26951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26952 (eval $ac_try) 2>&5
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); }; }; then
26956 eval "$as_ac_var=yes"
26958 echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26961 eval "$as_ac_var=no"
26963 rm -f conftest.err conftest.$ac_objext \
26964 conftest$ac_exeext conftest.$ac_ext
26966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26968 if test `eval echo '${'$as_ac_var'}'` = yes; then
26969 cat >>confdefs.h <<_ACEOF
26970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26981 for ac_func in snprintf vsnprintf gethostid fseeko
26983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26984 echo "$as_me:$LINENO: checking for $ac_func" >&5
26985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26986 if eval "test \"\${$as_ac_var+set}\" = set"; then
26987 echo $ECHO_N "(cached) $ECHO_C" >&6
26989 cat >conftest.$ac_ext <<_ACEOF
26992 cat confdefs.h >>conftest.$ac_ext
26993 cat >>conftest.$ac_ext <<_ACEOF
26994 /* end confdefs.h. */
26995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26997 #define $ac_func innocuous_$ac_func
26999 /* System header to define __stub macros and hopefully few prototypes,
27000 which can conflict with char $ac_func (); below.
27001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27002 <limits.h> exists even on freestanding compilers. */
27005 # include <limits.h>
27007 # include <assert.h>
27012 /* Override any gcc2 internal prototype to avoid an error. */
27017 /* We use char because int might match the return type of a gcc2
27018 builtin and then its argument prototype would still apply. */
27020 /* The GNU C library defines this for functions which it implements
27021 to always fail with ENOSYS. Some functions are actually named
27022 something starting with __ and the normal name is an alias. */
27023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27026 char (*f) () = $ac_func;
27035 return f != $ac_func;
27040 rm -f conftest.$ac_objext conftest$ac_exeext
27041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27042 (eval $ac_link) 2>conftest.er1
27044 grep -v '^ *+' conftest.er1 >conftest.err
27046 cat conftest.err >&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); } &&
27049 { ac_try='test -z "$ac_c_werror_flag"
27050 || test ! -s conftest.err'
27051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052 (eval $ac_try) 2>&5
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); }; } &&
27056 { ac_try='test -s conftest$ac_exeext'
27057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; }; then
27062 eval "$as_ac_var=yes"
27064 echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27067 eval "$as_ac_var=no"
27069 rm -f conftest.err conftest.$ac_objext \
27070 conftest$ac_exeext conftest.$ac_ext
27072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27074 if test `eval echo '${'$as_ac_var'}'` = yes; then
27075 cat >>confdefs.h <<_ACEOF
27076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27087 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27090 echo "$as_me:$LINENO: checking for $ac_func" >&5
27091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27092 if eval "test \"\${$as_ac_var+set}\" = set"; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27095 cat >conftest.$ac_ext <<_ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27103 #define $ac_func innocuous_$ac_func
27105 /* System header to define __stub macros and hopefully few prototypes,
27106 which can conflict with char $ac_func (); below.
27107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27108 <limits.h> exists even on freestanding compilers. */
27111 # include <limits.h>
27113 # include <assert.h>
27118 /* Override any gcc2 internal prototype to avoid an error. */
27123 /* We use char because int might match the return type of a gcc2
27124 builtin and then its argument prototype would still apply. */
27126 /* The GNU C library defines this for functions which it implements
27127 to always fail with ENOSYS. Some functions are actually named
27128 something starting with __ and the normal name is an alias. */
27129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27132 char (*f) () = $ac_func;
27141 return f != $ac_func;
27146 rm -f conftest.$ac_objext conftest$ac_exeext
27147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27148 (eval $ac_link) 2>conftest.er1
27150 grep -v '^ *+' conftest.er1 >conftest.err
27152 cat conftest.err >&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
27155 { ac_try='test -z "$ac_c_werror_flag"
27156 || test ! -s conftest.err'
27157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158 (eval $ac_try) 2>&5
27160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); }; } &&
27162 { ac_try='test -s conftest$ac_exeext'
27163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164 (eval $ac_try) 2>&5
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); }; }; then
27168 eval "$as_ac_var=yes"
27170 echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27173 eval "$as_ac_var=no"
27175 rm -f conftest.err conftest.$ac_objext \
27176 conftest$ac_exeext conftest.$ac_ext
27178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27180 if test `eval echo '${'$as_ac_var'}'` = yes; then
27181 cat >>confdefs.h <<_ACEOF
27182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27189 # If resolver functions are not in libc check for -lnsl or -lresolv.
27190 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27191 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27192 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27193 echo $ECHO_N "(cached) $ECHO_C" >&6
27195 cat >conftest.$ac_ext <<_ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h. */
27201 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27203 #define gethostbyname_r innocuous_gethostbyname_r
27205 /* System header to define __stub macros and hopefully few prototypes,
27206 which can conflict with char gethostbyname_r (); below.
27207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27208 <limits.h> exists even on freestanding compilers. */
27211 # include <limits.h>
27213 # include <assert.h>
27216 #undef gethostbyname_r
27218 /* Override any gcc2 internal prototype to avoid an error. */
27223 /* We use char because int might match the return type of a gcc2
27224 builtin and then its argument prototype would still apply. */
27225 char gethostbyname_r ();
27226 /* The GNU C library defines this for functions which it implements
27227 to always fail with ENOSYS. Some functions are actually named
27228 something starting with __ and the normal name is an alias. */
27229 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27232 char (*f) () = gethostbyname_r;
27241 return f != gethostbyname_r;
27246 rm -f conftest.$ac_objext conftest$ac_exeext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27248 (eval $ac_link) 2>conftest.er1
27250 grep -v '^ *+' conftest.er1 >conftest.err
27252 cat conftest.err >&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } &&
27255 { ac_try='test -z "$ac_c_werror_flag"
27256 || test ! -s conftest.err'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; } &&
27262 { ac_try='test -s conftest$ac_exeext'
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; }; then
27268 ac_cv_func_gethostbyname_r=yes
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27273 ac_cv_func_gethostbyname_r=no
27275 rm -f conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
27278 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27279 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27280 if test $ac_cv_func_gethostbyname_r = yes; then
27281 echo "$as_me:$LINENO: result: using libc's resolver" >&5
27282 echo "${ECHO_T}using libc's resolver" >&6
27285 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27286 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27287 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27288 echo $ECHO_N "(cached) $ECHO_C" >&6
27290 ac_check_lib_save_LIBS=$LIBS
27292 cat >conftest.$ac_ext <<_ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h. */
27299 /* Override any gcc2 internal prototype to avoid an error. */
27303 /* We use char because int might match the return type of a gcc2
27304 builtin and then its argument prototype would still apply. */
27305 char gethostbyname_r ();
27309 gethostbyname_r ();
27314 rm -f conftest.$ac_objext conftest$ac_exeext
27315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27316 (eval $ac_link) 2>conftest.er1
27318 grep -v '^ *+' conftest.er1 >conftest.err
27320 cat conftest.err >&5
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); } &&
27323 { ac_try='test -z "$ac_c_werror_flag"
27324 || test ! -s conftest.err'
27325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326 (eval $ac_try) 2>&5
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; } &&
27330 { ac_try='test -s conftest$ac_exeext'
27331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332 (eval $ac_try) 2>&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; }; then
27336 ac_cv_lib_nsl_gethostbyname_r=yes
27338 echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.$ac_ext >&5
27341 ac_cv_lib_nsl_gethostbyname_r=no
27343 rm -f conftest.err conftest.$ac_objext \
27344 conftest$ac_exeext conftest.$ac_ext
27345 LIBS=$ac_check_lib_save_LIBS
27347 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27348 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27349 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27350 cat >>confdefs.h <<_ACEOF
27351 #define HAVE_LIBNSL 1
27359 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27360 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27361 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27364 ac_check_lib_save_LIBS=$LIBS
27365 LIBS="-lresolv $LIBS"
27366 cat >conftest.$ac_ext <<_ACEOF
27369 cat confdefs.h >>conftest.$ac_ext
27370 cat >>conftest.$ac_ext <<_ACEOF
27371 /* end confdefs.h. */
27373 /* Override any gcc2 internal prototype to avoid an error. */
27377 /* We use char because int might match the return type of a gcc2
27378 builtin and then its argument prototype would still apply. */
27379 char gethostbyname_r ();
27383 gethostbyname_r ();
27388 rm -f conftest.$ac_objext conftest$ac_exeext
27389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27390 (eval $ac_link) 2>conftest.er1
27392 grep -v '^ *+' conftest.er1 >conftest.err
27394 cat conftest.err >&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
27397 { ac_try='test -z "$ac_c_werror_flag"
27398 || test ! -s conftest.err'
27399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400 (eval $ac_try) 2>&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); }; } &&
27404 { ac_try='test -s conftest$ac_exeext'
27405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406 (eval $ac_try) 2>&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); }; }; then
27410 ac_cv_lib_resolv_gethostbyname_r=yes
27412 echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27415 ac_cv_lib_resolv_gethostbyname_r=no
27417 rm -f conftest.err conftest.$ac_objext \
27418 conftest$ac_exeext conftest.$ac_ext
27419 LIBS=$ac_check_lib_save_LIBS
27421 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27422 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27423 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27424 cat >>confdefs.h <<_ACEOF
27425 #define HAVE_LIBRESOLV 1
27428 LIBS="-lresolv $LIBS"
27438 for ac_func in inet_pton
27440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27441 echo "$as_me:$LINENO: checking for $ac_func" >&5
27442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27443 if eval "test \"\${$as_ac_var+set}\" = set"; then
27444 echo $ECHO_N "(cached) $ECHO_C" >&6
27446 cat >conftest.$ac_ext <<_ACEOF
27449 cat confdefs.h >>conftest.$ac_ext
27450 cat >>conftest.$ac_ext <<_ACEOF
27451 /* end confdefs.h. */
27452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27454 #define $ac_func innocuous_$ac_func
27456 /* System header to define __stub macros and hopefully few prototypes,
27457 which can conflict with char $ac_func (); below.
27458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27459 <limits.h> exists even on freestanding compilers. */
27462 # include <limits.h>
27464 # include <assert.h>
27469 /* Override any gcc2 internal prototype to avoid an error. */
27474 /* We use char because int might match the return type of a gcc2
27475 builtin and then its argument prototype would still apply. */
27477 /* The GNU C library defines this for functions which it implements
27478 to always fail with ENOSYS. Some functions are actually named
27479 something starting with __ and the normal name is an alias. */
27480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27483 char (*f) () = $ac_func;
27492 return f != $ac_func;
27497 rm -f conftest.$ac_objext conftest$ac_exeext
27498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27499 (eval $ac_link) 2>conftest.er1
27501 grep -v '^ *+' conftest.er1 >conftest.err
27503 cat conftest.err >&5
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); } &&
27506 { ac_try='test -z "$ac_c_werror_flag"
27507 || test ! -s conftest.err'
27508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509 (eval $ac_try) 2>&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; } &&
27513 { ac_try='test -s conftest$ac_exeext'
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; }; then
27519 eval "$as_ac_var=yes"
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 eval "$as_ac_var=no"
27526 rm -f conftest.err conftest.$ac_objext \
27527 conftest$ac_exeext conftest.$ac_ext
27529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27531 if test `eval echo '${'$as_ac_var'}'` = yes; then
27532 cat >>confdefs.h <<_ACEOF
27533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27535 cat >>confdefs.h <<\_ACEOF
27536 #define HAVE_INET_PTON 1
27543 for ac_func in inet_ntop
27545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27546 echo "$as_me:$LINENO: checking for $ac_func" >&5
27547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27548 if eval "test \"\${$as_ac_var+set}\" = set"; then
27549 echo $ECHO_N "(cached) $ECHO_C" >&6
27551 cat >conftest.$ac_ext <<_ACEOF
27554 cat confdefs.h >>conftest.$ac_ext
27555 cat >>conftest.$ac_ext <<_ACEOF
27556 /* end confdefs.h. */
27557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27559 #define $ac_func innocuous_$ac_func
27561 /* System header to define __stub macros and hopefully few prototypes,
27562 which can conflict with char $ac_func (); below.
27563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27564 <limits.h> exists even on freestanding compilers. */
27567 # include <limits.h>
27569 # include <assert.h>
27574 /* Override any gcc2 internal prototype to avoid an error. */
27579 /* We use char because int might match the return type of a gcc2
27580 builtin and then its argument prototype would still apply. */
27582 /* The GNU C library defines this for functions which it implements
27583 to always fail with ENOSYS. Some functions are actually named
27584 something starting with __ and the normal name is an alias. */
27585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27588 char (*f) () = $ac_func;
27597 return f != $ac_func;
27602 rm -f conftest.$ac_objext conftest$ac_exeext
27603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27604 (eval $ac_link) 2>conftest.er1
27606 grep -v '^ *+' conftest.er1 >conftest.err
27608 cat conftest.err >&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); } &&
27611 { ac_try='test -z "$ac_c_werror_flag"
27612 || test ! -s conftest.err'
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; } &&
27618 { ac_try='test -s conftest$ac_exeext'
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; }; then
27624 eval "$as_ac_var=yes"
27626 echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27629 eval "$as_ac_var=no"
27631 rm -f conftest.err conftest.$ac_objext \
27632 conftest$ac_exeext conftest.$ac_ext
27634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27636 if test `eval echo '${'$as_ac_var'}'` = yes; then
27637 cat >>confdefs.h <<_ACEOF
27638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27640 cat >>confdefs.h <<\_ACEOF
27641 #define HAVE_INET_NTOP 1
27648 for ac_func in gethostbyname2
27650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27651 echo "$as_me:$LINENO: checking for $ac_func" >&5
27652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27653 if eval "test \"\${$as_ac_var+set}\" = set"; then
27654 echo $ECHO_N "(cached) $ECHO_C" >&6
27656 cat >conftest.$ac_ext <<_ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h. */
27662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27664 #define $ac_func innocuous_$ac_func
27666 /* System header to define __stub macros and hopefully few prototypes,
27667 which can conflict with char $ac_func (); below.
27668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27669 <limits.h> exists even on freestanding compilers. */
27672 # include <limits.h>
27674 # include <assert.h>
27679 /* Override any gcc2 internal prototype to avoid an error. */
27684 /* We use char because int might match the return type of a gcc2
27685 builtin and then its argument prototype would still apply. */
27687 /* The GNU C library defines this for functions which it implements
27688 to always fail with ENOSYS. Some functions are actually named
27689 something starting with __ and the normal name is an alias. */
27690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27693 char (*f) () = $ac_func;
27702 return f != $ac_func;
27707 rm -f conftest.$ac_objext conftest$ac_exeext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709 (eval $ac_link) 2>conftest.er1
27711 grep -v '^ *+' conftest.er1 >conftest.err
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } &&
27716 { ac_try='test -z "$ac_c_werror_flag"
27717 || test ! -s conftest.err'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; } &&
27723 { ac_try='test -s conftest$ac_exeext'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; }; then
27729 eval "$as_ac_var=yes"
27731 echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27734 eval "$as_ac_var=no"
27736 rm -f conftest.err conftest.$ac_objext \
27737 conftest$ac_exeext conftest.$ac_ext
27739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27741 if test `eval echo '${'$as_ac_var'}'` = yes; then
27742 cat >>confdefs.h <<_ACEOF
27743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27745 cat >>confdefs.h <<\_ACEOF
27746 #define HAVE_GETHOSTBYNAME2 1
27753 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27754 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27755 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27756 echo $ECHO_N "(cached) $ECHO_C" >&6
27758 cat >conftest.$ac_ext <<_ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h. */
27764 #include <sys/socket.h>
27768 struct sockaddr s; s.sa_len;
27773 rm -f conftest.$ac_objext
27774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27775 (eval $ac_compile) 2>conftest.er1
27777 grep -v '^ *+' conftest.er1 >conftest.err
27779 cat conftest.err >&5
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); } &&
27782 { ac_try='test -z "$ac_c_werror_flag"
27783 || test ! -s conftest.err'
27784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785 (eval $ac_try) 2>&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; } &&
27789 { ac_try='test -s conftest.$ac_objext'
27790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791 (eval $ac_try) 2>&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; }; then
27795 ac_cv_struct_sockaddr_sa_len=yes
27797 echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27800 ac_cv_struct_sockaddr_sa_len=no
27802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27804 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27805 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27807 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27809 cat >>confdefs.h <<\_ACEOF
27810 #define HAVE_SA_LEN 1
27819 for ac_func in strftime
27821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27822 echo "$as_me:$LINENO: checking for $ac_func" >&5
27823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27824 if eval "test \"\${$as_ac_var+set}\" = set"; then
27825 echo $ECHO_N "(cached) $ECHO_C" >&6
27827 cat >conftest.$ac_ext <<_ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h. */
27833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27835 #define $ac_func innocuous_$ac_func
27837 /* System header to define __stub macros and hopefully few prototypes,
27838 which can conflict with char $ac_func (); below.
27839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27840 <limits.h> exists even on freestanding compilers. */
27843 # include <limits.h>
27845 # include <assert.h>
27850 /* Override any gcc2 internal prototype to avoid an error. */
27855 /* We use char because int might match the return type of a gcc2
27856 builtin and then its argument prototype would still apply. */
27858 /* The GNU C library defines this for functions which it implements
27859 to always fail with ENOSYS. Some functions are actually named
27860 something starting with __ and the normal name is an alias. */
27861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27864 char (*f) () = $ac_func;
27873 return f != $ac_func;
27878 rm -f conftest.$ac_objext conftest$ac_exeext
27879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27880 (eval $ac_link) 2>conftest.er1
27882 grep -v '^ *+' conftest.er1 >conftest.err
27884 cat conftest.err >&5
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); } &&
27887 { ac_try='test -z "$ac_c_werror_flag"
27888 || test ! -s conftest.err'
27889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27890 (eval $ac_try) 2>&5
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; } &&
27894 { ac_try='test -s conftest$ac_exeext'
27895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27896 (eval $ac_try) 2>&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; }; then
27900 eval "$as_ac_var=yes"
27902 echo "$as_me: failed program was:" >&5
27903 sed 's/^/| /' conftest.$ac_ext >&5
27905 eval "$as_ac_var=no"
27907 rm -f conftest.err conftest.$ac_objext \
27908 conftest$ac_exeext conftest.$ac_ext
27910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27912 if test `eval echo '${'$as_ac_var'}'` = yes; then
27913 cat >>confdefs.h <<_ACEOF
27914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27918 # strftime is in -lintl on SCO UNIX.
27919 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27920 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27921 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27922 echo $ECHO_N "(cached) $ECHO_C" >&6
27924 ac_check_lib_save_LIBS=$LIBS
27925 LIBS="-lintl $LIBS"
27926 cat >conftest.$ac_ext <<_ACEOF
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h. */
27933 /* Override any gcc2 internal prototype to avoid an error. */
27937 /* We use char because int might match the return type of a gcc2
27938 builtin and then its argument prototype would still apply. */
27948 rm -f conftest.$ac_objext conftest$ac_exeext
27949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27950 (eval $ac_link) 2>conftest.er1
27952 grep -v '^ *+' conftest.er1 >conftest.err
27954 cat conftest.err >&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } &&
27957 { ac_try='test -z "$ac_c_werror_flag"
27958 || test ! -s conftest.err'
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; } &&
27964 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27970 ac_cv_lib_intl_strftime=yes
27972 echo "$as_me: failed program was:" >&5
27973 sed 's/^/| /' conftest.$ac_ext >&5
27975 ac_cv_lib_intl_strftime=no
27977 rm -f conftest.err conftest.$ac_objext \
27978 conftest$ac_exeext conftest.$ac_ext
27979 LIBS=$ac_check_lib_save_LIBS
27981 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27982 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27983 if test $ac_cv_lib_intl_strftime = yes; then
27984 cat >>confdefs.h <<\_ACEOF
27985 #define HAVE_STRFTIME 1
27988 LIBS="-lintl $LIBS"
27995 for ac_func in vprintf
27997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27998 echo "$as_me:$LINENO: checking for $ac_func" >&5
27999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28000 if eval "test \"\${$as_ac_var+set}\" = set"; then
28001 echo $ECHO_N "(cached) $ECHO_C" >&6
28003 cat >conftest.$ac_ext <<_ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h. */
28009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28011 #define $ac_func innocuous_$ac_func
28013 /* System header to define __stub macros and hopefully few prototypes,
28014 which can conflict with char $ac_func (); below.
28015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28016 <limits.h> exists even on freestanding compilers. */
28019 # include <limits.h>
28021 # include <assert.h>
28026 /* Override any gcc2 internal prototype to avoid an error. */
28031 /* We use char because int might match the return type of a gcc2
28032 builtin and then its argument prototype would still apply. */
28034 /* The GNU C library defines this for functions which it implements
28035 to always fail with ENOSYS. Some functions are actually named
28036 something starting with __ and the normal name is an alias. */
28037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28040 char (*f) () = $ac_func;
28049 return f != $ac_func;
28054 rm -f conftest.$ac_objext conftest$ac_exeext
28055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28056 (eval $ac_link) 2>conftest.er1
28058 grep -v '^ *+' conftest.er1 >conftest.err
28060 cat conftest.err >&5
28061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062 (exit $ac_status); } &&
28063 { ac_try='test -z "$ac_c_werror_flag"
28064 || test ! -s conftest.err'
28065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28066 (eval $ac_try) 2>&5
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; } &&
28070 { ac_try='test -s conftest$ac_exeext'
28071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072 (eval $ac_try) 2>&5
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; }; then
28076 eval "$as_ac_var=yes"
28078 echo "$as_me: failed program was:" >&5
28079 sed 's/^/| /' conftest.$ac_ext >&5
28081 eval "$as_ac_var=no"
28083 rm -f conftest.err conftest.$ac_objext \
28084 conftest$ac_exeext conftest.$ac_ext
28086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28088 if test `eval echo '${'$as_ac_var'}'` = yes; then
28089 cat >>confdefs.h <<_ACEOF
28090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28093 echo "$as_me:$LINENO: checking for _doprnt" >&5
28094 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28095 if test "${ac_cv_func__doprnt+set}" = set; then
28096 echo $ECHO_N "(cached) $ECHO_C" >&6
28098 cat >conftest.$ac_ext <<_ACEOF
28101 cat confdefs.h >>conftest.$ac_ext
28102 cat >>conftest.$ac_ext <<_ACEOF
28103 /* end confdefs.h. */
28104 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28106 #define _doprnt innocuous__doprnt
28108 /* System header to define __stub macros and hopefully few prototypes,
28109 which can conflict with char _doprnt (); below.
28110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28111 <limits.h> exists even on freestanding compilers. */
28114 # include <limits.h>
28116 # include <assert.h>
28121 /* Override any gcc2 internal prototype to avoid an error. */
28126 /* We use char because int might match the return type of a gcc2
28127 builtin and then its argument prototype would still apply. */
28129 /* The GNU C library defines this for functions which it implements
28130 to always fail with ENOSYS. Some functions are actually named
28131 something starting with __ and the normal name is an alias. */
28132 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28135 char (*f) () = _doprnt;
28144 return f != _doprnt;
28149 rm -f conftest.$ac_objext conftest$ac_exeext
28150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28151 (eval $ac_link) 2>conftest.er1
28153 grep -v '^ *+' conftest.er1 >conftest.err
28155 cat conftest.err >&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); } &&
28158 { ac_try='test -z "$ac_c_werror_flag"
28159 || test ! -s conftest.err'
28160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161 (eval $ac_try) 2>&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); }; } &&
28165 { ac_try='test -s conftest$ac_exeext'
28166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28167 (eval $ac_try) 2>&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); }; }; then
28171 ac_cv_func__doprnt=yes
28173 echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28176 ac_cv_func__doprnt=no
28178 rm -f conftest.err conftest.$ac_objext \
28179 conftest$ac_exeext conftest.$ac_ext
28181 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28182 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28183 if test $ac_cv_func__doprnt = yes; then
28185 cat >>confdefs.h <<\_ACEOF
28186 #define HAVE_DOPRNT 1
28195 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28196 # for constant arguments. Useless!
28197 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28198 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28199 if test "${ac_cv_working_alloca_h+set}" = set; then
28200 echo $ECHO_N "(cached) $ECHO_C" >&6
28202 cat >conftest.$ac_ext <<_ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h. */
28208 #include <alloca.h>
28212 char *p = (char *) alloca (2 * sizeof (int));
28217 rm -f conftest.$ac_objext conftest$ac_exeext
28218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28219 (eval $ac_link) 2>conftest.er1
28221 grep -v '^ *+' conftest.er1 >conftest.err
28223 cat conftest.err >&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } &&
28226 { ac_try='test -z "$ac_c_werror_flag"
28227 || test ! -s conftest.err'
28228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229 (eval $ac_try) 2>&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); }; } &&
28233 { ac_try='test -s conftest$ac_exeext'
28234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235 (eval $ac_try) 2>&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); }; }; then
28239 ac_cv_working_alloca_h=yes
28241 echo "$as_me: failed program was:" >&5
28242 sed 's/^/| /' conftest.$ac_ext >&5
28244 ac_cv_working_alloca_h=no
28246 rm -f conftest.err conftest.$ac_objext \
28247 conftest$ac_exeext conftest.$ac_ext
28249 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28250 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28251 if test $ac_cv_working_alloca_h = yes; then
28253 cat >>confdefs.h <<\_ACEOF
28254 #define HAVE_ALLOCA_H 1
28259 echo "$as_me:$LINENO: checking for alloca" >&5
28260 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28261 if test "${ac_cv_func_alloca_works+set}" = set; then
28262 echo $ECHO_N "(cached) $ECHO_C" >&6
28264 cat >conftest.$ac_ext <<_ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h. */
28271 # define alloca __builtin_alloca
28274 # include <malloc.h>
28275 # define alloca _alloca
28278 # include <alloca.h>
28283 # ifndef alloca /* predefined by HP cc +Olibcalls */
28294 char *p = (char *) alloca (1);
28299 rm -f conftest.$ac_objext conftest$ac_exeext
28300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28301 (eval $ac_link) 2>conftest.er1
28303 grep -v '^ *+' conftest.er1 >conftest.err
28305 cat conftest.err >&5
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); } &&
28308 { ac_try='test -z "$ac_c_werror_flag"
28309 || test ! -s conftest.err'
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); }; } &&
28315 { ac_try='test -s conftest$ac_exeext'
28316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317 (eval $ac_try) 2>&5
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; }; then
28321 ac_cv_func_alloca_works=yes
28323 echo "$as_me: failed program was:" >&5
28324 sed 's/^/| /' conftest.$ac_ext >&5
28326 ac_cv_func_alloca_works=no
28328 rm -f conftest.err conftest.$ac_objext \
28329 conftest$ac_exeext conftest.$ac_ext
28331 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28332 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28334 if test $ac_cv_func_alloca_works = yes; then
28336 cat >>confdefs.h <<\_ACEOF
28337 #define HAVE_ALLOCA 1
28341 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28342 # that cause trouble. Some versions do not even contain alloca or
28343 # contain a buggy version. If you still want to use their alloca,
28344 # use ar to extract alloca.o from them instead of compiling alloca.c.
28346 ALLOCA=alloca.$ac_objext
28348 cat >>confdefs.h <<\_ACEOF
28353 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28354 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28355 if test "${ac_cv_os_cray+set}" = set; then
28356 echo $ECHO_N "(cached) $ECHO_C" >&6
28358 cat >conftest.$ac_ext <<_ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h. */
28364 #if defined(CRAY) && ! defined(CRAY2)
28371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28372 $EGREP "webecray" >/dev/null 2>&1; then
28380 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28381 echo "${ECHO_T}$ac_cv_os_cray" >&6
28382 if test $ac_cv_os_cray = yes; then
28383 for ac_func in _getb67 GETB67 getb67; do
28384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28385 echo "$as_me:$LINENO: checking for $ac_func" >&5
28386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28387 if eval "test \"\${$as_ac_var+set}\" = set"; then
28388 echo $ECHO_N "(cached) $ECHO_C" >&6
28390 cat >conftest.$ac_ext <<_ACEOF
28393 cat confdefs.h >>conftest.$ac_ext
28394 cat >>conftest.$ac_ext <<_ACEOF
28395 /* end confdefs.h. */
28396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28398 #define $ac_func innocuous_$ac_func
28400 /* System header to define __stub macros and hopefully few prototypes,
28401 which can conflict with char $ac_func (); below.
28402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28403 <limits.h> exists even on freestanding compilers. */
28406 # include <limits.h>
28408 # include <assert.h>
28413 /* Override any gcc2 internal prototype to avoid an error. */
28418 /* We use char because int might match the return type of a gcc2
28419 builtin and then its argument prototype would still apply. */
28421 /* The GNU C library defines this for functions which it implements
28422 to always fail with ENOSYS. Some functions are actually named
28423 something starting with __ and the normal name is an alias. */
28424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28427 char (*f) () = $ac_func;
28436 return f != $ac_func;
28441 rm -f conftest.$ac_objext conftest$ac_exeext
28442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28443 (eval $ac_link) 2>conftest.er1
28445 grep -v '^ *+' conftest.er1 >conftest.err
28447 cat conftest.err >&5
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); } &&
28450 { ac_try='test -z "$ac_c_werror_flag"
28451 || test ! -s conftest.err'
28452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453 (eval $ac_try) 2>&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; } &&
28457 { ac_try='test -s conftest$ac_exeext'
28458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28459 (eval $ac_try) 2>&5
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; }; then
28463 eval "$as_ac_var=yes"
28465 echo "$as_me: failed program was:" >&5
28466 sed 's/^/| /' conftest.$ac_ext >&5
28468 eval "$as_ac_var=no"
28470 rm -f conftest.err conftest.$ac_objext \
28471 conftest$ac_exeext conftest.$ac_ext
28473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28475 if test `eval echo '${'$as_ac_var'}'` = yes; then
28477 cat >>confdefs.h <<_ACEOF
28478 #define CRAY_STACKSEG_END $ac_func
28487 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28488 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28489 if test "${ac_cv_c_stack_direction+set}" = set; then
28490 echo $ECHO_N "(cached) $ECHO_C" >&6
28492 if test "$cross_compiling" = yes; then
28493 ac_cv_c_stack_direction=0
28495 cat >conftest.$ac_ext <<_ACEOF
28498 cat confdefs.h >>conftest.$ac_ext
28499 cat >>conftest.$ac_ext <<_ACEOF
28500 /* end confdefs.h. */
28502 find_stack_direction ()
28504 static char *addr = 0;
28509 return find_stack_direction ();
28512 return (&dummy > addr) ? 1 : -1;
28518 exit (find_stack_direction () < 0);
28521 rm -f conftest$ac_exeext
28522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28523 (eval $ac_link) 2>&5
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528 (eval $ac_try) 2>&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; }; then
28532 ac_cv_c_stack_direction=1
28534 echo "$as_me: program exited with status $ac_status" >&5
28535 echo "$as_me: failed program was:" >&5
28536 sed 's/^/| /' conftest.$ac_ext >&5
28538 ( exit $ac_status )
28539 ac_cv_c_stack_direction=-1
28541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28544 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28545 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28547 cat >>confdefs.h <<_ACEOF
28548 #define STACK_DIRECTION $ac_cv_c_stack_direction
28554 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28555 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28556 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28557 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28558 echo $ECHO_N "(cached) $ECHO_C" >&6
28560 ac_check_lib_save_LIBS=$LIBS
28562 cat >conftest.$ac_ext <<_ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h. */
28569 /* Override any gcc2 internal prototype to avoid an error. */
28573 /* We use char because int might match the return type of a gcc2
28574 builtin and then its argument prototype would still apply. */
28584 rm -f conftest.$ac_objext conftest$ac_exeext
28585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28586 (eval $ac_link) 2>conftest.er1
28588 grep -v '^ *+' conftest.er1 >conftest.err
28590 cat conftest.err >&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); } &&
28593 { ac_try='test -z "$ac_c_werror_flag"
28594 || test ! -s conftest.err'
28595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596 (eval $ac_try) 2>&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest$ac_exeext'
28601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602 (eval $ac_try) 2>&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; }; then
28606 ac_cv_lib_sun_getmntent=yes
28608 echo "$as_me: failed program was:" >&5
28609 sed 's/^/| /' conftest.$ac_ext >&5
28611 ac_cv_lib_sun_getmntent=no
28613 rm -f conftest.err conftest.$ac_objext \
28614 conftest$ac_exeext conftest.$ac_ext
28615 LIBS=$ac_check_lib_save_LIBS
28617 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28618 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28619 if test $ac_cv_lib_sun_getmntent = yes; then
28622 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28623 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28624 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28625 echo $ECHO_N "(cached) $ECHO_C" >&6
28627 ac_check_lib_save_LIBS=$LIBS
28629 cat >conftest.$ac_ext <<_ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28636 /* Override any gcc2 internal prototype to avoid an error. */
28640 /* We use char because int might match the return type of a gcc2
28641 builtin and then its argument prototype would still apply. */
28651 rm -f conftest.$ac_objext conftest$ac_exeext
28652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28653 (eval $ac_link) 2>conftest.er1
28655 grep -v '^ *+' conftest.er1 >conftest.err
28657 cat conftest.err >&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); } &&
28660 { ac_try='test -z "$ac_c_werror_flag"
28661 || test ! -s conftest.err'
28662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28663 (eval $ac_try) 2>&5
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); }; } &&
28667 { ac_try='test -s conftest$ac_exeext'
28668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669 (eval $ac_try) 2>&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; }; then
28673 ac_cv_lib_seq_getmntent=yes
28675 echo "$as_me: failed program was:" >&5
28676 sed 's/^/| /' conftest.$ac_ext >&5
28678 ac_cv_lib_seq_getmntent=no
28680 rm -f conftest.err conftest.$ac_objext \
28681 conftest$ac_exeext conftest.$ac_ext
28682 LIBS=$ac_check_lib_save_LIBS
28684 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28685 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28686 if test $ac_cv_lib_seq_getmntent = yes; then
28689 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28690 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28691 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28692 echo $ECHO_N "(cached) $ECHO_C" >&6
28694 ac_check_lib_save_LIBS=$LIBS
28696 cat >conftest.$ac_ext <<_ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h. */
28703 /* Override any gcc2 internal prototype to avoid an error. */
28707 /* We use char because int might match the return type of a gcc2
28708 builtin and then its argument prototype would still apply. */
28718 rm -f conftest.$ac_objext conftest$ac_exeext
28719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28720 (eval $ac_link) 2>conftest.er1
28722 grep -v '^ *+' conftest.er1 >conftest.err
28724 cat conftest.err >&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); } &&
28727 { ac_try='test -z "$ac_c_werror_flag"
28728 || test ! -s conftest.err'
28729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730 (eval $ac_try) 2>&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); }; } &&
28734 { ac_try='test -s conftest$ac_exeext'
28735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 (eval $ac_try) 2>&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; }; then
28740 ac_cv_lib_gen_getmntent=yes
28742 echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28745 ac_cv_lib_gen_getmntent=no
28747 rm -f conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
28749 LIBS=$ac_check_lib_save_LIBS
28751 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28752 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28753 if test $ac_cv_lib_gen_getmntent = yes; then
28762 for ac_func in getmntent
28764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28765 echo "$as_me:$LINENO: checking for $ac_func" >&5
28766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28767 if eval "test \"\${$as_ac_var+set}\" = set"; then
28768 echo $ECHO_N "(cached) $ECHO_C" >&6
28770 cat >conftest.$ac_ext <<_ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h. */
28776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28778 #define $ac_func innocuous_$ac_func
28780 /* System header to define __stub macros and hopefully few prototypes,
28781 which can conflict with char $ac_func (); below.
28782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28783 <limits.h> exists even on freestanding compilers. */
28786 # include <limits.h>
28788 # include <assert.h>
28793 /* Override any gcc2 internal prototype to avoid an error. */
28798 /* We use char because int might match the return type of a gcc2
28799 builtin and then its argument prototype would still apply. */
28801 /* The GNU C library defines this for functions which it implements
28802 to always fail with ENOSYS. Some functions are actually named
28803 something starting with __ and the normal name is an alias. */
28804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28807 char (*f) () = $ac_func;
28816 return f != $ac_func;
28821 rm -f conftest.$ac_objext conftest$ac_exeext
28822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28823 (eval $ac_link) 2>conftest.er1
28825 grep -v '^ *+' conftest.er1 >conftest.err
28827 cat conftest.err >&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } &&
28830 { ac_try='test -z "$ac_c_werror_flag"
28831 || test ! -s conftest.err'
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; } &&
28837 { ac_try='test -s conftest$ac_exeext'
28838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839 (eval $ac_try) 2>&5
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; }; then
28843 eval "$as_ac_var=yes"
28845 echo "$as_me: failed program was:" >&5
28846 sed 's/^/| /' conftest.$ac_ext >&5
28848 eval "$as_ac_var=no"
28850 rm -f conftest.err conftest.$ac_objext \
28851 conftest$ac_exeext conftest.$ac_ext
28853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28855 if test `eval echo '${'$as_ac_var'}'` = yes; then
28856 cat >>confdefs.h <<_ACEOF
28857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28864 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28865 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28866 if test "${ac_cv_func_closedir_void+set}" = set; then
28867 echo $ECHO_N "(cached) $ECHO_C" >&6
28869 if test "$cross_compiling" = yes; then
28870 ac_cv_func_closedir_void=yes
28872 cat >conftest.$ac_ext <<_ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h. */
28878 $ac_includes_default
28879 #include <$ac_header_dirent>
28880 #ifndef __cplusplus
28887 exit (closedir (opendir (".")) != 0);
28892 rm -f conftest$ac_exeext
28893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28894 (eval $ac_link) 2>&5
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; }; then
28903 ac_cv_func_closedir_void=no
28905 echo "$as_me: program exited with status $ac_status" >&5
28906 echo "$as_me: failed program was:" >&5
28907 sed 's/^/| /' conftest.$ac_ext >&5
28909 ( exit $ac_status )
28910 ac_cv_func_closedir_void=yes
28912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28915 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28916 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28917 if test $ac_cv_func_closedir_void = yes; then
28919 cat >>confdefs.h <<\_ACEOF
28920 #define CLOSEDIR_VOID 1
28925 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28926 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28927 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28928 echo $ECHO_N "(cached) $ECHO_C" >&6
28930 if test "$cross_compiling" = yes; then
28931 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28932 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28933 { (exit 1); exit 1; }; }
28935 cat >conftest.$ac_ext <<_ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h. */
28942 # include <unistd.h>
28948 /* If this system has a BSD-style setpgrp which takes arguments,
28949 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28950 exit successfully. */
28951 exit (setpgrp (1,1) == -1 ? 0 : 1);
28956 rm -f conftest$ac_exeext
28957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28958 (eval $ac_link) 2>&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28963 (eval $ac_try) 2>&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); }; }; then
28967 ac_cv_func_setpgrp_void=no
28969 echo "$as_me: program exited with status $ac_status" >&5
28970 echo "$as_me: failed program was:" >&5
28971 sed 's/^/| /' conftest.$ac_ext >&5
28973 ( exit $ac_status )
28974 ac_cv_func_setpgrp_void=yes
28976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28979 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28980 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28981 if test $ac_cv_func_setpgrp_void = yes; then
28983 cat >>confdefs.h <<\_ACEOF
28984 #define SETPGRP_VOID 1
28988 # AC_FUNC_FNMATCH dnl use local version
28991 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28992 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28993 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28994 echo $ECHO_N "(cached) $ECHO_C" >&6
28996 ac_check_lib_save_LIBS=$LIBS
28997 LIBS="-lintl $LIBS"
28998 cat >conftest.$ac_ext <<_ACEOF
29001 cat confdefs.h >>conftest.$ac_ext
29002 cat >>conftest.$ac_ext <<_ACEOF
29003 /* end confdefs.h. */
29005 /* Override any gcc2 internal prototype to avoid an error. */
29009 /* We use char because int might match the return type of a gcc2
29010 builtin and then its argument prototype would still apply. */
29020 rm -f conftest.$ac_objext conftest$ac_exeext
29021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29022 (eval $ac_link) 2>conftest.er1
29024 grep -v '^ *+' conftest.er1 >conftest.err
29026 cat conftest.err >&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } &&
29029 { ac_try='test -z "$ac_c_werror_flag"
29030 || test ! -s conftest.err'
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; } &&
29036 { ac_try='test -s conftest$ac_exeext'
29037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038 (eval $ac_try) 2>&5
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); }; }; then
29042 ac_cv_lib_intl_gettext=yes
29044 echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29047 ac_cv_lib_intl_gettext=no
29049 rm -f conftest.err conftest.$ac_objext \
29050 conftest$ac_exeext conftest.$ac_ext
29051 LIBS=$ac_check_lib_save_LIBS
29053 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29054 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29055 if test $ac_cv_lib_intl_gettext = yes; then
29056 LIBS="$LIBS -lintl"
29062 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29063 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29064 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29065 echo $ECHO_N "(cached) $ECHO_C" >&6
29067 ac_check_lib_save_LIBS=$LIBS
29069 cat >conftest.$ac_ext <<_ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h. */
29076 /* Override any gcc2 internal prototype to avoid an error. */
29080 /* We use char because int might match the return type of a gcc2
29081 builtin and then its argument prototype would still apply. */
29091 rm -f conftest.$ac_objext conftest$ac_exeext
29092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29093 (eval $ac_link) 2>conftest.er1
29095 grep -v '^ *+' conftest.er1 >conftest.err
29097 cat conftest.err >&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } &&
29100 { ac_try='test -z "$ac_c_werror_flag"
29101 || test ! -s conftest.err'
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; } &&
29107 { ac_try='test -s conftest$ac_exeext'
29108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109 (eval $ac_try) 2>&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; }; then
29113 ac_cv_lib_sun_getpwnam=yes
29115 echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29118 ac_cv_lib_sun_getpwnam=no
29120 rm -f conftest.err conftest.$ac_objext \
29121 conftest$ac_exeext conftest.$ac_ext
29122 LIBS=$ac_check_lib_save_LIBS
29124 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29125 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29126 if test $ac_cv_lib_sun_getpwnam = yes; then
29127 cat >>confdefs.h <<_ACEOF
29128 #define HAVE_LIBSUN 1
29137 for ac_header in zlib.h
29139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29141 echo "$as_me:$LINENO: checking for $ac_header" >&5
29142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29144 echo $ECHO_N "(cached) $ECHO_C" >&6
29146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29149 # Is the header compilable?
29150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29152 cat >conftest.$ac_ext <<_ACEOF
29155 cat confdefs.h >>conftest.$ac_ext
29156 cat >>conftest.$ac_ext <<_ACEOF
29157 /* end confdefs.h. */
29158 $ac_includes_default
29159 #include <$ac_header>
29161 rm -f conftest.$ac_objext
29162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29163 (eval $ac_compile) 2>conftest.er1
29165 grep -v '^ *+' conftest.er1 >conftest.err
29167 cat conftest.err >&5
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); } &&
29170 { ac_try='test -z "$ac_c_werror_flag"
29171 || test ! -s conftest.err'
29172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29173 (eval $ac_try) 2>&5
29175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); }; } &&
29177 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29183 ac_header_compiler=yes
29185 echo "$as_me: failed program was:" >&5
29186 sed 's/^/| /' conftest.$ac_ext >&5
29188 ac_header_compiler=no
29190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29192 echo "${ECHO_T}$ac_header_compiler" >&6
29194 # Is the header present?
29195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29197 cat >conftest.$ac_ext <<_ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h. */
29203 #include <$ac_header>
29205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29208 grep -v '^ *+' conftest.er1 >conftest.err
29210 cat conftest.err >&5
29211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212 (exit $ac_status); } >/dev/null; then
29213 if test -s conftest.err; then
29214 ac_cpp_err=$ac_c_preproc_warn_flag
29215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29222 if test -z "$ac_cpp_err"; then
29223 ac_header_preproc=yes
29225 echo "$as_me: failed program was:" >&5
29226 sed 's/^/| /' conftest.$ac_ext >&5
29228 ac_header_preproc=no
29230 rm -f conftest.err conftest.$ac_ext
29231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29232 echo "${ECHO_T}$ac_header_preproc" >&6
29234 # So? What about this header?
29235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29241 ac_header_preproc=yes
29244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29251 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29258 ## ------------------------------------------ ##
29259 ## Report this to the AC_PACKAGE_NAME lists. ##
29260 ## ------------------------------------------ ##
29263 sed "s/^/$as_me: WARNING: /" >&2
29266 echo "$as_me:$LINENO: checking for $ac_header" >&5
29267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29269 echo $ECHO_N "(cached) $ECHO_C" >&6
29271 eval "$as_ac_Header=\$ac_header_preproc"
29273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29278 cat >>confdefs.h <<_ACEOF
29279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29286 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29287 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29288 if test "${ac_cv_lib_z_deflate+set}" = set; then
29289 echo $ECHO_N "(cached) $ECHO_C" >&6
29291 ac_check_lib_save_LIBS=$LIBS
29293 cat >conftest.$ac_ext <<_ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h. */
29300 /* Override any gcc2 internal prototype to avoid an error. */
29304 /* We use char because int might match the return type of a gcc2
29305 builtin and then its argument prototype would still apply. */
29315 rm -f conftest.$ac_objext conftest$ac_exeext
29316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29317 (eval $ac_link) 2>conftest.er1
29319 grep -v '^ *+' conftest.er1 >conftest.err
29321 cat conftest.err >&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } &&
29324 { ac_try='test -z "$ac_c_werror_flag"
29325 || test ! -s conftest.err'
29326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327 (eval $ac_try) 2>&5
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); }; } &&
29331 { ac_try='test -s conftest$ac_exeext'
29332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 (eval $ac_try) 2>&5
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); }; }; then
29337 ac_cv_lib_z_deflate=yes
29339 echo "$as_me: failed program was:" >&5
29340 sed 's/^/| /' conftest.$ac_ext >&5
29342 ac_cv_lib_z_deflate=no
29344 rm -f conftest.err conftest.$ac_objext \
29345 conftest$ac_exeext conftest.$ac_ext
29346 LIBS=$ac_check_lib_save_LIBS
29348 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29349 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29350 if test $ac_cv_lib_z_deflate = yes; then
29355 if test x$FDLIBS = x-lz; then
29356 cat >>confdefs.h <<\_ACEOF
29357 #define HAVE_LIBZ 1
29364 # Check for ACL libraries
29367 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29368 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29369 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29370 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29371 echo $ECHO_N "(cached) $ECHO_C" >&6
29373 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29374 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29376 # Is the header compilable?
29377 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29378 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29379 cat >conftest.$ac_ext <<_ACEOF
29382 cat confdefs.h >>conftest.$ac_ext
29383 cat >>conftest.$ac_ext <<_ACEOF
29384 /* end confdefs.h. */
29385 $ac_includes_default
29386 #include <sys/acl.h>
29388 rm -f conftest.$ac_objext
29389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29390 (eval $ac_compile) 2>conftest.er1
29392 grep -v '^ *+' conftest.er1 >conftest.err
29394 cat conftest.err >&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); } &&
29397 { ac_try='test -z "$ac_c_werror_flag"
29398 || test ! -s conftest.err'
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; } &&
29404 { ac_try='test -s conftest.$ac_objext'
29405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406 (eval $ac_try) 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29410 ac_header_compiler=yes
29412 echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29415 ac_header_compiler=no
29417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29419 echo "${ECHO_T}$ac_header_compiler" >&6
29421 # Is the header present?
29422 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29423 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29424 cat >conftest.$ac_ext <<_ACEOF
29427 cat confdefs.h >>conftest.$ac_ext
29428 cat >>conftest.$ac_ext <<_ACEOF
29429 /* end confdefs.h. */
29430 #include <sys/acl.h>
29432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29435 grep -v '^ *+' conftest.er1 >conftest.err
29437 cat conftest.err >&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); } >/dev/null; then
29440 if test -s conftest.err; then
29441 ac_cpp_err=$ac_c_preproc_warn_flag
29442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29449 if test -z "$ac_cpp_err"; then
29450 ac_header_preproc=yes
29452 echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29455 ac_header_preproc=no
29457 rm -f conftest.err conftest.$ac_ext
29458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29459 echo "${ECHO_T}$ac_header_preproc" >&6
29461 # So? What about this header?
29462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29464 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29465 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29466 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29467 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29468 ac_header_preproc=yes
29471 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29472 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29473 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29474 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29475 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29476 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29477 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29478 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29479 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29480 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29481 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29482 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29485 ## ------------------------------------------ ##
29486 ## Report this to the AC_PACKAGE_NAME lists. ##
29487 ## ------------------------------------------ ##
29490 sed "s/^/$as_me: WARNING: /" >&2
29493 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29494 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29495 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29496 echo $ECHO_N "(cached) $ECHO_C" >&6
29498 ac_cv_header_sys_acl_h=$ac_header_preproc
29500 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29501 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29506 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29507 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29508 if test "${ac_cv_func_acl_get_file+set}" = set; then
29509 echo $ECHO_N "(cached) $ECHO_C" >&6
29511 cat >conftest.$ac_ext <<_ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h. */
29517 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29519 #define acl_get_file innocuous_acl_get_file
29521 /* System header to define __stub macros and hopefully few prototypes,
29522 which can conflict with char acl_get_file (); below.
29523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29524 <limits.h> exists even on freestanding compilers. */
29527 # include <limits.h>
29529 # include <assert.h>
29532 #undef acl_get_file
29534 /* Override any gcc2 internal prototype to avoid an error. */
29539 /* We use char because int might match the return type of a gcc2
29540 builtin and then its argument prototype would still apply. */
29541 char acl_get_file ();
29542 /* The GNU C library defines this for functions which it implements
29543 to always fail with ENOSYS. Some functions are actually named
29544 something starting with __ and the normal name is an alias. */
29545 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29548 char (*f) () = acl_get_file;
29557 return f != acl_get_file;
29562 rm -f conftest.$ac_objext conftest$ac_exeext
29563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29564 (eval $ac_link) 2>conftest.er1
29566 grep -v '^ *+' conftest.er1 >conftest.err
29568 cat conftest.err >&5
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); } &&
29571 { ac_try='test -z "$ac_c_werror_flag"
29572 || test ! -s conftest.err'
29573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29574 (eval $ac_try) 2>&5
29576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); }; } &&
29578 { ac_try='test -s conftest$ac_exeext'
29579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29580 (eval $ac_try) 2>&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; }; then
29584 ac_cv_func_acl_get_file=yes
29586 echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29589 ac_cv_func_acl_get_file=no
29591 rm -f conftest.err conftest.$ac_objext \
29592 conftest$ac_exeext conftest.$ac_ext
29594 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29595 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29596 if test $ac_cv_func_acl_get_file = yes; then
29599 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29600 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29601 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29602 echo $ECHO_N "(cached) $ECHO_C" >&6
29604 ac_check_lib_save_LIBS=$LIBS
29606 cat >conftest.$ac_ext <<_ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h. */
29613 /* Override any gcc2 internal prototype to avoid an error. */
29617 /* We use char because int might match the return type of a gcc2
29618 builtin and then its argument prototype would still apply. */
29619 char acl_get_file ();
29628 rm -f conftest.$ac_objext conftest$ac_exeext
29629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29630 (eval $ac_link) 2>conftest.er1
29632 grep -v '^ *+' conftest.er1 >conftest.err
29634 cat conftest.err >&5
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); } &&
29637 { ac_try='test -z "$ac_c_werror_flag"
29638 || test ! -s conftest.err'
29639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29640 (eval $ac_try) 2>&5
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; } &&
29644 { ac_try='test -s conftest$ac_exeext'
29645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29646 (eval $ac_try) 2>&5
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); }; }; then
29650 ac_cv_lib_acl_acl_get_file=yes
29652 echo "$as_me: failed program was:" >&5
29653 sed 's/^/| /' conftest.$ac_ext >&5
29655 ac_cv_lib_acl_acl_get_file=no
29657 rm -f conftest.err conftest.$ac_objext \
29658 conftest$ac_exeext conftest.$ac_ext
29659 LIBS=$ac_check_lib_save_LIBS
29661 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29662 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29663 if test $ac_cv_lib_acl_acl_get_file = yes; then
29664 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29666 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29667 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29668 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29669 echo $ECHO_N "(cached) $ECHO_C" >&6
29671 ac_check_lib_save_LIBS=$LIBS
29673 cat >conftest.$ac_ext <<_ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h. */
29680 /* Override any gcc2 internal prototype to avoid an error. */
29684 /* We use char because int might match the return type of a gcc2
29685 builtin and then its argument prototype would still apply. */
29695 rm -f conftest.$ac_objext conftest$ac_exeext
29696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29697 (eval $ac_link) 2>conftest.er1
29699 grep -v '^ *+' conftest.er1 >conftest.err
29701 cat conftest.err >&5
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); } &&
29704 { ac_try='test -z "$ac_c_werror_flag"
29705 || test ! -s conftest.err'
29706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707 (eval $ac_try) 2>&5
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); }; } &&
29711 { ac_try='test -s conftest$ac_exeext'
29712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713 (eval $ac_try) 2>&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; }; then
29717 ac_cv_lib_sec_acltotext=yes
29719 echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29722 ac_cv_lib_sec_acltotext=no
29724 rm -f conftest.err conftest.$ac_objext \
29725 conftest$ac_exeext conftest.$ac_ext
29726 LIBS=$ac_check_lib_save_LIBS
29728 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29729 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29730 if test $ac_cv_lib_sec_acltotext = yes; then
29731 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29740 if test $have_acl = yes; then
29741 cat >>confdefs.h <<\_ACEOF
29748 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29749 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29750 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29751 echo $ECHO_N "(cached) $ECHO_C" >&6
29753 ac_check_lib_save_LIBS=$LIBS
29754 LIBS="-lpthread $LIBS"
29755 cat >conftest.$ac_ext <<_ACEOF
29758 cat confdefs.h >>conftest.$ac_ext
29759 cat >>conftest.$ac_ext <<_ACEOF
29760 /* end confdefs.h. */
29762 /* Override any gcc2 internal prototype to avoid an error. */
29766 /* We use char because int might match the return type of a gcc2
29767 builtin and then its argument prototype would still apply. */
29768 char pthread_create ();
29777 rm -f conftest.$ac_objext conftest$ac_exeext
29778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29779 (eval $ac_link) 2>conftest.er1
29781 grep -v '^ *+' conftest.er1 >conftest.err
29783 cat conftest.err >&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } &&
29786 { ac_try='test -z "$ac_c_werror_flag"
29787 || test ! -s conftest.err'
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); }; } &&
29793 { ac_try='test -s conftest$ac_exeext'
29794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29795 (eval $ac_try) 2>&5
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798 (exit $ac_status); }; }; then
29799 ac_cv_lib_pthread_pthread_create=yes
29801 echo "$as_me: failed program was:" >&5
29802 sed 's/^/| /' conftest.$ac_ext >&5
29804 ac_cv_lib_pthread_pthread_create=no
29806 rm -f conftest.err conftest.$ac_objext \
29807 conftest$ac_exeext conftest.$ac_ext
29808 LIBS=$ac_check_lib_save_LIBS
29810 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29811 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29812 if test $ac_cv_lib_pthread_pthread_create = yes; then
29813 PTHREAD_LIB="-lpthread"
29815 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29816 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29817 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29820 ac_check_lib_save_LIBS=$LIBS
29821 LIBS="-lpthreads $LIBS"
29822 cat >conftest.$ac_ext <<_ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h. */
29829 /* Override any gcc2 internal prototype to avoid an error. */
29833 /* We use char because int might match the return type of a gcc2
29834 builtin and then its argument prototype would still apply. */
29835 char pthread_create ();
29844 rm -f conftest.$ac_objext conftest$ac_exeext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29846 (eval $ac_link) 2>conftest.er1
29848 grep -v '^ *+' conftest.er1 >conftest.err
29850 cat conftest.err >&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); } &&
29853 { ac_try='test -z "$ac_c_werror_flag"
29854 || test ! -s conftest.err'
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; } &&
29860 { ac_try='test -s conftest$ac_exeext'
29861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862 (eval $ac_try) 2>&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); }; }; then
29866 ac_cv_lib_pthreads_pthread_create=yes
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871 ac_cv_lib_pthreads_pthread_create=no
29873 rm -f conftest.err conftest.$ac_objext \
29874 conftest$ac_exeext conftest.$ac_ext
29875 LIBS=$ac_check_lib_save_LIBS
29877 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29878 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29879 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29880 PTHREAD_LIB="-lpthreads"
29882 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29883 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29884 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29885 echo $ECHO_N "(cached) $ECHO_C" >&6
29887 ac_check_lib_save_LIBS=$LIBS
29889 cat >conftest.$ac_ext <<_ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h. */
29896 /* Override any gcc2 internal prototype to avoid an error. */
29900 /* We use char because int might match the return type of a gcc2
29901 builtin and then its argument prototype would still apply. */
29902 char pthread_create ();
29911 rm -f conftest.$ac_objext conftest$ac_exeext
29912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29913 (eval $ac_link) 2>conftest.er1
29915 grep -v '^ *+' conftest.er1 >conftest.err
29917 cat conftest.err >&5
29918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); } &&
29920 { ac_try='test -z "$ac_c_werror_flag"
29921 || test ! -s conftest.err'
29922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923 (eval $ac_try) 2>&5
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); }; } &&
29927 { ac_try='test -s conftest$ac_exeext'
29928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929 (eval $ac_try) 2>&5
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); }; }; then
29933 ac_cv_lib_c_r_pthread_create=yes
29935 echo "$as_me: failed program was:" >&5
29936 sed 's/^/| /' conftest.$ac_ext >&5
29938 ac_cv_lib_c_r_pthread_create=no
29940 rm -f conftest.err conftest.$ac_objext \
29941 conftest$ac_exeext conftest.$ac_ext
29942 LIBS=$ac_check_lib_save_LIBS
29944 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29945 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29946 if test $ac_cv_lib_c_r_pthread_create = yes; then
29947 PTHREAD_LIB="-lc_r"
29949 echo "$as_me:$LINENO: checking for pthread_create" >&5
29950 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29951 if test "${ac_cv_func_pthread_create+set}" = set; then
29952 echo $ECHO_N "(cached) $ECHO_C" >&6
29954 cat >conftest.$ac_ext <<_ACEOF
29957 cat confdefs.h >>conftest.$ac_ext
29958 cat >>conftest.$ac_ext <<_ACEOF
29959 /* end confdefs.h. */
29960 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29962 #define pthread_create innocuous_pthread_create
29964 /* System header to define __stub macros and hopefully few prototypes,
29965 which can conflict with char pthread_create (); below.
29966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29967 <limits.h> exists even on freestanding compilers. */
29970 # include <limits.h>
29972 # include <assert.h>
29975 #undef pthread_create
29977 /* Override any gcc2 internal prototype to avoid an error. */
29982 /* We use char because int might match the return type of a gcc2
29983 builtin and then its argument prototype would still apply. */
29984 char pthread_create ();
29985 /* The GNU C library defines this for functions which it implements
29986 to always fail with ENOSYS. Some functions are actually named
29987 something starting with __ and the normal name is an alias. */
29988 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29991 char (*f) () = pthread_create;
30000 return f != pthread_create;
30005 rm -f conftest.$ac_objext conftest$ac_exeext
30006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30007 (eval $ac_link) 2>conftest.er1
30009 grep -v '^ *+' conftest.er1 >conftest.err
30011 cat conftest.err >&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); } &&
30014 { ac_try='test -z "$ac_c_werror_flag"
30015 || test ! -s conftest.err'
30016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017 (eval $ac_try) 2>&5
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); }; } &&
30021 { ac_try='test -s conftest$ac_exeext'
30022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023 (eval $ac_try) 2>&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); }; }; then
30027 ac_cv_func_pthread_create=yes
30029 echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30032 ac_cv_func_pthread_create=no
30034 rm -f conftest.err conftest.$ac_objext \
30035 conftest$ac_exeext conftest.$ac_ext
30037 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30038 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30051 cat >>confdefs.h <<\_ACEOF
30057 CFLAGS=${CFLAGS--O}
30059 if test x$have_gcc = xyes ; then
30060 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30061 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30063 LDFLAGS=${LDFLAGS--O}
30064 DB_LIBS="${SQL_LFLAGS}"
30065 CPPFLAGS="$CPPFLAGS"
30093 # Finally we set appropriate distribution specific
30094 # variables and defaults
30096 # PFILES are platform specific files
30097 PFILES="platforms/Makefile"
30101 hostname=`uname -n | cut -d '.' -f 1`
30102 if test x${hostname} = x ; then
30103 hostname="localhost"
30105 case "$DISTNAME" in
30108 PSCMD="ps -e -o pid,comm"
30109 PFILES="${PFILES} \
30110 platforms/aix/Makefile"
30111 TAPEDRIVE="/dev/rmt0.1"
30115 PTHREAD_LIB="-lpthread -lexc"
30116 if test "${CC}" = "gcc" ; then
30123 TAPEDRIVE="/dev/nrmt0"
30126 DISTVER=`uname -a |awk '{print $3}'`
30127 TAPEDRIVE="/dev/nrmt0"
30128 PTHREAD_LIB="-pthread"
30129 CFLAGS="${CFLAGS} -pthread"
30130 PSCMD="ps -ax -o pid,command"
30133 PFILES="${PFILES} \
30134 platforms/bsdi/Makefile \
30135 platforms/bsdi/bacula-fd \
30136 platforms/bsdi/bacula-sd \
30137 platforms/bsdi/bacula-dir"
30138 largefile_support="yes"
30141 DISTVER=`uname -a |awk '{print $3}'`
30142 TAPEDRIVE="/dev/nrst0"
30144 WCFLAGS="-mwindows"
30145 WLDFLAGS="-mwindows"
30149 TAPEDRIVE="/dev/nst0"
30150 PSCMD="ps -e -o pid,command"
30152 PFILES="${PFILES} \
30153 platforms/darwin/Makefile"
30156 DISTVER=`cat /etc/debian_version`
30157 TAPEDRIVE="/dev/nrst0"
30158 PSCMD="ps -e -o pid,command"
30161 DISTVER=`uname -a |awk '{print $3}'`
30162 VER=`echo $DISTVER | cut -c 1`
30163 if test x$VER = x4 ; then
30164 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30165 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30169 TAPEDRIVE="/dev/nrsa0"
30170 PSCMD="ps -ax -o pid,command"
30171 PFILES="${PFILES} \
30172 platforms/freebsd/Makefile \
30173 platforms/freebsd/bacula-fd \
30174 platforms/freebsd/bacula-sd \
30175 platforms/freebsd/bacula-dir"
30176 largefile_support="yes"
30179 PSCMD="UNIX95=1; ps -e -o pid,comm"
30180 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30182 TAPEDRIVE="/dev/rmt/0hnb"
30183 PTHREAD_LIB="-lpthread"
30184 cat >>confdefs.h <<\_ACEOF
30185 #define _INCLUDE_LONGLONG 1
30191 TAPEDRIVE="/dev/rmt/0cbn"
30192 PSCMD="ps -e -o pid,comm"
30193 PFILES="${PFILES} \
30194 platforms/irix/Makefile \
30195 platforms/irix/bacula-fd \
30196 platforms/irix/bacula-sd \
30197 platforms/irix/bacula-dir"
30200 DISTVER=`uname -a |awk '{print $3}'`
30203 TAPEDRIVE="/dev/nrst0"
30204 PSCMD="ps -ax -o pid,command"
30205 PTHREAD_LIB="-pthread"
30206 CFLAGS="${CFLAGS} -pthread"
30209 DISTVER=`uname -a |awk '{print $3}'`
30212 TAPEDRIVE="/dev/nrst0"
30213 PSCMD="ps -ax -o pid,command"
30214 PTHREAD_LIB="-pthread"
30215 CFLAGS="${CFLAGS} -pthread"
30216 PFILES="${PFILES} \
30217 platforms/openbsd/Makefile \
30218 platforms/openbsd/bacula-fd \
30219 platforms/openbsd/bacula-sd \
30220 platforms/openbsd/bacula-dir"
30223 if test -f /etc/whitebox-release ; then
30224 f=/etc/whitebox-release
30226 f=/etc/redhat-release
30228 if test `cat $f | grep release |\
30229 cut -f 3 -d ' '`x = "Enterprise"x ; then
30230 DISTVER="Enterprise "`cat $f | grep release |\
30233 DISTVER=`cat /etc/redhat-release | grep release |\
30236 TAPEDRIVE="/dev/nst0"
30237 PSCMD="ps -e -o pid,command"
30238 PFILES="${PFILES} \
30239 platforms/redhat/Makefile \
30240 platforms/redhat/bacula-fd \
30241 platforms/redhat/bacula-sd \
30242 platforms/redhat/bacula-dir \
30243 platforms/redhat/bacula.spec \
30247 DISTVER=`cat /etc/mandrake-release | grep release |\
30249 TAPEDRIVE="/dev/nst0"
30250 PSCMD="ps -e -o pid,command"
30251 PFILES="${PFILES} \
30252 platforms/mandrake/Makefile \
30253 platforms/mandrake/bacula-fd \
30254 platforms/mandrake/bacula-sd \
30255 platforms/mandrake/bacula-dir \
30256 platforms/mandrake/bacula.spec \
30260 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30261 TAPEDRIVE="/dev/nst0"
30262 PSCMD="ps -e -o pid,command"
30263 PFILES="${PFILES} \
30264 platforms/gentoo/Makefile \
30265 platforms/gentoo/bacula-init \
30266 platforms/gentoo/bacula-fd \
30267 platforms/gentoo/bacula-sd \
30268 platforms/gentoo/bacula-dir"
30271 DISTVER=`cat /etc/slackware-version`
30272 TAPEDRIVE="/dev/nst0"
30273 PSCMD="ps -e -o pid,command"
30274 PFILES="${PFILES} \
30275 platforms/slackware/Makefile \
30276 platforms/slackware/rc.bacula-fd \
30277 platforms/slackware/rc.bacula-sd \
30278 platforms/slackware/rc.bacula-dir\
30279 platforms/slackware/functions.bacula"
30283 TAPEDRIVE="/dev/rmt/0cbn"
30284 PSCMD="ps -e -o pid,comm"
30285 PFILES="${PFILES} \
30286 platforms/solaris/Makefile \
30287 platforms/solaris/bacula-fd \
30288 platforms/solaris/bacula-sd \
30289 platforms/solaris/bacula-dir"
30290 if test x$DISTVER = x5.6 ; then
30291 cat >>confdefs.h <<\_ACEOF
30292 #define HAVE_OLD_SOCKOPT 1
30296 LIBS="$LIBS -lresolv"
30299 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30301 TAPEDRIVE="/dev/nst0"
30302 PSCMD="ps -e -o pid,command"
30303 PFILES="${PFILES} \
30304 platforms/suse/Makefile \
30305 platforms/suse/bacula-fd \
30306 platforms/suse/bacula-sd \
30307 platforms/suse/bacula-dir \
30308 platforms/suse/bacula \
30309 platforms/suse/bacula.spec"
30314 TAPEDRIVE="/dev/nst0"
30315 PSCMD="ps -e -o pid,command"
30316 PFILES="${PFILES} \
30317 platforms/suse/Makefile \
30318 platforms/suse/bacula-fd \
30319 platforms/suse/bacula-sd \
30320 platforms/suse/bacula-dir"
30324 TAPEDRIVE="/dev/nst0"
30327 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30333 LIBS="$PTHREAD_LIB $LIBS"
30335 cat >>confdefs.h <<_ACEOF
30339 cat >>confdefs.h <<_ACEOF
30350 MCOMMON=./autoconf/Make.common
30353 if test "x${subsysdir}" = "x${sbindir}" ; then
30356 echo "You have set both --sbindir and --with-subsys-dir"
30357 echo " equal to: ${subsysdir} "
30358 echo "This is not permitted. Please reconfigure."
30360 echo "Aborting configuration ..."
30366 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"
30367 ac_config_commands="$ac_config_commands default"
30368 cat >confcache <<\_ACEOF
30369 # This file is a shell script that caches the results of configure
30370 # tests run on this system so they can be shared between configure
30371 # scripts and configure runs, see configure's option --config-cache.
30372 # It is not useful on other systems. If it contains results you don't
30373 # want to keep, you may remove or edit it.
30375 # config.status only pays attention to the cache file if you give it
30376 # the --recheck option to rerun configure.
30378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30380 # following values.
30384 # The following way of writing the cache mishandles newlines in values,
30385 # but we know of no workaround that is simple, portable, and efficient.
30386 # So, don't put newlines in cache variables' values.
30387 # Ultrix sh set writes to stderr and can't be redirected directly,
30388 # and sets the high bit in the cache file unless we assign to the vars.
30391 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30393 # `set' does not quote correctly, so add quotes (double-quote
30394 # substitution turns \\\\ into \\, and sed turns \\ into \).
30397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30400 # `set' quotes correctly as required by POSIX, so do not add quotes.
30402 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30411 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30413 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30414 if test -w $cache_file; then
30415 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30416 cat confcache >$cache_file
30418 echo "not updating unwritable cache $cache_file"
30423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30424 # Let make expand exec_prefix.
30425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30427 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30428 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30429 # trailing colons and then remove the whole line if VPATH becomes empty
30430 # (actually we leave an empty line to preserve line numbers).
30431 if test "x$srcdir" = x.; then
30432 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30433 s/:*\$(srcdir):*/:/;
30434 s/:*\${srcdir}:*/:/;
30436 s/^\([^=]*=[ ]*\):*/\1/;
30442 DEFS=-DHAVE_CONFIG_H
30446 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30447 # 1. Remove the extension, and $U if already installed.
30448 ac_i=`echo "$ac_i" |
30449 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30451 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30452 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30454 LIBOBJS=$ac_libobjs
30456 LTLIBOBJS=$ac_ltlibobjs
30460 : ${CONFIG_STATUS=./config.status}
30461 ac_clean_files_save=$ac_clean_files
30462 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30463 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30464 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30465 cat >$CONFIG_STATUS <<_ACEOF
30467 # Generated by $as_me.
30468 # Run this file to recreate the current configuration.
30469 # Compiler output produced by configure, useful for debugging
30470 # configure, is in config.log if it exists.
30473 ac_cs_recheck=false
30475 SHELL=\${CONFIG_SHELL-$SHELL}
30478 cat >>$CONFIG_STATUS <<\_ACEOF
30479 ## --------------------- ##
30480 ## M4sh Initialization. ##
30481 ## --------------------- ##
30483 # Be Bourne compatible
30484 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30487 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30488 # is contrary to our usage. Disable this feature.
30489 alias -g '${1+"$@"}'='"$@"'
30490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30493 DUALCASE=1; export DUALCASE # for MKS sh
30495 # Support unset when possible.
30496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30503 # Work around bugs in pre-3.0 UWIN ksh.
30504 $as_unset ENV MAIL MAILPATH
30511 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30512 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30513 LC_TELEPHONE LC_TIME
30515 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30516 eval $as_var=C; export $as_var
30522 # Required to use basename.
30523 if expr a : '\(a\)' >/dev/null 2>&1; then
30529 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30530 as_basename=basename
30536 # Name of the executable.
30537 as_me=`$as_basename "$0" ||
30538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30539 X"$0" : 'X\(//\)$' \| \
30540 X"$0" : 'X\(/\)$' \| \
30541 . : '\(.\)' 2>/dev/null ||
30543 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30544 /^X\/\(\/\/\)$/{ s//\1/; q; }
30545 /^X\/\(\/\).*/{ s//\1/; q; }
30549 # PATH needs CR, and LINENO needs CR and PATH.
30550 # Avoid depending upon Character Ranges.
30551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30554 as_cr_digits='0123456789'
30555 as_cr_alnum=$as_cr_Letters$as_cr_digits
30557 # The user is always right.
30558 if test "${PATH_SEPARATOR+set}" != set; then
30559 echo "#! /bin/sh" >conf$$.sh
30560 echo "exit 0" >>conf$$.sh
30562 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30571 as_lineno_1=$LINENO
30572 as_lineno_2=$LINENO
30573 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30574 test "x$as_lineno_1" != "x$as_lineno_2" &&
30575 test "x$as_lineno_3" = "x$as_lineno_2" || {
30576 # Find who we are. Look in the path if we contain no path at all
30579 *[\\/]* ) as_myself=$0 ;;
30580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30581 for as_dir in $PATH
30584 test -z "$as_dir" && as_dir=.
30585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30590 # We did not find ourselves, most probably we were run as `sh COMMAND'
30591 # in which case we are not to be found in the path.
30592 if test "x$as_myself" = x; then
30595 if test ! -f "$as_myself"; then
30596 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30597 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30598 { (exit 1); exit 1; }; }
30600 case $CONFIG_SHELL in
30602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30603 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30606 test -z "$as_dir" && as_dir=.
30607 for as_base in sh bash ksh sh5; do
30610 if ("$as_dir/$as_base" -c '
30611 as_lineno_1=$LINENO
30612 as_lineno_2=$LINENO
30613 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30614 test "x$as_lineno_1" != "x$as_lineno_2" &&
30615 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30616 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30617 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30618 CONFIG_SHELL=$as_dir/$as_base
30619 export CONFIG_SHELL
30620 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30628 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30629 # uniformly replaced by the line number. The first 'sed' inserts a
30630 # line-number line before each line; the second 'sed' does the real
30631 # work. The second script uses 'N' to pair each line-number line
30632 # with the numbered line, and appends trailing '-' during
30633 # substitution so that $LINENO is not a special case at line end.
30634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30635 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30636 sed '=' <$as_myself |
30641 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30644 s,^['$as_cr_digits']*\n,,
30645 ' >$as_me.lineno &&
30646 chmod +x $as_me.lineno ||
30647 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30648 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30649 { (exit 1); exit 1; }; }
30651 # Don't try to exec as it changes $[0], causing all sort of problems
30652 # (the dirname of $[0] is not the place where we might find the
30653 # original and so on. Autoconf is especially sensible to this).
30655 # Exit status is that of the last command.
30660 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30661 *c*,-n*) ECHO_N= ECHO_C='
30663 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30664 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30667 if expr a : '\(a\)' >/dev/null 2>&1; then
30673 rm -f conf$$ conf$$.exe conf$$.file
30675 if ln -s conf$$.file conf$$ 2>/dev/null; then
30676 # We could just check for DJGPP; but this test a) works b) is more generic
30677 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30678 if test -f conf$$.exe; then
30679 # Don't use ln at all; we don't have any links
30684 elif ln conf$$.file conf$$ 2>/dev/null; then
30689 rm -f conf$$ conf$$.exe conf$$.file
30691 if mkdir -p . 2>/dev/null; then
30694 test -d ./-p && rmdir ./-p
30698 as_executable_p="test -f"
30700 # Sed expression to map a string onto a valid CPP name.
30701 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30703 # Sed expression to map a string onto a valid variable name.
30704 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30708 # We need space, tab and new line, in precisely that order.
30718 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30719 # report actual input values of CONFIG_FILES etc. instead of their
30720 # values after options handling. Logging --version etc. is OK.
30724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30725 ## Running $as_me. ##
30730 This file was extended by $as_me, which was
30731 generated by GNU Autoconf 2.59. Invocation command line was
30733 CONFIG_FILES = $CONFIG_FILES
30734 CONFIG_HEADERS = $CONFIG_HEADERS
30735 CONFIG_LINKS = $CONFIG_LINKS
30736 CONFIG_COMMANDS = $CONFIG_COMMANDS
30740 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30744 # Files that config.status was made for.
30745 if test -n "$ac_config_files"; then
30746 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30749 if test -n "$ac_config_headers"; then
30750 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30753 if test -n "$ac_config_links"; then
30754 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30757 if test -n "$ac_config_commands"; then
30758 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30761 cat >>$CONFIG_STATUS <<\_ACEOF
30764 \`$as_me' instantiates files from templates according to the
30765 current configuration.
30767 Usage: $0 [OPTIONS] [FILE]...
30769 -h, --help print this help, then exit
30770 -V, --version print version number, then exit
30771 -q, --quiet do not print progress messages
30772 -d, --debug don't remove temporary files
30773 --recheck update $as_me by reconfiguring in the same conditions
30774 --file=FILE[:TEMPLATE]
30775 instantiate the configuration file FILE
30776 --header=FILE[:TEMPLATE]
30777 instantiate the configuration header FILE
30779 Configuration files:
30782 Configuration headers:
30785 Configuration commands:
30788 Report bugs to <bug-autoconf@gnu.org>."
30791 cat >>$CONFIG_STATUS <<_ACEOF
30794 configured by $0, generated by GNU Autoconf 2.59,
30795 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30797 Copyright (C) 2003 Free Software Foundation, Inc.
30798 This config.status script is free software; the Free Software Foundation
30799 gives unlimited permission to copy, distribute and modify it."
30804 cat >>$CONFIG_STATUS <<\_ACEOF
30805 # If no file are specified by the user, then we need to provide default
30806 # value. By we need to know if files were specified by the user.
30812 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30813 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30821 *) # This is not an option, so the user has probably given explicit
30824 ac_need_defaults=false;;
30828 # Handling of the options.
30830 cat >>$CONFIG_STATUS <<\_ACEOF
30831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30833 --version | --vers* | -V )
30834 echo "$ac_cs_version"; exit 0 ;;
30836 # Conflict between --help and --header
30837 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30838 Try \`$0 --help' for more information." >&5
30839 echo "$as_me: error: ambiguous option: $1
30840 Try \`$0 --help' for more information." >&2;}
30841 { (exit 1); exit 1; }; };;
30842 --help | --hel | -h )
30843 echo "$ac_cs_usage"; exit 0 ;;
30844 --debug | --d* | -d )
30846 --file | --fil | --fi | --f )
30848 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30849 ac_need_defaults=false;;
30850 --header | --heade | --head | --hea )
30852 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30853 ac_need_defaults=false;;
30854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30855 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30858 # This is an error.
30859 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30860 Try \`$0 --help' for more information." >&5
30861 echo "$as_me: error: unrecognized option: $1
30862 Try \`$0 --help' for more information." >&2;}
30863 { (exit 1); exit 1; }; } ;;
30865 *) ac_config_targets="$ac_config_targets $1" ;;
30871 ac_configure_extra_args=
30873 if $ac_cs_silent; then
30875 ac_configure_extra_args="$ac_configure_extra_args --silent"
30879 cat >>$CONFIG_STATUS <<_ACEOF
30880 if \$ac_cs_recheck; then
30881 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30882 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30887 cat >>$CONFIG_STATUS <<_ACEOF
30889 # INIT-COMMANDS section.
30892 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30893 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30895 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30896 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30897 LINGUAS="${LINGUAS-%UNSET%}"
30904 cat >>$CONFIG_STATUS <<\_ACEOF
30905 for ac_config_target in $ac_config_targets
30907 case "$ac_config_target" in
30908 # Handling of arguments.
30909 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30910 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30911 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30912 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30913 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30914 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30915 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30916 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30917 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30918 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30919 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30920 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30921 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30922 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30923 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30924 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30925 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30926 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30927 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30928 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30929 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30930 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30931 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30932 "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30933 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30934 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30935 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30936 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30937 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30938 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30939 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30940 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30941 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30942 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30943 "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30944 "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30945 "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30946 "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30947 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30948 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30949 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30950 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30951 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30952 "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30953 "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30954 "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30955 "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30956 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30957 "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30958 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30959 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30960 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30961 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30962 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30963 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30964 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30965 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30966 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30967 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30968 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30969 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30970 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30971 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30972 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30973 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30974 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30975 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30976 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30977 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30978 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30979 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30980 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30981 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30982 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30983 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30984 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30985 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30986 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30987 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30988 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30989 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30990 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30991 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30992 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30993 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30994 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30995 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30996 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30997 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30998 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30999 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31000 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31001 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31002 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31003 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31004 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31005 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31006 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31007 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31008 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31009 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31010 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31011 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31012 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31013 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31014 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31015 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31016 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31017 { (exit 1); exit 1; }; };;
31021 # If the user did not use the arguments to specify the items to instantiate,
31022 # then the envvar interface is used. Set only those that are not.
31023 # We use the long form for the default assignment because of an extremely
31024 # bizarre bug on SunOS 4.1.3.
31025 if $ac_need_defaults; then
31026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31031 # Have a temporary directory for convenience. Make it in the build tree
31032 # simply because there is no reason to put it here, and in addition,
31033 # creating and moving files from /tmp can sometimes cause problems.
31034 # Create a temporary directory, and hook for its removal unless debugging.
31037 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31038 trap '{ (exit 1); exit 1; }' 1 2 13 15
31041 # Create a (secure) tmp directory for tmp files.
31044 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31045 test -n "$tmp" && test -d "$tmp"
31048 tmp=./confstat$$-$RANDOM
31049 (umask 077 && mkdir $tmp)
31052 echo "$me: cannot create a temporary directory in ." >&2
31053 { (exit 1); exit 1; }
31058 cat >>$CONFIG_STATUS <<_ACEOF
31061 # CONFIG_FILES section.
31064 # No need to generate the scripts if there are no CONFIG_FILES.
31065 # This happens for instance when ./config.status config.h
31066 if test -n "\$CONFIG_FILES"; then
31067 # Protect against being on the right side of a sed subst in config.status.
31068 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31069 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31070 s,@SHELL@,$SHELL,;t t
31071 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31072 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31073 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31074 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31075 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31076 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31077 s,@exec_prefix@,$exec_prefix,;t t
31078 s,@prefix@,$prefix,;t t
31079 s,@program_transform_name@,$program_transform_name,;t t
31080 s,@bindir@,$bindir,;t t
31081 s,@sbindir@,$sbindir,;t t
31082 s,@libexecdir@,$libexecdir,;t t
31083 s,@datadir@,$datadir,;t t
31084 s,@sysconfdir@,$sysconfdir,;t t
31085 s,@sharedstatedir@,$sharedstatedir,;t t
31086 s,@localstatedir@,$localstatedir,;t t
31087 s,@libdir@,$libdir,;t t
31088 s,@includedir@,$includedir,;t t
31089 s,@oldincludedir@,$oldincludedir,;t t
31090 s,@infodir@,$infodir,;t t
31091 s,@mandir@,$mandir,;t t
31092 s,@build_alias@,$build_alias,;t t
31093 s,@host_alias@,$host_alias,;t t
31094 s,@target_alias@,$target_alias,;t t
31095 s,@DEFS@,$DEFS,;t t
31096 s,@ECHO_C@,$ECHO_C,;t t
31097 s,@ECHO_N@,$ECHO_N,;t t
31098 s,@ECHO_T@,$ECHO_T,;t t
31099 s,@LIBS@,$LIBS,;t t
31100 s,@BUILD_DIR@,$BUILD_DIR,;t t
31101 s,@TOP_DIR@,$TOP_DIR,;t t
31102 s,@TRUEPRG@,$TRUEPRG,;t t
31103 s,@FALSEPRG@,$FALSEPRG,;t t
31104 s,@VERSION@,$VERSION,;t t
31105 s,@DATE@,$DATE,;t t
31106 s,@LSMDATE@,$LSMDATE,;t t
31108 s,@CFLAGS@,$CFLAGS,;t t
31109 s,@LDFLAGS@,$LDFLAGS,;t t
31110 s,@CPPFLAGS@,$CPPFLAGS,;t t
31111 s,@ac_ct_CC@,$ac_ct_CC,;t t
31112 s,@EXEEXT@,$EXEEXT,;t t
31113 s,@OBJEXT@,$OBJEXT,;t t
31115 s,@CXXFLAGS@,$CXXFLAGS,;t t
31116 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31118 s,@EGREP@,$EGREP,;t t
31119 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31120 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31121 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31122 s,@RANLIB@,$RANLIB,;t t
31123 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31128 s,@ECHO@,$ECHO,;t t
31132 s,@OPENSSL@,$OPENSSL,;t t
31135 s,@MKISOFS@,$MKISOFS,;t t
31136 s,@PYTHON@,$PYTHON,;t t
31137 s,@GROWISOFS@,$GROWISOFS,;t t
31138 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31139 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31140 s,@PKGCONFIG@,$PKGCONFIG,;t t
31141 s,@WXCONFIG@,$WXCONFIG,;t t
31142 s,@WXFLAGS@,$WXFLAGS,;t t
31143 s,@CDRECORD@,$CDRECORD,;t t
31144 s,@PIDOF@,$PIDOF,;t t
31146 s,@ARFLAGS@,$ARFLAGS,;t t
31147 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31148 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31149 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31150 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31151 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31152 s,@build@,$build,;t t
31153 s,@build_cpu@,$build_cpu,;t t
31154 s,@build_vendor@,$build_vendor,;t t
31155 s,@build_os@,$build_os,;t t
31156 s,@host@,$host,;t t
31157 s,@host_cpu@,$host_cpu,;t t
31158 s,@host_vendor@,$host_vendor,;t t
31159 s,@host_os@,$host_os,;t t
31160 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31161 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31162 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31163 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31164 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31165 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31166 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31167 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31168 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31169 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31170 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31171 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31172 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31173 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31174 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31175 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31176 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31177 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31178 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31179 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31180 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31181 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31182 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31183 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31184 s,@SET_MAKE@,$SET_MAKE,;t t
31185 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31186 s,@USE_NLS@,$USE_NLS,;t t
31187 s,@MSGFMT@,$MSGFMT,;t t
31188 s,@GMSGFMT@,$GMSGFMT,;t t
31189 s,@XGETTEXT@,$XGETTEXT,;t t
31190 s,@MSGMERGE@,$MSGMERGE,;t t
31191 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31192 s,@LIBICONV@,$LIBICONV,;t t
31193 s,@LTLIBICONV@,$LTLIBICONV,;t t
31194 s,@INTLLIBS@,$INTLLIBS,;t t
31195 s,@LIBINTL@,$LIBINTL,;t t
31196 s,@LTLIBINTL@,$LTLIBINTL,;t t
31197 s,@POSUB@,$POSUB,;t t
31198 s,@GLIBC2@,$GLIBC2,;t t
31199 s,@ALLOCA@,$ALLOCA,;t t
31200 s,@GLIBC21@,$GLIBC21,;t t
31201 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31202 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31203 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31204 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31205 s,@INTLBISON@,$INTLBISON,;t t
31206 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31207 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31208 s,@CATOBJEXT@,$CATOBJEXT,;t t
31209 s,@DATADIRNAME@,$DATADIRNAME,;t t
31210 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31211 s,@GENCAT@,$GENCAT,;t t
31212 s,@INTLOBJS@,$INTLOBJS,;t t
31213 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31214 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31215 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31216 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31217 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31218 s,@GNOME_DIR@,$GNOME_DIR,;t t
31219 s,@BAT_DIR@,$BAT_DIR,;t t
31220 s,@QWT_INC@,$QWT_INC,;t t
31221 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31222 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31223 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31224 s,@WX_DIR@,$WX_DIR,;t t
31225 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31226 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31227 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31228 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31229 s,@STATIC_FD@,$STATIC_FD,;t t
31230 s,@STATIC_SD@,$STATIC_SD,;t t
31231 s,@STATIC_DIR@,$STATIC_DIR,;t t
31232 s,@STATIC_CONS@,$STATIC_CONS,;t t
31233 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31234 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31235 s,@ALL_DIRS@,$ALL_DIRS,;t t
31236 s,@DIRD_DIR@,$DIRD_DIR,;t t
31237 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31238 s,@STORED_DIR@,$STORED_DIR,;t t
31239 s,@CONS_INC@,$CONS_INC,;t t
31240 s,@CONS_OBJ@,$CONS_OBJ,;t t
31241 s,@CONS_SRC@,$CONS_SRC,;t t
31242 s,@CONS_LIBS@,$CONS_LIBS,;t t
31243 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31244 s,@READLINE_SRC@,$READLINE_SRC,;t t
31245 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31246 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31247 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31248 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31249 s,@working_dir@,$working_dir,;t t
31250 s,@scriptdir@,$scriptdir,;t t
31251 s,@dump_email@,$dump_email,;t t
31252 s,@job_email@,$job_email,;t t
31253 s,@smtp_host@,$smtp_host,;t t
31254 s,@piddir@,$piddir,;t t
31255 s,@subsysdir@,$subsysdir,;t t
31256 s,@baseport@,$baseport,;t t
31257 s,@dir_port@,$dir_port,;t t
31258 s,@fd_port@,$fd_port,;t t
31259 s,@sd_port@,$sd_port,;t t
31260 s,@dir_password@,$dir_password,;t t
31261 s,@fd_password@,$fd_password,;t t
31262 s,@sd_password@,$sd_password,;t t
31263 s,@mon_dir_password@,$mon_dir_password,;t t
31264 s,@mon_fd_password@,$mon_fd_password,;t t
31265 s,@mon_sd_password@,$mon_sd_password,;t t
31266 s,@db_name@,$db_name,;t t
31267 s,@db_user@,$db_user,;t t
31268 s,@dir_user@,$dir_user,;t t
31269 s,@dir_group@,$dir_group,;t t
31270 s,@sd_user@,$sd_user,;t t
31271 s,@sd_group@,$sd_group,;t t
31272 s,@fd_user@,$fd_user,;t t
31273 s,@fd_group@,$fd_group,;t t
31274 s,@SBINPERM@,$SBINPERM,;t t
31275 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31276 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31277 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31278 s,@cats@,$cats,;t t
31279 s,@DB_TYPE@,$DB_TYPE,;t t
31280 s,@GETCONF@,$GETCONF,;t t
31281 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31282 s,@X_CFLAGS@,$X_CFLAGS,;t t
31283 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31284 s,@X_LIBS@,$X_LIBS,;t t
31285 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31286 s,@LIBOBJS@,$LIBOBJS,;t t
31287 s,@FDLIBS@,$FDLIBS,;t t
31288 s,@DEBUG@,$DEBUG,;t t
31289 s,@DINCLUDE@,$DINCLUDE,;t t
31290 s,@DLIB@,$DLIB,;t t
31291 s,@DB_LIBS@,$DB_LIBS,;t t
31292 s,@WCFLAGS@,$WCFLAGS,;t t
31293 s,@WLDFLAGS@,$WLDFLAGS,;t t
31294 s,@WRAPLIBS@,$WRAPLIBS,;t t
31295 s,@OBJLIST@,$OBJLIST,;t t
31296 s,@hostname@,$hostname,;t t
31297 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31298 s,@PSCMD@,$PSCMD,;t t
31299 s,@WIN32@,$WIN32,;t t
31300 s,@MACOSX@,$MACOSX,;t t
31301 s,@DISTNAME@,$DISTNAME,;t t
31302 s,@DISTVER@,$DISTVER,;t t
31303 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31304 /@MCOMMON@/r $MCOMMON
31310 cat >>$CONFIG_STATUS <<\_ACEOF
31311 # Split the substitutions into bite-sized pieces for seds with
31312 # small command number limits, like on Digital OSF/1 and HP-UX.
31313 ac_max_sed_lines=48
31314 ac_sed_frag=1 # Number of current file.
31315 ac_beg=1 # First line for current file.
31316 ac_end=$ac_max_sed_lines # Line after last line for current file.
31319 while $ac_more_lines; do
31320 if test $ac_beg -gt 1; then
31321 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31323 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31325 if test ! -s $tmp/subs.frag; then
31326 ac_more_lines=false
31328 # The purpose of the label and of the branching condition is to
31329 # speed up the sed processing (if there are no `@' at all, there
31330 # is no need to browse any of the substitutions).
31331 # These are the two extra sed commands mentioned above.
31333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31334 if test -z "$ac_sed_cmds"; then
31335 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31337 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31339 ac_sed_frag=`expr $ac_sed_frag + 1`
31341 ac_end=`expr $ac_end + $ac_max_sed_lines`
31344 if test -z "$ac_sed_cmds"; then
31347 fi # test -n "$CONFIG_FILES"
31350 cat >>$CONFIG_STATUS <<\_ACEOF
31351 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31354 - | *:- | *:-:* ) # input from stdin
31356 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31358 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31360 * ) ac_file_in=$ac_file.in ;;
31363 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31364 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31366 X"$ac_file" : 'X\(//\)[^/]' \| \
31367 X"$ac_file" : 'X\(//\)$' \| \
31368 X"$ac_file" : 'X\(/\)' \| \
31369 . : '\(.\)' 2>/dev/null ||
31371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31373 /^X\(\/\/\)$/{ s//\1/; q; }
31374 /^X\(\/\).*/{ s//\1/; q; }
31376 { if $as_mkdir_p; then
31381 while test ! -d "$as_dir"; do
31382 as_dirs="$as_dir $as_dirs"
31383 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31385 X"$as_dir" : 'X\(//\)[^/]' \| \
31386 X"$as_dir" : 'X\(//\)$' \| \
31387 X"$as_dir" : 'X\(/\)' \| \
31388 . : '\(.\)' 2>/dev/null ||
31390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31392 /^X\(\/\/\)$/{ s//\1/; q; }
31393 /^X\(\/\).*/{ s//\1/; q; }
31396 test ! -n "$as_dirs" || mkdir $as_dirs
31397 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31398 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31399 { (exit 1); exit 1; }; }; }
31403 if test "$ac_dir" != .; then
31404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31405 # A "../" for each directory in $ac_dir_suffix.
31406 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31408 ac_dir_suffix= ac_top_builddir=
31412 .) # No --srcdir option. We are building in place.
31414 if test -z "$ac_top_builddir"; then
31417 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31419 [\\/]* | ?:[\\/]* ) # Absolute path.
31420 ac_srcdir=$srcdir$ac_dir_suffix;
31421 ac_top_srcdir=$srcdir ;;
31422 *) # Relative path.
31423 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31424 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31427 # Do not use `cd foo && pwd` to compute absolute paths, because
31428 # the directories may not exist.
31430 .) ac_abs_builddir="$ac_dir";;
31433 .) ac_abs_builddir=`pwd`;;
31434 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31435 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31438 case $ac_abs_builddir in
31439 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31441 case ${ac_top_builddir}. in
31442 .) ac_abs_top_builddir=$ac_abs_builddir;;
31443 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31444 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31447 case $ac_abs_builddir in
31448 .) ac_abs_srcdir=$ac_srcdir;;
31451 .) ac_abs_srcdir=$ac_abs_builddir;;
31452 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31453 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31456 case $ac_abs_builddir in
31457 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31459 case $ac_top_srcdir in
31460 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31461 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31462 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31468 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31469 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31472 if test x"$ac_file" != x-; then
31473 { echo "$as_me:$LINENO: creating $ac_file" >&5
31474 echo "$as_me: creating $ac_file" >&6;}
31477 # Let's still pretend it is `configure' which instantiates (i.e., don't
31478 # use $as_me), people would be surprised to read:
31479 # /* config.h. Generated by config.status. */
31480 if test x"$ac_file" = x-; then
31483 configure_input="$ac_file. "
31485 configure_input=$configure_input"Generated from `echo $ac_file_in |
31486 sed 's,.*/,,'` by configure."
31488 # First look for the input files in the build tree, otherwise in the
31490 ac_file_inputs=`IFS=:
31491 for f in $ac_file_in; do
31493 -) echo $tmp/stdin ;;
31495 # Absolute (can't be DOS-style, as IFS=:)
31496 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31497 echo "$as_me: error: cannot find input file: $f" >&2;}
31498 { (exit 1); exit 1; }; }
31501 if test -f "$f"; then
31504 elif test -f "$srcdir/$f"; then
31509 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31510 echo "$as_me: error: cannot find input file: $f" >&2;}
31511 { (exit 1); exit 1; }; }
31514 done` || { (exit 1); exit 1; }
31516 cat >>$CONFIG_STATUS <<_ACEOF
31520 cat >>$CONFIG_STATUS <<\_ACEOF
31522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31523 s,@configure_input@,$configure_input,;t t
31524 s,@srcdir@,$ac_srcdir,;t t
31525 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31526 s,@top_srcdir@,$ac_top_srcdir,;t t
31527 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31528 s,@builddir@,$ac_builddir,;t t
31529 s,@abs_builddir@,$ac_abs_builddir,;t t
31530 s,@top_builddir@,$ac_top_builddir,;t t
31531 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31532 s,@INSTALL@,$ac_INSTALL,;t t
31533 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31535 if test x"$ac_file" != x-; then
31536 mv $tmp/out $ac_file
31544 cat >>$CONFIG_STATUS <<\_ACEOF
31547 # CONFIG_HEADER section.
31550 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31551 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31553 # ac_d sets the value in "#define NAME VALUE" lines.
31554 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31555 ac_dB='[ ].*$,\1#\2'
31558 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31559 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31560 ac_uB='$,\1#\2define\3'
31564 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31567 - | *:- | *:-:* ) # input from stdin
31569 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31571 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31572 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31573 * ) ac_file_in=$ac_file.in ;;
31576 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31577 echo "$as_me: creating $ac_file" >&6;}
31579 # First look for the input files in the build tree, otherwise in the
31581 ac_file_inputs=`IFS=:
31582 for f in $ac_file_in; do
31584 -) echo $tmp/stdin ;;
31586 # Absolute (can't be DOS-style, as IFS=:)
31587 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31588 echo "$as_me: error: cannot find input file: $f" >&2;}
31589 { (exit 1); exit 1; }; }
31590 # Do quote $f, to prevent DOS paths from being IFS'd.
31593 if test -f "$f"; then
31596 elif test -f "$srcdir/$f"; then
31601 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31602 echo "$as_me: error: cannot find input file: $f" >&2;}
31603 { (exit 1); exit 1; }; }
31606 done` || { (exit 1); exit 1; }
31607 # Remove the trailing spaces.
31608 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31612 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31613 # `conftest.undefs', that substitutes the proper values into
31614 # config.h.in to produce config.h. The first handles `#define'
31615 # templates, and the second `#undef' templates.
31616 # And first: Protect against being on the right side of a sed subst in
31617 # config.status. Protect against being in an unquoted here document
31618 # in config.status.
31619 rm -f conftest.defines conftest.undefs
31620 # Using a here document instead of a string reduces the quoting nightmare.
31621 # Putting comments in sed scripts is not portable.
31623 # `end' is used to avoid that the second main sed command (meant for
31624 # 0-ary CPP macros) applies to n-ary macro definitions.
31625 # See the Autoconf documentation for `clear'.
31626 cat >confdef2sed.sed <<\_ACEOF
31631 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31633 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31636 # If some macros were called several times there might be several times
31637 # the same #defines, which is useless. Nevertheless, we may not want to
31638 # sort them, since we want the *last* AC-DEFINE to be honored.
31639 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31640 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31641 rm -f confdef2sed.sed
31643 # This sed command replaces #undef with comments. This is necessary, for
31644 # example, in the case of _POSIX_SOURCE, which is predefined and required
31645 # on some systems where configure will not decide to define it.
31646 cat >>conftest.undefs <<\_ACEOF
31647 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31650 # Break up conftest.defines because some shells have a limit on the size
31651 # of here documents, and old seds have small limits too (100 cmds).
31652 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31653 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31654 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31655 echo ' :' >>$CONFIG_STATUS
31656 rm -f conftest.tail
31657 while grep . conftest.defines >/dev/null
31659 # Write a limited-size here document to $tmp/defines.sed.
31660 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31661 # Speed up: don't consider the non `#define' lines.
31662 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31663 # Work around the forget-to-reset-the-flag bug.
31664 echo 't clr' >>$CONFIG_STATUS
31665 echo ': clr' >>$CONFIG_STATUS
31666 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31668 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31670 mv $tmp/out $tmp/in
31672 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31673 rm -f conftest.defines
31674 mv conftest.tail conftest.defines
31676 rm -f conftest.defines
31677 echo ' fi # grep' >>$CONFIG_STATUS
31678 echo >>$CONFIG_STATUS
31680 # Break up conftest.undefs because some shells have a limit on the size
31681 # of here documents, and old seds have small limits too (100 cmds).
31682 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31683 rm -f conftest.tail
31684 while grep . conftest.undefs >/dev/null
31686 # Write a limited-size here document to $tmp/undefs.sed.
31687 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31688 # Speed up: don't consider the non `#undef'
31689 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31690 # Work around the forget-to-reset-the-flag bug.
31691 echo 't clr' >>$CONFIG_STATUS
31692 echo ': clr' >>$CONFIG_STATUS
31693 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31695 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31697 mv $tmp/out $tmp/in
31699 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31700 rm -f conftest.undefs
31701 mv conftest.tail conftest.undefs
31703 rm -f conftest.undefs
31705 cat >>$CONFIG_STATUS <<\_ACEOF
31706 # Let's still pretend it is `configure' which instantiates (i.e., don't
31707 # use $as_me), people would be surprised to read:
31708 # /* config.h. Generated by config.status. */
31709 if test x"$ac_file" = x-; then
31710 echo "/* Generated by configure. */" >$tmp/config.h
31712 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31714 cat $tmp/in >>$tmp/config.h
31716 if test x"$ac_file" != x-; then
31717 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31718 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31719 echo "$as_me: $ac_file is unchanged" >&6;}
31721 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31723 X"$ac_file" : 'X\(//\)[^/]' \| \
31724 X"$ac_file" : 'X\(//\)$' \| \
31725 X"$ac_file" : 'X\(/\)' \| \
31726 . : '\(.\)' 2>/dev/null ||
31728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31730 /^X\(\/\/\)$/{ s//\1/; q; }
31731 /^X\(\/\).*/{ s//\1/; q; }
31733 { if $as_mkdir_p; then
31738 while test ! -d "$as_dir"; do
31739 as_dirs="$as_dir $as_dirs"
31740 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31742 X"$as_dir" : 'X\(//\)[^/]' \| \
31743 X"$as_dir" : 'X\(//\)$' \| \
31744 X"$as_dir" : 'X\(/\)' \| \
31745 . : '\(.\)' 2>/dev/null ||
31747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31749 /^X\(\/\/\)$/{ s//\1/; q; }
31750 /^X\(\/\).*/{ s//\1/; q; }
31753 test ! -n "$as_dirs" || mkdir $as_dirs
31754 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31756 { (exit 1); exit 1; }; }; }
31759 mv $tmp/config.h $ac_file
31763 rm -f $tmp/config.h
31767 cat >>$CONFIG_STATUS <<\_ACEOF
31770 # CONFIG_COMMANDS section.
31772 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31773 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31774 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31775 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31776 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31777 X"$ac_dest" : 'X\(//\)[^/]' \| \
31778 X"$ac_dest" : 'X\(//\)$' \| \
31779 X"$ac_dest" : 'X\(/\)' \| \
31780 . : '\(.\)' 2>/dev/null ||
31782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31784 /^X\(\/\/\)$/{ s//\1/; q; }
31785 /^X\(\/\).*/{ s//\1/; q; }
31787 { if $as_mkdir_p; then
31792 while test ! -d "$as_dir"; do
31793 as_dirs="$as_dir $as_dirs"
31794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31796 X"$as_dir" : 'X\(//\)[^/]' \| \
31797 X"$as_dir" : 'X\(//\)$' \| \
31798 X"$as_dir" : 'X\(/\)' \| \
31799 . : '\(.\)' 2>/dev/null ||
31801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31803 /^X\(\/\/\)$/{ s//\1/; q; }
31804 /^X\(\/\).*/{ s//\1/; q; }
31807 test ! -n "$as_dirs" || mkdir $as_dirs
31808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31810 { (exit 1); exit 1; }; }; }
31814 if test "$ac_dir" != .; then
31815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31816 # A "../" for each directory in $ac_dir_suffix.
31817 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31819 ac_dir_suffix= ac_top_builddir=
31823 .) # No --srcdir option. We are building in place.
31825 if test -z "$ac_top_builddir"; then
31828 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31830 [\\/]* | ?:[\\/]* ) # Absolute path.
31831 ac_srcdir=$srcdir$ac_dir_suffix;
31832 ac_top_srcdir=$srcdir ;;
31833 *) # Relative path.
31834 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31835 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31838 # Do not use `cd foo && pwd` to compute absolute paths, because
31839 # the directories may not exist.
31841 .) ac_abs_builddir="$ac_dir";;
31844 .) ac_abs_builddir=`pwd`;;
31845 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31846 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31849 case $ac_abs_builddir in
31850 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31852 case ${ac_top_builddir}. in
31853 .) ac_abs_top_builddir=$ac_abs_builddir;;
31854 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31855 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31858 case $ac_abs_builddir in
31859 .) ac_abs_srcdir=$ac_srcdir;;
31862 .) ac_abs_srcdir=$ac_abs_builddir;;
31863 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31864 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31867 case $ac_abs_builddir in
31868 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31870 case $ac_top_srcdir in
31871 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31872 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31873 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31878 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31879 echo "$as_me: executing $ac_dest commands" >&6;}
31882 for ac_file in $CONFIG_FILES; do
31883 # Support "outfile[:infile[:infile...]]"
31885 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31887 # PO directories have a Makefile.in generated from Makefile.in.in.
31888 case "$ac_file" in */Makefile.in)
31889 # Adjust a relative srcdir.
31890 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31891 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31892 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31893 # In autoconf-2.13 it is called $ac_given_srcdir.
31894 # In autoconf-2.50 it is called $srcdir.
31895 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31896 case "$ac_given_srcdir" in
31897 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31898 /*) top_srcdir="$ac_given_srcdir" ;;
31899 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31901 # Treat a directory as a PO directory if and only if it has a
31902 # POTFILES.in file. This allows packages to have multiple PO
31903 # directories under different names or in different locations.
31904 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31905 rm -f "$ac_dir/POTFILES"
31906 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31907 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31908 POMAKEFILEDEPS="POTFILES.in"
31909 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31910 # on $ac_dir but don't depend on user-specified configuration
31912 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31913 # The LINGUAS file contains the set of available languages.
31914 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31915 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31917 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31918 # Hide the ALL_LINGUAS assigment from automake.
31919 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31920 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31922 # The set of available languages was given in configure.in.
31923 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31926 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31927 # Compute UPDATEPOFILES
31928 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31929 # Compute DUMMYPOFILES
31930 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31932 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31933 case "$ac_given_srcdir" in
31935 *) srcdirpre='$(srcdir)/' ;;
31941 for lang in $ALL_LINGUAS; do
31942 POFILES="$POFILES $srcdirpre$lang.po"
31943 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31944 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31945 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31947 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31948 # environment variable.
31950 if test -n "$ALL_LINGUAS"; then
31951 for presentlang in $ALL_LINGUAS; do
31953 if test "%UNSET%" != "$LINGUAS"; then
31954 desiredlanguages="$LINGUAS"
31956 desiredlanguages="$ALL_LINGUAS"
31958 for desiredlang in $desiredlanguages; do
31959 # Use the presentlang catalog if desiredlang is
31960 # a. equal to presentlang, or
31961 # b. a variant of presentlang (because in this case,
31962 # presentlang can be used as a fallback for messages
31963 # which are not translated in the desiredlang catalog).
31964 case "$desiredlang" in
31965 "$presentlang"*) useit=yes;;
31968 if test $useit = yes; then
31969 INST_LINGUAS="$INST_LINGUAS $presentlang"
31974 if test -n "$INST_LINGUAS"; then
31975 for lang in $INST_LINGUAS; do
31976 CATALOGS="$CATALOGS $lang.gmo"
31979 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31980 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"
31981 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31982 if test -f "$f"; then
31984 *.orig | *.bak | *~) ;;
31985 *) cat "$f" >> "$ac_dir/Makefile" ;;
31993 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31999 cat >>$CONFIG_STATUS <<\_ACEOF
32001 { (exit 0); exit 0; }
32003 chmod +x $CONFIG_STATUS
32004 ac_clean_files=$ac_clean_files_save
32007 # configure is writing to config.log, and then calls config.status.
32008 # config.status does its own redirection, appending to config.log.
32009 # Unfortunately, on DOS this fails, as config.log is still kept open
32010 # by configure, so config.status won't be able to write to it; its
32011 # output is simply discarded. So we exec the FD to /dev/null,
32012 # effectively closing config.log, so it can be properly (re)opened and
32013 # appended to by config.status. When coming back to configure, we
32014 # need to make the FD available again.
32015 if test "$no_create" != yes; then
32017 ac_config_status_args=
32018 test "$silent" = yes &&
32019 ac_config_status_args="$ac_config_status_args --quiet"
32021 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32023 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32024 # would make configure fail if this is the last instruction.
32025 $ac_cs_success || { (exit 1); exit 1; }
32030 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32031 chmod 755 dvd-handler dvd-simulator
32032 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32037 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32038 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32040 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32041 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32043 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32044 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32046 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32047 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32049 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32050 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32052 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32053 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32055 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32056 chmod 755 $c/sqlite
32059 chmod 755 src/win32/build-depkgs-mingw32
32061 if test "${support_bat}" = "yes" ; then
32063 chmod 755 install_conf_file build-depkgs-qt-console
32064 echo "Creating bat Makefile"
32070 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32071 largefile_support="yes"
32075 # A whole lot of hand springs to get the compiler version.
32076 # This is because gcc changed the output in version 3.0
32078 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32079 if test "x${CCVERSION}" = "x" ; then
32080 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32082 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32083 if test x"${CXXVERSION}" = x ; then
32084 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32087 if test "x${subsysdir}" = "x${sbindir}" ; then
32090 echo "You have set --sbindir and --with-subsys-dir"
32091 echo " both equal to: ${subsysdir} "
32092 echo " This is not permitted. Please reconfigure."
32094 echo "Aborting configuration ..."
32100 if test "x${db_type}" = "xInternal" ; then
32103 echo "You have not specified either --enable-client-only or one of the"
32104 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32105 echo " This is not permitted. Please reconfigure."
32107 echo "Aborting the configuration ..."
32114 Configuration on `date`:
32116 Host: $host -- ${DISTNAME} ${DISTVER}
32117 Bacula version: ${VERSION} (${DATE})
32118 Source code location: ${srcdir}
32119 Install binaries: ${sbindir}
32120 Install config files: ${sysconfdir}
32121 Scripts directory: ${scriptdir}
32122 Working directory: ${working_dir}
32123 PID directory: ${piddir}
32124 Subsys directory: ${subsysdir}
32125 Man directory: ${mandir}
32126 Data directory: ${datadir}
32127 C Compiler: ${CC} ${CCVERSION}
32128 C++ Compiler: ${CXX} ${CXXVERSION}
32129 Compiler flags: ${WCFLAGS} ${CFLAGS}
32130 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32132 Statically Linked Tools: ${support_static_tools}
32133 Statically Linked FD: ${support_static_fd}
32134 Statically Linked SD: ${support_static_sd}
32135 Statically Linked DIR: ${support_static_dir}
32136 Statically Linked CONS: ${support_static_cons}
32137 Database type: ${db_type}
32138 Database lib: ${DB_LIBS}
32139 Database name: ${db_name}
32140 Database user: ${db_user}
32142 Job Output Email: ${job_email}
32143 Traceback Email: ${dump_email}
32144 SMTP Host Address: ${smtp_host}
32146 Director Port: ${dir_port}
32147 File daemon Port: ${fd_port}
32148 Storage daemon Port: ${sd_port}
32150 Director User: ${dir_user}
32151 Director Group: ${dir_group}
32152 Storage Daemon User: ${sd_user}
32153 Storage DaemonGroup: ${sd_group}
32154 File Daemon User: ${fd_user}
32155 File Daemon Group: ${fd_group}
32157 SQL binaries Directory ${SQL_BINDIR}
32159 Large file support: $largefile_support
32160 Bacula conio support: ${got_conio} ${CONS_LIBS}
32161 readline support: ${got_readline} ${PRTREADLINE_SRC}
32162 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32163 TLS support: ${support_tls}
32164 Encryption support: ${support_crypto}
32165 ZLIB support: ${have_zlib}
32166 enable-smartalloc: ${support_smartalloc}
32167 bat support: ${support_bat} ${QWT_LDFLAGS}
32168 enable-gnome: ${support_gnome} ${gnome_version}
32169 enable-bwx-console: ${support_wx_console} ${wx_version}
32170 enable-tray-monitor: ${support_tray_monitor}
32171 client-only: ${build_client_only}
32172 build-dird: ${build_dird}
32173 build-stored: ${build_stored}
32174 ACL support: ${have_acl}
32175 Python support: ${support_python} ${PYTHON_LIBS}
32176 Batch insert enabled: ${support_batch_insert}