2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TOP_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --disable-nls do not use Native Language Support
868 --disable-rpath do not hardcode runtime library paths
869 --enable-gnome enable build of gnome-console GUI disabled
870 --enable-wx-console enable build of wxWidgets console disabled
871 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
872 --enable-smartalloc enable smartalloc debugging support disabled
873 --enable-static-tools enable static tape tools disabled
874 --enable-static-fd enable static File daemon disabled
875 --enable-static-sd enable static Storage daemon disabled
876 --enable-static-dir enable static Director disabled
877 --enable-static-cons enable static Console disabled
878 --enable-client-only build client (File daemon) only disabled
879 --enable-build-dird enable building of dird (Director) enabled
880 --enable-build-stored enable building of stored (Storage daemon) enabled
881 --disable-conio disable conio support enabled
883 --disable-readline disable readline support disable
885 --disable-largefile omit support for large files
888 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
889 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
892 --without-libiconv-prefix don't search for libiconv in includedir and libdir
893 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
894 --without-libintl-prefix don't search for libintl in includedir and libdir
895 --with-included-gettext use the GNU gettext library included here
896 --with-readline=DIR specify readline library directory
898 --with-python=DIR Include Python support. DIR is the Python base
899 install directory, default is to search through
900 a number of common places for the Python files.
901 --with-tcp-wrappers=DIR enable tcpwrappers support
903 Include OpenSSL support. DIR is the OpenSSL base
904 --with-working-dir=PATH specify path of Bacula working directory
905 --with-scriptdir=PATH specify path of Bacula scripts directory
906 --with-dump-email=EMAIL dump email address
907 --with-job-email=EMAIL job output email address
908 --with-smtp-host=HOST SMTP mail host address
909 --with-pid-dir=PATH specify location of Bacula pid files
910 --with-subsys-dir=PATH specify location of Bacula subsys file
911 --with-baseport=PORT specify base port address for daemons
912 --with-dir-password=PASSWORD specify Director's password
913 --with-fd-password=PASSWORD specify Client's password
914 --with-sd-password=PASSWORD specify Storage daemon's password
915 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
916 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
917 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
918 --with-dir-user=USER specify user for Director daemon
919 --with-dir-group=GROUP specify group for Director daemon
920 --with-sd-user=USER specify user for Storage daemon
921 --with-sd-group=GROUP specify group for Storage daemon
922 --with-fd-user=USER specify user for File daemon
923 --with-fd-group=GROUP specify group for File daemon
924 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
925 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
926 base install directory, defaults to /usr/local/pgsql
928 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
929 install directory, default is to search through
930 a number of common places for the MySQL files.
932 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
933 install directory, default is to search through
934 a number of common places for the MySQL files.
936 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
937 install directory, default is to search through
938 a number of common places for the SQLite3 files.
940 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
941 install directory, default is to search through
942 a number of common places for the SQLite files.
943 --with-x use the X Window System
945 Some influential environment variables:
946 CC C compiler command
947 CFLAGS C compiler flags
948 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
949 nonstandard directory <lib dir>
950 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
951 headers in a nonstandard directory <include dir>
952 CXX C++ compiler command
953 CXXFLAGS C++ compiler flags
955 WXCONFIG wx-config command. On some systems, you must set it to
956 wx-config-2.6 to use wxWidgets 2.6.
957 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
959 Use these variables to override the choices made by `configure' or to help
960 it to find libraries and programs with nonstandard names/locations.
965 if test "$ac_init_help" = "recursive"; then
966 # If there are subdirs, report their specific --help.
968 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
969 test -d $ac_dir || continue
972 if test "$ac_dir" != .; then
973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
974 # A "../" for each directory in $ac_dir_suffix.
975 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
977 ac_dir_suffix= ac_top_builddir=
981 .) # No --srcdir option. We are building in place.
983 if test -z "$ac_top_builddir"; then
986 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
988 [\\/]* | ?:[\\/]* ) # Absolute path.
989 ac_srcdir=$srcdir$ac_dir_suffix;
990 ac_top_srcdir=$srcdir ;;
992 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
993 ac_top_srcdir=$ac_top_builddir$srcdir ;;
996 # Do not use `cd foo && pwd` to compute absolute paths, because
997 # the directories may not exist.
999 .) ac_abs_builddir="$ac_dir";;
1002 .) ac_abs_builddir=`pwd`;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1004 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 case ${ac_top_builddir}. in
1011 .) ac_abs_top_builddir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1013 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1016 case $ac_abs_builddir in
1017 .) ac_abs_srcdir=$ac_srcdir;;
1020 .) ac_abs_srcdir=$ac_abs_builddir;;
1021 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1022 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 case $ac_top_srcdir in
1029 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1030 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1031 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1036 # Check for guested configure; otherwise get Cygnus style configure.
1037 if test -f $ac_srcdir/configure.gnu; then
1039 $SHELL $ac_srcdir/configure.gnu --help=recursive
1040 elif test -f $ac_srcdir/configure; then
1042 $SHELL $ac_srcdir/configure --help=recursive
1043 elif test -f $ac_srcdir/configure.ac ||
1044 test -f $ac_srcdir/configure.in; then
1046 $ac_configure --help
1048 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1054 test -n "$ac_init_help" && exit 0
1055 if $ac_init_version; then
1058 Copyright (C) 2003 Free Software Foundation, Inc.
1059 This configure script is free software; the Free Software Foundation
1060 gives unlimited permission to copy, distribute and modify it.
1066 This file contains any messages produced by compilers while
1067 running configure, to aid debugging if configure makes a mistake.
1069 It was created by $as_me, which was
1070 generated by GNU Autoconf 2.59. Invocation command line was
1081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1088 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1090 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1091 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1093 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1094 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1095 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1096 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1104 test -z "$as_dir" && as_dir=.
1105 echo "PATH: $as_dir"
1120 # Keep a trace of the command line.
1121 # Strip out --no-create and --no-recursion so they do not pile up.
1122 # Strip out --silent because we don't want to record it for future runs.
1123 # Also quote any args containing shell meta-characters.
1124 # Make two passes to allow for proper duplicate-argument suppression.
1129 ac_must_keep_next=false
1135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1139 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1143 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1145 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1146 if test $ac_must_keep_next = true; then
1147 ac_must_keep_next=false # Got value, back to normal.
1150 *=* | --config-cache | -C | -disable-* | --disable-* \
1151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1153 | -with-* | --with-* | -without-* | --without-* | --x)
1154 case "$ac_configure_args0 " in
1155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1158 -* ) ac_must_keep_next=true ;;
1161 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1162 # Get rid of the leading space.
1168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1171 # When interrupted or exit'd, cleanup temporary files, and complete
1172 # config.log. We remove comments because anyway the quotes in there
1173 # would cause problems or look ugly.
1174 # WARNING: Be sure not to use single quotes in there, as some shells,
1175 # such as our DU 5.0 friend, will then `close' the trap.
1176 trap 'exit_status=$?
1177 # Save into config.log some information that might help in debugging.
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1187 # The following way of writing the cache mishandles newlines in values,
1190 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1193 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1198 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1205 ## ----------------- ##
1206 ## Output variables. ##
1207 ## ----------------- ##
1210 for ac_var in $ac_subst_vars
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -n "$ac_subst_files"; then
1224 for ac_var in $ac_subst_files
1226 eval ac_val=$`echo $ac_var`
1227 echo "$ac_var='"'"'$ac_val'"'"'"
1232 if test -s confdefs.h; then
1239 sed "/^$/d" confdefs.h | sort
1242 test "$ac_signal" != 0 &&
1243 echo "$as_me: caught signal $ac_signal"
1244 echo "$as_me: exit $exit_status"
1246 rm -f core *.core &&
1247 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1250 for ac_signal in 1 2 13 15; do
1251 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1256 rm -rf conftest* confdefs.h
1257 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1260 # Predefined preprocessor variables.
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_NAME "$PACKAGE_NAME"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_STRING "$PACKAGE_STRING"
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1287 # Let the site file select an alternate cache file if it wants to.
1288 # Prefer explicitly selected file to automatically selected ones.
1289 if test -z "$CONFIG_SITE"; then
1290 if test "x$prefix" != xNONE; then
1291 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1293 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1296 for ac_site_file in $CONFIG_SITE; do
1297 if test -r "$ac_site_file"; then
1298 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1299 echo "$as_me: loading site script $ac_site_file" >&6;}
1300 sed 's/^/| /' "$ac_site_file" >&5
1305 if test -r "$cache_file"; then
1306 # Some versions of bash will fail to source /dev/null (special
1307 # files actually), so we avoid doing that.
1308 if test -f "$cache_file"; then
1309 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1310 echo "$as_me: loading cache $cache_file" >&6;}
1312 [\\/]* | ?:[\\/]* ) . $cache_file;;
1313 *) . ./$cache_file;;
1317 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1318 echo "$as_me: creating cache $cache_file" >&6;}
1322 # Check that the precious variables saved in the cache have kept the same
1324 ac_cache_corrupted=false
1325 for ac_var in `(set) 2>&1 |
1326 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1328 eval ac_new_set=\$ac_env_${ac_var}_set
1329 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1330 eval ac_new_val="\$ac_env_${ac_var}_value"
1331 case $ac_old_set,$ac_new_set in
1333 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1337 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1339 ac_cache_corrupted=: ;;
1342 if test "x$ac_old_val" != "x$ac_new_val"; then
1343 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1344 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1345 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1346 echo "$as_me: former value: $ac_old_val" >&2;}
1347 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1348 echo "$as_me: current value: $ac_new_val" >&2;}
1349 ac_cache_corrupted=:
1352 # Pass precious variables to config.status.
1353 if test "$ac_new_set" = set; then
1355 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1356 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1357 *) ac_arg=$ac_var=$ac_new_val ;;
1359 case " $ac_configure_args " in
1360 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1361 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1365 if $ac_cache_corrupted; then
1366 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1367 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1368 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1369 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1370 { (exit 1); exit 1; }; }
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1404 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1405 if test -f $ac_dir/install-sh; then
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1409 elif test -f $ac_dir/install.sh; then
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1413 elif test -f $ac_dir/shtool; then
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1436 # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 TRUEPRG=$ac_cv_path_TRUEPRG
1467 if test -n "$TRUEPRG"; then
1468 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1469 echo "${ECHO_T}$TRUEPRG" >&6
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1475 test -n "$TRUEPRG" && break
1477 test -n "$TRUEPRG" || TRUEPRG=":"
1479 for ac_prog in false
1481 # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 FALSEPRG=$ac_cv_path_FALSEPRG
1512 if test -n "$FALSEPRG"; then
1513 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1514 echo "${ECHO_T}$FALSEPRG" >&6
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1520 test -n "$FALSEPRG" && break
1522 test -n "$FALSEPRG" || FALSEPRG=":"
1527 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1530 echo "configuring for bacula $VERSION ($DATE)"
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539 if test -n "$ac_tool_prefix"; then
1540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1576 if test -z "$ac_cv_prog_CC"; then
1578 # Extract the first word of "gcc", so it can be a program name with args.
1579 set dummy gcc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 if test -n "$ac_ct_CC"; then
1586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir=.
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 ac_cv_prog_ac_ct_CC="gcc"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605 if test -n "$ac_ct_CC"; then
1606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1607 echo "${ECHO_T}$ac_ct_CC" >&6
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1618 if test -z "$CC"; then
1619 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1621 set dummy ${ac_tool_prefix}cc; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC="${ac_tool_prefix}cc"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1656 if test -z "$ac_cv_prog_CC"; then
1658 # Extract the first word of "cc", so it can be a program name with args.
1659 set dummy cc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_ac_ct_CC="cc"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1699 if test -z "$CC"; then
1700 # Extract the first word of "cc", so it can be a program name with args.
1701 set dummy cc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 if test -n "$CC"; then
1708 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1719 ac_prog_rejected=yes
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 if test $ac_prog_rejected = yes; then
1730 # We found a bogon in the path, so make sure we never use it.
1731 set dummy $ac_cv_prog_CC
1733 if test $# != 0; then
1734 # We chose a different compiler from the bogus one.
1735 # However, it has the same basename, so the bogon will be chosen
1736 # first if we set CC to just the basename; use the full file name.
1738 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1744 if test -n "$CC"; then
1745 echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1753 if test -z "$CC"; then
1754 if test -n "$ac_tool_prefix"; then
1757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test.
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 test -z "$as_dir" && as_dir=.
1772 for ac_exec_ext in '' $ac_executable_extensions; do
1773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 if test -n "$CC"; then
1785 echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1792 test -n "$CC" && break
1795 if test -z "$CC"; then
1799 # Extract the first word of "$ac_prog", so it can be a program name with args.
1800 set dummy $ac_prog; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 if test -n "$ac_ct_CC"; then
1807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_ac_ct_CC="$ac_prog"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1834 test -n "$ac_ct_CC" && break
1843 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: no acceptable C compiler found in \$PATH
1846 See \`config.log' for more details." >&2;}
1847 { (exit 1); exit 1; }; }
1849 # Provide some information about the compiler.
1850 echo "$as_me:$LINENO:" \
1851 "checking for C compiler version" >&5
1852 ac_compiler=`set X $ac_compile; echo $2`
1853 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1854 (eval $ac_compiler --version </dev/null >&5) 2>&5
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }
1858 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1859 (eval $ac_compiler -v </dev/null >&5) 2>&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }
1863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1864 (eval $ac_compiler -V </dev/null >&5) 2>&5
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }
1869 cat >conftest.$ac_ext <<_ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h. */
1884 ac_clean_files_save=$ac_clean_files
1885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1886 # Try to create an executable without -o first, disregard a.out.
1887 # It will help us diagnose broken compilers, and finding out an intuition
1889 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1890 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1893 (eval $ac_link_default) 2>&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; then
1897 # Find the output, starting from the most likely. This scheme is
1898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1901 # Be careful to initialize this variable, since it used to be cached.
1902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1904 # b.out is created by i960 compilers.
1905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1907 test -f "$ac_file" || continue
1909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1912 # This is the source file.
1915 # We found the default executable, but exeext='' is most
1919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1920 # FIXME: I believe we export ac_cv_exeext for Libtool,
1921 # but it would be cool to find out if it's true. Does anybody
1922 # maintain Libtool? --akim.
1930 echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&5
1935 echo "$as_me: error: C compiler cannot create executables
1936 See \`config.log' for more details." >&2;}
1937 { (exit 77); exit 77; }; }
1940 ac_exeext=$ac_cv_exeext
1941 echo "$as_me:$LINENO: result: $ac_file" >&5
1942 echo "${ECHO_T}$ac_file" >&6
1944 # Check the compiler produces executables we can run. If not, either
1945 # the compiler is broken, or we cross compile.
1946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1949 # If not cross compiling, check that we can run a simple program.
1950 if test "$cross_compiling" != yes; then
1951 if { ac_try='./$ac_file'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1959 if test "$cross_compiling" = maybe; then
1962 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1963 If you meant to cross compile, use \`--host'.
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot run C compiled programs.
1966 If you meant to cross compile, use \`--host'.
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1972 echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1976 ac_clean_files=$ac_clean_files_save
1977 # Check the compiler produces executables we can run. If not, either
1978 # the compiler is broken, or we cross compile.
1979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1982 echo "${ECHO_T}$cross_compiling" >&6
1984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1987 (eval $ac_link) 2>&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }; then
1991 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1992 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1993 # work properly (i.e., refer to `conftest.exe'), while it won't with
1995 for ac_file in conftest.exe conftest conftest.*; do
1996 test -f "$ac_file" || continue
1998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2009 See \`config.log' for more details." >&2;}
2010 { (exit 1); exit 1; }; }
2013 rm -f conftest$ac_cv_exeext
2014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2015 echo "${ECHO_T}$ac_cv_exeext" >&6
2017 rm -f conftest.$ac_ext
2018 EXEEXT=$ac_cv_exeext
2020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2022 if test "${ac_cv_objext+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 cat >conftest.$ac_ext <<_ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2040 rm -f conftest.o conftest.obj
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; then
2046 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2054 echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2060 See \`config.log' for more details." >&2;}
2061 { (exit 1); exit 1; }; }
2064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2066 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2067 echo "${ECHO_T}$ac_cv_objext" >&6
2068 OBJEXT=$ac_cv_objext
2070 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2071 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2072 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>conftest.er1
2097 grep -v '^ *+' conftest.er1 >conftest.err
2099 cat conftest.err >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try='test -z "$ac_c_werror_flag"
2103 || test ! -s conftest.err'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2128 GCC=`test $ac_compiler_gnu = yes && echo yes`
2129 ac_test_CFLAGS=${CFLAGS+set}
2130 ac_save_CFLAGS=$CFLAGS
2132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_g+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 cat >conftest.$ac_ext <<_ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2156 grep -v '^ *+' conftest.er1 >conftest.err
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2185 if test "$ac_test_CFLAGS" = set; then
2186 CFLAGS=$ac_save_CFLAGS
2187 elif test $ac_cv_prog_cc_g = yes; then
2188 if test "$GCC" = yes; then
2194 if test "$GCC" = yes; then
2200 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2201 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2202 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 ac_cv_prog_cc_stdc=no
2207 cat >conftest.$ac_ext <<_ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h. */
2215 #include <sys/types.h>
2216 #include <sys/stat.h>
2217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2218 struct buf { int x; };
2219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2220 static char *e (p, i)
2226 static char *f (char * (*g) (char **, int), char **p, ...)
2231 s = g (p, va_arg (v,int));
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2237 function prototypes and stuff, but not '\xHH' hex character constants.
2238 These don't provoke an error unfortunately, instead are silently treated
2239 as 'x'. The following induces an error, until -std1 is added to get
2240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2241 array size at least. It's necessary to write '\x00'==0 to get something
2242 that's true only with -std1. */
2243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2245 int test (int i, double x);
2246 struct s1 {int (*f) (int a);};
2247 struct s2 {int (*f) (double a);};
2248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2259 # Don't try gcc -ansi; that turns off useful extensions and
2260 # breaks some systems' header files.
2261 # AIX -qlanglvl=ansi
2262 # Ultrix and OSF/1 -std1
2263 # HP-UX 10.20 and later -Ae
2264 # HP-UX older versions -Aa -D_HPUX_SOURCE
2265 # SVR4 -Xc -D__EXTENSIONS__
2266 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2268 CC="$ac_save_CC $ac_arg"
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2273 grep -v '^ *+' conftest.er1 >conftest.err
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 ac_cv_prog_cc_stdc=$ac_arg
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2298 rm -f conftest.err conftest.$ac_objext
2300 rm -f conftest.$ac_ext conftest.$ac_objext
2305 case "x$ac_cv_prog_cc_stdc" in
2307 echo "$as_me:$LINENO: result: none needed" >&5
2308 echo "${ECHO_T}none needed" >&6 ;;
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2312 CC="$CC $ac_cv_prog_cc_stdc" ;;
2315 # Some people use a C++ compiler to compile C. Since we use `exit',
2316 # in C++ we need to declare it. In case someone uses the same compiler
2317 # for both compiling C and C++ we need to have the C++ compiler decide
2318 # the declaration of exit, since it's the most demanding environment.
2319 cat >conftest.$ac_ext <<_ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2328 grep -v '^ *+' conftest.er1 >conftest.err
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -z "$ac_c_werror_flag"
2334 || test ! -s conftest.err'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 for ac_declaration in \
2348 'extern "C" void std::exit (int) throw (); using std::exit;' \
2349 'extern "C" void std::exit (int); using std::exit;' \
2350 'extern "C" void exit (int) throw ();' \
2351 'extern "C" void exit (int);' \
2354 cat >conftest.$ac_ext <<_ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2374 grep -v '^ *+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 cat >conftest.$ac_ext <<_ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2419 grep -v '^ *+' conftest.er1 >conftest.err
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 if test -n "$ac_declaration"; then
2447 echo '#ifdef __cplusplus' >>confdefs.h
2448 echo $ac_declaration >>confdefs.h
2449 echo '#endif' >>confdefs.h
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465 ac_cpp='$CXXCPP $CPPFLAGS'
2466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_CXX+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$CXX"; then
2480 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 if test -n "$CXX"; then
2500 echo "$as_me:$LINENO: result: $CXX" >&5
2501 echo "${ECHO_T}$CXX" >&6
2503 echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2507 test -n "$CXX" && break
2510 if test -z "$CXX"; then
2512 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2514 # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 if test -n "$ac_ct_CXX"; then
2522 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_ac_ct_CXX="$ac_prog"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2541 if test -n "$ac_ct_CXX"; then
2542 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2543 echo "${ECHO_T}$ac_ct_CXX" >&6
2545 echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2549 test -n "$ac_ct_CXX" && break
2551 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2557 # Provide some information about the compiler.
2558 echo "$as_me:$LINENO:" \
2559 "checking for C++ compiler version" >&5
2560 ac_compiler=`set X $ac_compile; echo $2`
2561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2562 (eval $ac_compiler --version </dev/null >&5) 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }
2566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2567 (eval $ac_compiler -v </dev/null >&5) 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2572 (eval $ac_compiler -V </dev/null >&5) 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }
2577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_cxx_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2633 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2635 GXX=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CXXFLAGS=${CXXFLAGS+set}
2637 ac_save_CXXFLAGS=$CXXFLAGS
2639 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2640 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2641 if test "${ac_cv_prog_cxx_g+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 cat >conftest.$ac_ext <<_ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -z "$ac_cxx_werror_flag"
2669 || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cxx_g=yes
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2692 if test "$ac_test_CXXFLAGS" = set; then
2693 CXXFLAGS=$ac_save_CXXFLAGS
2694 elif test $ac_cv_prog_cxx_g = yes; then
2695 if test "$GXX" = yes; then
2701 if test "$GXX" = yes; then
2707 for ac_declaration in \
2709 'extern "C" void std::exit (int) throw (); using std::exit;' \
2710 'extern "C" void std::exit (int); using std::exit;' \
2711 'extern "C" void exit (int) throw ();' \
2712 'extern "C" void exit (int);' \
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_cxx_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_cxx_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 if test -n "$ac_declaration"; then
2808 echo '#ifdef __cplusplus' >>confdefs.h
2809 echo $ac_declaration >>confdefs.h
2810 echo '#endif' >>confdefs.h
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 if test "x$CC" != xcc; then
2820 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2823 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2824 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2826 set dummy $CC; ac_cc=`echo $2 |
2827 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2828 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2846 # Make sure it works both with $CC and with simple cc.
2847 # We do the test twice because some compilers refuse to overwrite an
2848 # existing .o file with -o, though they will create one.
2849 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2850 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } &&
2855 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); };
2861 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2862 if test "x$CC" != xcc; then
2863 # Test first that cc exists at all.
2864 if { ac_try='cc -c conftest.$ac_ext >&5'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2871 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); };
2885 # cc exists but doesn't like -o.
2886 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2891 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2896 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2897 echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2903 cat >>confdefs.h <<\_ACEOF
2904 #define NO_MINUS_C_MINUS_O 1
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2920 if test -z "$CPP"; then
2921 if test "${ac_cv_prog_CPP+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 # Double quotes because CPP needs to be expanded
2925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2928 for ac_c_preproc_warn_flag in '' yes
2930 # Use a header file that comes with gcc, so configuring glibc
2931 # with a fresh cross-compiler works.
2932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933 # <limits.h> exists even on freestanding compilers.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2943 # include <limits.h>
2945 # include <assert.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966 if test -z "$ac_cpp_err"; then
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Broken: fails on valid input.
2975 rm -f conftest.err conftest.$ac_ext
2977 # OK, works on sane cases. Now check whether non-existent headers
2978 # can be detected and how.
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null; then
2995 if test -s conftest.err; then
2996 ac_cpp_err=$ac_c_preproc_warn_flag
2997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3004 if test -z "$ac_cpp_err"; then
3005 # Broken: success on invalid input.
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 # Passes both tests.
3015 rm -f conftest.err conftest.$ac_ext
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3035 for ac_c_preproc_warn_flag in '' yes
3037 # Use a header file that comes with gcc, so configuring glibc
3038 # with a fresh cross-compiler works.
3039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040 # <limits.h> exists even on freestanding compilers.
3041 # On the NeXT, cc -E runs the code through the compiler's parser,
3042 # not just through cpp. "Syntax error" is here to catch this case.
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3050 # include <limits.h>
3052 # include <assert.h>
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3073 if test -z "$ac_cpp_err"; then
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Broken: fails on valid input.
3082 rm -f conftest.err conftest.$ac_ext
3084 # OK, works on sane cases. Now check whether non-existent headers
3085 # can be detected and how.
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <ac_nonexistent.h>
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3111 if test -z "$ac_cpp_err"; then
3112 # Broken: success on invalid input.
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 # Passes both tests.
3122 rm -f conftest.err conftest.$ac_ext
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 echo "$as_me:$LINENO: checking for egrep" >&5
3145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3146 if test "${ac_cv_prog_egrep+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3150 then ac_cv_prog_egrep='grep -E'
3151 else ac_cv_prog_egrep='egrep'
3154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3156 EGREP=$ac_cv_prog_egrep
3159 if test $ac_cv_c_compiler_gnu = yes; then
3160 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3161 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3162 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 ac_pattern="Autoconf.*'x'"
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177 ac_cv_prog_gcc_traditional=yes
3179 ac_cv_prog_gcc_traditional=no
3184 if test $ac_cv_prog_gcc_traditional = no; then
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3196 ac_cv_prog_gcc_traditional=yes
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3203 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3204 if test $ac_cv_prog_gcc_traditional = yes; then
3205 CC="$CC -traditional"
3209 BASECC=`basename $CC`
3211 if test "x$BASECC" = xgcc; then
3212 cat >>confdefs.h <<\_ACEOF
3218 # Extract the first word of "$CXX", so it can be a program name with args.
3219 set dummy $CXX; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_CXX+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3250 if test -n "$CXX"; then
3251 echo "$as_me:$LINENO: result: $CXX" >&5
3252 echo "${ECHO_T}$CXX" >&6
3254 echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3258 if test ! -e $CXX; then
3259 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3260 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3261 { (exit 1); exit 1; }; }
3264 # Find a good install program. We prefer a C program (faster),
3265 # so one script is as good as another. But avoid the broken or
3266 # incompatible versions:
3267 # SysV /etc/install, /usr/sbin/install
3268 # SunOS /usr/etc/install
3269 # IRIX /sbin/install
3271 # AmigaOS /C/install, which installs bootblocks on floppy discs
3272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3275 # OS/2's system install, which has a completely different semantic
3276 # ./install, which can be erroneously created by make from ./install.sh.
3277 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3278 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3279 if test -z "$INSTALL"; then
3280 if test "${ac_cv_path_install+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 # Account for people who put trailing slashes in PATH elements.
3290 ./ | .// | /cC/* | \
3291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3292 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3295 # OSF1 and SCO ODT 3.0 have their own names for install.
3296 # Don't use installbsd from OSF since it installs stuff as root
3298 for ac_prog in ginstall scoinst install; do
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3301 if test $ac_prog = install &&
3302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303 # AIX install. It has an incompatible calling convention.
3305 elif test $ac_prog = install &&
3306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307 # program-specific install script used by HP pwplus--don't use.
3310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3322 if test "${ac_cv_path_install+set}" = set; then
3323 INSTALL=$ac_cv_path_install
3325 # As a last resort, use the slow shell script. We don't cache a
3326 # path for INSTALL within a source directory, because that will
3327 # break other packages using the cache if that directory is
3328 # removed, or if the path is relative.
3329 INSTALL=$ac_install_sh
3332 echo "$as_me:$LINENO: result: $INSTALL" >&5
3333 echo "${ECHO_T}$INSTALL" >&6
3335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3336 # It thinks the first close brace ends the variable substitution.
3337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_RANLIB+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$RANLIB"; then
3352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 RANLIB=$ac_cv_prog_RANLIB
3371 if test -n "$RANLIB"; then
3372 echo "$as_me:$LINENO: result: $RANLIB" >&5
3373 echo "${ECHO_T}$RANLIB" >&6
3375 echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3380 if test -z "$ac_cv_prog_RANLIB"; then
3381 ac_ct_RANLIB=$RANLIB
3382 # Extract the first word of "ranlib", so it can be a program name with args.
3383 set dummy ranlib; ac_word=$2
3384 echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 if test -n "$ac_ct_RANLIB"; then
3390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_ac_ct_RANLIB="ranlib"
3400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3410 if test -n "$ac_ct_RANLIB"; then
3411 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3412 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3418 RANLIB=$ac_ct_RANLIB
3420 RANLIB="$ac_cv_prog_RANLIB"
3423 # Extract the first word of "mv", so it can be a program name with args.
3424 set dummy mv; ac_word=$2
3425 echo "$as_me:$LINENO: checking for $ac_word" >&5
3426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427 if test "${ac_cv_path_MV+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3455 if test -n "$MV"; then
3456 echo "$as_me:$LINENO: result: $MV" >&5
3457 echo "${ECHO_T}$MV" >&6
3459 echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3463 # Extract the first word of "rm", so it can be a program name with args.
3464 set dummy rm; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_RM+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3495 if test -n "$RM"; then
3496 echo "$as_me:$LINENO: result: $RM" >&5
3497 echo "${ECHO_T}$RM" >&6
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3503 # Extract the first word of "cp", so it can be a program name with args.
3504 set dummy cp; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_path_CP+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3535 if test -n "$CP"; then
3536 echo "$as_me:$LINENO: result: $CP" >&5
3537 echo "${ECHO_T}$CP" >&6
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3543 # Extract the first word of "sed", so it can be a program name with args.
3544 set dummy sed; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_path_SED+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3575 if test -n "$SED"; then
3576 echo "$as_me:$LINENO: result: $SED" >&5
3577 echo "${ECHO_T}$SED" >&6
3579 echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6
3583 # Extract the first word of "echo", so it can be a program name with args.
3584 set dummy echo; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_path_ECHO+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3613 ECHO=$ac_cv_path_ECHO
3615 if test -n "$ECHO"; then
3616 echo "$as_me:$LINENO: result: $ECHO" >&5
3617 echo "${ECHO_T}$ECHO" >&6
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3623 # Extract the first word of "cmp", so it can be a program name with args.
3624 set dummy cmp; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_path_CMP+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3655 if test -n "$CMP"; then
3656 echo "$as_me:$LINENO: result: $CMP" >&5
3657 echo "${ECHO_T}$CMP" >&6
3659 echo "$as_me:$LINENO: result: no" >&5
3660 echo "${ECHO_T}no" >&6
3663 # Extract the first word of "tbl", so it can be a program name with args.
3664 set dummy tbl; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_path_TBL+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3695 if test -n "$TBL"; then
3696 echo "$as_me:$LINENO: result: $TBL" >&5
3697 echo "${ECHO_T}$TBL" >&6
3699 echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3703 # Extract the first word of "ar", so it can be a program name with args.
3704 set dummy ar; ac_word=$2
3705 echo "$as_me:$LINENO: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3707 if test "${ac_cv_path_AR+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3735 if test -n "$AR"; then
3736 echo "$as_me:$LINENO: result: $AR" >&5
3737 echo "${ECHO_T}$AR" >&6
3739 echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3743 # Extract the first word of "openssl", so it can be a program name with args.
3744 set dummy openssl; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_path_OPENSSL+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3773 OPENSSL=$ac_cv_path_OPENSSL
3775 if test -n "$OPENSSL"; then
3776 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3777 echo "${ECHO_T}$OPENSSL" >&6
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3783 # Extract the first word of "mtx", so it can be a program name with args.
3784 set dummy mtx; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_path_MTX+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3815 if test -n "$MTX"; then
3816 echo "$as_me:$LINENO: result: $MTX" >&5
3817 echo "${ECHO_T}$MTX" >&6
3819 echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3823 # Extract the first word of "dd", so it can be a program name with args.
3824 set dummy dd; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_path_DD+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3855 if test -n "$DD"; then
3856 echo "$as_me:$LINENO: result: $DD" >&5
3857 echo "${ECHO_T}$DD" >&6
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3863 # Extract the first word of "mkisofs", so it can be a program name with args.
3864 set dummy mkisofs; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_path_MKISOFS+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3893 MKISOFS=$ac_cv_path_MKISOFS
3895 if test -n "$MKISOFS"; then
3896 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3897 echo "${ECHO_T}$MKISOFS" >&6
3899 echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3903 # Extract the first word of "python", so it can be a program name with args.
3904 set dummy python; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_path_PYTHON+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3933 PYTHON=$ac_cv_path_PYTHON
3935 if test -n "$PYTHON"; then
3936 echo "$as_me:$LINENO: result: $PYTHON" >&5
3937 echo "${ECHO_T}$PYTHON" >&6
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3943 # Extract the first word of "growisofs", so it can be a program name with args.
3944 set dummy growisofs; ac_word=$2
3945 echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3973 GROWISOFS=$ac_cv_path_GROWISOFS
3975 if test -n "$GROWISOFS"; then
3976 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3977 echo "${ECHO_T}$GROWISOFS" >&6
3979 echo "$as_me:$LINENO: result: no" >&5
3980 echo "${ECHO_T}no" >&6
3983 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3984 set dummy dvd+rw-mediainfo; ac_word=$2
3985 echo "$as_me:$LINENO: checking for $ac_word" >&5
3986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 case $DVDRWMEDIAINFO in
3992 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4013 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4015 if test -n "$DVDRWMEDIAINFO"; then
4016 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4017 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4019 echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4023 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4024 set dummy dvd+rw-format; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 case $DVDRWFORMAT in
4032 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4053 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4055 if test -n "$DVDRWFORMAT"; then
4056 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4057 echo "${ECHO_T}$DVDRWFORMAT" >&6
4059 echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4063 # Extract the first word of "pkg-config", so it can be a program name with args.
4064 set dummy pkg-config; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4093 PKGCONFIG=$ac_cv_path_PKGCONFIG
4095 if test -n "$PKGCONFIG"; then
4096 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4097 echo "${ECHO_T}$PKGCONFIG" >&6
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4104 if test "x$WXCONFIG" = x; then
4107 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4108 set dummy ${WXCONFIG}; ac_word=$2
4109 echo "$as_me:$LINENO: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4137 WXCONFIG=$ac_cv_path_WXCONFIG
4139 if test -n "$WXCONFIG"; then
4140 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4141 echo "${ECHO_T}$WXCONFIG" >&6
4143 echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4148 # Extract the first word of "cdrecord", so it can be a program name with args.
4149 set dummy cdrecord; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_path_CDRECORD+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4178 CDRECORD=$ac_cv_path_CDRECORD
4180 if test -n "$CDRECORD"; then
4181 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4182 echo "${ECHO_T}$CDRECORD" >&6
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4188 # Extract the first word of "pidof", so it can be a program name with args.
4189 set dummy pidof; ac_word=$2
4190 echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4192 if test "${ac_cv_path_PIDOF+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4218 PIDOF=$ac_cv_path_PIDOF
4220 if test -n "$PIDOF"; then
4221 echo "$as_me:$LINENO: result: $PIDOF" >&5
4222 echo "${ECHO_T}$PIDOF" >&6
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4228 for ac_prog in gawk mawk nawk awk
4230 # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_prog_AWK+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 if test -n "$AWK"; then
4238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_AWK="$ac_prog"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 if test -n "$AWK"; then
4258 echo "$as_me:$LINENO: result: $AWK" >&5
4259 echo "${ECHO_T}$AWK" >&6
4261 echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4265 test -n "$AWK" && break
4268 # Some AWK programs fail, so test it and warn the user
4269 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4270 { if ((prog == $2) || (("(" prog ")") == $2) ||
4271 (("" prog "") == $2) ||
4272 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4274 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4275 The regex engine of $AWK is too broken to be used you
4276 might want to install GNU AWK.
4277 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4278 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4279 The regex engine of $AWK is too broken to be used you
4280 might want to install GNU AWK.
4281 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4282 { (exit 1); exit 1; }; }
4285 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4286 set dummy $THE_AWK; ac_word=$2
4287 echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289 if test "${ac_cv_path_AWK+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4317 if test -n "$AWK"; then
4318 echo "$as_me:$LINENO: result: $AWK" >&5
4319 echo "${ECHO_T}$AWK" >&6
4321 echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4326 test -n "$ARFLAG" || ARFLAGS="cr"
4337 # Make sure we can run config.sub.
4338 $ac_config_sub sun4 >/dev/null 2>&1 ||
4339 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4340 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4341 { (exit 1); exit 1; }; }
4343 echo "$as_me:$LINENO: checking build system type" >&5
4344 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4345 if test "${ac_cv_build+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 ac_cv_build_alias=$build_alias
4349 test -z "$ac_cv_build_alias" &&
4350 ac_cv_build_alias=`$ac_config_guess`
4351 test -z "$ac_cv_build_alias" &&
4352 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4353 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4354 { (exit 1); exit 1; }; }
4355 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4356 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4357 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4358 { (exit 1); exit 1; }; }
4361 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4362 echo "${ECHO_T}$ac_cv_build" >&6
4364 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4365 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4366 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4370 echo "$as_me:$LINENO: checking host system type" >&5
4371 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4372 if test "${ac_cv_host+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 ac_cv_host_alias=$host_alias
4376 test -z "$ac_cv_host_alias" &&
4377 ac_cv_host_alias=$ac_cv_build_alias
4378 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4380 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4381 { (exit 1); exit 1; }; }
4384 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4385 echo "${ECHO_T}$ac_cv_host" >&6
4387 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4388 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4389 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4393 *cygwin* ) CYGWIN=yes;;
4397 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4403 HAVE_SUN_OS_FALSE='#'
4405 HAVE_SUN_OS_TRUE='#'
4408 cat >>confdefs.h <<\_ACEOF
4409 #define HAVE_SUN_OS 1
4417 HAVE_SUN_OS_FALSE='#'
4419 HAVE_SUN_OS_TRUE='#'
4424 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4430 HAVE_OSF1_OS_FALSE='#'
4432 HAVE_OSF1_OS_TRUE='#'
4435 cat >>confdefs.h <<\_ACEOF
4436 #define HAVE_OSF1_OS 1
4444 HAVE_OSF1_OS_FALSE='#'
4446 HAVE_OSF1_OS_TRUE='#'
4451 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4457 HAVE_AIX_OS_FALSE='#'
4459 HAVE_AIX_OS_TRUE='#'
4462 cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_AIX_OS 1
4471 HAVE_AIX_OS_FALSE='#'
4473 HAVE_AIX_OS_TRUE='#'
4478 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4484 HAVE_HPUX_OS_FALSE='#'
4486 HAVE_HPUX_OS_TRUE='#'
4489 cat >>confdefs.h <<\_ACEOF
4490 #define HAVE_HPUX_OS 1
4498 HAVE_HPUX_OS_FALSE='#'
4500 HAVE_HPUX_OS_TRUE='#'
4505 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4511 HAVE_LINUX_OS_FALSE='#'
4513 HAVE_LINUX_OS_TRUE='#'
4514 HAVE_LINUX_OS_FALSE=
4516 cat >>confdefs.h <<\_ACEOF
4517 #define HAVE_LINUX_OS 1
4525 HAVE_LINUX_OS_FALSE='#'
4527 HAVE_LINUX_OS_TRUE='#'
4528 HAVE_LINUX_OS_FALSE=
4532 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4537 HAVE_FREEBSD_OS_TRUE=
4538 HAVE_FREEBSD_OS_FALSE='#'
4540 HAVE_FREEBSD_OS_TRUE='#'
4541 HAVE_FREEBSD_OS_FALSE=
4543 cat >>confdefs.h <<\_ACEOF
4544 #define HAVE_FREEBSD_OS 1
4551 HAVE_FREEBSD_OS_TRUE=
4552 HAVE_FREEBSD_OS_FALSE='#'
4554 HAVE_FREEBSD_OS_TRUE='#'
4555 HAVE_FREEBSD_OS_FALSE=
4559 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4564 HAVE_NETBSD_OS_TRUE=
4565 HAVE_NETBSD_OS_FALSE='#'
4567 HAVE_NETBSD_OS_TRUE='#'
4568 HAVE_NETBSD_OS_FALSE=
4570 cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_NETBSD_OS 1
4578 HAVE_NETBSD_OS_TRUE=
4579 HAVE_NETBSD_OS_FALSE='#'
4581 HAVE_NETBSD_OS_TRUE='#'
4582 HAVE_NETBSD_OS_FALSE=
4586 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4591 HAVE_OPENBSD_OS_TRUE=
4592 HAVE_OPENBSD_OS_FALSE='#'
4594 HAVE_OPENBSD_OS_TRUE='#'
4595 HAVE_OPENBSD_OS_FALSE=
4597 cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_OPENBSD_OS 1
4605 HAVE_OPENBSD_OS_TRUE=
4606 HAVE_OPENBSD_OS_FALSE='#'
4608 HAVE_OPENBSD_OS_TRUE='#'
4609 HAVE_OPENBSD_OS_FALSE=
4613 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4619 HAVE_BSDI_OS_FALSE='#'
4621 HAVE_BSDI_OS_TRUE='#'
4624 cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_BSDI_OS 1
4633 HAVE_BSDI_OS_FALSE='#'
4635 HAVE_BSDI_OS_TRUE='#'
4640 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4646 HAVE_SGI_OS_FALSE='#'
4648 HAVE_SGI_OS_TRUE='#'
4651 cat >>confdefs.h <<\_ACEOF
4652 #define HAVE_SGI_OS 1
4660 HAVE_SGI_OS_FALSE='#'
4662 HAVE_SGI_OS_TRUE='#'
4667 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4673 HAVE_IRIX_OS_FALSE='#'
4675 HAVE_IRIX_OS_TRUE='#'
4678 cat >>confdefs.h <<\_ACEOF
4679 #define HAVE_IRIX_OS 1
4687 HAVE_IRIX_OS_FALSE='#'
4689 HAVE_IRIX_OS_TRUE='#'
4694 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4699 HAVE_DARWIN_OS_TRUE=
4700 HAVE_DARWIN_OS_FALSE='#'
4702 HAVE_DARWIN_OS_TRUE='#'
4703 HAVE_DARWIN_OS_FALSE=
4705 cat >>confdefs.h <<\_ACEOF
4706 #define HAVE_DARWIN_OS 1
4713 HAVE_DARWIN_OS_TRUE=
4714 HAVE_DARWIN_OS_FALSE='#'
4716 HAVE_DARWIN_OS_TRUE='#'
4717 HAVE_DARWIN_OS_FALSE=
4722 # -----------------------------------------------------------
4723 # ----------------------------------------------------------
4724 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4725 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4726 if test "x$DISTNAME" != "x"
4728 echo "distname set to $DISTNAME"
4729 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4732 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4738 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4741 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4744 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4747 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4750 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4753 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4756 elif test -f /etc/SuSE-release
4759 elif test -d /etc/SuSEconfig
4762 elif test -f /etc/mandrake-release
4765 elif test -f /etc/whitebox-release
4768 elif test -f /etc/redhat-release
4771 elif test -f /etc/gentoo-release
4774 elif test -f /etc/debian_version
4777 elif test -f /etc/slackware-version
4780 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4783 elif test -f /etc/engarde-version
4786 elif test "$CYGWIN" = yes
4789 cat >>confdefs.h <<\_ACEOF
4790 #define HAVE_CYGWIN 1
4796 echo "$as_me:$LINENO: result: done" >&5
4797 echo "${ECHO_T}done" >&6
4800 # --------------------------------------------------
4801 # Suppport for gettext (translations)
4802 # By default, $datadir is ${prefix}/share
4803 # --------------------------------------------------
4804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 cat >conftest.make <<\_ACEOF
4812 @echo 'ac_maketemp="$(MAKE)"'
4814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4816 if test -n "$ac_maketemp"; then
4817 eval ac_cv_prog_make_${ac_make}_set=yes
4819 eval ac_cv_prog_make_${ac_make}_set=no
4823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4824 echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6
4828 echo "$as_me:$LINENO: result: no" >&5
4829 echo "${ECHO_T}no" >&6
4830 SET_MAKE="MAKE=${MAKE-make}"
4836 if test -n "$ac_aux_dir"; then
4837 case "$ac_aux_dir" in
4838 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4839 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4842 if test -z "$MKINSTALLDIRS"; then
4843 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4848 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4850 # Check whether --enable-nls or --disable-nls was given.
4851 if test "${enable_nls+set}" = set; then
4852 enableval="$enable_nls"
4857 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4858 echo "${ECHO_T}$USE_NLS" >&6
4865 # Prepare PATH_SEPARATOR.
4866 # The user is always right.
4867 if test "${PATH_SEPARATOR+set}" != set; then
4868 echo "#! /bin/sh" >conf$$.sh
4869 echo "exit 0" >>conf$$.sh
4871 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4879 # Find out how to test for executable files. Don't use a zero-byte file,
4880 # as systems may use methods other than mode bits to determine executability.
4881 cat >conf$$.file <<_ASEOF
4885 chmod +x conf$$.file
4886 if test -x conf$$.file >/dev/null 2>&1; then
4887 ac_executable_p="test -x"
4889 ac_executable_p="test -f"
4893 # Extract the first word of "msgfmt", so it can be a program name with args.
4894 set dummy msgfmt; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_path_MSGFMT+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4905 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4906 for ac_dir in $PATH; do
4908 test -z "$ac_dir" && ac_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4911 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4912 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4913 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4914 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4921 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4925 MSGFMT="$ac_cv_path_MSGFMT"
4926 if test "$MSGFMT" != ":"; then
4927 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4928 echo "${ECHO_T}$MSGFMT" >&6
4930 echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4934 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4935 set dummy gmsgfmt; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4964 GMSGFMT=$ac_cv_path_GMSGFMT
4966 if test -n "$GMSGFMT"; then
4967 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4968 echo "${ECHO_T}$GMSGFMT" >&6
4970 echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4976 # Prepare PATH_SEPARATOR.
4977 # The user is always right.
4978 if test "${PATH_SEPARATOR+set}" != set; then
4979 echo "#! /bin/sh" >conf$$.sh
4980 echo "exit 0" >>conf$$.sh
4982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4990 # Find out how to test for executable files. Don't use a zero-byte file,
4991 # as systems may use methods other than mode bits to determine executability.
4992 cat >conf$$.file <<_ASEOF
4996 chmod +x conf$$.file
4997 if test -x conf$$.file >/dev/null 2>&1; then
4998 ac_executable_p="test -x"
5000 ac_executable_p="test -f"
5004 # Extract the first word of "xgettext", so it can be a program name with args.
5005 set dummy xgettext; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5016 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5017 for ac_dir in $PATH; do
5019 test -z "$ac_dir" && ac_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5022 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5023 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5024 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5025 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5032 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5036 XGETTEXT="$ac_cv_path_XGETTEXT"
5037 if test "$XGETTEXT" != ":"; then
5038 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5039 echo "${ECHO_T}$XGETTEXT" >&6
5041 echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5048 # Prepare PATH_SEPARATOR.
5049 # The user is always right.
5050 if test "${PATH_SEPARATOR+set}" != set; then
5051 echo "#! /bin/sh" >conf$$.sh
5052 echo "exit 0" >>conf$$.sh
5054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5062 # Find out how to test for executable files. Don't use a zero-byte file,
5063 # as systems may use methods other than mode bits to determine executability.
5064 cat >conf$$.file <<_ASEOF
5068 chmod +x conf$$.file
5069 if test -x conf$$.file >/dev/null 2>&1; then
5070 ac_executable_p="test -x"
5072 ac_executable_p="test -f"
5076 # Extract the first word of "msgmerge", so it can be a program name with args.
5077 set dummy msgmerge; ac_word=$2
5078 echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5080 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5088 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5089 for ac_dir in $PATH; do
5091 test -z "$ac_dir" && ac_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5094 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5095 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5096 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5103 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5107 MSGMERGE="$ac_cv_path_MSGMERGE"
5108 if test "$MSGMERGE" != ":"; then
5109 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5110 echo "${ECHO_T}$MSGMERGE" >&6
5112 echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5117 if test "$GMSGFMT" != ":"; then
5118 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5119 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5122 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5123 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5124 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5129 if test "$XGETTEXT" != ":"; then
5130 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5131 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5134 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5135 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5141 ac_config_commands="$ac_config_commands default-1"
5145 if test "X$prefix" = "XNONE"; then
5146 acl_final_prefix="$ac_default_prefix"
5148 acl_final_prefix="$prefix"
5150 if test "X$exec_prefix" = "XNONE"; then
5151 acl_final_exec_prefix='${prefix}'
5153 acl_final_exec_prefix="$exec_prefix"
5155 acl_save_prefix="$prefix"
5156 prefix="$acl_final_prefix"
5157 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5158 prefix="$acl_save_prefix"
5161 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then
5163 withval="$with_gnu_ld"
5164 test "$withval" = no || with_gnu_ld=yes
5168 # Prepare PATH_SEPARATOR.
5169 # The user is always right.
5170 if test "${PATH_SEPARATOR+set}" != set; then
5171 echo "#! /bin/sh" >conf$$.sh
5172 echo "exit 0" >>conf$$.sh
5174 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182 if test "$GCC" = yes; then
5183 # Check if gcc -print-prog-name=ld gives a path.
5184 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5185 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5188 # gcc leaves a trailing carriage return which upsets mingw
5189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5194 # Accept absolute paths.
5195 [\\/]* | [A-Za-z]:[\\/]*)
5196 re_direlt='/[^/][^/]*/\.\./'
5197 # Canonicalize the path of ld
5198 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5199 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5200 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5202 test -z "$LD" && LD="$ac_prog"
5205 # If it fails, then pretend we aren't using GCC.
5209 # If it is relative, then search for the first ld in PATH.
5213 elif test "$with_gnu_ld" = yes; then
5214 echo "$as_me:$LINENO: checking for GNU ld" >&5
5215 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5217 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5218 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5220 if test "${acl_cv_path_LD+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 if test -z "$LD"; then
5224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5225 for ac_dir in $PATH; do
5226 test -z "$ac_dir" && ac_dir=.
5227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5228 acl_cv_path_LD="$ac_dir/$ac_prog"
5229 # Check to see if the program is GNU ld. I'd rather use --version,
5230 # but apparently some GNU ld's only accept -v.
5231 # Break only if it was the GNU/non-GNU ld that we prefer.
5232 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5233 *GNU* | *'with BFD'*)
5234 test "$with_gnu_ld" != no && break ;;
5236 test "$with_gnu_ld" != yes && break ;;
5242 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5246 LD="$acl_cv_path_LD"
5247 if test -n "$LD"; then
5248 echo "$as_me:$LINENO: result: $LD" >&5
5249 echo "${ECHO_T}$LD" >&6
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5254 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5255 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5256 { (exit 1); exit 1; }; }
5257 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5258 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5259 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5263 case `$LD -v 2>&1 </dev/null` in
5264 *GNU* | *'with BFD'*)
5265 acl_cv_prog_gnu_ld=yes ;;
5267 acl_cv_prog_gnu_ld=no ;;
5270 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5271 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5272 with_gnu_ld=$acl_cv_prog_gnu_ld
5277 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5278 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5279 if test "${acl_cv_rpath+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5284 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5290 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5291 echo "${ECHO_T}$acl_cv_rpath" >&6
5293 libext="$acl_cv_libext"
5294 shlibext="$acl_cv_shlibext"
5295 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5296 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5297 hardcode_direct="$acl_cv_hardcode_direct"
5298 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5299 # Check whether --enable-rpath or --disable-rpath was given.
5300 if test "${enable_rpath+set}" = set; then
5301 enableval="$enable_rpath"
5315 acl_save_prefix="$prefix"
5316 prefix="$acl_final_prefix"
5317 acl_save_exec_prefix="$exec_prefix"
5318 exec_prefix="$acl_final_exec_prefix"
5320 eval additional_includedir=\"$includedir\"
5321 eval additional_libdir=\"$libdir\"
5323 exec_prefix="$acl_save_exec_prefix"
5324 prefix="$acl_save_prefix"
5327 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5328 if test "${with_libiconv_prefix+set}" = set; then
5329 withval="$with_libiconv_prefix"
5331 if test "X$withval" = "Xno"; then
5334 if test "X$withval" = "X"; then
5336 acl_save_prefix="$prefix"
5337 prefix="$acl_final_prefix"
5338 acl_save_exec_prefix="$exec_prefix"
5339 exec_prefix="$acl_final_exec_prefix"
5341 eval additional_includedir=\"$includedir\"
5342 eval additional_libdir=\"$libdir\"
5344 exec_prefix="$acl_save_exec_prefix"
5345 prefix="$acl_save_prefix"
5348 additional_includedir="$withval/include"
5349 additional_libdir="$withval/lib"
5359 names_already_handled=
5360 names_next_round='iconv '
5361 while test -n "$names_next_round"; do
5362 names_this_round="$names_next_round"
5364 for name in $names_this_round; do
5366 for n in $names_already_handled; do
5367 if test "$n" = "$name"; then
5372 if test -z "$already_handled"; then
5373 names_already_handled="$names_already_handled $name"
5374 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5375 eval value=\"\$HAVE_LIB$uppername\"
5376 if test -n "$value"; then
5377 if test "$value" = yes; then
5378 eval value=\"\$LIB$uppername\"
5379 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5380 eval value=\"\$LTLIB$uppername\"
5381 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5390 if test $use_additional = yes; then
5391 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5392 found_dir="$additional_libdir"
5393 found_so="$additional_libdir/lib$name.$shlibext"
5394 if test -f "$additional_libdir/lib$name.la"; then
5395 found_la="$additional_libdir/lib$name.la"
5398 if test -f "$additional_libdir/lib$name.$libext"; then
5399 found_dir="$additional_libdir"
5400 found_a="$additional_libdir/lib$name.$libext"
5401 if test -f "$additional_libdir/lib$name.la"; then
5402 found_la="$additional_libdir/lib$name.la"
5407 if test "X$found_dir" = "X"; then
5408 for x in $LDFLAGS $LTLIBICONV; do
5410 acl_save_prefix="$prefix"
5411 prefix="$acl_final_prefix"
5412 acl_save_exec_prefix="$exec_prefix"
5413 exec_prefix="$acl_final_exec_prefix"
5415 exec_prefix="$acl_save_exec_prefix"
5416 prefix="$acl_save_prefix"
5420 dir=`echo "X$x" | sed -e 's/^X-L//'`
5421 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5423 found_so="$dir/lib$name.$shlibext"
5424 if test -f "$dir/lib$name.la"; then
5425 found_la="$dir/lib$name.la"
5428 if test -f "$dir/lib$name.$libext"; then
5430 found_a="$dir/lib$name.$libext"
5431 if test -f "$dir/lib$name.la"; then
5432 found_la="$dir/lib$name.la"
5438 if test "X$found_dir" != "X"; then
5443 if test "X$found_dir" != "X"; then
5444 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5445 if test "X$found_so" != "X"; then
5446 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5447 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5450 for x in $ltrpathdirs; do
5451 if test "X$x" = "X$found_dir"; then
5456 if test -z "$haveit"; then
5457 ltrpathdirs="$ltrpathdirs $found_dir"
5459 if test "$hardcode_direct" = yes; then
5460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5462 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5465 for x in $rpathdirs; do
5466 if test "X$x" = "X$found_dir"; then
5471 if test -z "$haveit"; then
5472 rpathdirs="$rpathdirs $found_dir"
5476 for x in $LDFLAGS $LIBICONV; do
5478 acl_save_prefix="$prefix"
5479 prefix="$acl_final_prefix"
5480 acl_save_exec_prefix="$exec_prefix"
5481 exec_prefix="$acl_final_exec_prefix"
5483 exec_prefix="$acl_save_exec_prefix"
5484 prefix="$acl_save_prefix"
5486 if test "X$x" = "X-L$found_dir"; then
5491 if test -z "$haveit"; then
5492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5494 if test "$hardcode_minus_L" != no; then
5495 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5497 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5503 if test "X$found_a" != "X"; then
5504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5506 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5509 additional_includedir=
5510 case "$found_dir" in
5512 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5513 additional_includedir="$basedir/include"
5516 if test "X$additional_includedir" != "X"; then
5517 if test "X$additional_includedir" != "X/usr/include"; then
5519 if test "X$additional_includedir" = "X/usr/local/include"; then
5520 if test -n "$GCC"; then
5522 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5526 if test -z "$haveit"; then
5527 for x in $CPPFLAGS $INCICONV; do
5529 acl_save_prefix="$prefix"
5530 prefix="$acl_final_prefix"
5531 acl_save_exec_prefix="$exec_prefix"
5532 exec_prefix="$acl_final_exec_prefix"
5534 exec_prefix="$acl_save_exec_prefix"
5535 prefix="$acl_save_prefix"
5537 if test "X$x" = "X-I$additional_includedir"; then
5542 if test -z "$haveit"; then
5543 if test -d "$additional_includedir"; then
5544 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5550 if test -n "$found_la"; then
5551 save_libdir="$libdir"
5553 */* | *\\*) . "$found_la" ;;
5554 *) . "./$found_la" ;;
5556 libdir="$save_libdir"
5557 for dep in $dependency_libs; do
5560 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5561 if test "X$additional_libdir" != "X/usr/lib"; then
5563 if test "X$additional_libdir" = "X/usr/local/lib"; then
5564 if test -n "$GCC"; then
5566 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5570 if test -z "$haveit"; then
5572 for x in $LDFLAGS $LIBICONV; do
5574 acl_save_prefix="$prefix"
5575 prefix="$acl_final_prefix"
5576 acl_save_exec_prefix="$exec_prefix"
5577 exec_prefix="$acl_final_exec_prefix"
5579 exec_prefix="$acl_save_exec_prefix"
5580 prefix="$acl_save_prefix"
5582 if test "X$x" = "X-L$additional_libdir"; then
5587 if test -z "$haveit"; then
5588 if test -d "$additional_libdir"; then
5589 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5593 for x in $LDFLAGS $LTLIBICONV; do
5595 acl_save_prefix="$prefix"
5596 prefix="$acl_final_prefix"
5597 acl_save_exec_prefix="$exec_prefix"
5598 exec_prefix="$acl_final_exec_prefix"
5600 exec_prefix="$acl_save_exec_prefix"
5601 prefix="$acl_save_prefix"
5603 if test "X$x" = "X-L$additional_libdir"; then
5608 if test -z "$haveit"; then
5609 if test -d "$additional_libdir"; then
5610 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5617 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5618 if test "$enable_rpath" != no; then
5620 for x in $rpathdirs; do
5621 if test "X$x" = "X$dir"; then
5626 if test -z "$haveit"; then
5627 rpathdirs="$rpathdirs $dir"
5630 for x in $ltrpathdirs; do
5631 if test "X$x" = "X$dir"; then
5636 if test -z "$haveit"; then
5637 ltrpathdirs="$ltrpathdirs $dir"
5642 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5645 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5648 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5649 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5655 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5656 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5662 if test "X$rpathdirs" != "X"; then
5663 if test -n "$hardcode_libdir_separator"; then
5665 for found_dir in $rpathdirs; do
5666 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5668 acl_save_libdir="$libdir"
5670 eval flag=\"$hardcode_libdir_flag_spec\"
5671 libdir="$acl_save_libdir"
5672 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5674 for found_dir in $rpathdirs; do
5675 acl_save_libdir="$libdir"
5677 eval flag=\"$hardcode_libdir_flag_spec\"
5678 libdir="$acl_save_libdir"
5679 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5683 if test "X$ltrpathdirs" != "X"; then
5684 for found_dir in $ltrpathdirs; do
5685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5706 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5707 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5708 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 gt_save_CPPFLAGS="$CPPFLAGS"
5712 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5713 gt_save_LIBS="$LIBS"
5714 LIBS="$LIBS -framework CoreFoundation"
5715 cat >conftest.$ac_ext <<_ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <CFPreferences.h>
5725 CFPreferencesCopyAppValue(NULL, NULL)
5730 rm -f conftest.$ac_objext conftest$ac_exeext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732 (eval $ac_link) 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 gt_cv_func_CFPreferencesCopyAppValue=yes
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 gt_cv_func_CFPreferencesCopyAppValue=no
5759 rm -f conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 CPPFLAGS="$gt_save_CPPFLAGS"
5762 LIBS="$gt_save_LIBS"
5764 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5765 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5766 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5768 cat >>confdefs.h <<\_ACEOF
5769 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5773 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5774 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5775 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 gt_save_CPPFLAGS="$CPPFLAGS"
5779 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5780 gt_save_LIBS="$LIBS"
5781 LIBS="$LIBS -framework CoreFoundation"
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <CFLocale.h>
5792 CFLocaleCopyCurrent();
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5799 (eval $ac_link) 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -z "$ac_c_werror_flag"
5807 || test ! -s conftest.err'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest$ac_exeext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 gt_cv_func_CFLocaleCopyCurrent=yes
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 gt_cv_func_CFLocaleCopyCurrent=no
5826 rm -f conftest.err conftest.$ac_objext \
5827 conftest$ac_exeext conftest.$ac_ext
5828 CPPFLAGS="$gt_save_CPPFLAGS"
5829 LIBS="$gt_save_LIBS"
5831 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5832 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5833 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_CFLOCALECOPYCURRENT 1
5841 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5842 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5848 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5850 # Check whether --enable-nls or --disable-nls was given.
5851 if test "${enable_nls+set}" = set; then
5852 enableval="$enable_nls"
5857 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5858 echo "${ECHO_T}$USE_NLS" >&6
5867 if test "$USE_NLS" = "yes"; then
5868 gt_use_preinstalled_gnugettext=no
5875 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5876 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5877 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 #include <libintl.h>
5887 extern int _nl_msg_cat_cntr;
5888 extern int *_nl_domain_bindings;
5892 bindtextdomain ("", "");
5893 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900 (eval $ac_link) 2>conftest.er1
5902 grep -v '^ *+' conftest.er1 >conftest.err
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest$ac_exeext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 gt_cv_func_gnugettext1_libc=yes
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 gt_cv_func_gnugettext1_libc=no
5927 rm -f conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5930 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5931 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5933 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5939 am_save_CPPFLAGS="$CPPFLAGS"
5941 for element in $INCICONV; do
5943 for x in $CPPFLAGS; do
5945 acl_save_prefix="$prefix"
5946 prefix="$acl_final_prefix"
5947 acl_save_exec_prefix="$exec_prefix"
5948 exec_prefix="$acl_final_exec_prefix"
5950 exec_prefix="$acl_save_exec_prefix"
5951 prefix="$acl_save_prefix"
5953 if test "X$x" = "X$element"; then
5958 if test -z "$haveit"; then
5959 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5964 echo "$as_me:$LINENO: checking for iconv" >&5
5965 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5966 if test "${am_cv_func_iconv+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 am_cv_func_iconv="no, consider installing GNU libiconv"
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5983 iconv_t cd = iconv_open("","");
5984 iconv(cd,NULL,NULL,NULL,NULL);
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992 (eval $ac_link) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1 >conftest.err
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest$ac_exeext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 am_cv_func_iconv=yes
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6018 rm -f conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 if test "$am_cv_func_iconv" != yes; then
6021 am_save_LIBS="$LIBS"
6022 LIBS="$LIBS $LIBICONV"
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6034 iconv_t cd = iconv_open("","");
6035 iconv(cd,NULL,NULL,NULL,NULL);
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043 (eval $ac_link) 2>conftest.er1
6045 grep -v '^ *+' conftest.er1 >conftest.err
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -z "$ac_c_werror_flag"
6051 || test ! -s conftest.err'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest$ac_exeext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6064 am_cv_func_iconv=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6070 rm -f conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072 LIBS="$am_save_LIBS"
6076 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6077 echo "${ECHO_T}$am_cv_func_iconv" >&6
6078 if test "$am_cv_func_iconv" = yes; then
6080 cat >>confdefs.h <<\_ACEOF
6081 #define HAVE_ICONV 1
6085 if test "$am_cv_lib_iconv" = yes; then
6086 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6087 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6088 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6089 echo "${ECHO_T}$LIBICONV" >&6
6091 CPPFLAGS="$am_save_CPPFLAGS"
6103 acl_save_prefix="$prefix"
6104 prefix="$acl_final_prefix"
6105 acl_save_exec_prefix="$exec_prefix"
6106 exec_prefix="$acl_final_exec_prefix"
6108 eval additional_includedir=\"$includedir\"
6109 eval additional_libdir=\"$libdir\"
6111 exec_prefix="$acl_save_exec_prefix"
6112 prefix="$acl_save_prefix"
6115 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6116 if test "${with_libintl_prefix+set}" = set; then
6117 withval="$with_libintl_prefix"
6119 if test "X$withval" = "Xno"; then
6122 if test "X$withval" = "X"; then
6124 acl_save_prefix="$prefix"
6125 prefix="$acl_final_prefix"
6126 acl_save_exec_prefix="$exec_prefix"
6127 exec_prefix="$acl_final_exec_prefix"
6129 eval additional_includedir=\"$includedir\"
6130 eval additional_libdir=\"$libdir\"
6132 exec_prefix="$acl_save_exec_prefix"
6133 prefix="$acl_save_prefix"
6136 additional_includedir="$withval/include"
6137 additional_libdir="$withval/lib"
6147 names_already_handled=
6148 names_next_round='intl '
6149 while test -n "$names_next_round"; do
6150 names_this_round="$names_next_round"
6152 for name in $names_this_round; do
6154 for n in $names_already_handled; do
6155 if test "$n" = "$name"; then
6160 if test -z "$already_handled"; then
6161 names_already_handled="$names_already_handled $name"
6162 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6163 eval value=\"\$HAVE_LIB$uppername\"
6164 if test -n "$value"; then
6165 if test "$value" = yes; then
6166 eval value=\"\$LIB$uppername\"
6167 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6168 eval value=\"\$LTLIB$uppername\"
6169 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6178 if test $use_additional = yes; then
6179 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6180 found_dir="$additional_libdir"
6181 found_so="$additional_libdir/lib$name.$shlibext"
6182 if test -f "$additional_libdir/lib$name.la"; then
6183 found_la="$additional_libdir/lib$name.la"
6186 if test -f "$additional_libdir/lib$name.$libext"; then
6187 found_dir="$additional_libdir"
6188 found_a="$additional_libdir/lib$name.$libext"
6189 if test -f "$additional_libdir/lib$name.la"; then
6190 found_la="$additional_libdir/lib$name.la"
6195 if test "X$found_dir" = "X"; then
6196 for x in $LDFLAGS $LTLIBINTL; do
6198 acl_save_prefix="$prefix"
6199 prefix="$acl_final_prefix"
6200 acl_save_exec_prefix="$exec_prefix"
6201 exec_prefix="$acl_final_exec_prefix"
6203 exec_prefix="$acl_save_exec_prefix"
6204 prefix="$acl_save_prefix"
6208 dir=`echo "X$x" | sed -e 's/^X-L//'`
6209 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6211 found_so="$dir/lib$name.$shlibext"
6212 if test -f "$dir/lib$name.la"; then
6213 found_la="$dir/lib$name.la"
6216 if test -f "$dir/lib$name.$libext"; then
6218 found_a="$dir/lib$name.$libext"
6219 if test -f "$dir/lib$name.la"; then
6220 found_la="$dir/lib$name.la"
6226 if test "X$found_dir" != "X"; then
6231 if test "X$found_dir" != "X"; then
6232 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6233 if test "X$found_so" != "X"; then
6234 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6235 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6238 for x in $ltrpathdirs; do
6239 if test "X$x" = "X$found_dir"; then
6244 if test -z "$haveit"; then
6245 ltrpathdirs="$ltrpathdirs $found_dir"
6247 if test "$hardcode_direct" = yes; then
6248 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6250 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6251 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6253 for x in $rpathdirs; do
6254 if test "X$x" = "X$found_dir"; then
6259 if test -z "$haveit"; then
6260 rpathdirs="$rpathdirs $found_dir"
6264 for x in $LDFLAGS $LIBINTL; do
6266 acl_save_prefix="$prefix"
6267 prefix="$acl_final_prefix"
6268 acl_save_exec_prefix="$exec_prefix"
6269 exec_prefix="$acl_final_exec_prefix"
6271 exec_prefix="$acl_save_exec_prefix"
6272 prefix="$acl_save_prefix"
6274 if test "X$x" = "X-L$found_dir"; then
6279 if test -z "$haveit"; then
6280 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6282 if test "$hardcode_minus_L" != no; then
6283 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6285 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6291 if test "X$found_a" != "X"; then
6292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6294 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6297 additional_includedir=
6298 case "$found_dir" in
6300 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6301 additional_includedir="$basedir/include"
6304 if test "X$additional_includedir" != "X"; then
6305 if test "X$additional_includedir" != "X/usr/include"; then
6307 if test "X$additional_includedir" = "X/usr/local/include"; then
6308 if test -n "$GCC"; then
6310 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6314 if test -z "$haveit"; then
6315 for x in $CPPFLAGS $INCINTL; do
6317 acl_save_prefix="$prefix"
6318 prefix="$acl_final_prefix"
6319 acl_save_exec_prefix="$exec_prefix"
6320 exec_prefix="$acl_final_exec_prefix"
6322 exec_prefix="$acl_save_exec_prefix"
6323 prefix="$acl_save_prefix"
6325 if test "X$x" = "X-I$additional_includedir"; then
6330 if test -z "$haveit"; then
6331 if test -d "$additional_includedir"; then
6332 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6338 if test -n "$found_la"; then
6339 save_libdir="$libdir"
6341 */* | *\\*) . "$found_la" ;;
6342 *) . "./$found_la" ;;
6344 libdir="$save_libdir"
6345 for dep in $dependency_libs; do
6348 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6349 if test "X$additional_libdir" != "X/usr/lib"; then
6351 if test "X$additional_libdir" = "X/usr/local/lib"; then
6352 if test -n "$GCC"; then
6354 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6358 if test -z "$haveit"; then
6360 for x in $LDFLAGS $LIBINTL; do
6362 acl_save_prefix="$prefix"
6363 prefix="$acl_final_prefix"
6364 acl_save_exec_prefix="$exec_prefix"
6365 exec_prefix="$acl_final_exec_prefix"
6367 exec_prefix="$acl_save_exec_prefix"
6368 prefix="$acl_save_prefix"
6370 if test "X$x" = "X-L$additional_libdir"; then
6375 if test -z "$haveit"; then
6376 if test -d "$additional_libdir"; then
6377 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6381 for x in $LDFLAGS $LTLIBINTL; do
6383 acl_save_prefix="$prefix"
6384 prefix="$acl_final_prefix"
6385 acl_save_exec_prefix="$exec_prefix"
6386 exec_prefix="$acl_final_exec_prefix"
6388 exec_prefix="$acl_save_exec_prefix"
6389 prefix="$acl_save_prefix"
6391 if test "X$x" = "X-L$additional_libdir"; then
6396 if test -z "$haveit"; then
6397 if test -d "$additional_libdir"; then
6398 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6405 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6406 if test "$enable_rpath" != no; then
6408 for x in $rpathdirs; do
6409 if test "X$x" = "X$dir"; then
6414 if test -z "$haveit"; then
6415 rpathdirs="$rpathdirs $dir"
6418 for x in $ltrpathdirs; do
6419 if test "X$x" = "X$dir"; then
6424 if test -z "$haveit"; then
6425 ltrpathdirs="$ltrpathdirs $dir"
6430 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6433 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6436 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6437 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6443 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6444 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6450 if test "X$rpathdirs" != "X"; then
6451 if test -n "$hardcode_libdir_separator"; then
6453 for found_dir in $rpathdirs; do
6454 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6456 acl_save_libdir="$libdir"
6458 eval flag=\"$hardcode_libdir_flag_spec\"
6459 libdir="$acl_save_libdir"
6460 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6462 for found_dir in $rpathdirs; do
6463 acl_save_libdir="$libdir"
6465 eval flag=\"$hardcode_libdir_flag_spec\"
6466 libdir="$acl_save_libdir"
6467 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6471 if test "X$ltrpathdirs" != "X"; then
6472 for found_dir in $ltrpathdirs; do
6473 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6477 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6478 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6479 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 gt_save_CPPFLAGS="$CPPFLAGS"
6483 CPPFLAGS="$CPPFLAGS $INCINTL"
6484 gt_save_LIBS="$LIBS"
6485 LIBS="$LIBS $LIBINTL"
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 #include <libintl.h>
6493 extern int _nl_msg_cat_cntr;
6498 const char *_nl_expand_alias (const char *);
6502 bindtextdomain ("", "");
6503 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510 (eval $ac_link) 2>conftest.er1
6512 grep -v '^ *+' conftest.er1 >conftest.err
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest$ac_exeext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 gt_cv_func_gnugettext1_libintl=yes
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 gt_cv_func_gnugettext1_libintl=no
6537 rm -f conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6539 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6540 LIBS="$LIBS $LIBICONV"
6541 cat >conftest.$ac_ext <<_ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 #include <libintl.h>
6548 extern int _nl_msg_cat_cntr;
6553 const char *_nl_expand_alias (const char *);
6557 bindtextdomain ("", "");
6558 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6563 rm -f conftest.$ac_objext conftest$ac_exeext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565 (eval $ac_link) 2>conftest.er1
6567 grep -v '^ *+' conftest.er1 >conftest.err
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
6572 { ac_try='test -z "$ac_c_werror_flag"
6573 || test ! -s conftest.err'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest$ac_exeext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 LIBINTL="$LIBINTL $LIBICONV"
6586 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6587 gt_cv_func_gnugettext1_libintl=yes
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6594 rm -f conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6597 CPPFLAGS="$gt_save_CPPFLAGS"
6598 LIBS="$gt_save_LIBS"
6600 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6601 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6604 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6605 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6606 && test "$PACKAGE" != gettext-runtime \
6607 && test "$PACKAGE" != gettext-tools; }; then
6608 gt_use_preinstalled_gnugettext=yes
6617 if test -n "$INTL_MACOSX_LIBS"; then
6618 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6619 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6620 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6621 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6625 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6628 cat >>confdefs.h <<\_ACEOF
6629 #define ENABLE_NLS 1
6637 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6638 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6639 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6640 echo "${ECHO_T}$USE_NLS" >&6
6641 if test "$USE_NLS" = "yes"; then
6642 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6643 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6644 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6645 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6646 gt_source="external libintl"
6651 gt_source="included intl directory"
6653 echo "$as_me:$LINENO: result: $gt_source" >&5
6654 echo "${ECHO_T}$gt_source" >&6
6657 if test "$USE_NLS" = "yes"; then
6659 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6660 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6661 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6662 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6663 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6664 echo "${ECHO_T}$LIBINTL" >&6
6666 for element in $INCINTL; do
6668 for x in $CPPFLAGS; do
6670 acl_save_prefix="$prefix"
6671 prefix="$acl_final_prefix"
6672 acl_save_exec_prefix="$exec_prefix"
6673 exec_prefix="$acl_final_exec_prefix"
6675 exec_prefix="$acl_save_exec_prefix"
6676 prefix="$acl_save_prefix"
6678 if test "X$x" = "X$element"; then
6683 if test -z "$haveit"; then
6684 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_GETTEXT 1
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_DCGETTEXT 1
6714 if test x${prefix} = xNONE ; then
6715 if test `eval echo ${datadir}` = NONE/share ; then
6720 # ------------------------------------------------------------------
6721 # If the user has not set --prefix, we set our default to nothing.
6722 # In this case, if the user has not set --sysconfdir, we set it
6723 # to the package default of /etc/bacula. If either --prefix or
6724 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6725 # ------------------------------------------------------------------
6726 if test x${prefix} = xNONE ; then
6727 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6728 sysconfdir=/etc/bacula
6732 sysconfdir=`eval echo ${sysconfdir}`
6733 datadir=`eval echo ${datadir}`
6734 localedir=`eval echo ${datadir}/locale`
6735 cat >>confdefs.h <<_ACEOF
6736 #define LOCALEDIR "$localedir"
6739 cat >>confdefs.h <<_ACEOF
6740 #define SYSCONFDIR "$sysconfdir"
6744 # -------------------------------------------------------------------------
6745 # If the user has not set --exec-prefix, we default to ${prefix}
6746 # -------------------------------------------------------------------------
6747 if test x${exec_prefix} = xNONE ; then
6748 exec_prefix=${prefix}
6751 # ------------------------------------------------------------------
6752 # If the user has not set --sbindir, we set our default as /sbin
6753 # ------------------------------------------------------------------
6754 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6755 sbindir=${exec_prefix}/sbin
6757 sbindir=`eval echo ${sbindir}`
6759 # -------------------------------------------------------------------------
6760 # If the user has not set --mandir, we default to /usr/share/man
6761 # -------------------------------------------------------------------------
6762 if test x$mandir = x'${prefix}/man' ; then
6763 mandir=/usr/share/man
6767 # ------------------------------------------------------------------
6768 # All list of languages for which a translation exist. Each
6769 # language is separated by a space.
6770 # ------------------------------------------------------------------
6773 for ac_prog in msgfmt
6775 # Extract the first word of "$ac_prog", so it can be a program name with args.
6776 set dummy $ac_prog; ac_word=$2
6777 echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779 if test "${ac_cv_path_MSGFMT+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 MSGFMT=$ac_cv_path_MSGFMT
6806 if test -n "$MSGFMT"; then
6807 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6808 echo "${ECHO_T}$MSGFMT" >&6
6810 echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6
6814 test -n "$MSGFMT" && break
6816 test -n "$MSGFMT" || MSGFMT="no"
6818 if test "$MSGFMT" = "no"
6820 echo 'msgfmt program not found, disabling NLS !'
6822 USE_INCLUDED_LIBINTL=no
6825 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6826 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6827 if test "${ac_cv_gnu_library_2+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 cat >conftest.$ac_ext <<_ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6837 #include <features.h>
6838 #ifdef __GNU_LIBRARY__
6839 #if (__GLIBC__ >= 2)
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6847 ac_cv_gnu_library_2=yes
6849 ac_cv_gnu_library_2=no
6856 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6857 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6859 GLIBC2="$ac_cv_gnu_library_2"
6862 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6863 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6864 if test "${ac_cv_search_strerror+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 ac_func_search_save_LIBS=$LIBS
6868 ac_cv_search_strerror=no
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6876 /* Override any gcc2 internal prototype to avoid an error. */
6880 /* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893 (eval $ac_link) 2>conftest.er1
6895 grep -v '^ *+' conftest.er1 >conftest.err
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -z "$ac_c_werror_flag"
6901 || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest$ac_exeext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 ac_cv_search_strerror="none required"
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6919 rm -f conftest.err conftest.$ac_objext \
6920 conftest$ac_exeext conftest.$ac_ext
6921 if test "$ac_cv_search_strerror" = no; then
6922 for ac_lib in cposix; do
6923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6924 cat >conftest.$ac_ext <<_ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6931 /* Override any gcc2 internal prototype to avoid an error. */
6935 /* We use char because int might match the return type of a gcc2
6936 builtin and then its argument prototype would still apply. */
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948 (eval $ac_link) 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -z "$ac_c_werror_flag"
6956 || test ! -s conftest.err'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest$ac_exeext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 ac_cv_search_strerror="-l$ac_lib"
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6975 rm -f conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6979 LIBS=$ac_func_search_save_LIBS
6981 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6982 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6983 if test "$ac_cv_search_strerror" != no; then
6984 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6988 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6989 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6990 if test "${ac_cv_header_stdc+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
7012 rm -f conftest.$ac_objext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7014 (eval $ac_compile) 2>conftest.er1
7016 grep -v '^ *+' conftest.er1 >conftest.err
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -z "$ac_c_werror_flag"
7022 || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest.$ac_objext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_header_stdc=yes
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_cv_header_stdc=no
7041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043 if test $ac_cv_header_stdc = yes; then
7044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "memchr" >/dev/null 2>&1; then
7058 ac_cv_header_stdc=no
7064 if test $ac_cv_header_stdc = yes; then
7065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7066 cat >conftest.$ac_ext <<_ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "free" >/dev/null 2>&1; then
7079 ac_cv_header_stdc=no
7085 if test $ac_cv_header_stdc = yes; then
7086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7087 if test "$cross_compiling" = yes; then
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7097 #if ((' ' & 0x0FF) == 0x020)
7098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7101 # define ISLOWER(c) \
7102 (('a' <= (c) && (c) <= 'i') \
7103 || ('j' <= (c) && (c) <= 'r') \
7104 || ('s' <= (c) && (c) <= 'z'))
7105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7113 for (i = 0; i < 256; i++)
7114 if (XOR (islower (i), ISLOWER (i))
7115 || toupper (i) != TOUPPER (i))
7120 rm -f conftest$ac_exeext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7133 echo "$as_me: program exited with status $ac_status" >&5
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_cv_header_stdc=no
7140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7144 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7145 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7146 if test $ac_cv_header_stdc = yes; then
7148 cat >>confdefs.h <<\_ACEOF
7149 #define STDC_HEADERS 1
7154 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7155 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7156 if test "${ac_cv_c_const+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 cat >conftest.$ac_ext <<_ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7169 /* FIXME: Include the comments suggested by Paul. */
7171 /* Ultrix mips cc rejects this. */
7172 typedef int charset[2];
7174 /* SunOS 4.1.1 cc rejects this. */
7175 char const *const *ccp;
7177 /* NEC SVR4.0.2 mips cc rejects this. */
7178 struct point {int x, y;};
7179 static struct point const zero = {0,0};
7180 /* AIX XL C 1.02.0.0 rejects this.
7181 It does not let you subtract one const X* pointer from another in
7182 an arm of an if-expression whose if-part is not a constant
7184 const char *g = "string";
7185 ccp = &g + (g ? g-g : 0);
7186 /* HPUX 7.0 cc rejects these. */
7189 ccp = (char const *const *) p;
7190 { /* SCO 3.2v4 cc rejects this. */
7192 char const *s = 0 ? (char *) 0 : (char const *) 0;
7196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7198 const int *foo = &x[0];
7201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7202 typedef const int *iptr;
7206 { /* AIX XL C 1.02.0.0 rejects this saying
7207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7208 struct s { int j; const int *ap[3]; };
7209 struct s *b; b->j = 5;
7211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7220 rm -f conftest.$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 (eval $ac_compile) 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -z "$ac_c_werror_flag"
7230 || test ! -s conftest.err'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; } &&
7236 { ac_try='test -s conftest.$ac_objext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7251 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7252 echo "${ECHO_T}$ac_cv_c_const" >&6
7253 if test $ac_cv_c_const = no; then
7255 cat >>confdefs.h <<\_ACEOF
7262 echo "$as_me:$LINENO: checking for signed" >&5
7263 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7264 if test "${bh_cv_c_signed+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 cat >conftest.$ac_ext <<_ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7282 rm -f conftest.$ac_objext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284 (eval $ac_compile) 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } &&
7291 { ac_try='test -z "$ac_c_werror_flag"
7292 || test ! -s conftest.err'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; } &&
7298 { ac_try='test -s conftest.$ac_objext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7314 echo "${ECHO_T}$bh_cv_c_signed" >&6
7315 if test $bh_cv_c_signed = no; then
7317 cat >>confdefs.h <<\_ACEOF
7323 echo "$as_me:$LINENO: checking for inline" >&5
7324 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7325 if test "${ac_cv_c_inline+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 for ac_kw in inline __inline__ __inline; do
7330 cat >conftest.$ac_ext <<_ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7338 static $ac_kw foo_t static_foo () {return 0; }
7339 $ac_kw foo_t foo () {return 0; }
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7347 grep -v '^ *+' conftest.er1 >conftest.err
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_cv_c_inline=$ac_kw; break
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7376 echo "${ECHO_T}$ac_cv_c_inline" >&6
7379 case $ac_cv_c_inline in
7382 case $ac_cv_c_inline in
7384 *) ac_val=$ac_cv_c_inline;;
7386 cat >>confdefs.h <<_ACEOF
7388 #define inline $ac_val
7394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7405 inttypes.h stdint.h unistd.h
7407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7408 echo "$as_me:$LINENO: checking for $ac_header" >&5
7409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7421 #include <$ac_header>
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -z "$ac_c_werror_flag"
7433 || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest.$ac_objext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 eval "$as_ac_Header=yes"
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7450 eval "$as_ac_Header=no"
7452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457 cat >>confdefs.h <<_ACEOF
7458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7466 echo "$as_me:$LINENO: checking for off_t" >&5
7467 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7468 if test "${ac_cv_type_off_t+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 cat >conftest.$ac_ext <<_ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 $ac_includes_default
7489 rm -f conftest.$ac_objext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7491 (eval $ac_compile) 2>conftest.er1
7493 grep -v '^ *+' conftest.er1 >conftest.err
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } &&
7498 { ac_try='test -z "$ac_c_werror_flag"
7499 || test ! -s conftest.err'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; } &&
7505 { ac_try='test -s conftest.$ac_objext'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 ac_cv_type_off_t=yes
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7520 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7521 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7522 if test $ac_cv_type_off_t = yes; then
7526 cat >>confdefs.h <<_ACEOF
7532 echo "$as_me:$LINENO: checking for size_t" >&5
7533 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7534 if test "${ac_cv_type_size_t+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7549 if (sizeof (size_t))
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>conftest.er1
7559 grep -v '^ *+' conftest.er1 >conftest.err
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_type_size_t=yes
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_cv_type_size_t=no
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7587 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7588 if test $ac_cv_type_size_t = yes; then
7592 cat >>confdefs.h <<_ACEOF
7593 #define size_t unsigned
7599 echo "$as_me:$LINENO: checking for long long" >&5
7600 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7601 if test "${ac_cv_type_long_long+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 long long ll = 1LL; int i = 63;
7614 long long llmax = (long long) -1;
7615 return ll << i | ll >> i | llmax / ll | llmax % ll;
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7622 (eval $ac_link) 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_type_long_long=yes
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_cv_type_long_long=no
7649 rm -f conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7652 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7653 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7654 if test $ac_cv_type_long_long = yes; then
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_LONG_LONG 1
7663 echo "$as_me:$LINENO: checking for long double" >&5
7664 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7665 if test "${gt_cv_c_long_double+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 if test "$GCC" = yes; then
7669 gt_cv_c_long_double=yes
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7679 long double foo = 0.0;
7680 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7681 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7691 rm -f conftest.$ac_objext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693 (eval $ac_compile) 2>conftest.er1
7695 grep -v '^ *+' conftest.er1 >conftest.err
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try='test -z "$ac_c_werror_flag"
7701 || test ! -s conftest.err'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; } &&
7707 { ac_try='test -s conftest.$ac_objext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 gt_cv_c_long_double=yes
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 gt_cv_c_long_double=no
7720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7724 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7725 if test $gt_cv_c_long_double = yes; then
7727 cat >>confdefs.h <<\_ACEOF
7728 #define HAVE_LONG_DOUBLE 1
7734 echo "$as_me:$LINENO: checking for wchar_t" >&5
7735 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7736 if test "${gt_cv_c_wchar_t+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7746 wchar_t foo = (wchar_t)'\0';
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757 (eval $ac_compile) 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest.$ac_objext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7786 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7787 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7788 if test $gt_cv_c_wchar_t = yes; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_WCHAR_T 1
7797 echo "$as_me:$LINENO: checking for wint_t" >&5
7798 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7799 if test "${gt_cv_c_wint_t+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7809 wint_t foo = (wchar_t)'\0';
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>conftest.er1
7822 grep -v '^ *+' conftest.er1 >conftest.err
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -z "$ac_c_werror_flag"
7828 || test ! -s conftest.err'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest.$ac_objext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7849 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7850 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7851 if test $gt_cv_c_wint_t = yes; then
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_WINT_T 1
7860 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7861 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7862 if test "${gl_cv_header_inttypes_h+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 cat >conftest.$ac_ext <<_ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 #include <sys/types.h>
7872 #include <inttypes.h>
7876 uintmax_t i = (uintmax_t) -1;
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7885 grep -v '^ *+' conftest.er1 >conftest.err
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 gl_cv_header_inttypes_h=yes
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 gl_cv_header_inttypes_h=no
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7913 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7914 if test $gl_cv_header_inttypes_h = yes; then
7916 cat >>confdefs.h <<_ACEOF
7917 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7923 echo "$as_me:$LINENO: checking for stdint.h" >&5
7924 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7925 if test "${gl_cv_header_stdint_h+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 #include <sys/types.h>
7939 uintmax_t i = (uintmax_t) -1;
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946 (eval $ac_compile) 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest.$ac_objext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 gl_cv_header_stdint_h=yes
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 gl_cv_header_stdint_h=no
7973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7975 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7976 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7977 if test $gl_cv_header_stdint_h = yes; then
7979 cat >>confdefs.h <<_ACEOF
7980 #define HAVE_STDINT_H_WITH_UINTMAX 1
7988 echo "$as_me:$LINENO: checking for intmax_t" >&5
7989 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7990 if test "${gt_cv_c_intmax_t+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8002 #if HAVE_STDINT_H_WITH_UINTMAX
8005 #if HAVE_INTTYPES_H_WITH_UINTMAX
8006 #include <inttypes.h>
8017 rm -f conftest.$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019 (eval $ac_compile) 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -z "$ac_c_werror_flag"
8027 || test ! -s conftest.err'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; } &&
8033 { ac_try='test -s conftest.$ac_objext'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 gt_cv_c_intmax_t=yes
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8048 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8049 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8050 if test $gt_cv_c_intmax_t = yes; then
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_INTMAX_T 1
8060 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8061 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8062 if test "${gt_cv_func_printf_posix+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 if test "$cross_compiling" = yes; then
8068 cat >conftest.$ac_ext <<_ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8075 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8081 $EGREP "notposix" >/dev/null 2>&1; then
8082 gt_cv_func_printf_posix="guessing no"
8084 gt_cv_func_printf_posix="guessing yes"
8090 cat >conftest.$ac_ext <<_ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8099 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8100 dollar expansion (possibly an autoconf bug). */
8101 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8102 static char buf[100];
8105 sprintf (buf, format, 33, 55);
8106 return (strcmp (buf, "55 33") != 0);
8109 rm -f conftest$ac_exeext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8111 (eval $ac_link) 2>&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 gt_cv_func_printf_posix=yes
8122 echo "$as_me: program exited with status $ac_status" >&5
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8127 gt_cv_func_printf_posix=no
8129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8133 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8134 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8135 case $gt_cv_func_printf_posix in
8138 cat >>confdefs.h <<\_ACEOF
8139 #define HAVE_POSIX_PRINTF 1
8145 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8146 # for constant arguments. Useless!
8147 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8148 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8149 if test "${ac_cv_working_alloca_h+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 cat >conftest.$ac_ext <<_ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8162 char *p = (char *) alloca (2 * sizeof (int));
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_working_alloca_h=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_working_alloca_h=no
8196 rm -f conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8199 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8200 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8201 if test $ac_cv_working_alloca_h = yes; then
8203 cat >>confdefs.h <<\_ACEOF
8204 #define HAVE_ALLOCA_H 1
8209 echo "$as_me:$LINENO: checking for alloca" >&5
8210 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8211 if test "${ac_cv_func_alloca_works+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8221 # define alloca __builtin_alloca
8224 # include <malloc.h>
8225 # define alloca _alloca
8228 # include <alloca.h>
8233 # ifndef alloca /* predefined by HP cc +Olibcalls */
8244 char *p = (char *) alloca (1);
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>conftest.er1
8253 grep -v '^ *+' conftest.er1 >conftest.err
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_func_alloca_works=yes
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 ac_cv_func_alloca_works=no
8278 rm -f conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8281 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8282 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8284 if test $ac_cv_func_alloca_works = yes; then
8286 cat >>confdefs.h <<\_ACEOF
8287 #define HAVE_ALLOCA 1
8291 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8292 # that cause trouble. Some versions do not even contain alloca or
8293 # contain a buggy version. If you still want to use their alloca,
8294 # use ar to extract alloca.o from them instead of compiling alloca.c.
8296 ALLOCA=alloca.$ac_objext
8298 cat >>confdefs.h <<\_ACEOF
8303 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8304 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8305 if test "${ac_cv_os_cray+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #if defined(CRAY) && ! defined(CRAY2)
8321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8322 $EGREP "webecray" >/dev/null 2>&1; then
8330 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8331 echo "${ECHO_T}$ac_cv_os_cray" >&6
8332 if test $ac_cv_os_cray = yes; then
8333 for ac_func in _getb67 GETB67 getb67; do
8334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8335 echo "$as_me:$LINENO: checking for $ac_func" >&5
8336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8337 if eval "test \"\${$as_ac_var+set}\" = set"; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 cat >conftest.$ac_ext <<_ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8348 #define $ac_func innocuous_$ac_func
8350 /* System header to define __stub macros and hopefully few prototypes,
8351 which can conflict with char $ac_func (); below.
8352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8353 <limits.h> exists even on freestanding compilers. */
8356 # include <limits.h>
8358 # include <assert.h>
8363 /* Override any gcc2 internal prototype to avoid an error. */
8368 /* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8371 /* The GNU C library defines this for functions which it implements
8372 to always fail with ENOSYS. Some functions are actually named
8373 something starting with __ and the normal name is an alias. */
8374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8377 char (*f) () = $ac_func;
8386 return f != $ac_func;
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag"
8401 || test ! -s conftest.err'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 eval "$as_ac_var=yes"
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 eval "$as_ac_var=no"
8420 rm -f conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8425 if test `eval echo '${'$as_ac_var'}'` = yes; then
8427 cat >>confdefs.h <<_ACEOF
8428 #define CRAY_STACKSEG_END $ac_func
8437 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8438 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8439 if test "${ac_cv_c_stack_direction+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 if test "$cross_compiling" = yes; then
8443 ac_cv_c_stack_direction=0
8445 cat >conftest.$ac_ext <<_ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8452 find_stack_direction ()
8454 static char *addr = 0;
8459 return find_stack_direction ();
8462 return (&dummy > addr) ? 1 : -1;
8468 exit (find_stack_direction () < 0);
8471 rm -f conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_c_stack_direction=1
8484 echo "$as_me: program exited with status $ac_status" >&5
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_c_stack_direction=-1
8491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8495 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8497 cat >>confdefs.h <<_ACEOF
8498 #define STACK_DIRECTION $ac_cv_c_stack_direction
8506 for ac_header in stdlib.h unistd.h
8508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510 echo "$as_me:$LINENO: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8518 # Is the header compilable?
8519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8521 cat >conftest.$ac_ext <<_ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 #include <$ac_header>
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_header_compiler=yes
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 ac_header_compiler=no
8559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8561 echo "${ECHO_T}$ac_header_compiler" >&6
8563 # Is the header present?
8564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 #include <$ac_header>
8574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } >/dev/null; then
8582 if test -s conftest.err; then
8583 ac_cpp_err=$ac_c_preproc_warn_flag
8584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8591 if test -z "$ac_cpp_err"; then
8592 ac_header_preproc=yes
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_header_preproc=no
8599 rm -f conftest.err conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8601 echo "${ECHO_T}$ac_header_preproc" >&6
8603 # So? What about this header?
8604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8610 ac_header_preproc=yes
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8627 ## ------------------------------------------ ##
8628 ## Report this to the AC_PACKAGE_NAME lists. ##
8629 ## ------------------------------------------ ##
8632 sed "s/^/$as_me: WARNING: /" >&2
8635 echo "$as_me:$LINENO: checking for $ac_header" >&5
8636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 eval "$as_ac_Header=\$ac_header_preproc"
8642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8647 cat >>confdefs.h <<_ACEOF
8648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8656 for ac_func in getpagesize
8658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8659 echo "$as_me:$LINENO: checking for $ac_func" >&5
8660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8661 if eval "test \"\${$as_ac_var+set}\" = set"; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8672 #define $ac_func innocuous_$ac_func
8674 /* System header to define __stub macros and hopefully few prototypes,
8675 which can conflict with char $ac_func (); below.
8676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8677 <limits.h> exists even on freestanding compilers. */
8680 # include <limits.h>
8682 # include <assert.h>
8687 /* Override any gcc2 internal prototype to avoid an error. */
8692 /* We use char because int might match the return type of a gcc2
8693 builtin and then its argument prototype would still apply. */
8695 /* The GNU C library defines this for functions which it implements
8696 to always fail with ENOSYS. Some functions are actually named
8697 something starting with __ and the normal name is an alias. */
8698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8701 char (*f) () = $ac_func;
8710 return f != $ac_func;
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717 (eval $ac_link) 2>conftest.er1
8719 grep -v '^ *+' conftest.er1 >conftest.err
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag"
8725 || test ! -s conftest.err'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest$ac_exeext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 eval "$as_ac_var=yes"
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 eval "$as_ac_var=no"
8744 rm -f conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8749 if test `eval echo '${'$as_ac_var'}'` = yes; then
8750 cat >>confdefs.h <<_ACEOF
8751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8757 echo "$as_me:$LINENO: checking for working mmap" >&5
8758 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8759 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 if test "$cross_compiling" = yes; then
8763 ac_cv_func_mmap_fixed_mapped=no
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8771 $ac_includes_default
8772 /* malloc might have been renamed as rpl_malloc. */
8775 /* Thanks to Mike Haertel and Jim Avera for this test.
8776 Here is a matrix of mmap possibilities:
8777 mmap private not fixed
8778 mmap private fixed at somewhere currently unmapped
8779 mmap private fixed at somewhere already mapped
8780 mmap shared not fixed
8781 mmap shared fixed at somewhere currently unmapped
8782 mmap shared fixed at somewhere already mapped
8783 For private mappings, we should verify that changes cannot be read()
8784 back from the file, nor mmap's back from the file at a different
8785 address. (There have been systems where private was not correctly
8786 implemented like the infamous i386 svr4.0, and systems where the
8787 VM page cache was not coherent with the file system buffer cache
8788 like early versions of FreeBSD and possibly contemporary NetBSD.)
8789 For shared mappings, we should conversely verify that changes get
8790 propagated back to all the places they're supposed to be.
8792 Grep wants private fixed already mapped.
8793 The main things grep needs to know about mmap are:
8794 * does it exist and is it safe to write into the mmap'd area
8795 * how to use it (BSD variants) */
8798 #include <sys/mman.h>
8800 #if !STDC_HEADERS && !HAVE_STDLIB_H
8804 /* This mess was copied from the GNU getpagesize.h. */
8805 #if !HAVE_GETPAGESIZE
8806 /* Assume that all systems that can run configure have sys/param.h. */
8807 # if !HAVE_SYS_PARAM_H
8808 # define HAVE_SYS_PARAM_H 1
8811 # ifdef _SC_PAGESIZE
8812 # define getpagesize() sysconf(_SC_PAGESIZE)
8813 # else /* no _SC_PAGESIZE */
8814 # if HAVE_SYS_PARAM_H
8815 # include <sys/param.h>
8816 # ifdef EXEC_PAGESIZE
8817 # define getpagesize() EXEC_PAGESIZE
8818 # else /* no EXEC_PAGESIZE */
8820 # define getpagesize() NBPG * CLSIZE
8823 # endif /* no CLSIZE */
8824 # else /* no NBPG */
8826 # define getpagesize() NBPC
8827 # else /* no NBPC */
8829 # define getpagesize() PAGESIZE
8830 # endif /* PAGESIZE */
8831 # endif /* no NBPC */
8832 # endif /* no NBPG */
8833 # endif /* no EXEC_PAGESIZE */
8834 # else /* no HAVE_SYS_PARAM_H */
8835 # define getpagesize() 8192 /* punt totally */
8836 # endif /* no HAVE_SYS_PARAM_H */
8837 # endif /* no _SC_PAGESIZE */
8839 #endif /* no HAVE_GETPAGESIZE */
8844 char *data, *data2, *data3;
8848 pagesize = getpagesize ();
8850 /* First, make a file with some known garbage in it. */
8851 data = (char *) malloc (pagesize);
8854 for (i = 0; i < pagesize; ++i)
8855 *(data + i) = rand ();
8857 fd = creat ("conftest.mmap", 0600);
8860 if (write (fd, data, pagesize) != pagesize)
8864 /* Next, try to mmap the file at a fixed address which already has
8865 something else allocated at it. If we can, also make sure that
8866 we see the same garbage. */
8867 fd = open ("conftest.mmap", O_RDWR);
8870 data2 = (char *) malloc (2 * pagesize);
8873 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8874 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8875 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8877 for (i = 0; i < pagesize; ++i)
8878 if (*(data + i) != *(data2 + i))
8881 /* Finally, make sure that changes to the mapped area do not
8882 percolate back to the file as seen by read(). (This is a bug on
8883 some variants of i386 svr4.0.) */
8884 for (i = 0; i < pagesize; ++i)
8885 *(data2 + i) = *(data2 + i) + 1;
8886 data3 = (char *) malloc (pagesize);
8889 if (read (fd, data3, pagesize) != pagesize)
8891 for (i = 0; i < pagesize; ++i)
8892 if (*(data + i) != *(data3 + i))
8898 rm -f conftest$ac_exeext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900 (eval $ac_link) 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 ac_cv_func_mmap_fixed_mapped=yes
8911 echo "$as_me: program exited with status $ac_status" >&5
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_func_mmap_fixed_mapped=no
8918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8921 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8922 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8923 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8925 cat >>confdefs.h <<\_ACEOF
8933 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8934 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8935 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 cat >conftest.$ac_ext <<_ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8945 #include <features.h>
8946 #ifdef __GNU_LIBRARY__
8947 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8954 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8955 ac_cv_gnu_library_2_1=yes
8957 ac_cv_gnu_library_2_1=no
8964 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8965 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8967 GLIBC21="$ac_cv_gnu_library_2_1"
8972 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8973 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8974 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 if test "$cross_compiling" = yes; then
8980 # Guess based on the CPU.
8982 alpha* | i3456786 | m68k | s390*)
8983 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8985 gt_cv_int_divbyzero_sigfpe="guessing no";;
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
9001 sigfpe_handler (int sig)
9003 sigfpe_handler (sig) int sig;
9006 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9007 exit (sig != SIGFPE);
9017 signal (SIGFPE, sigfpe_handler);
9018 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9019 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9020 signal (SIGTRAP, sigfpe_handler);
9022 /* Linux/SPARC yields signal SIGILL. */
9023 #if defined (__sparc__) && defined (__linux__)
9024 signal (SIGILL, sigfpe_handler);
9033 rm -f conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 gt_cv_int_divbyzero_sigfpe=yes
9046 echo "$as_me: program exited with status $ac_status" >&5
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9051 gt_cv_int_divbyzero_sigfpe=no
9053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9057 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9058 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9059 case "$gt_cv_int_divbyzero_sigfpe" in
9064 cat >>confdefs.h <<_ACEOF
9065 #define INTDIV0_RAISES_SIGFPE $value
9070 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9071 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9072 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 unsigned long long ull = 1ULL; int i = 63;
9085 unsigned long long ullmax = (unsigned long long) -1;
9086 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093 (eval $ac_link) 2>conftest.er1
9095 grep -v '^ *+' conftest.er1 >conftest.err
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try='test -z "$ac_c_werror_flag"
9101 || test ! -s conftest.err'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest$ac_exeext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_cv_type_unsigned_long_long=yes
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 ac_cv_type_unsigned_long_long=no
9120 rm -f conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
9123 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9124 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9125 if test $ac_cv_type_unsigned_long_long = yes; then
9127 cat >>confdefs.h <<\_ACEOF
9128 #define HAVE_UNSIGNED_LONG_LONG 1
9136 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9138 test $ac_cv_type_unsigned_long_long = yes \
9139 && ac_type='unsigned long long' \
9140 || ac_type='unsigned long'
9142 cat >>confdefs.h <<_ACEOF
9143 #define uintmax_t $ac_type
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_UINTMAX_T 1
9155 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9156 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9157 if test "${gt_cv_header_inttypes_h+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 cat >conftest.$ac_ext <<_ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9168 #include <inttypes.h>
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 gt_cv_header_inttypes_h=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 gt_cv_header_inttypes_h=no
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9210 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9211 if test $gt_cv_header_inttypes_h = yes; then
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_INTTYPES_H 1
9221 if test $gt_cv_header_inttypes_h = yes; then
9222 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9223 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9224 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 #include <inttypes.h>
9247 rm -f conftest.$ac_objext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9249 (eval $ac_compile) 2>conftest.er1
9251 grep -v '^ *+' conftest.er1 >conftest.err
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try='test -z "$ac_c_werror_flag"
9257 || test ! -s conftest.err'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; } &&
9263 { ac_try='test -s conftest.$ac_objext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 gt_cv_inttypes_pri_broken=no
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 gt_cv_inttypes_pri_broken=yes
9276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9280 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9282 if test "$gt_cv_inttypes_pri_broken" = yes; then
9284 cat >>confdefs.h <<_ACEOF
9285 #define PRI_MACROS_BROKEN 1
9292 for ac_header in stdint.h
9294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296 echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9304 # Is the header compilable?
9305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9307 cat >conftest.$ac_ext <<_ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 $ac_includes_default
9314 #include <$ac_header>
9316 rm -f conftest.$ac_objext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9318 (eval $ac_compile) 2>conftest.er1
9320 grep -v '^ *+' conftest.er1 >conftest.err
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -z "$ac_c_werror_flag"
9326 || test ! -s conftest.err'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; } &&
9332 { ac_try='test -s conftest.$ac_objext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9338 ac_header_compiler=yes
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9343 ac_header_compiler=no
9345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9347 echo "${ECHO_T}$ac_header_compiler" >&6
9349 # Is the header present?
9350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 #include <$ac_header>
9360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9363 grep -v '^ *+' conftest.er1 >conftest.err
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } >/dev/null; then
9368 if test -s conftest.err; then
9369 ac_cpp_err=$ac_c_preproc_warn_flag
9370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9377 if test -z "$ac_cpp_err"; then
9378 ac_header_preproc=yes
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9383 ac_header_preproc=no
9385 rm -f conftest.err conftest.$ac_ext
9386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6
9389 # So? What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9396 ac_header_preproc=yes
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9413 ## ------------------------------------------ ##
9414 ## Report this to the AC_PACKAGE_NAME lists. ##
9415 ## ------------------------------------------ ##
9418 sed "s/^/$as_me: WARNING: /" >&2
9421 echo "$as_me:$LINENO: checking for $ac_header" >&5
9422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 eval "$as_ac_Header=\$ac_header_preproc"
9428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9441 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9442 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461 $EGREP "Found it" >/dev/null 2>&1; then
9466 if test -z "$result"; then
9467 if test "$cross_compiling" = yes; then
9468 # Depending upon the size, compute the lo and hi bounds.
9469 cat >conftest.$ac_ext <<_ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9479 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9520 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529 (eval $ac_compile) 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_hi=$ac_mid; break
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_lo=`expr $ac_mid + 1`
9555 if test $ac_lo -le $ac_mid; then
9559 ac_mid=`expr 2 '*' $ac_mid + 1`
9561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9577 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag"
9594 || test ! -s conftest.err'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9618 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest.$ac_objext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_lo=$ac_mid; break
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9652 ac_hi=`expr '(' $ac_mid ')' - 1`
9653 if test $ac_mid -le $ac_hi; then
9657 ac_mid=`expr 2 '*' $ac_mid`
9659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9670 # Binary search between lo and hi bounds.
9671 while test "x$ac_lo" != "x$ac_hi"; do
9672 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9673 cat >conftest.$ac_ext <<_ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9683 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692 (eval $ac_compile) 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_lo=`expr '(' $ac_mid ')' + 1`
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9726 if test "$cross_compiling" = yes; then
9727 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9728 See \`config.log' for more details." >&5
9729 echo "$as_me: error: cannot run test program while cross compiling
9730 See \`config.log' for more details." >&2;}
9731 { (exit 1); exit 1; }; }
9733 cat >conftest.$ac_ext <<_ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9740 long longval () { return ~(size_t)0 / 10; }
9741 unsigned long ulongval () { return ~(size_t)0 / 10; }
9748 FILE *f = fopen ("conftest.val", "w");
9751 if ((~(size_t)0 / 10) < 0)
9753 long i = longval ();
9754 if (i != (~(size_t)0 / 10))
9756 fprintf (f, "%ld\n", i);
9760 unsigned long i = ulongval ();
9761 if (i != (~(size_t)0 / 10))
9763 fprintf (f, "%lu\n", i);
9765 exit (ferror (f) || fclose (f) != 0);
9771 rm -f conftest$ac_exeext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773 (eval $ac_link) 2>&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 res_hi=`cat conftest.val`
9784 echo "$as_me: program exited with status $ac_status" >&5
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9795 if test "$cross_compiling" = yes; then
9796 # Depending upon the size, compute the lo and hi bounds.
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9807 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9814 rm -f conftest.$ac_objext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9838 cat >conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9848 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_hi=$ac_mid; break
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_lo=`expr $ac_mid + 1`
9883 if test $ac_lo -le $ac_mid; then
9887 ac_mid=`expr 2 '*' $ac_mid + 1`
9889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 cat >conftest.$ac_ext <<_ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9905 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9912 rm -f conftest.$ac_objext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914 (eval $ac_compile) 2>conftest.er1
9916 grep -v '^ *+' conftest.er1 >conftest.err
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest.$ac_objext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9936 cat >conftest.$ac_ext <<_ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9946 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag"
9963 || test ! -s conftest.err'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest.$ac_objext'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_lo=$ac_mid; break
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_hi=`expr '(' $ac_mid ')' - 1`
9981 if test $ac_mid -le $ac_hi; then
9985 ac_mid=`expr 2 '*' $ac_mid`
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9998 # Binary search between lo and hi bounds.
9999 while test "x$ac_lo" != "x$ac_hi"; do
10000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 #include <stddef.h>
10011 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020 (eval $ac_compile) 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag"
10028 || test ! -s conftest.err'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest.$ac_objext'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10045 ac_lo=`expr '(' $ac_mid ')' + 1`
10047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10050 ?*) res_lo=$ac_lo;;
10054 if test "$cross_compiling" = yes; then
10055 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10056 See \`config.log' for more details." >&5
10057 echo "$as_me: error: cannot run test program while cross compiling
10058 See \`config.log' for more details." >&2;}
10059 { (exit 1); exit 1; }; }
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 #include <stddef.h>
10068 long longval () { return ~(size_t)0 % 10; }
10069 unsigned long ulongval () { return ~(size_t)0 % 10; }
10071 #include <stdlib.h>
10076 FILE *f = fopen ("conftest.val", "w");
10079 if ((~(size_t)0 % 10) < 0)
10081 long i = longval ();
10082 if (i != (~(size_t)0 % 10))
10084 fprintf (f, "%ld\n", i);
10088 unsigned long i = ulongval ();
10089 if (i != (~(size_t)0 % 10))
10091 fprintf (f, "%lu\n", i);
10093 exit (ferror (f) || fclose (f) != 0);
10099 rm -f conftest$ac_exeext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10101 (eval $ac_link) 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 res_lo=`cat conftest.val`
10112 echo "$as_me: program exited with status $ac_status" >&5
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ( exit $ac_status )
10119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10123 if test "$cross_compiling" = yes; then
10124 # Depending upon the size, compute the lo and hi bounds.
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 #include <stddef.h>
10135 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 #include <stddef.h>
10176 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>conftest.er1
10187 grep -v '^ *+' conftest.er1 >conftest.err
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag"
10193 || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_hi=$ac_mid; break
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_lo=`expr $ac_mid + 1`
10211 if test $ac_lo -le $ac_mid; then
10215 ac_mid=`expr 2 '*' $ac_mid + 1`
10217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 cat >conftest.$ac_ext <<_ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 #include <stddef.h>
10233 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242 (eval $ac_compile) 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10264 cat >conftest.$ac_ext <<_ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 #include <stddef.h>
10274 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283 (eval $ac_compile) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest.$ac_objext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_lo=$ac_mid; break
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_hi=`expr '(' $ac_mid ')' - 1`
10309 if test $ac_mid -le $ac_hi; then
10313 ac_mid=`expr 2 '*' $ac_mid`
10315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10326 # Binary search between lo and hi bounds.
10327 while test "x$ac_lo" != "x$ac_hi"; do
10328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 #include <stddef.h>
10339 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10346 rm -f conftest.$ac_objext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10348 (eval $ac_compile) 2>conftest.er1
10350 grep -v '^ *+' conftest.er1 >conftest.err
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } &&
10355 { ac_try='test -z "$ac_c_werror_flag"
10356 || test ! -s conftest.err'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest.$ac_objext'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10373 ac_lo=`expr '(' $ac_mid ')' + 1`
10375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10378 ?*) fits_in_uint=$ac_lo;;
10382 if test "$cross_compiling" = yes; then
10383 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10384 See \`config.log' for more details." >&5
10385 echo "$as_me: error: cannot run test program while cross compiling
10386 See \`config.log' for more details." >&2;}
10387 { (exit 1); exit 1; }; }
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <stddef.h>
10396 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10397 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10399 #include <stdlib.h>
10404 FILE *f = fopen ("conftest.val", "w");
10407 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10409 long i = longval ();
10410 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10412 fprintf (f, "%ld\n", i);
10416 unsigned long i = ulongval ();
10417 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10419 fprintf (f, "%lu\n", i);
10421 exit (ferror (f) || fclose (f) != 0);
10427 rm -f conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 fits_in_uint=`cat conftest.val`
10440 echo "$as_me: program exited with status $ac_status" >&5
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ( exit $ac_status )
10447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10451 if test "$fits_in_uint" = 1; then
10452 cat >conftest.$ac_ext <<_ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 #include <stddef.h>
10460 extern unsigned long foo;
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472 (eval $ac_compile) 2>conftest.er1
10474 grep -v '^ *+' conftest.er1 >conftest.err
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag"
10480 || test ! -s conftest.err'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest.$ac_objext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10500 if test -z "$result"; then
10501 if test "$fits_in_uint" = 1; then
10502 result="$res_hi$res_lo"U
10504 result="$res_hi$res_lo"UL
10507 result='~(size_t)0'
10510 echo "$as_me:$LINENO: result: $result" >&5
10511 echo "${ECHO_T}$result" >&6
10512 if test "$result" != yes; then
10514 cat >>confdefs.h <<_ACEOF
10515 #define SIZE_MAX $result
10524 for ac_header in stdint.h
10526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10528 echo "$as_me:$LINENO: checking for $ac_header" >&5
10529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10536 # Is the header compilable?
10537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10539 cat >conftest.$ac_ext <<_ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 $ac_includes_default
10546 #include <$ac_header>
10548 rm -f conftest.$ac_objext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550 (eval $ac_compile) 2>conftest.er1
10552 grep -v '^ *+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag"
10558 || test ! -s conftest.err'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; } &&
10564 { ac_try='test -s conftest.$ac_objext'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_header_compiler=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 ac_header_compiler=no
10577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579 echo "${ECHO_T}$ac_header_compiler" >&6
10581 # Is the header present?
10582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <$ac_header>
10592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10595 grep -v '^ *+' conftest.er1 >conftest.err
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } >/dev/null; then
10600 if test -s conftest.err; then
10601 ac_cpp_err=$ac_c_preproc_warn_flag
10602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10609 if test -z "$ac_cpp_err"; then
10610 ac_header_preproc=yes
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10615 ac_header_preproc=no
10617 rm -f conftest.err conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619 echo "${ECHO_T}$ac_header_preproc" >&6
10621 # So? What about this header?
10622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10628 ac_header_preproc=yes
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10645 ## ------------------------------------------ ##
10646 ## Report this to the AC_PACKAGE_NAME lists. ##
10647 ## ------------------------------------------ ##
10650 sed "s/^/$as_me: WARNING: /" >&2
10653 echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 eval "$as_ac_Header=\$ac_header_preproc"
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10665 cat >>confdefs.h <<_ACEOF
10666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10680 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10681 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10682 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 cat >conftest.$ac_ext <<_ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 $ac_includes_default
10695 if ((ptrdiff_t *) 0)
10697 if (sizeof (ptrdiff_t))
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>conftest.er1
10707 grep -v '^ *+' conftest.er1 >conftest.err
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_c_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_type_ptrdiff_t=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_type_ptrdiff_t=no
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10734 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10735 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10736 if test $ac_cv_type_ptrdiff_t = yes; then
10740 cat >>confdefs.h <<\_ACEOF
10741 #define ptrdiff_t long
10757 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10758 stdlib.h string.h unistd.h sys/param.h
10760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10762 echo "$as_me:$LINENO: checking for $ac_header" >&5
10763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10770 # Is the header compilable?
10771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 $ac_includes_default
10780 #include <$ac_header>
10782 rm -f conftest.$ac_objext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10784 (eval $ac_compile) 2>conftest.er1
10786 grep -v '^ *+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } &&
10791 { ac_try='test -z "$ac_c_werror_flag"
10792 || test ! -s conftest.err'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest.$ac_objext'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ac_header_compiler=yes
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_header_compiler=no
10811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6
10815 # Is the header present?
10816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 #include <$ac_header>
10826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10829 grep -v '^ *+' conftest.er1 >conftest.err
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null; then
10834 if test -s conftest.err; then
10835 ac_cpp_err=$ac_c_preproc_warn_flag
10836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10843 if test -z "$ac_cpp_err"; then
10844 ac_header_preproc=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_header_preproc=no
10851 rm -f conftest.err conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853 echo "${ECHO_T}$ac_header_preproc" >&6
10855 # So? What about this header?
10856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10862 ac_header_preproc=yes
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10879 ## ------------------------------------------ ##
10880 ## Report this to the AC_PACKAGE_NAME lists. ##
10881 ## ------------------------------------------ ##
10884 sed "s/^/$as_me: WARNING: /" >&2
10887 echo "$as_me:$LINENO: checking for $ac_header" >&5
10888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 eval "$as_ac_Header=\$ac_header_preproc"
10894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10930 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10931 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10932 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10936 echo "$as_me:$LINENO: checking for $ac_func" >&5
10937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10938 if eval "test \"\${$as_ac_var+set}\" = set"; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 cat >conftest.$ac_ext <<_ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10949 #define $ac_func innocuous_$ac_func
10951 /* System header to define __stub macros and hopefully few prototypes,
10952 which can conflict with char $ac_func (); below.
10953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954 <limits.h> exists even on freestanding compilers. */
10957 # include <limits.h>
10959 # include <assert.h>
10964 /* Override any gcc2 internal prototype to avoid an error. */
10969 /* We use char because int might match the return type of a gcc2
10970 builtin and then its argument prototype would still apply. */
10972 /* The GNU C library defines this for functions which it implements
10973 to always fail with ENOSYS. Some functions are actually named
10974 something starting with __ and the normal name is an alias. */
10975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10978 char (*f) () = $ac_func;
10987 return f != $ac_func;
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag"
11002 || test ! -s conftest.err'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 eval "$as_ac_var=yes"
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 eval "$as_ac_var=no"
11021 rm -f conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11026 if test `eval echo '${'$as_ac_var'}'` = yes; then
11027 cat >>confdefs.h <<_ACEOF
11028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11036 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11037 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11038 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 cat >conftest.$ac_ext <<_ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11053 char *p = (char *) _snprintf;
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062 (eval $ac_compile) 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag"
11070 || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try='test -s conftest.$ac_objext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 ac_cv_have_decl__snprintf=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_cv_have_decl__snprintf=no
11089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11091 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11092 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11093 if test $ac_cv_have_decl__snprintf = yes; then
11099 cat >>confdefs.h <<_ACEOF
11100 #define HAVE_DECL__SNPRINTF $gt_value
11105 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11106 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11107 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11122 char *p = (char *) _snwprintf;
11129 rm -f conftest.$ac_objext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11131 (eval $ac_compile) 2>conftest.er1
11133 grep -v '^ *+' conftest.er1 >conftest.err
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -z "$ac_c_werror_flag"
11139 || test ! -s conftest.err'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_cv_have_decl__snwprintf=yes
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ac_cv_have_decl__snwprintf=no
11158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11160 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11161 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11162 if test $ac_cv_have_decl__snwprintf = yes; then
11168 cat >>confdefs.h <<_ACEOF
11169 #define HAVE_DECL__SNWPRINTF $gt_value
11175 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11176 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11177 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11191 #ifndef feof_unlocked
11192 char *p = (char *) feof_unlocked;
11199 rm -f conftest.$ac_objext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201 (eval $ac_compile) 2>conftest.er1
11203 grep -v '^ *+' conftest.er1 >conftest.err
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } &&
11208 { ac_try='test -z "$ac_c_werror_flag"
11209 || test ! -s conftest.err'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest.$ac_objext'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; }; then
11221 ac_cv_have_decl_feof_unlocked=yes
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11226 ac_cv_have_decl_feof_unlocked=no
11228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11231 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11232 if test $ac_cv_have_decl_feof_unlocked = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11244 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11245 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11246 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11260 #ifndef fgets_unlocked
11261 char *p = (char *) fgets_unlocked;
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>conftest.er1
11272 grep -v '^ *+' conftest.er1 >conftest.err
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_have_decl_fgets_unlocked=yes
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11295 ac_cv_have_decl_fgets_unlocked=no
11297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11300 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11301 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11313 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11314 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11315 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11329 #ifndef getc_unlocked
11330 char *p = (char *) getc_unlocked;
11337 rm -f conftest.$ac_objext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11339 (eval $ac_compile) 2>conftest.er1
11341 grep -v '^ *+' conftest.er1 >conftest.err
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } &&
11346 { ac_try='test -z "$ac_c_werror_flag"
11347 || test ! -s conftest.err'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; } &&
11353 { ac_try='test -s conftest.$ac_objext'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 ac_cv_have_decl_getc_unlocked=yes
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 ac_cv_have_decl_getc_unlocked=no
11366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11368 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11369 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11370 if test $ac_cv_have_decl_getc_unlocked = yes; then
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11382 case $gt_cv_func_printf_posix in
11383 *yes) HAVE_POSIX_PRINTF=1 ;;
11384 *) HAVE_POSIX_PRINTF=0 ;;
11387 if test "$ac_cv_func_asprintf" = yes; then
11393 if test "$ac_cv_func_snprintf" = yes; then
11399 if test "$ac_cv_func_wprintf" = yes; then
11411 am_save_CPPFLAGS="$CPPFLAGS"
11413 for element in $INCICONV; do
11415 for x in $CPPFLAGS; do
11417 acl_save_prefix="$prefix"
11418 prefix="$acl_final_prefix"
11419 acl_save_exec_prefix="$exec_prefix"
11420 exec_prefix="$acl_final_exec_prefix"
11422 exec_prefix="$acl_save_exec_prefix"
11423 prefix="$acl_save_prefix"
11425 if test "X$x" = "X$element"; then
11430 if test -z "$haveit"; then
11431 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11436 echo "$as_me:$LINENO: checking for iconv" >&5
11437 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11438 if test "${am_cv_func_iconv+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 am_cv_func_iconv="no, consider installing GNU libiconv"
11444 cat >conftest.$ac_ext <<_ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 #include <stdlib.h>
11455 iconv_t cd = iconv_open("","");
11456 iconv(cd,NULL,NULL,NULL,NULL);
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464 (eval $ac_link) 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_c_werror_flag"
11472 || test ! -s conftest.err'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; } &&
11478 { ac_try='test -s conftest$ac_exeext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 am_cv_func_iconv=yes
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11490 rm -f conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 if test "$am_cv_func_iconv" != yes; then
11493 am_save_LIBS="$LIBS"
11494 LIBS="$LIBS $LIBICONV"
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <stdlib.h>
11506 iconv_t cd = iconv_open("","");
11507 iconv(cd,NULL,NULL,NULL,NULL);
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515 (eval $ac_link) 2>conftest.er1
11517 grep -v '^ *+' conftest.er1 >conftest.err
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -z "$ac_c_werror_flag"
11523 || test ! -s conftest.err'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest$ac_exeext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 am_cv_lib_iconv=yes
11536 am_cv_func_iconv=yes
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11542 rm -f conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS="$am_save_LIBS"
11548 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11549 echo "${ECHO_T}$am_cv_func_iconv" >&6
11550 if test "$am_cv_func_iconv" = yes; then
11552 cat >>confdefs.h <<\_ACEOF
11553 #define HAVE_ICONV 1
11557 if test "$am_cv_lib_iconv" = yes; then
11558 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11559 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11560 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11561 echo "${ECHO_T}$LIBICONV" >&6
11563 CPPFLAGS="$am_save_CPPFLAGS"
11570 if test "$am_cv_func_iconv" = yes; then
11571 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11572 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11573 if test "${am_cv_proto_iconv+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 cat >conftest.$ac_ext <<_ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11584 #include <stdlib.h>
11590 #if defined(__STDC__) || defined(__cplusplus)
11591 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>conftest.er1
11608 grep -v '^ *+' conftest.er1 >conftest.err
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -z "$ac_c_werror_flag"
11614 || test ! -s conftest.err'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try='test -s conftest.$ac_objext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 am_cv_proto_iconv_arg1=""
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 am_cv_proto_iconv_arg1="const"
11633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11634 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11637 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11638 echo "$as_me:$LINENO: result: ${ac_t:-
11639 }$am_cv_proto_iconv" >&5
11640 echo "${ECHO_T}${ac_t:-
11641 }$am_cv_proto_iconv" >&6
11643 cat >>confdefs.h <<_ACEOF
11644 #define ICONV_CONST $am_cv_proto_iconv_arg1
11650 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11651 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11652 if test "${am_cv_langinfo_codeset+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 #include <langinfo.h>
11665 char* cs = nl_langinfo(CODESET);
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672 (eval $ac_link) 2>conftest.er1
11674 grep -v '^ *+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_c_werror_flag"
11680 || test ! -s conftest.err'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest$ac_exeext'
11687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688 (eval $ac_try) 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
11692 am_cv_langinfo_codeset=yes
11694 echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11697 am_cv_langinfo_codeset=no
11699 rm -f conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11703 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11704 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11705 if test $am_cv_langinfo_codeset = yes; then
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_LANGINFO_CODESET 1
11713 if test $ac_cv_header_locale_h = yes; then
11715 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11716 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11717 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 #include <locale.h>
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737 (eval $ac_link) 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 gt_cv_val_LC_MESSAGES=yes
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 gt_cv_val_LC_MESSAGES=no
11764 rm -f conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11767 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11768 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11769 if test $gt_cv_val_LC_MESSAGES = yes; then
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_LC_MESSAGES 1
11779 if test -n "$INTL_MACOSX_LIBS"; then
11780 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11783 for ac_prog in bison
11785 # Extract the first word of "$ac_prog", so it can be a program name with args.
11786 set dummy $ac_prog; ac_word=$2
11787 echo "$as_me:$LINENO: checking for $ac_word" >&5
11788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11789 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 if test -n "$INTLBISON"; then
11793 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802 ac_cv_prog_INTLBISON="$ac_prog"
11803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 INTLBISON=$ac_cv_prog_INTLBISON
11812 if test -n "$INTLBISON"; then
11813 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11814 echo "${ECHO_T}$INTLBISON" >&6
11816 echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6
11820 test -n "$INTLBISON" && break
11823 if test -z "$INTLBISON"; then
11826 echo "$as_me:$LINENO: checking version of bison" >&5
11827 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11828 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11829 case $ac_prog_version in
11830 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11831 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11832 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11833 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11835 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11836 echo "${ECHO_T}$ac_prog_version" >&6
11838 if test $ac_verc_fail = yes; then
11857 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11858 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11859 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 gt_save_CPPFLAGS="$CPPFLAGS"
11863 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11864 gt_save_LIBS="$LIBS"
11865 LIBS="$LIBS -framework CoreFoundation"
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 #include <CFPreferences.h>
11876 CFPreferencesCopyAppValue(NULL, NULL)
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11883 (eval $ac_link) 2>conftest.er1
11885 grep -v '^ *+' conftest.er1 >conftest.err
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -z "$ac_c_werror_flag"
11891 || test ! -s conftest.err'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest$ac_exeext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 gt_cv_func_CFPreferencesCopyAppValue=yes
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 gt_cv_func_CFPreferencesCopyAppValue=no
11910 rm -f conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 CPPFLAGS="$gt_save_CPPFLAGS"
11913 LIBS="$gt_save_LIBS"
11915 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11916 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11917 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11919 cat >>confdefs.h <<\_ACEOF
11920 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11924 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11925 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11926 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 gt_save_CPPFLAGS="$CPPFLAGS"
11930 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11931 gt_save_LIBS="$LIBS"
11932 LIBS="$LIBS -framework CoreFoundation"
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 #include <CFLocale.h>
11943 CFLocaleCopyCurrent();
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950 (eval $ac_link) 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag"
11958 || test ! -s conftest.err'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 gt_cv_func_CFLocaleCopyCurrent=yes
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 gt_cv_func_CFLocaleCopyCurrent=no
11977 rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 CPPFLAGS="$gt_save_CPPFLAGS"
11980 LIBS="$gt_save_LIBS"
11982 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11983 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11984 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11986 cat >>confdefs.h <<\_ACEOF
11987 #define HAVE_CFLOCALECOPYCURRENT 1
11992 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11993 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11999 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12000 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12001 # Check whether --enable-nls or --disable-nls was given.
12002 if test "${enable_nls+set}" = set; then
12003 enableval="$enable_nls"
12008 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12009 echo "${ECHO_T}$USE_NLS" >&6
12014 BUILD_INCLUDED_LIBINTL=no
12015 USE_INCLUDED_LIBINTL=no
12021 if test "$USE_NLS" = "yes"; then
12022 gt_use_preinstalled_gnugettext=no
12024 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12025 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12027 # Check whether --with-included-gettext or --without-included-gettext was given.
12028 if test "${with_included_gettext+set}" = set; then
12029 withval="$with_included_gettext"
12030 nls_cv_force_use_gnu_gettext=$withval
12032 nls_cv_force_use_gnu_gettext=no
12034 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12035 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12037 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12038 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12045 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12046 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12047 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <libintl.h>
12057 extern int _nl_msg_cat_cntr;
12058 extern int *_nl_domain_bindings;
12062 bindtextdomain ("", "");
12063 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070 (eval $ac_link) 2>conftest.er1
12072 grep -v '^ *+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag"
12078 || test ! -s conftest.err'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } &&
12084 { ac_try='test -s conftest$ac_exeext'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 gt_cv_func_gnugettext1_libc=yes
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 gt_cv_func_gnugettext1_libc=no
12097 rm -f conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12100 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12101 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12103 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12109 acl_save_prefix="$prefix"
12110 prefix="$acl_final_prefix"
12111 acl_save_exec_prefix="$exec_prefix"
12112 exec_prefix="$acl_final_exec_prefix"
12114 eval additional_includedir=\"$includedir\"
12115 eval additional_libdir=\"$libdir\"
12117 exec_prefix="$acl_save_exec_prefix"
12118 prefix="$acl_save_prefix"
12121 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12122 if test "${with_libintl_prefix+set}" = set; then
12123 withval="$with_libintl_prefix"
12125 if test "X$withval" = "Xno"; then
12128 if test "X$withval" = "X"; then
12130 acl_save_prefix="$prefix"
12131 prefix="$acl_final_prefix"
12132 acl_save_exec_prefix="$exec_prefix"
12133 exec_prefix="$acl_final_exec_prefix"
12135 eval additional_includedir=\"$includedir\"
12136 eval additional_libdir=\"$libdir\"
12138 exec_prefix="$acl_save_exec_prefix"
12139 prefix="$acl_save_prefix"
12142 additional_includedir="$withval/include"
12143 additional_libdir="$withval/lib"
12153 names_already_handled=
12154 names_next_round='intl '
12155 while test -n "$names_next_round"; do
12156 names_this_round="$names_next_round"
12158 for name in $names_this_round; do
12160 for n in $names_already_handled; do
12161 if test "$n" = "$name"; then
12162 already_handled=yes
12166 if test -z "$already_handled"; then
12167 names_already_handled="$names_already_handled $name"
12168 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12169 eval value=\"\$HAVE_LIB$uppername\"
12170 if test -n "$value"; then
12171 if test "$value" = yes; then
12172 eval value=\"\$LIB$uppername\"
12173 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12174 eval value=\"\$LTLIB$uppername\"
12175 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12184 if test $use_additional = yes; then
12185 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12186 found_dir="$additional_libdir"
12187 found_so="$additional_libdir/lib$name.$shlibext"
12188 if test -f "$additional_libdir/lib$name.la"; then
12189 found_la="$additional_libdir/lib$name.la"
12192 if test -f "$additional_libdir/lib$name.$libext"; then
12193 found_dir="$additional_libdir"
12194 found_a="$additional_libdir/lib$name.$libext"
12195 if test -f "$additional_libdir/lib$name.la"; then
12196 found_la="$additional_libdir/lib$name.la"
12201 if test "X$found_dir" = "X"; then
12202 for x in $LDFLAGS $LTLIBINTL; do
12204 acl_save_prefix="$prefix"
12205 prefix="$acl_final_prefix"
12206 acl_save_exec_prefix="$exec_prefix"
12207 exec_prefix="$acl_final_exec_prefix"
12209 exec_prefix="$acl_save_exec_prefix"
12210 prefix="$acl_save_prefix"
12214 dir=`echo "X$x" | sed -e 's/^X-L//'`
12215 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12217 found_so="$dir/lib$name.$shlibext"
12218 if test -f "$dir/lib$name.la"; then
12219 found_la="$dir/lib$name.la"
12222 if test -f "$dir/lib$name.$libext"; then
12224 found_a="$dir/lib$name.$libext"
12225 if test -f "$dir/lib$name.la"; then
12226 found_la="$dir/lib$name.la"
12232 if test "X$found_dir" != "X"; then
12237 if test "X$found_dir" != "X"; then
12238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12239 if test "X$found_so" != "X"; then
12240 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12244 for x in $ltrpathdirs; do
12245 if test "X$x" = "X$found_dir"; then
12250 if test -z "$haveit"; then
12251 ltrpathdirs="$ltrpathdirs $found_dir"
12253 if test "$hardcode_direct" = yes; then
12254 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12256 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12257 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12259 for x in $rpathdirs; do
12260 if test "X$x" = "X$found_dir"; then
12265 if test -z "$haveit"; then
12266 rpathdirs="$rpathdirs $found_dir"
12270 for x in $LDFLAGS $LIBINTL; do
12272 acl_save_prefix="$prefix"
12273 prefix="$acl_final_prefix"
12274 acl_save_exec_prefix="$exec_prefix"
12275 exec_prefix="$acl_final_exec_prefix"
12277 exec_prefix="$acl_save_exec_prefix"
12278 prefix="$acl_save_prefix"
12280 if test "X$x" = "X-L$found_dir"; then
12285 if test -z "$haveit"; then
12286 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12288 if test "$hardcode_minus_L" != no; then
12289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12291 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12297 if test "X$found_a" != "X"; then
12298 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12300 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12303 additional_includedir=
12304 case "$found_dir" in
12306 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12307 additional_includedir="$basedir/include"
12310 if test "X$additional_includedir" != "X"; then
12311 if test "X$additional_includedir" != "X/usr/include"; then
12313 if test "X$additional_includedir" = "X/usr/local/include"; then
12314 if test -n "$GCC"; then
12316 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12320 if test -z "$haveit"; then
12321 for x in $CPPFLAGS $INCINTL; do
12323 acl_save_prefix="$prefix"
12324 prefix="$acl_final_prefix"
12325 acl_save_exec_prefix="$exec_prefix"
12326 exec_prefix="$acl_final_exec_prefix"
12328 exec_prefix="$acl_save_exec_prefix"
12329 prefix="$acl_save_prefix"
12331 if test "X$x" = "X-I$additional_includedir"; then
12336 if test -z "$haveit"; then
12337 if test -d "$additional_includedir"; then
12338 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12344 if test -n "$found_la"; then
12345 save_libdir="$libdir"
12346 case "$found_la" in
12347 */* | *\\*) . "$found_la" ;;
12348 *) . "./$found_la" ;;
12350 libdir="$save_libdir"
12351 for dep in $dependency_libs; do
12354 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12355 if test "X$additional_libdir" != "X/usr/lib"; then
12357 if test "X$additional_libdir" = "X/usr/local/lib"; then
12358 if test -n "$GCC"; then
12360 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12364 if test -z "$haveit"; then
12366 for x in $LDFLAGS $LIBINTL; do
12368 acl_save_prefix="$prefix"
12369 prefix="$acl_final_prefix"
12370 acl_save_exec_prefix="$exec_prefix"
12371 exec_prefix="$acl_final_exec_prefix"
12373 exec_prefix="$acl_save_exec_prefix"
12374 prefix="$acl_save_prefix"
12376 if test "X$x" = "X-L$additional_libdir"; then
12381 if test -z "$haveit"; then
12382 if test -d "$additional_libdir"; then
12383 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12387 for x in $LDFLAGS $LTLIBINTL; do
12389 acl_save_prefix="$prefix"
12390 prefix="$acl_final_prefix"
12391 acl_save_exec_prefix="$exec_prefix"
12392 exec_prefix="$acl_final_exec_prefix"
12394 exec_prefix="$acl_save_exec_prefix"
12395 prefix="$acl_save_prefix"
12397 if test "X$x" = "X-L$additional_libdir"; then
12402 if test -z "$haveit"; then
12403 if test -d "$additional_libdir"; then
12404 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12411 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12412 if test "$enable_rpath" != no; then
12414 for x in $rpathdirs; do
12415 if test "X$x" = "X$dir"; then
12420 if test -z "$haveit"; then
12421 rpathdirs="$rpathdirs $dir"
12424 for x in $ltrpathdirs; do
12425 if test "X$x" = "X$dir"; then
12430 if test -z "$haveit"; then
12431 ltrpathdirs="$ltrpathdirs $dir"
12436 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12439 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12442 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12449 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12450 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12456 if test "X$rpathdirs" != "X"; then
12457 if test -n "$hardcode_libdir_separator"; then
12459 for found_dir in $rpathdirs; do
12460 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12462 acl_save_libdir="$libdir"
12464 eval flag=\"$hardcode_libdir_flag_spec\"
12465 libdir="$acl_save_libdir"
12466 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12468 for found_dir in $rpathdirs; do
12469 acl_save_libdir="$libdir"
12470 libdir="$found_dir"
12471 eval flag=\"$hardcode_libdir_flag_spec\"
12472 libdir="$acl_save_libdir"
12473 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12477 if test "X$ltrpathdirs" != "X"; then
12478 for found_dir in $ltrpathdirs; do
12479 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12483 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12484 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12485 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 gt_save_CPPFLAGS="$CPPFLAGS"
12489 CPPFLAGS="$CPPFLAGS $INCINTL"
12490 gt_save_LIBS="$LIBS"
12491 LIBS="$LIBS $LIBINTL"
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 #include <libintl.h>
12499 extern int _nl_msg_cat_cntr;
12504 const char *_nl_expand_alias (const char *);
12508 bindtextdomain ("", "");
12509 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516 (eval $ac_link) 2>conftest.er1
12518 grep -v '^ *+' conftest.er1 >conftest.err
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 gt_cv_func_gnugettext1_libintl=yes
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 gt_cv_func_gnugettext1_libintl=no
12543 rm -f conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12546 LIBS="$LIBS $LIBICONV"
12547 cat >conftest.$ac_ext <<_ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 #include <libintl.h>
12554 extern int _nl_msg_cat_cntr;
12559 const char *_nl_expand_alias (const char *);
12563 bindtextdomain ("", "");
12564 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571 (eval $ac_link) 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag"
12579 || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest$ac_exeext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 LIBINTL="$LIBINTL $LIBICONV"
12592 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12593 gt_cv_func_gnugettext1_libintl=yes
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12600 rm -f conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12603 CPPFLAGS="$gt_save_CPPFLAGS"
12604 LIBS="$gt_save_LIBS"
12606 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12607 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12610 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12611 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12612 && test "$PACKAGE" != gettext-runtime \
12613 && test "$PACKAGE" != gettext-tools; }; then
12614 gt_use_preinstalled_gnugettext=yes
12622 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12623 nls_cv_use_gnu_gettext=yes
12627 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12628 BUILD_INCLUDED_LIBINTL=yes
12629 USE_INCLUDED_LIBINTL=yes
12630 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12631 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12632 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12636 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12637 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12642 if test -n "$INTL_MACOSX_LIBS"; then
12643 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12644 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12645 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12646 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12650 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12651 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12653 cat >>confdefs.h <<\_ACEOF
12654 #define ENABLE_NLS 1
12662 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12663 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12664 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12665 echo "${ECHO_T}$USE_NLS" >&6
12666 if test "$USE_NLS" = "yes"; then
12667 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12668 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12669 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12670 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12671 gt_source="external libintl"
12676 gt_source="included intl directory"
12678 echo "$as_me:$LINENO: result: $gt_source" >&5
12679 echo "${ECHO_T}$gt_source" >&6
12682 if test "$USE_NLS" = "yes"; then
12684 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12685 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12686 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12687 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12688 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12689 echo "${ECHO_T}$LIBINTL" >&6
12691 for element in $INCINTL; do
12693 for x in $CPPFLAGS; do
12695 acl_save_prefix="$prefix"
12696 prefix="$acl_final_prefix"
12697 acl_save_exec_prefix="$exec_prefix"
12698 exec_prefix="$acl_final_exec_prefix"
12700 exec_prefix="$acl_save_exec_prefix"
12701 prefix="$acl_save_prefix"
12703 if test "X$x" = "X$element"; then
12708 if test -z "$haveit"; then
12709 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12716 cat >>confdefs.h <<\_ACEOF
12717 #define HAVE_GETTEXT 1
12721 cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_DCGETTEXT 1
12731 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12732 BUILD_INCLUDED_LIBINTL=yes
12739 nls_cv_header_intl=
12740 nls_cv_header_libgt=
12752 if test "$USE_INCLUDED_LIBINTL" = yes; then
12753 INTLOBJS="\$(GETTOBJS)"
12757 INTL_LIBTOOL_SUFFIX_PREFIX=
12761 INTLLIBS="$LIBINTL"
12774 support_postgresql=no
12775 support_smartalloc=yes
12776 support_readline=yes
12779 support_wx_console=no
12784 support_static_tools=no
12785 support_static_fd=no
12786 support_static_sd=no
12787 support_static_dir=no
12788 support_static_cons=no
12790 build_client_only=no
12798 # -------------------------------------------
12799 # gnome (default off)
12800 # -------------------------------------------
12801 # Check whether --enable-gnome or --disable-gnome was given.
12802 if test "${enable_gnome+set}" = set; then
12803 enableval="$enable_gnome"
12804 if test x$enableval = xyes; then
12810 if test x$support_gnome = xyes; then
12811 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12813 if test $pkg = 0; then
12814 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12815 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12816 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12817 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12822 GNOME_DIR=src/gnome2-console
12823 gnome_version="Version 2.x"
12825 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12826 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12827 { (exit 1); exit 1; }; }
12833 # -------------------------------------------
12834 # wx-console (default off)
12835 # -------------------------------------------
12836 # Check whether --enable-wx-console or --disable-wx-console was given.
12837 if test "${enable_wx_console+set}" = set; then
12838 enableval="$enable_wx_console"
12839 if test x$enableval = xyes; then
12840 support_wx_console=yes
12845 if test x$support_wx_console = xyes; then
12846 abc=`$WXCONFIG $WXFLAGS --cppflags`
12848 if test $pkg = 0; then
12849 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12850 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12851 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12855 WX_DIR=src/wx-console
12858 echo "wx-config program not found. wx-console disabled."
12860 support_wx_console=no
12866 # -------------------------------------------
12867 # tray-monitor (default off)
12868 # -------------------------------------------
12869 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12870 if test "${enable_tray_monitor+set}" = set; then
12871 enableval="$enable_tray_monitor"
12872 if test x$enableval = xyes; then
12873 support_tray_monitor=yes
12878 if test x$support_tray_monitor = xyes; then
12879 abc=`$PKGCONFIG --exists gtk+-2.0`
12881 if test $pkg = 0; then
12882 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12883 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12886 TRAY_MONITOR_DIR=src/tray-monitor
12887 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12889 if test $pkg = 0; then
12890 cat >>confdefs.h <<\_ACEOF
12891 #define HAVE_GTK_2_4 1
12899 # -------------------------------------------
12900 # smartalloc (default off)
12901 # -------------------------------------------
12902 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12903 if test "${enable_smartalloc+set}" = set; then
12904 enableval="$enable_smartalloc"
12905 if test x$enableval = xno; then
12906 support_smartalloc=no
12910 if test x$support_smartalloc = xyes; then
12911 cat >>confdefs.h <<\_ACEOF
12912 #define SMARTALLOC 1
12917 # -------------------------------------------
12918 # static-tools (default off)
12919 # -------------------------------------------
12920 # Check whether --enable-static-tools or --disable-static-tools was given.
12921 if test "${enable_static_tools+set}" = set; then
12922 enableval="$enable_static_tools"
12923 if test x$enableval = xyes; then
12924 support_static_tools=yes
12929 if test x$support_static_tools = xyes; then
12930 TTOOL_LDFLAGS="-static"
12934 # -------------------------------------------
12935 # static-fd (default off)
12936 # -------------------------------------------
12937 # Check whether --enable-static-fd or --disable-static-fd was given.
12938 if test "${enable_static_fd+set}" = set; then
12939 enableval="$enable_static_fd"
12940 if test x$enableval = xyes; then
12941 support_static_fd=yes
12946 if test x$support_static_fd = xyes; then
12947 STATIC_FD="static-bacula-fd"
12951 # -------------------------------------------
12952 # static-sd (default off)
12953 # -------------------------------------------
12954 # Check whether --enable-static-sd or --disable-static-sd was given.
12955 if test "${enable_static_sd+set}" = set; then
12956 enableval="$enable_static_sd"
12957 if test x$enableval = xyes; then
12958 support_static_sd=yes
12963 if test x$support_static_sd = xyes; then
12964 STATIC_SD="static-bacula-sd"
12968 # -------------------------------------------
12969 # static-dir (default off)
12970 # -------------------------------------------
12971 # Check whether --enable-static-dir or --disable-static-dir was given.
12972 if test "${enable_static_dir+set}" = set; then
12973 enableval="$enable_static_dir"
12974 if test x$enableval = xyes; then
12975 support_static_dir=yes
12980 if test x$support_static_dir = xyes; then
12981 STATIC_DIR="static-bacula-dir"
12985 # -------------------------------------------
12986 # static-cons (default off)
12987 # -------------------------------------------
12988 # Check whether --enable-static-cons or --disable-static-cons was given.
12989 if test "${enable_static_cons+set}" = set; then
12990 enableval="$enable_static_cons"
12991 if test x$enableval = xyes; then
12992 support_static_cons=yes
12999 if test x$support_static_cons = xyes; then
13000 STATIC_CONS="static-bconsole"
13001 STATIC_GNOME_CONS="static-gnome-console"
13002 STATIC_WX_CONS="static-wx-console"
13008 # -------------------------------------------
13009 # client_only (default off)
13010 # -------------------------------------------
13011 # Check whether --enable-client-only or --disable-client-only was given.
13012 if test "${enable_client_only+set}" = set; then
13013 enableval="$enable_client_only"
13014 if test x$enableval = xyes; then
13015 build_client_only=yes
13020 if test x$build_client_only = xno; then
13027 # -------------------------------------------
13028 # director (default on)
13029 # -------------------------------------------
13030 # Check whether --enable-build-dird or --disable-build-dird was given.
13031 if test "${enable_build_dird+set}" = set; then
13032 enableval="$enable_build_dird"
13033 if test x$enableval = xno; then
13037 if test x$build_dird = xyes; then
13038 DIRD_DIR="src/dird"
13039 DIR_TOOLS="DIRTOOLS"
13042 DIR_TOOLS="NODIRTOOLS"
13047 # -------------------------------------------
13048 # stored (default on)
13049 # -------------------------------------------
13050 # Check whether --enable-build-stored or --disable-build-stored was given.
13051 if test "${enable_build_stored+set}" = set; then
13052 enableval="$enable_build_stored"
13053 if test x$enableval = xno; then
13057 if test x$build_stored = xyes; then
13058 STORED_DIR="src/stored"
13064 # ---------------------------------------------------
13065 # Check for conio (Bacula readline substitute)(
13066 # ---------------------------------------------------
13067 # this allows you to turn it completely off
13068 # Check whether --enable-conio or --disable-conio was given.
13069 if test "${enable_conio+set}" = set; then
13070 enableval="$enable_conio"
13071 if test x$enableval = xno; then
13077 if test x$support_conio = xyes; then
13078 if test "${ac_cv_header_termcap_h+set}" = set; then
13079 echo "$as_me:$LINENO: checking for termcap.h" >&5
13080 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13081 if test "${ac_cv_header_termcap_h+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13085 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13087 # Is the header compilable?
13088 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13089 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13090 cat >conftest.$ac_ext <<_ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 $ac_includes_default
13097 #include <termcap.h>
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>conftest.er1
13103 grep -v '^ *+' conftest.er1 >conftest.err
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_header_compiler=yes
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ac_header_compiler=no
13128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13130 echo "${ECHO_T}$ac_header_compiler" >&6
13132 # Is the header present?
13133 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13134 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #include <termcap.h>
13143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13146 grep -v '^ *+' conftest.er1 >conftest.err
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } >/dev/null; then
13151 if test -s conftest.err; then
13152 ac_cpp_err=$ac_c_preproc_warn_flag
13153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13160 if test -z "$ac_cpp_err"; then
13161 ac_header_preproc=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_header_preproc=no
13168 rm -f conftest.err conftest.$ac_ext
13169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13170 echo "${ECHO_T}$ac_header_preproc" >&6
13172 # So? What about this header?
13173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13175 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13176 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13178 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13179 ac_header_preproc=yes
13182 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13183 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13185 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13187 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13189 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13191 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13193 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13196 ## ------------------------------------------ ##
13197 ## Report this to the AC_PACKAGE_NAME lists. ##
13198 ## ------------------------------------------ ##
13201 sed "s/^/$as_me: WARNING: /" >&2
13204 echo "$as_me:$LINENO: checking for termcap.h" >&5
13205 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13206 if test "${ac_cv_header_termcap_h+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 ac_cv_header_termcap_h=$ac_header_preproc
13211 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13212 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13215 if test $ac_cv_header_termcap_h = yes; then
13216 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13217 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13218 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 ac_check_lib_save_LIBS=$LIBS
13222 LIBS="-ltermcap $LIBS"
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13230 /* Override any gcc2 internal prototype to avoid an error. */
13234 /* We use char because int might match the return type of a gcc2
13235 builtin and then its argument prototype would still apply. */
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13247 (eval $ac_link) 2>conftest.er1
13249 grep -v '^ *+' conftest.er1 >conftest.err
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -z "$ac_c_werror_flag"
13255 || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest$ac_exeext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_lib_termcap_tgetent=yes
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_cv_lib_termcap_tgetent=no
13274 rm -f conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13278 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13279 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13280 if test $ac_cv_lib_termcap_tgetent = yes; then
13281 CONS_LIBS="-ltermcap"
13285 support_readline=no
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_CONIO 1
13293 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13294 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13295 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 ac_check_lib_save_LIBS=$LIBS
13299 LIBS="-lncurses $LIBS"
13300 cat >conftest.$ac_ext <<_ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13307 /* Override any gcc2 internal prototype to avoid an error. */
13311 /* We use char because int might match the return type of a gcc2
13312 builtin and then its argument prototype would still apply. */
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag"
13332 || test ! -s conftest.err'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_cv_lib_ncurses_tgetent=yes
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 ac_cv_lib_ncurses_tgetent=no
13351 rm -f conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS
13355 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13356 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13357 if test $ac_cv_lib_ncurses_tgetent = yes; then
13358 CONS_LIBS="-lncurses"
13362 support_readline=no
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_CONIO 1
13378 for ac_header in curses.h
13380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13382 echo "$as_me:$LINENO: checking for $ac_header" >&5
13383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13390 # Is the header compilable?
13391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 $ac_includes_default
13400 #include <$ac_header>
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404 (eval $ac_compile) 2>conftest.er1
13406 grep -v '^ *+' conftest.er1 >conftest.err
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } &&
13411 { ac_try='test -z "$ac_c_werror_flag"
13412 || test ! -s conftest.err'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 ac_header_compiler=yes
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ac_header_compiler=no
13431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13433 echo "${ECHO_T}$ac_header_compiler" >&6
13435 # Is the header present?
13436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13438 cat >conftest.$ac_ext <<_ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 #include <$ac_header>
13446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13449 grep -v '^ *+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } >/dev/null; then
13454 if test -s conftest.err; then
13455 ac_cpp_err=$ac_c_preproc_warn_flag
13456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13463 if test -z "$ac_cpp_err"; then
13464 ac_header_preproc=yes
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ac_header_preproc=no
13471 rm -f conftest.err conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13473 echo "${ECHO_T}$ac_header_preproc" >&6
13475 # So? What about this header?
13476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13482 ac_header_preproc=yes
13485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13499 ## ------------------------------------------ ##
13500 ## Report this to the AC_PACKAGE_NAME lists. ##
13501 ## ------------------------------------------ ##
13504 sed "s/^/$as_me: WARNING: /" >&2
13507 echo "$as_me:$LINENO: checking for $ac_header" >&5
13508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 eval "$as_ac_Header=\$ac_header_preproc"
13514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13519 cat >>confdefs.h <<_ACEOF
13520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13527 echo "$as_me:$LINENO: checking for term.h" >&5
13528 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13529 if test "${ac_cv_header_term_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 cat >conftest.$ac_ext <<_ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13539 #include <curses.h>
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -z "$ac_c_werror_flag"
13555 || test ! -s conftest.err'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_cv_header_term_h=yes
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 ac_cv_header_term_h=no
13574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13576 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13577 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13578 if test $ac_cv_header_term_h = yes; then
13579 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13580 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13581 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 ac_check_lib_save_LIBS=$LIBS
13585 LIBS="-lcurses $LIBS"
13586 cat >conftest.$ac_ext <<_ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13593 /* Override any gcc2 internal prototype to avoid an error. */
13597 /* We use char because int might match the return type of a gcc2
13598 builtin and then its argument prototype would still apply. */
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610 (eval $ac_link) 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_c_werror_flag"
13618 || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_cv_lib_curses_tgetent=yes
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 ac_cv_lib_curses_tgetent=no
13637 rm -f conftest.err conftest.$ac_objext \
13638 conftest$ac_exeext conftest.$ac_ext
13639 LIBS=$ac_check_lib_save_LIBS
13641 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13642 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13643 if test $ac_cv_lib_curses_tgetent = yes; then
13644 CONS_LIBS="-lcurses"
13648 support_readline=no
13650 cat >>confdefs.h <<\_ACEOF
13651 #define HAVE_CONIO 1
13659 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13670 # ---------------------------------------------------
13671 # Check for readline support/directory (default off)
13672 # ---------------------------------------------------
13673 # this allows you to turn it completely off
13674 # Check whether --enable-readline or --disable-readline was given.
13675 if test "${enable_readline+set}" = set; then
13676 enableval="$enable_readline"
13677 if test x$enableval = xno; then
13678 support_readline=no
13684 if test x$support_readline = xyes; then
13686 # Check whether --with-readline or --without-readline was given.
13687 if test "${with_readline+set}" = set; then
13688 withval="$with_readline"
13690 case "$with_readline" in
13693 if test -f ${with_readline}/readline.h; then
13694 CONS_INC="-I${with_readline}"
13695 CONS_LDFLAGS="-L$with_readline"
13696 elif test -f ${with_readline}/include/readline/readline.h; then
13697 CONS_INC="-I${with_readline}/include/readline"
13698 CONS_LDFLAGS="-L${with_readline}/lib"
13699 with_readline="${with_readline}/include/readline"
13701 with_readline="/usr/include/readline"
13703 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13705 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13706 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13713 # Is the header compilable?
13714 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13715 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13723 #include <${with_readline}/readline.h>
13725 rm -f conftest.$ac_objext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727 (eval $ac_compile) 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_c_werror_flag"
13735 || test ! -s conftest.err'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_header_compiler=yes
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_header_compiler=no
13754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13756 echo "${ECHO_T}$ac_header_compiler" >&6
13758 # Is the header present?
13759 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13760 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 #include <${with_readline}/readline.h>
13769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } >/dev/null; then
13777 if test -s conftest.err; then
13778 ac_cpp_err=$ac_c_preproc_warn_flag
13779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13786 if test -z "$ac_cpp_err"; then
13787 ac_header_preproc=yes
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 ac_header_preproc=no
13794 rm -f conftest.err conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13796 echo "${ECHO_T}$ac_header_preproc" >&6
13798 # So? What about this header?
13799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13801 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13802 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13804 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13805 ac_header_preproc=yes
13808 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13809 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13811 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13813 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13815 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13817 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13819 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13822 ## ------------------------------------------ ##
13823 ## Report this to the AC_PACKAGE_NAME lists. ##
13824 ## ------------------------------------------ ##
13827 sed "s/^/$as_me: WARNING: /" >&2
13830 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13831 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 eval "$as_ac_Header=\$ac_header_preproc"
13837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13842 cat >>confdefs.h <<\_ACEOF
13843 #define HAVE_READLINE 1
13846 CONS_LIBS="-lreadline -lhistory -ltermcap"
13851 echo "readline.h not found. readline turned off ..."
13863 # check for standard readline library
13864 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13865 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13866 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13867 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13871 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13873 # Is the header compilable?
13874 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13875 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13876 cat >conftest.$ac_ext <<_ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 $ac_includes_default
13883 #include </usr/include/readline/readline.h>
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887 (eval $ac_compile) 2>conftest.er1
13889 grep -v '^ *+' conftest.er1 >conftest.err
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_c_werror_flag"
13895 || test ! -s conftest.err'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest.$ac_objext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_header_compiler=yes
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 ac_header_compiler=no
13914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13916 echo "${ECHO_T}$ac_header_compiler" >&6
13918 # Is the header present?
13919 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13920 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13921 cat >conftest.$ac_ext <<_ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 #include </usr/include/readline/readline.h>
13929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } >/dev/null; then
13937 if test -s conftest.err; then
13938 ac_cpp_err=$ac_c_preproc_warn_flag
13939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13946 if test -z "$ac_cpp_err"; then
13947 ac_header_preproc=yes
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_header_preproc=no
13954 rm -f conftest.err conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13956 echo "${ECHO_T}$ac_header_preproc" >&6
13958 # So? What about this header?
13959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13961 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13962 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13964 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13965 ac_header_preproc=yes
13968 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13969 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
13971 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
13972 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13973 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13974 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13975 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13977 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13979 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13982 ## ------------------------------------------ ##
13983 ## Report this to the AC_PACKAGE_NAME lists. ##
13984 ## ------------------------------------------ ##
13987 sed "s/^/$as_me: WARNING: /" >&2
13990 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13991 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13992 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13997 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13998 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14001 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_READLINE 1
14007 CONS_INC="-I/usr/include/readline"
14008 CONS_LIBS="-lreadline -ltermcap"
14012 # Did not find standard library, so try Bacula's default
14013 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14016 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14023 # Is the header compilable?
14024 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14025 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14026 cat >conftest.$ac_ext <<_ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14032 $ac_includes_default
14033 #include <${TOP_DIR}/depkgs/readline/readline.h>
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>conftest.er1
14039 grep -v '^ *+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -z "$ac_c_werror_flag"
14045 || test ! -s conftest.err'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } &&
14051 { ac_try='test -s conftest.$ac_objext'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; }; then
14057 ac_header_compiler=yes
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_header_compiler=no
14064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14066 echo "${ECHO_T}$ac_header_compiler" >&6
14068 # Is the header present?
14069 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14070 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 #include <${TOP_DIR}/depkgs/readline/readline.h>
14079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14082 grep -v '^ *+' conftest.er1 >conftest.err
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } >/dev/null; then
14087 if test -s conftest.err; then
14088 ac_cpp_err=$ac_c_preproc_warn_flag
14089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14096 if test -z "$ac_cpp_err"; then
14097 ac_header_preproc=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_header_preproc=no
14104 rm -f conftest.err conftest.$ac_ext
14105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14111 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14115 ac_header_preproc=yes
14118 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14132 ## ------------------------------------------ ##
14133 ## Report this to the AC_PACKAGE_NAME lists. ##
14134 ## ------------------------------------------ ##
14137 sed "s/^/$as_me: WARNING: /" >&2
14140 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14141 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 eval "$as_ac_Header=\$ac_header_preproc"
14147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14152 cat >>confdefs.h <<\_ACEOF
14153 #define HAVE_READLINE 1
14157 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14158 CONS_LIBS="-lreadline -lhistory -ltermcap"
14159 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14160 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14164 echo "readline.h not found. readline turned off ..."
14190 # Minimal stuff for readline Makefile configuration
14193 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14194 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14195 if test "${ac_cv_header_stat_broken+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 cat >conftest.$ac_ext <<_ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 #include <sys/types.h>
14205 #include <sys/stat.h>
14207 #if defined(S_ISBLK) && defined(S_IFDIR)
14208 # if S_ISBLK (S_IFDIR)
14213 #if defined(S_ISBLK) && defined(S_IFCHR)
14214 # if S_ISBLK (S_IFCHR)
14219 #if defined(S_ISLNK) && defined(S_IFREG)
14220 # if S_ISLNK (S_IFREG)
14225 #if defined(S_ISSOCK) && defined(S_IFREG)
14226 # if S_ISSOCK (S_IFREG)
14232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14233 $EGREP "You lose" >/dev/null 2>&1; then
14234 ac_cv_header_stat_broken=yes
14236 ac_cv_header_stat_broken=no
14241 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14242 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14243 if test $ac_cv_header_stat_broken = yes; then
14245 cat >>confdefs.h <<\_ACEOF
14246 #define STAT_MACROS_BROKEN 1
14256 ac_header_dirent=no
14257 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14258 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14259 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14260 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 cat >conftest.$ac_ext <<_ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14270 #include <sys/types.h>
14282 rm -f conftest.$ac_objext
14283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14284 (eval $ac_compile) 2>conftest.er1
14286 grep -v '^ *+' conftest.er1 >conftest.err
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -z "$ac_c_werror_flag"
14292 || test ! -s conftest.err'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } &&
14298 { ac_try='test -s conftest.$ac_objext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 eval "$as_ac_Header=yes"
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 eval "$as_ac_Header=no"
14311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14316 cat >>confdefs.h <<_ACEOF
14317 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14320 ac_header_dirent=$ac_hdr; break
14324 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14325 if test $ac_header_dirent = dirent.h; then
14326 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14327 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14328 if test "${ac_cv_search_opendir+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 ac_func_search_save_LIBS=$LIBS
14332 ac_cv_search_opendir=no
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14340 /* Override any gcc2 internal prototype to avoid an error. */
14344 /* We use char because int might match the return type of a gcc2
14345 builtin and then its argument prototype would still apply. */
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357 (eval $ac_link) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1 >conftest.err
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_search_opendir="none required"
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14383 rm -f conftest.err conftest.$ac_objext \
14384 conftest$ac_exeext conftest.$ac_ext
14385 if test "$ac_cv_search_opendir" = no; then
14386 for ac_lib in dir; do
14387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14388 cat >conftest.$ac_ext <<_ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14395 /* Override any gcc2 internal prototype to avoid an error. */
14399 /* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412 (eval $ac_link) 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -z "$ac_c_werror_flag"
14420 || test ! -s conftest.err'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest$ac_exeext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_search_opendir="-l$ac_lib"
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14439 rm -f conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14445 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14447 if test "$ac_cv_search_opendir" != no; then
14448 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14453 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14454 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14455 if test "${ac_cv_search_opendir+set}" = set; then
14456 echo $ECHO_N "(cached) $ECHO_C" >&6
14458 ac_func_search_save_LIBS=$LIBS
14459 ac_cv_search_opendir=no
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14467 /* Override any gcc2 internal prototype to avoid an error. */
14471 /* We use char because int might match the return type of a gcc2
14472 builtin and then its argument prototype would still apply. */
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484 (eval $ac_link) 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag"
14492 || test ! -s conftest.err'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try='test -s conftest$ac_exeext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_cv_search_opendir="none required"
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14510 rm -f conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14512 if test "$ac_cv_search_opendir" = no; then
14513 for ac_lib in x; do
14514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14522 /* Override any gcc2 internal prototype to avoid an error. */
14526 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539 (eval $ac_link) 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag"
14547 || test ! -s conftest.err'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest$ac_exeext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_cv_search_opendir="-l$ac_lib"
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14566 rm -f conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_func_search_save_LIBS
14572 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14573 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14574 if test "$ac_cv_search_opendir" != no; then
14575 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14588 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14591 echo "$as_me:$LINENO: checking for $ac_func" >&5
14592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14593 if eval "test \"\${$as_ac_var+set}\" = set"; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14604 #define $ac_func innocuous_$ac_func
14606 /* System header to define __stub macros and hopefully few prototypes,
14607 which can conflict with char $ac_func (); below.
14608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14609 <limits.h> exists even on freestanding compilers. */
14612 # include <limits.h>
14614 # include <assert.h>
14619 /* Override any gcc2 internal prototype to avoid an error. */
14624 /* We use char because int might match the return type of a gcc2
14625 builtin and then its argument prototype would still apply. */
14627 /* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14633 char (*f) () = $ac_func;
14642 return f != $ac_func;
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag"
14657 || test ! -s conftest.err'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; } &&
14663 { ac_try='test -s conftest$ac_exeext'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 eval "$as_ac_var=yes"
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 eval "$as_ac_var=no"
14676 rm -f conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14681 if test `eval echo '${'$as_ac_var'}'` = yes; then
14682 cat >>confdefs.h <<_ACEOF
14683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14691 for ac_func in nanosleep nl_langinfo
14693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 echo "$as_me:$LINENO: checking for $ac_func" >&5
14695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_var+set}\" = set"; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 cat >conftest.$ac_ext <<_ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14707 #define $ac_func innocuous_$ac_func
14709 /* System header to define __stub macros and hopefully few prototypes,
14710 which can conflict with char $ac_func (); below.
14711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14712 <limits.h> exists even on freestanding compilers. */
14715 # include <limits.h>
14717 # include <assert.h>
14722 /* Override any gcc2 internal prototype to avoid an error. */
14727 /* We use char because int might match the return type of a gcc2
14728 builtin and then its argument prototype would still apply. */
14730 /* The GNU C library defines this for functions which it implements
14731 to always fail with ENOSYS. Some functions are actually named
14732 something starting with __ and the normal name is an alias. */
14733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14736 char (*f) () = $ac_func;
14745 return f != $ac_func;
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14752 (eval $ac_link) 2>conftest.er1
14754 grep -v '^ *+' conftest.er1 >conftest.err
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try='test -z "$ac_c_werror_flag"
14760 || test ! -s conftest.err'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; } &&
14766 { ac_try='test -s conftest$ac_exeext'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }; then
14772 eval "$as_ac_var=yes"
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 eval "$as_ac_var=no"
14779 rm -f conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
14782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14784 if test `eval echo '${'$as_ac_var'}'` = yes; then
14785 cat >>confdefs.h <<_ACEOF
14786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14793 for ac_header in varargs.h
14795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14797 echo "$as_me:$LINENO: checking for $ac_header" >&5
14798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14805 # Is the header compilable?
14806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14808 cat >conftest.$ac_ext <<_ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 $ac_includes_default
14815 #include <$ac_header>
14817 rm -f conftest.$ac_objext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819 (eval $ac_compile) 2>conftest.er1
14821 grep -v '^ *+' conftest.er1 >conftest.err
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
14826 { ac_try='test -z "$ac_c_werror_flag"
14827 || test ! -s conftest.err'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; } &&
14833 { ac_try='test -s conftest.$ac_objext'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 ac_header_compiler=yes
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 ac_header_compiler=no
14846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14848 echo "${ECHO_T}$ac_header_compiler" >&6
14850 # Is the header present?
14851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <$ac_header>
14861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14864 grep -v '^ *+' conftest.er1 >conftest.err
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } >/dev/null; then
14869 if test -s conftest.err; then
14870 ac_cpp_err=$ac_c_preproc_warn_flag
14871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14878 if test -z "$ac_cpp_err"; then
14879 ac_header_preproc=yes
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 ac_header_preproc=no
14886 rm -f conftest.err conftest.$ac_ext
14887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14888 echo "${ECHO_T}$ac_header_preproc" >&6
14890 # So? What about this header?
14891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14897 ac_header_preproc=yes
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14914 ## ------------------------------------------ ##
14915 ## Report this to the AC_PACKAGE_NAME lists. ##
14916 ## ------------------------------------------ ##
14919 sed "s/^/$as_me: WARNING: /" >&2
14922 echo "$as_me:$LINENO: checking for $ac_header" >&5
14923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 eval "$as_ac_Header=\$ac_header_preproc"
14929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14934 cat >>confdefs.h <<_ACEOF
14935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14943 # End of readline/conio stuff
14944 # -----------------------------------------------------------------------
14946 # -----------------------------------------------------------------------
14947 # Check for Python support
14949 echo "$as_me:$LINENO: checking for Python support" >&5
14950 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14952 # Check whether --with-python or --without-python was given.
14953 if test "${with_python+set}" = set; then
14954 withval="$with_python"
14958 if test "$withval" != "no"; then
14959 if test "$withval" = "yes"; then
14960 for python_root in /usr /usr/local /usr/sfw; do
14961 for ver in python2.2 python2.3 python2.4 python2.5; do
14962 if test -f $python_root/include/${ver}/Python.h; then
14963 PYTHON_INCDIR=-I$python_root/include/${ver}
14964 if test -d $python_root/lib64/${ver}/config; then
14965 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
14967 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
14973 if test x$PYTHON_INCDIR = x; then
14974 if test -f $prefix/include/Python.h; then
14975 PYTHON_INCDIR=-I$prefix/include
14976 if test -d $prefix/lib64/config; then
14977 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
14979 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14982 echo "$as_me:$LINENO: result: no" >&5
14983 echo "${ECHO_T}no" >&6
14984 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14985 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14986 { (exit 1); exit 1; }; }
14990 if test -f $withval/Python.h; then
14991 PYTHON_INCDIR=-I$withval
14992 PYTHON_LIBS="-L$withval/config -lpython"
14993 elif test -f $withval/include/Python.h; then
14994 PYTHON_INCDIR=-I$withval/include
14995 if test -d $withval/lib64/config; then
14996 PYTHON_LIBS="-L$withval/lib64/config -lpython"
14998 PYTHON_LIBS="-L$withval/lib/config -lpython"
15000 elif test -f $withval/include/python/Python.h; then
15001 PYTHON_INCDIR=-I$withval/include/python
15002 if test -d $withval/lib64/python/config; then
15003 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15005 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15008 echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6
15010 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15011 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15012 { (exit 1); exit 1; }; }
15015 cat >>confdefs.h <<\_ACEOF
15016 #define HAVE_PYTHON 1
15019 echo "$as_me:$LINENO: result: yes" >&5
15020 echo "${ECHO_T}yes" >&6
15022 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15023 echo "$as_me: checking for more Python libs" >&6;}
15024 saved_LIBS="$LIBS"; LIBS=
15025 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15026 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15027 if test "${ac_cv_search_shm_open+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 ac_func_search_save_LIBS=$LIBS
15031 ac_cv_search_shm_open=no
15032 cat >conftest.$ac_ext <<_ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15039 /* Override any gcc2 internal prototype to avoid an error. */
15043 /* We use char because int might match the return type of a gcc2
15044 builtin and then its argument prototype would still apply. */
15054 rm -f conftest.$ac_objext conftest$ac_exeext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15056 (eval $ac_link) 2>conftest.er1
15058 grep -v '^ *+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -z "$ac_c_werror_flag"
15064 || test ! -s conftest.err'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; } &&
15070 { ac_try='test -s conftest$ac_exeext'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 ac_cv_search_shm_open="none required"
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15082 rm -f conftest.err conftest.$ac_objext \
15083 conftest$ac_exeext conftest.$ac_ext
15084 if test "$ac_cv_search_shm_open" = no; then
15085 for ac_lib in rt; do
15086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15087 cat >conftest.$ac_ext <<_ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15094 /* Override any gcc2 internal prototype to avoid an error. */
15098 /* We use char because int might match the return type of a gcc2
15099 builtin and then its argument prototype would still apply. */
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111 (eval $ac_link) 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
15118 { ac_try='test -z "$ac_c_werror_flag"
15119 || test ! -s conftest.err'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try='test -s conftest$ac_exeext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15131 ac_cv_search_shm_open="-l$ac_lib"
15134 echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15138 rm -f conftest.err conftest.$ac_objext \
15139 conftest$ac_exeext conftest.$ac_ext
15142 LIBS=$ac_func_search_save_LIBS
15144 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15145 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15146 if test "$ac_cv_search_shm_open" != no; then
15147 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15152 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15153 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15154 if test "${ac_cv_lib_util_openpty+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 ac_check_lib_save_LIBS=$LIBS
15158 LIBS="-lutil $LIBS"
15159 cat >conftest.$ac_ext <<_ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15166 /* Override any gcc2 internal prototype to avoid an error. */
15170 /* We use char because int might match the return type of a gcc2
15171 builtin and then its argument prototype would still apply. */
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183 (eval $ac_link) 2>conftest.er1
15185 grep -v '^ *+' conftest.er1 >conftest.err
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag"
15191 || test ! -s conftest.err'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; } &&
15197 { ac_try='test -s conftest$ac_exeext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_cv_lib_util_openpty=yes
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 ac_cv_lib_util_openpty=no
15210 rm -f conftest.err conftest.$ac_objext \
15211 conftest$ac_exeext conftest.$ac_ext
15212 LIBS=$ac_check_lib_save_LIBS
15214 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15215 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15216 if test $ac_cv_lib_util_openpty = yes; then
15217 cat >>confdefs.h <<_ACEOF
15218 #define HAVE_LIBUTIL 1
15221 LIBS="-lutil $LIBS"
15225 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15228 echo "$as_me:$LINENO: result: no" >&5
15229 echo "${ECHO_T}no" >&6
15234 echo "$as_me:$LINENO: result: no" >&5
15235 echo "${ECHO_T}no" >&6
15243 # Find where sockets are (especially for Solaris)
15244 # Do this before the TCP Wrappers test since tcp wrappers
15245 # uses the socket library and some linkers are stupid.
15247 echo "$as_me:$LINENO: checking for socket" >&5
15248 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15249 if test "${ac_cv_func_socket+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 cat >conftest.$ac_ext <<_ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15260 #define socket innocuous_socket
15262 /* System header to define __stub macros and hopefully few prototypes,
15263 which can conflict with char socket (); below.
15264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15265 <limits.h> exists even on freestanding compilers. */
15268 # include <limits.h>
15270 # include <assert.h>
15275 /* Override any gcc2 internal prototype to avoid an error. */
15280 /* We use char because int might match the return type of a gcc2
15281 builtin and then its argument prototype would still apply. */
15283 /* The GNU C library defines this for functions which it implements
15284 to always fail with ENOSYS. Some functions are actually named
15285 something starting with __ and the normal name is an alias. */
15286 #if defined (__stub_socket) || defined (__stub___socket)
15289 char (*f) () = socket;
15298 return f != socket;
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_func_socket=yes
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 ac_cv_func_socket=no
15332 rm -f conftest.err conftest.$ac_objext \
15333 conftest$ac_exeext conftest.$ac_ext
15335 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15336 echo "${ECHO_T}$ac_cv_func_socket" >&6
15337 if test $ac_cv_func_socket = yes; then
15338 echo "$as_me:$LINENO: result: using libc's socket" >&5
15339 echo "${ECHO_T}using libc's socket" >&6
15342 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15343 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15344 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15347 ac_check_lib_save_LIBS=$LIBS
15348 LIBS="-lxnet $LIBS"
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15356 /* Override any gcc2 internal prototype to avoid an error. */
15360 /* We use char because int might match the return type of a gcc2
15361 builtin and then its argument prototype would still apply. */
15371 rm -f conftest.$ac_objext conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373 (eval $ac_link) 2>conftest.er1
15375 grep -v '^ *+' conftest.er1 >conftest.err
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try='test -z "$ac_c_werror_flag"
15381 || test ! -s conftest.err'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; } &&
15387 { ac_try='test -s conftest$ac_exeext'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }; then
15393 ac_cv_lib_xnet_socket=yes
15395 echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 ac_cv_lib_xnet_socket=no
15400 rm -f conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402 LIBS=$ac_check_lib_save_LIBS
15404 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15405 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15406 if test $ac_cv_lib_xnet_socket = yes; then
15407 cat >>confdefs.h <<_ACEOF
15408 #define HAVE_LIBXNET 1
15411 LIBS="-lxnet $LIBS"
15416 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15417 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15418 if test "${ac_cv_lib_socket_socket+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 ac_check_lib_save_LIBS=$LIBS
15422 LIBS="-lsocket $LIBS"
15423 cat >conftest.$ac_ext <<_ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15430 /* Override any gcc2 internal prototype to avoid an error. */
15434 /* We use char because int might match the return type of a gcc2
15435 builtin and then its argument prototype would still apply. */
15445 rm -f conftest.$ac_objext conftest$ac_exeext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15447 (eval $ac_link) 2>conftest.er1
15449 grep -v '^ *+' conftest.er1 >conftest.err
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -z "$ac_c_werror_flag"
15455 || test ! -s conftest.err'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; } &&
15461 { ac_try='test -s conftest$ac_exeext'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }; then
15467 ac_cv_lib_socket_socket=yes
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_cv_lib_socket_socket=no
15474 rm -f conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
15476 LIBS=$ac_check_lib_save_LIBS
15478 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15479 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15480 if test $ac_cv_lib_socket_socket = yes; then
15481 cat >>confdefs.h <<_ACEOF
15482 #define HAVE_LIBSOCKET 1
15485 LIBS="-lsocket $LIBS"
15490 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15491 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15492 if test "${ac_cv_lib_inet_socket+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 ac_check_lib_save_LIBS=$LIBS
15496 LIBS="-linet $LIBS"
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15504 /* Override any gcc2 internal prototype to avoid an error. */
15508 /* We use char because int might match the return type of a gcc2
15509 builtin and then its argument prototype would still apply. */
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521 (eval $ac_link) 2>conftest.er1
15523 grep -v '^ *+' conftest.er1 >conftest.err
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -z "$ac_c_werror_flag"
15529 || test ! -s conftest.err'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try='test -s conftest$ac_exeext'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15541 ac_cv_lib_inet_socket=yes
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15546 ac_cv_lib_inet_socket=no
15548 rm -f conftest.err conftest.$ac_objext \
15549 conftest$ac_exeext conftest.$ac_ext
15550 LIBS=$ac_check_lib_save_LIBS
15552 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15553 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15554 if test $ac_cv_lib_inet_socket = yes; then
15555 cat >>confdefs.h <<_ACEOF
15556 #define HAVE_LIBINET 1
15559 LIBS="-linet $LIBS"
15567 # -----------------------------------------------------------
15568 # Check whether user wants TCP wrappers support (default off)
15569 # -----------------------------------------------------------
15573 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15574 if test "${with_tcp_wrappers+set}" = set; then
15575 withval="$with_tcp_wrappers"
15577 if test "x$withval" != "xno" ; then
15579 LIBS="$saved_LIBS -lwrap"
15580 echo "$as_me:$LINENO: checking for libwrap" >&5
15581 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15582 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15583 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15584 if test "${ac_cv_search_nanosleep+set}" = set; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 ac_func_search_save_LIBS=$LIBS
15588 ac_cv_search_nanosleep=no
15589 cat >conftest.$ac_ext <<_ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15596 /* Override any gcc2 internal prototype to avoid an error. */
15600 /* We use char because int might match the return type of a gcc2
15601 builtin and then its argument prototype would still apply. */
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15613 (eval $ac_link) 2>conftest.er1
15615 grep -v '^ *+' conftest.er1 >conftest.err
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag"
15621 || test ! -s conftest.err'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest$ac_exeext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 ac_cv_search_nanosleep="none required"
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15639 rm -f conftest.err conftest.$ac_objext \
15640 conftest$ac_exeext conftest.$ac_ext
15641 if test "$ac_cv_search_nanosleep" = no; then
15642 for ac_lib in rt; do
15643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15644 cat >conftest.$ac_ext <<_ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15651 /* Override any gcc2 internal prototype to avoid an error. */
15655 /* We use char because int might match the return type of a gcc2
15656 builtin and then its argument prototype would still apply. */
15666 rm -f conftest.$ac_objext conftest$ac_exeext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15668 (eval $ac_link) 2>conftest.er1
15670 grep -v '^ *+' conftest.er1 >conftest.err
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag"
15676 || test ! -s conftest.err'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; } &&
15682 { ac_try='test -s conftest$ac_exeext'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_cv_search_nanosleep="-l$ac_lib"
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15695 rm -f conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
15699 LIBS=$ac_func_search_save_LIBS
15701 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15702 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15703 if test "$ac_cv_search_nanosleep" != no; then
15704 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15708 cat >conftest.$ac_ext <<_ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 #include <sys/types.h>
15716 int deny_severity = 0;
15717 int allow_severity = 0;
15718 struct request_info *req;
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>conftest.er1
15731 grep -v '^ *+' conftest.er1 >conftest.err
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -z "$ac_c_werror_flag"
15737 || test ! -s conftest.err'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try='test -s conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15750 echo "$as_me:$LINENO: result: yes" >&5
15751 echo "${ECHO_T}yes" >&6
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_LIBWRAP 1
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15765 LIBS="$saved_LIBS -lwrap -lnsl"
15766 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15767 cat >conftest.$ac_ext <<_ACEOF
15770 cat confdefs.h >>conftest.$ac_ext
15771 cat >>conftest.$ac_ext <<_ACEOF
15772 /* end confdefs.h. */
15773 #include <sys/types.h>
15775 int deny_severity = 0;
15776 int allow_severity = 0;
15777 struct request_info *req;
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788 (eval $ac_link) 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15809 echo "$as_me:$LINENO: result: yes" >&5
15810 echo "${ECHO_T}yes" >&6
15811 cat >>confdefs.h <<\_ACEOF
15812 #define HAVE_LIBWRAP 1
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15824 echo "$as_me: error: *** libwrap missing" >&2;}
15825 { (exit 1); exit 1; }; }
15828 rm -f conftest.err conftest.$ac_objext \
15829 conftest$ac_exeext conftest.$ac_ext
15832 rm -f conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15839 # -----------------------------------------------------------
15840 # Check whether OpenSSL is available
15841 # -----------------------------------------------------------
15842 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15843 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15845 # Check whether --with-openssl or --without-openssl was given.
15846 if test "${with_openssl+set}" = set; then
15847 withval="$with_openssl"
15848 with_openssl_directory=${withval}
15851 if test "x$with_openssl_directory" != "x"; then
15852 OPENSSL_LIBS="-lssl -lcrypto"
15855 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15856 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15857 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15860 saved_LIBS="${LIBS}"
15861 saved_CFLAGS="${CFLAGS}"
15862 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15863 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15865 cat >conftest.$ac_ext <<_ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 #include <openssl/ssl.h>
15875 CRYPTO_set_id_callback(NULL);
15880 rm -f conftest.$ac_objext conftest$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882 (eval $ac_link) 2>conftest.er1
15884 grep -v '^ *+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try='test -s conftest$ac_exeext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15904 support_crypto="yes"
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15913 rm -f conftest.err conftest.$ac_objext \
15914 conftest$ac_exeext conftest.$ac_ext
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <openssl/evp.h>
15931 rm -f conftest.$ac_objext conftest$ac_exeext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15933 (eval $ac_link) 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag"
15941 || test ! -s conftest.err'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest$ac_exeext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_cv_openssl_sha2="yes"
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_cv_openssl_sha2="no"
15961 rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15964 LIBS="${saved_LIBS}"
15965 CFLAGS="${saved_CFLAGS}"
15967 if test "$support_tls" = "yes"; then
15969 cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_OPENSSL 1
15974 cat >>confdefs.h <<\_ACEOF
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_CRYPTO 1
15985 if test "$ac_cv_openssl_sha2" = "yes"; then
15987 cat >>confdefs.h <<\_ACEOF
15988 #define HAVE_SHA2 1
15994 support_crypto="no"
15999 echo "$as_me:$LINENO: result: $support_tls" >&5
16000 echo "${ECHO_T}$support_tls" >&6
16005 # -----------------------------------------------------------
16006 # Python and OpenSSL are using dlopen
16007 # -----------------------------------------------------------
16009 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16010 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16011 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16012 if test "${ac_cv_search_dlopen+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 ac_func_search_save_LIBS=$LIBS
16016 ac_cv_search_dlopen=no
16017 cat >conftest.$ac_ext <<_ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16024 /* Override any gcc2 internal prototype to avoid an error. */
16028 /* We use char because int might match the return type of a gcc2
16029 builtin and then its argument prototype would still apply. */
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041 (eval $ac_link) 2>conftest.er1
16043 grep -v '^ *+' conftest.er1 >conftest.err
16045 cat conftest.err >&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
16048 { ac_try='test -z "$ac_c_werror_flag"
16049 || test ! -s conftest.err'
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; } &&
16055 { ac_try='test -s conftest$ac_exeext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_cv_search_dlopen="none required"
16063 echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16067 rm -f conftest.err conftest.$ac_objext \
16068 conftest$ac_exeext conftest.$ac_ext
16069 if test "$ac_cv_search_dlopen" = no; then
16070 for ac_lib in dl; do
16071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16072 cat >conftest.$ac_ext <<_ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16079 /* Override any gcc2 internal prototype to avoid an error. */
16083 /* We use char because int might match the return type of a gcc2
16084 builtin and then its argument prototype would still apply. */
16094 rm -f conftest.$ac_objext conftest$ac_exeext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16096 (eval $ac_link) 2>conftest.er1
16098 grep -v '^ *+' conftest.er1 >conftest.err
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -z "$ac_c_werror_flag"
16104 || test ! -s conftest.err'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest$ac_exeext'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_cv_search_dlopen="-l$ac_lib"
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16123 rm -f conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16127 LIBS=$ac_func_search_save_LIBS
16129 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16130 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16131 if test "$ac_cv_search_dlopen" != no; then
16132 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16138 # ------------------------------------------
16139 # Where to place working dir
16140 # ------------------------------------------
16141 working_dir=`eval echo ${prefix}/var/bacula/working`
16143 # Check whether --with-working-dir or --without-working-dir was given.
16144 if test "${with_working_dir+set}" = set; then
16145 withval="$with_working_dir"
16147 if test "x$withval" != "xno" ; then
16148 working_dir=$withval
16157 # ------------------------------------------
16158 # Where to place scriptdir (script files)
16159 # ------------------------------------------
16160 scriptdir=`eval echo ${sysconfdir}`
16162 # Check whether --with-scriptdir or --without-scriptdir was given.
16163 if test "${with_scriptdir+set}" = set; then
16164 withval="$with_scriptdir"
16166 if test "x$withval" != "xno" ; then
16176 # ------------------------------------------
16177 # Where to send dump email
16178 # ------------------------------------------
16179 dump_email=root@localhost
16181 # Check whether --with-dump-email or --without-dump-email was given.
16182 if test "${with_dump_email+set}" = set; then
16183 withval="$with_dump_email"
16185 if test "x$withval" != "xno" ; then
16186 dump_email=$withval
16194 # ------------------------------------------
16195 # Where to send job email
16196 # ------------------------------------------
16197 job_email=root@localhost
16199 # Check whether --with-job-email or --without-job-email was given.
16200 if test "${with_job_email+set}" = set; then
16201 withval="$with_job_email"
16203 if test "x$withval" != "xno" ; then
16212 # ------------------------------------------
16213 # Where to find smtp host
16214 # ------------------------------------------
16215 smtp_host=localhost
16217 # Check whether --with-smtp_host or --without-smtp_host was given.
16218 if test "${with_smtp_host+set}" = set; then
16219 withval="$with_smtp_host"
16221 if test "x$withval" != "xno" ; then
16231 # ------------------------------------
16232 # Where to place pid files
16233 # ------------------------------------
16236 # Check whether --with-pid-dir or --without-pid-dir was given.
16237 if test "${with_pid_dir+set}" = set; then
16238 withval="$with_pid_dir"
16240 if test "x$withval" != "xno" ; then
16247 cat >>confdefs.h <<_ACEOF
16248 #define _PATH_BACULA_PIDDIR "$piddir"
16254 # ------------------------------------
16255 # Where to place subsys "lock file"
16256 # ------------------------------------
16257 subsysdir=/var/run/subsys
16259 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16260 if test "${with_subsys_dir+set}" = set; then
16261 withval="$with_subsys_dir"
16263 if test "x$withval" != "xno" ; then
16274 # ------------------------------------
16275 # Where to start assigning ports
16276 # ------------------------------------
16279 # Check whether --with-baseport or --without-baseport was given.
16280 if test "${with_baseport+set}" = set; then
16281 withval="$with_baseport"
16283 if test "x$withval" != "xno" ; then
16291 dir_port=`expr $baseport`
16292 fd_port=`expr $baseport + 1`
16293 sd_port=`expr $fd_port + 1`
16300 # ------------------------------------------
16301 # Generate passwords
16302 # ------------------------------------------
16305 # Check whether --with-dir-password or --without-dir-password was given.
16306 if test "${with_dir_password+set}" = set; then
16307 withval="$with_dir_password"
16309 if test "x$withval" != "xno" ; then
16310 dir_password=$withval
16316 if test "x$dir_password" = "x" ; then
16317 if test "x$OPENSSL" = "xnone" ; then
16318 key=`autoconf/randpass 33`
16320 key=`openssl rand -base64 33`
16327 # Check whether --with-fd-password or --without-fd-password was given.
16328 if test "${with_fd_password+set}" = set; then
16329 withval="$with_fd_password"
16331 if test "x$withval" != "xno" ; then
16332 fd_password=$withval
16338 if test "x$fd_password" = "x" ; then
16339 if test "x$OPENSSL" = "xnone" ; then
16340 key=`autoconf/randpass 37`
16342 key=`openssl rand -base64 33`
16349 # Check whether --with-sd-password or --without-sd-password was given.
16350 if test "${with_sd_password+set}" = set; then
16351 withval="$with_sd_password"
16353 if test "x$withval" != "xno" ; then
16354 sd_password=$withval
16360 if test "x$sd_password" = "x" ; then
16361 if test "x$OPENSSL" = "xnone" ; then
16362 key=`autoconf/randpass 41`
16364 key=`openssl rand -base64 33`
16371 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16372 if test "${with_mon_dir_password+set}" = set; then
16373 withval="$with_mon_dir_password"
16375 if test "x$withval" != "xno" ; then
16376 mon_dir_password=$withval
16382 if test "x$mon_dir_password" = "x" ; then
16383 if test "x$OPENSSL" = "xnone" ; then
16384 key=`autoconf/randpass 33`
16386 key=`openssl rand -base64 33`
16388 mon_dir_password=$key
16393 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16394 if test "${with_mon_fd_password+set}" = set; then
16395 withval="$with_mon_fd_password"
16397 if test "x$withval" != "xno" ; then
16398 mon_fd_password=$withval
16404 if test "x$mon_fd_password" = "x" ; then
16405 if test "x$OPENSSL" = "xnone" ; then
16406 key=`autoconf/randpass 37`
16408 key=`openssl rand -base64 33`
16410 mon_fd_password=$key
16415 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16416 if test "${with_mon_sd_password+set}" = set; then
16417 withval="$with_mon_sd_password"
16419 if test "x$withval" != "xno" ; then
16420 mon_sd_password=$withval
16426 if test "x$mon_sd_password" = "x" ; then
16427 if test "x$OPENSSL" = "xnone" ; then
16428 key=`autoconf/randpass 41`
16430 key=`openssl rand -base64 33`
16432 mon_sd_password=$key
16444 # Handle users and groups for each daemon
16448 # Check whether --with-dir_user or --without-dir_user was given.
16449 if test "${with_dir_user+set}" = set; then
16450 withval="$with_dir_user"
16452 if test "x$withval" != "x" ; then
16461 # Check whether --with-dir_group or --without-dir_group was given.
16462 if test "${with_dir_group+set}" = set; then
16463 withval="$with_dir_group"
16465 if test "x$withval" != "x" ; then
16474 # Check whether --with-sd_user or --without-sd_user was given.
16475 if test "${with_sd_user+set}" = set; then
16476 withval="$with_sd_user"
16478 if test "x$withval" != "x" ; then
16487 # Check whether --with-sd_group or --without-sd_group was given.
16488 if test "${with_sd_group+set}" = set; then
16489 withval="$with_sd_group"
16491 if test "x$withval" != "x" ; then
16500 # Check whether --with-fd_user or --without-fd_user was given.
16501 if test "${with_fd_user+set}" = set; then
16502 withval="$with_fd_user"
16504 if test "x$withval" != "x" ; then
16513 # Check whether --with-fd_group or --without-fd_group was given.
16514 if test "${with_fd_group+set}" = set; then
16515 withval="$with_fd_group"
16517 if test "x$withval" != "x" ; then
16535 # allow setting default executable permissions
16539 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16540 if test "${with_sbin_perm+set}" = set; then
16541 withval="$with_sbin_perm"
16543 if test "x$withval" != "x" ; then
16552 # ------------------------------------------------
16553 # Bacula check for various SQL database engines
16554 # ------------------------------------------------
16557 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16558 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16560 # Check whether --with-postgresql or --without-postgresql was given.
16561 if test "${with_postgresql+set}" = set; then
16562 withval="$with_postgresql"
16564 if test "$withval" != "no"; then
16565 if test "$db_found" = "yes"; then
16566 echo "$as_me:$LINENO: result: error" >&5
16567 echo "${ECHO_T}error" >&6
16568 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16569 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16570 { (exit 1); exit 1; }; };
16572 if test "$withval" = "yes"; then
16573 PG_CONFIG=`which pg_config`
16574 if test -n "$PG_CONFIG";then
16575 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16576 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16577 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16578 elif test -f /usr/local/include/libpq-fe.h; then
16579 POSTGRESQL_INCDIR=/usr/local/include
16580 if test -d /usr/local/lib64; then
16581 POSTGRESQL_LIBDIR=/usr/local/lib64
16583 POSTGRESQL_LIBDIR=/usr/local/lib
16585 POSTGRESQL_BINDIR=/usr/local/bin
16586 elif test -f /usr/include/libpq-fe.h; then
16587 POSTGRESQL_INCDIR=/usr/include
16588 if test -d /usr/lib64; then
16589 POSTGRESQL_LIBDIR=/usr/lib64
16591 POSTGRESQL_LIBDIR=/usr/lib
16593 POSTGRESQL_BINDIR=/usr/bin
16594 elif test -f /usr/include/pgsql/libpq-fe.h; then
16595 POSTGRESQL_INCDIR=/usr/include/pgsql
16596 if test -d /usr/lib64/pgsql; then
16597 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16599 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16601 POSTGRESQL_BINDIR=/usr/bin
16602 elif test -f /usr/include/postgresql/libpq-fe.h; then
16603 POSTGRESQL_INCDIR=/usr/include/postgresql
16604 if test -d /usr/lib64/postgresql; then
16605 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16607 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16609 POSTGRESQL_BINDIR=/usr/bin
16611 echo "$as_me:$LINENO: result: no" >&5
16612 echo "${ECHO_T}no" >&6
16613 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16614 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16615 { (exit 1); exit 1; }; }
16617 elif test -f $withval/include/libpq-fe.h; then
16618 POSTGRESQL_INCDIR=$withval/include
16619 POSTGRESQL_LIBDIR=$withval/lib
16620 POSTGRESQL_BINDIR=$withval/bin
16621 elif test -f $withval/include/postgresql/libpq-fe.h; then
16622 POSTGRESQL_INCDIR=$withval/include/postgresql
16623 if test -d $withval/lib64; then
16624 POSTGRESQL_LIBDIR=$withval/lib64
16626 POSTGRESQL_LIBDIR=$withval/lib
16628 POSTGRESQL_BINDIR=$withval/bin
16630 echo "$as_me:$LINENO: result: no" >&5
16631 echo "${ECHO_T}no" >&6
16632 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16633 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16634 { (exit 1); exit 1; }; }
16636 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16637 echo "$as_me:$LINENO: checking for crypt" >&5
16638 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16639 if test "${ac_cv_func_crypt+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 cat >conftest.$ac_ext <<_ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16650 #define crypt innocuous_crypt
16652 /* System header to define __stub macros and hopefully few prototypes,
16653 which can conflict with char crypt (); below.
16654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655 <limits.h> exists even on freestanding compilers. */
16658 # include <limits.h>
16660 # include <assert.h>
16665 /* Override any gcc2 internal prototype to avoid an error. */
16670 /* We use char because int might match the return type of a gcc2
16671 builtin and then its argument prototype would still apply. */
16673 /* The GNU C library defines this for functions which it implements
16674 to always fail with ENOSYS. Some functions are actually named
16675 something starting with __ and the normal name is an alias. */
16676 #if defined (__stub_crypt) || defined (__stub___crypt)
16679 char (*f) () = crypt;
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16695 (eval $ac_link) 2>conftest.er1
16697 grep -v '^ *+' conftest.er1 >conftest.err
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
16702 { ac_try='test -z "$ac_c_werror_flag"
16703 || test ! -s conftest.err'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest$ac_exeext'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 ac_cv_func_crypt=yes
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16720 ac_cv_func_crypt=no
16722 rm -f conftest.err conftest.$ac_objext \
16723 conftest$ac_exeext conftest.$ac_ext
16725 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16726 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16727 if test $ac_cv_func_crypt = yes; then
16730 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16731 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16732 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 ac_check_lib_save_LIBS=$LIBS
16736 LIBS="-lcrypt $LIBS"
16737 cat >conftest.$ac_ext <<_ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16744 /* Override any gcc2 internal prototype to avoid an error. */
16748 /* We use char because int might match the return type of a gcc2
16749 builtin and then its argument prototype would still apply. */
16759 rm -f conftest.$ac_objext conftest$ac_exeext
16760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16761 (eval $ac_link) 2>conftest.er1
16763 grep -v '^ *+' conftest.er1 >conftest.err
16765 cat conftest.err >&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } &&
16768 { ac_try='test -z "$ac_c_werror_flag"
16769 || test ! -s conftest.err'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } &&
16775 { ac_try='test -s conftest$ac_exeext'
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 ac_cv_lib_crypt_crypt=yes
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 ac_cv_lib_crypt_crypt=no
16788 rm -f conftest.err conftest.$ac_objext \
16789 conftest$ac_exeext conftest.$ac_ext
16790 LIBS=$ac_check_lib_save_LIBS
16792 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16793 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16794 if test $ac_cv_lib_crypt_crypt = yes; then
16795 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16800 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16801 SQL_LFLAGS=$POSTGRESQL_LFLAGS
16802 SQL_BINDIR=$POSTGRESQL_BINDIR
16803 cat >>confdefs.h <<\_ACEOF
16804 #define HAVE_POSTGRESQL 1
16807 echo "$as_me:$LINENO: result: yes" >&5
16808 echo "${ECHO_T}yes" >&6
16810 support_postgresql=yes
16814 echo "$as_me:$LINENO: result: no" >&5
16815 echo "${ECHO_T}no" >&6
16820 echo "$as_me:$LINENO: result: no" >&5
16821 echo "${ECHO_T}no" >&6
16832 echo "$as_me:$LINENO: checking for MySQL support" >&5
16833 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16835 # Check whether --with-mysql or --without-mysql was given.
16836 if test "${with_mysql+set}" = set; then
16837 withval="$with_mysql"
16839 if test "$withval" != "no"; then
16840 if test "$withval" = "yes"; then
16841 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16842 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16843 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
16844 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16846 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16848 MYSQL_BINDIR=/usr/local/mysql/bin
16849 elif test -f /usr/include/mysql/mysql.h; then
16850 MYSQL_INCDIR=/usr/include/mysql
16851 if test -f /usr/lib64/mysql/libmysqlclient.a; then
16852 MYSQL_LIBDIR=/usr/lib64/mysql
16854 MYSQL_LIBDIR=/usr/lib/mysql
16856 MYSQL_BINDIR=/usr/bin
16857 elif test -f /usr/include/mysql.h; then
16858 MYSQL_INCDIR=/usr/include
16859 if test -f /usr/lib64/libmysqlclient.a; then
16860 MYSQL_LIBDIR=/usr/lib64
16862 MYSQL_LIBDIR=/usr/lib
16864 MYSQL_BINDIR=/usr/bin
16865 elif test -f /usr/local/include/mysql/mysql.h; then
16866 MYSQL_INCDIR=/usr/local/include/mysql
16867 if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
16868 MYSQL_LIBDIR=/usr/local/lib64/mysql
16870 MYSQL_LIBDIR=/usr/local/lib/mysql
16872 MYSQL_BINDIR=/usr/local/bin
16873 elif test -f /usr/local/include/mysql.h; then
16874 MYSQL_INCDIR=/usr/local/include
16875 if test -f /usr/local/lib64/libmysqlclient.a; then
16876 MYSQL_LIBDIR=/usr/local/lib64
16878 MYSQL_LIBDIR=/usr/local/lib
16880 MYSQL_BINDIR=/usr/local/bin
16882 echo "$as_me:$LINENO: result: no" >&5
16883 echo "${ECHO_T}no" >&6
16884 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16885 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16886 { (exit 1); exit 1; }; }
16889 if test -f $withval/include/mysql/mysql.h; then
16890 MYSQL_INCDIR=$withval/include/mysql
16891 if test -f $withval/lib64/mysql/libmysqlclient.a; then
16892 MYSQL_LIBDIR=$withval/lib64/mysql
16894 MYSQL_LIBDIR=$withval/lib/mysql
16896 if test -f $withval/lib/libmysqlclient.so; then
16897 MYSQL_LIBDIR=$withval/lib
16900 MYSQL_BINDIR=$withval/bin
16901 elif test -f $withval/include/mysql.h; then
16902 MYSQL_INCDIR=$withval/include
16903 if test -f "$withval/lib64/libmysqlclient.a"; then
16904 MYSQL_LIBDIR=$withval/lib64
16906 MYSQL_LIBDIR=$withval/lib
16908 MYSQL_BINDIR=$withval/bin
16910 echo "$as_me:$LINENO: result: no" >&5
16911 echo "${ECHO_T}no" >&6
16912 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16913 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16914 { (exit 1); exit 1; }; }
16917 SQL_INCLUDE=-I$MYSQL_INCDIR
16918 if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
16919 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16920 cat >>confdefs.h <<\_ACEOF
16921 #define HAVE_THREAD_SAFE_MYSQL 1
16925 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16927 SQL_BINDIR=$MYSQL_BINDIR
16929 cat >>confdefs.h <<\_ACEOF
16930 #define HAVE_MYSQL 1
16933 echo "$as_me:$LINENO: result: yes" >&5
16934 echo "${ECHO_T}yes" >&6
16941 echo "$as_me:$LINENO: result: no" >&5
16942 echo "${ECHO_T}no" >&6
16949 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16950 if test "${with_embedded_mysql+set}" = set; then
16951 withval="$with_embedded_mysql"
16953 if test "$withval" != "no"; then
16954 if test "$withval" = "yes"; then
16955 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16956 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16957 if test -d /usr/local/mysql/lib64/mysql; then
16958 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16960 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16962 MYSQL_BINDIR=/usr/local/mysql/bin
16963 elif test -f /usr/include/mysql/mysql.h; then
16964 MYSQL_INCDIR=/usr/include/mysql
16965 if test -d /usr/lib64/mysql; then
16966 MYSQL_LIBDIR=/usr/lib64/mysql
16968 MYSQL_LIBDIR=/usr/lib/mysql
16970 MYSQL_BINDIR=/usr/bin
16971 elif test -f /usr/include/mysql.h; then
16972 MYSQL_INCDIR=/usr/include
16973 if test -d /usr/lib64; then
16974 MYSQL_LIBDIR=/usr/lib64
16976 MYSQL_LIBDIR=/usr/lib
16978 MYSQL_BINDIR=/usr/bin
16979 elif test -f /usr/local/include/mysql/mysql.h; then
16980 MYSQL_INCDIR=/usr/local/include/mysql
16981 if test -d /usr/local/lib64/mysql; then
16982 MYSQL_LIBDIR=/usr/local/lib64/mysql
16984 MYSQL_LIBDIR=/usr/local/lib/mysql
16986 MYSQL_BINDIR=/usr/local/bin
16987 elif test -f /usr/local/include/mysql.h; then
16988 MYSQL_INCDIR=/usr/local/include
16989 if test -d /usr/local/lib64; then
16990 MYSQL_LIBDIR=/usr/local/lib64
16992 MYSQL_LIBDIR=/usr/local/lib
16994 MYSQL_BINDIR=/usr/local/bin
16996 echo "$as_me:$LINENO: result: no" >&5
16997 echo "${ECHO_T}no" >&6
16998 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16999 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17000 { (exit 1); exit 1; }; }
17003 if test -f $withval/include/mysql/mysql.h; then
17004 MYSQL_INCDIR=$withval/include/mysql
17005 if test -d $withval/lib64/mysql; then
17006 MYSQL_LIBDIR=$withval/lib64/mysql
17008 MYSQL_LIBDIR=$withval/lib/mysql
17010 MYSQL_BINDIR=$withval/bin
17011 elif test -f $withval/include/mysql.h; then
17012 MYSQL_INCDIR=$withval/include
17013 if test -d $withval/lib64; then
17014 MYSQL_LIBDIR=$withval/lib64
17016 MYSQL_LIBDIR=$withval/lib
17018 MYSQL_BINDIR=$withval/bin
17020 echo "$as_me:$LINENO: result: no" >&5
17021 echo "${ECHO_T}no" >&6
17022 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17023 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17024 { (exit 1); exit 1; }; }
17027 SQL_INCLUDE=-I$MYSQL_INCDIR
17028 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17029 SQL_BINDIR=$MYSQL_BINDIR
17031 cat >>confdefs.h <<\_ACEOF
17032 #define HAVE_MYSQL 1
17035 cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_EMBEDDED_MYSQL 1
17039 echo "$as_me:$LINENO: result: yes" >&5
17040 echo "${ECHO_T}yes" >&6
17047 echo "$as_me:$LINENO: result: no" >&5
17048 echo "${ECHO_T}no" >&6
17063 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17064 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17066 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17067 if test "${with_sqlite3+set}" = set; then
17068 withval="$with_sqlite3"
17070 if test "$withval" != "no"; then
17071 if test "$withval" = "yes"; then
17072 if test -f /usr/local/include/sqlite3.h; then
17073 SQLITE_INCDIR=/usr/local/include
17074 if test -d /usr/local/lib64; then
17075 SQLITE_LIBDIR=/usr/local/lib64
17077 SQLITE_LIBDIR=/usr/local/lib
17079 SQLITE_BINDIR=/usr/local/bin
17080 elif test -f /usr/include/sqlite3.h; then
17081 SQLITE_INCDIR=/usr/include
17082 if test -d /usr/lib64; then
17083 SQLITE_LIBDIR=/usr/lib64
17085 SQLITE_LIBDIR=/usr/lib
17087 SQLITE_BINDIR=/usr/bin
17088 elif test -f $prefix/include/sqlite3.h; then
17089 SQLITE_INCDIR=$prefix/include
17090 if test -d $prefix/lib64; then
17091 SQLITE_LIBDIR=$prefix/lib64
17093 SQLITE_LIBDIR=$prefix/lib
17095 SQLITE_BINDIR=$prefix/bin
17097 echo "$as_me:$LINENO: result: no" >&5
17098 echo "${ECHO_T}no" >&6
17099 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17100 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17101 { (exit 1); exit 1; }; }
17104 if test -f $withval/sqlite3.h; then
17105 SQLITE_INCDIR=$withval
17106 SQLITE_LIBDIR=$withval
17107 SQLITE_BINDIR=$withval
17108 elif test -f $withval/include/sqlite3.h; then
17109 SQLITE_INCDIR=$withval/include
17110 if test -d $withval/lib64; then
17111 SQLITE_LIBDIR=$withval/lib64
17113 SQLITE_LIBDIR=$withval/lib
17115 SQLITE_BINDIR=$withval/bin
17117 echo "$as_me:$LINENO: result: no" >&5
17118 echo "${ECHO_T}no" >&6
17119 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17120 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17121 { (exit 1); exit 1; }; }
17124 SQL_INCLUDE=-I$SQLITE_INCDIR
17125 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17126 SQL_BINDIR=$SQLITE_BINDIR
17128 cat >>confdefs.h <<\_ACEOF
17129 #define HAVE_SQLITE3 1
17132 echo "$as_me:$LINENO: result: yes" >&5
17133 echo "${ECHO_T}yes" >&6
17135 support_sqlite3=yes
17140 echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6
17146 echo "$as_me:$LINENO: result: no" >&5
17147 echo "${ECHO_T}no" >&6
17158 echo "$as_me:$LINENO: checking for SQLite support" >&5
17159 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17161 # Check whether --with-sqlite or --without-sqlite was given.
17162 if test "${with_sqlite+set}" = set; then
17163 withval="$with_sqlite"
17165 if test "$withval" != "no"; then
17166 if test "$withval" = "yes"; then
17167 if test -f /usr/local/include/sqlite.h; then
17168 SQLITE_INCDIR=/usr/local/include
17169 if test -d /usr/local/lib64; then
17170 SQLITE_LIBDIR=/usr/local/lib64
17172 SQLITE_LIBDIR=/usr/local/lib
17174 SQLITE_BINDIR=/usr/local/bin
17175 elif test -f /usr/include/sqlite.h; then
17176 SQLITE_INCDIR=/usr/include
17177 if test -d /usr/lib64; then
17178 SQLITE_LIBDIR=/usr/lib64
17180 SQLITE_LIBDIR=/usr/lib
17182 SQLITE_BINDIR=/usr/bin
17183 elif test -f $prefix/include/sqlite.h; then
17184 SQLITE_INCDIR=$prefix/include
17185 if test -d $prefix/lib64; then
17186 SQLITE_LIBDIR=$prefix/lib64
17188 SQLITE_LIBDIR=$prefix/lib
17190 SQLITE_BINDIR=$prefix/bin
17192 echo "$as_me:$LINENO: result: no" >&5
17193 echo "${ECHO_T}no" >&6
17194 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17195 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17196 { (exit 1); exit 1; }; }
17199 if test -f $withval/sqlite.h; then
17200 SQLITE_INCDIR=$withval
17201 SQLITE_LIBDIR=$withval
17202 SQLITE_BINDIR=$withval
17203 elif test -f $withval/include/sqlite.h; then
17204 SQLITE_INCDIR=$withval/include
17205 if test -d $withval/lib64; then
17206 SQLITE_LIBDIR=$withval/lib64
17208 SQLITE_LIBDIR=$withval/lib
17210 SQLITE_BINDIR=$withval/bin
17212 echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6
17214 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17215 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17216 { (exit 1); exit 1; }; }
17219 SQL_INCLUDE=-I$SQLITE_INCDIR
17220 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17221 SQL_BINDIR=$SQLITE_BINDIR
17223 cat >>confdefs.h <<\_ACEOF
17224 #define HAVE_SQLITE 1
17227 echo "$as_me:$LINENO: result: yes" >&5
17228 echo "${ECHO_T}yes" >&6
17235 echo "$as_me:$LINENO: result: no" >&5
17236 echo "${ECHO_T}no" >&6
17241 echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6
17254 cat >>confdefs.h <<\_ACEOF
17255 #define PROTOTYPES 1
17259 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17260 if test -z "$CCOPTS"; then
17261 CCOPTS='-g -O2 -Wall'
17269 largefile_support="no"
17271 # Check whether --enable-largefile or --disable-largefile was given.
17272 if test "${enable_largefile+set}" = set; then
17273 enableval="$enable_largefile"
17276 if test "$enable_largefile" != no; then
17277 if test -n "$ac_tool_prefix"; then
17278 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17279 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17280 echo "$as_me:$LINENO: checking for $ac_word" >&5
17281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17282 if test "${ac_cv_prog_GETCONF+set}" = set; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 if test -n "$GETCONF"; then
17286 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17289 for as_dir in $PATH
17292 test -z "$as_dir" && as_dir=.
17293 for ac_exec_ext in '' $ac_executable_extensions; do
17294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17295 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17304 GETCONF=$ac_cv_prog_GETCONF
17305 if test -n "$GETCONF"; then
17306 echo "$as_me:$LINENO: result: $GETCONF" >&5
17307 echo "${ECHO_T}$GETCONF" >&6
17309 echo "$as_me:$LINENO: result: no" >&5
17310 echo "${ECHO_T}no" >&6
17314 if test -z "$ac_cv_prog_GETCONF"; then
17315 ac_ct_GETCONF=$GETCONF
17316 # Extract the first word of "getconf", so it can be a program name with args.
17317 set dummy getconf; ac_word=$2
17318 echo "$as_me:$LINENO: checking for $ac_word" >&5
17319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17320 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17323 if test -n "$ac_ct_GETCONF"; then
17324 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17327 for as_dir in $PATH
17330 test -z "$as_dir" && as_dir=.
17331 for ac_exec_ext in '' $ac_executable_extensions; do
17332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17333 ac_cv_prog_ac_ct_GETCONF="getconf"
17334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17342 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17343 if test -n "$ac_ct_GETCONF"; then
17344 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17345 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17347 echo "$as_me:$LINENO: result: no" >&5
17348 echo "${ECHO_T}no" >&6
17351 GETCONF=$ac_ct_GETCONF
17353 GETCONF="$ac_cv_prog_GETCONF"
17356 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17357 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17358 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17362 ac_cv_sys_largefile_CFLAGS=no
17364 # IRIX 6.2 and later require cc -n32.
17365 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17366 if test "$GCC" != yes; then
17367 ac_cv_sys_largefile_CFLAGS=-n32
17370 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17371 cat >conftest.$ac_ext <<_ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17388 (eval $ac_link) 2>conftest.er1
17390 grep -v '^ *+' conftest.er1 >conftest.err
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag"
17396 || test ! -s conftest.err'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest$ac_exeext'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 ac_cv_sys_largefile_CFLAGS=no
17415 rm -f conftest.err conftest.$ac_objext \
17416 conftest$ac_exeext conftest.$ac_ext
17421 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17422 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17423 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17424 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17425 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17428 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17429 ac_cv_sys_largefile_LDFLAGS=no
17433 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17434 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17435 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17436 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17437 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17441 ac_cv_sys_largefile_LIBS=no
17445 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17446 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17448 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17451 -D_FILE_OFFSET_BITS=*) ;;
17452 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17453 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17458 case "$CPPFLAGS" in
17459 '') CPPFLAGS="$ac_flag" ;;
17460 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17468 '') CFLAGS="$ac_flag" ;;
17469 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17474 case "$ac_cv_sys_largefile_LDFLAGS" in
17478 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17479 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17482 case "$ac_cv_sys_largefile_LIBS" in
17486 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17487 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17490 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17491 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17492 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 ac_cv_sys_file_offset_bits=no
17496 ac_cv_sys_file_offset_bits=64
17497 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17499 -D_FILE_OFFSET_BITS)
17500 ac_cv_sys_file_offset_bits=1 ;;
17501 -D_FILE_OFFSET_BITS=*)
17502 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17507 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17508 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17509 if test "$ac_cv_sys_file_offset_bits" != no; then
17511 cat >>confdefs.h <<_ACEOF
17512 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17516 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17517 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17518 if test "${ac_cv_sys_largefile_source+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 ac_cv_sys_largefile_source=no
17522 ac_cv_sys_largefile_source=1
17523 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17525 -D_LARGEFILE_SOURCE)
17526 ac_cv_sys_largefile_source=1 ;;
17527 -D_LARGEFILE_SOURCE=*)
17528 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17533 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17534 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17535 if test "$ac_cv_sys_largefile_source" != no; then
17537 cat >>confdefs.h <<_ACEOF
17538 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17542 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17543 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17544 if test "${ac_cv_sys_large_files+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 ac_cv_sys_large_files=no
17548 ac_cv_sys_large_files=1
17549 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17552 ac_cv_sys_large_files=1 ;;
17554 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17559 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17560 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17561 if test "$ac_cv_sys_large_files" != no; then
17563 cat >>confdefs.h <<_ACEOF
17564 #define _LARGE_FILES $ac_cv_sys_large_files
17572 echo "$as_me:$LINENO: checking for X" >&5
17573 echo $ECHO_N "checking for X... $ECHO_C" >&6
17576 # Check whether --with-x or --without-x was given.
17577 if test "${with_x+set}" = set; then
17581 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17582 if test "x$with_x" = xno; then
17583 # The user explicitly disabled X.
17586 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17587 # Both variables are already set.
17590 if test "${ac_cv_have_x+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 # One or both of the vars are not set, and there is no cached value.
17594 ac_x_includes=no ac_x_libraries=no
17595 rm -fr conftest.dir
17596 if mkdir conftest.dir; then
17598 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17599 cat >Imakefile <<'_ACEOF'
17601 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17603 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17604 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17605 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17606 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17607 for ac_extension in a so sl; do
17608 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17609 test -f $ac_im_libdir/libX11.$ac_extension; then
17610 ac_im_usrlibdir=$ac_im_libdir; break
17613 # Screen out bogus values from the imake configuration. They are
17614 # bogus both because they are the default anyway, and because
17615 # using them would break gcc on systems where it needs fixed includes.
17616 case $ac_im_incroot in
17618 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17620 case $ac_im_usrlibdir in
17621 /usr/lib | /lib) ;;
17622 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17626 rm -fr conftest.dir
17629 # Standard set of common directories for X headers.
17630 # Check X11 before X11Rn because it is often a symlink to the current release.
17642 /usr/local/X11/include
17643 /usr/local/X11R6/include
17644 /usr/local/X11R5/include
17645 /usr/local/X11R4/include
17647 /usr/local/include/X11
17648 /usr/local/include/X11R6
17649 /usr/local/include/X11R5
17650 /usr/local/include/X11R4
17654 /usr/XFree86/include/X11
17658 /usr/unsupported/include
17659 /usr/athena/include
17660 /usr/local/x11r5/include
17661 /usr/lpp/Xamples/include
17663 /usr/openwin/include
17664 /usr/openwin/share/include'
17666 if test "$ac_x_includes" = no; then
17667 # Guess where to find include files, by looking for Intrinsic.h.
17668 # First, try using that file with no special directory specified.
17669 cat >conftest.$ac_ext <<_ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675 #include <X11/Intrinsic.h>
17677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } >/dev/null; then
17685 if test -s conftest.err; then
17686 ac_cpp_err=$ac_c_preproc_warn_flag
17687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17694 if test -z "$ac_cpp_err"; then
17695 # We can compile using X headers with no special include directory.
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 for ac_dir in $ac_x_header_dirs; do
17702 if test -r "$ac_dir/X11/Intrinsic.h"; then
17703 ac_x_includes=$ac_dir
17708 rm -f conftest.err conftest.$ac_ext
17709 fi # $ac_x_includes = no
17711 if test "$ac_x_libraries" = no; then
17712 # Check for the libraries.
17713 # See if we find them without any special options.
17714 # Don't add to $LIBS permanently.
17717 cat >conftest.$ac_ext <<_ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 #include <X11/Intrinsic.h>
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734 (eval $ac_link) 2>conftest.er1
17736 grep -v '^ *+' conftest.er1 >conftest.err
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -z "$ac_c_werror_flag"
17742 || test ! -s conftest.err'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17755 # We can link X programs with no special library path.
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17762 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17764 # Don't even attempt the hair of trying to link an X program!
17765 for ac_extension in a so sl; do
17766 if test -r $ac_dir/libXt.$ac_extension; then
17767 ac_x_libraries=$ac_dir
17773 rm -f conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17775 fi # $ac_x_libraries = no
17777 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17778 # Didn't find X anywhere. Cache the known absence of X.
17779 ac_cv_have_x="have_x=no"
17781 # Record where we found X for the cache.
17782 ac_cv_have_x="have_x=yes \
17783 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17788 eval "$ac_cv_have_x"
17791 if test "$have_x" != yes; then
17792 echo "$as_me:$LINENO: result: $have_x" >&5
17793 echo "${ECHO_T}$have_x" >&6
17796 # If each of the values was on the command line, it overrides each guess.
17797 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17798 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17799 # Update the cache value to reflect the command line values.
17800 ac_cv_have_x="have_x=yes \
17801 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17802 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17803 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17806 if test "$no_x" = yes; then
17807 # Not all programs may use this symbol, but it does not hurt to define it.
17809 cat >>confdefs.h <<\_ACEOF
17810 #define X_DISPLAY_MISSING 1
17813 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17815 if test -n "$x_includes"; then
17816 X_CFLAGS="$X_CFLAGS -I$x_includes"
17819 # It would also be nice to do this for all -L options, not just this one.
17820 if test -n "$x_libraries"; then
17821 X_LIBS="$X_LIBS -L$x_libraries"
17822 # For Solaris; some versions of Sun CC require a space after -R and
17823 # others require no space. Words are not sufficient . . . .
17824 case `(uname -sr) 2>/dev/null` in
17826 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17827 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17828 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17829 cat >conftest.$ac_ext <<_ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17846 (eval $ac_link) 2>conftest.er1
17848 grep -v '^ *+' conftest.er1 >conftest.err
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -z "$ac_c_werror_flag"
17854 || test ! -s conftest.err'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest$ac_exeext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17873 rm -f conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17875 if test $ac_R_nospace = yes; then
17876 echo "$as_me:$LINENO: result: no" >&5
17877 echo "${ECHO_T}no" >&6
17878 X_LIBS="$X_LIBS -R$x_libraries"
17880 LIBS="$ac_xsave_LIBS -R $x_libraries"
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17896 rm -f conftest.$ac_objext conftest$ac_exeext
17897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17898 (eval $ac_link) 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_c_werror_flag"
17906 || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest$ac_exeext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17925 rm -f conftest.err conftest.$ac_objext \
17926 conftest$ac_exeext conftest.$ac_ext
17927 if test $ac_R_space = yes; then
17928 echo "$as_me:$LINENO: result: yes" >&5
17929 echo "${ECHO_T}yes" >&6
17930 X_LIBS="$X_LIBS -R $x_libraries"
17932 echo "$as_me:$LINENO: result: neither works" >&5
17933 echo "${ECHO_T}neither works" >&6
17936 LIBS=$ac_xsave_LIBS
17940 # Check for system-dependent libraries X programs must link with.
17941 # Do this before checking for the system-independent R6 libraries
17942 # (-lICE), since we may need -lsocket or whatever for X linking.
17944 if test "$ISC" = yes; then
17945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17947 # Martyn Johnson says this is needed for Ultrix, if the X
17948 # libraries were built with DECnet support. And Karl Berry says
17949 # the Alpha needs dnet_stub (dnet does not exist).
17950 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17958 /* Override any gcc2 internal prototype to avoid an error. */
17962 /* We use char because int might match the return type of a gcc2
17963 builtin and then its argument prototype would still apply. */
17964 char XOpenDisplay ();
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975 (eval $ac_link) 2>conftest.er1
17977 grep -v '^ *+' conftest.er1 >conftest.err
17979 cat conftest.err >&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } &&
17982 { ac_try='test -z "$ac_c_werror_flag"
17983 || test ! -s conftest.err'
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; } &&
17989 { ac_try='test -s conftest$ac_exeext'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; }; then
17997 echo "$as_me: failed program was:" >&5
17998 sed 's/^/| /' conftest.$ac_ext >&5
18000 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18001 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18002 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 ac_check_lib_save_LIBS=$LIBS
18006 LIBS="-ldnet $LIBS"
18007 cat >conftest.$ac_ext <<_ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h. */
18014 /* Override any gcc2 internal prototype to avoid an error. */
18018 /* We use char because int might match the return type of a gcc2
18019 builtin and then its argument prototype would still apply. */
18029 rm -f conftest.$ac_objext conftest$ac_exeext
18030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18031 (eval $ac_link) 2>conftest.er1
18033 grep -v '^ *+' conftest.er1 >conftest.err
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } &&
18038 { ac_try='test -z "$ac_c_werror_flag"
18039 || test ! -s conftest.err'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; } &&
18045 { ac_try='test -s conftest$ac_exeext'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; }; then
18051 ac_cv_lib_dnet_dnet_ntoa=yes
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18056 ac_cv_lib_dnet_dnet_ntoa=no
18058 rm -f conftest.err conftest.$ac_objext \
18059 conftest$ac_exeext conftest.$ac_ext
18060 LIBS=$ac_check_lib_save_LIBS
18062 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18063 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18064 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18065 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18068 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18069 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18070 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18071 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 ac_check_lib_save_LIBS=$LIBS
18075 LIBS="-ldnet_stub $LIBS"
18076 cat >conftest.$ac_ext <<_ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18083 /* Override any gcc2 internal prototype to avoid an error. */
18087 /* We use char because int might match the return type of a gcc2
18088 builtin and then its argument prototype would still apply. */
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18100 (eval $ac_link) 2>conftest.er1
18102 grep -v '^ *+' conftest.er1 >conftest.err
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
18107 { ac_try='test -z "$ac_c_werror_flag"
18108 || test ! -s conftest.err'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18120 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18122 echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 ac_cv_lib_dnet_stub_dnet_ntoa=no
18127 rm -f conftest.err conftest.$ac_objext \
18128 conftest$ac_exeext conftest.$ac_ext
18129 LIBS=$ac_check_lib_save_LIBS
18131 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18132 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18133 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18134 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18139 rm -f conftest.err conftest.$ac_objext \
18140 conftest$ac_exeext conftest.$ac_ext
18141 LIBS="$ac_xsave_LIBS"
18143 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18144 # to get the SysV transport functions.
18145 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18147 # The nsl library prevents programs from opening the X display
18148 # on Irix 5.2, according to T.E. Dickey.
18149 # The functions gethostbyname, getservbyname, and inet_addr are
18150 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18151 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18152 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18153 if test "${ac_cv_func_gethostbyname+set}" = set; then
18154 echo $ECHO_N "(cached) $ECHO_C" >&6
18156 cat >conftest.$ac_ext <<_ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18162 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18164 #define gethostbyname innocuous_gethostbyname
18166 /* System header to define __stub macros and hopefully few prototypes,
18167 which can conflict with char gethostbyname (); below.
18168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18169 <limits.h> exists even on freestanding compilers. */
18172 # include <limits.h>
18174 # include <assert.h>
18177 #undef gethostbyname
18179 /* Override any gcc2 internal prototype to avoid an error. */
18184 /* We use char because int might match the return type of a gcc2
18185 builtin and then its argument prototype would still apply. */
18186 char gethostbyname ();
18187 /* The GNU C library defines this for functions which it implements
18188 to always fail with ENOSYS. Some functions are actually named
18189 something starting with __ and the normal name is an alias. */
18190 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18193 char (*f) () = gethostbyname;
18202 return f != gethostbyname;
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18209 (eval $ac_link) 2>conftest.er1
18211 grep -v '^ *+' conftest.er1 >conftest.err
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest$ac_exeext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_cv_func_gethostbyname=yes
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18234 ac_cv_func_gethostbyname=no
18236 rm -f conftest.err conftest.$ac_objext \
18237 conftest$ac_exeext conftest.$ac_ext
18239 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18240 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18242 if test $ac_cv_func_gethostbyname = no; then
18243 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18244 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18245 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 ac_check_lib_save_LIBS=$LIBS
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18257 /* Override any gcc2 internal prototype to avoid an error. */
18261 /* We use char because int might match the return type of a gcc2
18262 builtin and then its argument prototype would still apply. */
18263 char gethostbyname ();
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18274 (eval $ac_link) 2>conftest.er1
18276 grep -v '^ *+' conftest.er1 >conftest.err
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
18281 { ac_try='test -z "$ac_c_werror_flag"
18282 || test ! -s conftest.err'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try='test -s conftest$ac_exeext'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_cv_lib_nsl_gethostbyname=yes
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 ac_cv_lib_nsl_gethostbyname=no
18301 rm -f conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext conftest.$ac_ext
18303 LIBS=$ac_check_lib_save_LIBS
18305 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18306 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18307 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18311 if test $ac_cv_lib_nsl_gethostbyname = no; then
18312 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18313 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18314 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 ac_check_lib_save_LIBS=$LIBS
18319 cat >conftest.$ac_ext <<_ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18326 /* Override any gcc2 internal prototype to avoid an error. */
18330 /* We use char because int might match the return type of a gcc2
18331 builtin and then its argument prototype would still apply. */
18332 char gethostbyname ();
18341 rm -f conftest.$ac_objext conftest$ac_exeext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18343 (eval $ac_link) 2>conftest.er1
18345 grep -v '^ *+' conftest.er1 >conftest.err
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
18350 { ac_try='test -z "$ac_c_werror_flag"
18351 || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest$ac_exeext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_cv_lib_bsd_gethostbyname=yes
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_cv_lib_bsd_gethostbyname=no
18370 rm -f conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18374 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18375 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18376 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18383 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18384 # socket/setsockopt and other routines are undefined under SCO ODT
18385 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18386 # on later versions), says Simon Leinen: it contains gethostby*
18387 # variants that don't use the name server (or something). -lsocket
18388 # must be given before -lnsl if both are needed. We assume that
18389 # if connect needs -lnsl, so does gethostbyname.
18390 echo "$as_me:$LINENO: checking for connect" >&5
18391 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18392 if test "${ac_cv_func_connect+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18403 #define connect innocuous_connect
18405 /* System header to define __stub macros and hopefully few prototypes,
18406 which can conflict with char connect (); below.
18407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 <limits.h> exists even on freestanding compilers. */
18411 # include <limits.h>
18413 # include <assert.h>
18418 /* Override any gcc2 internal prototype to avoid an error. */
18423 /* We use char because int might match the return type of a gcc2
18424 builtin and then its argument prototype would still apply. */
18426 /* The GNU C library defines this for functions which it implements
18427 to always fail with ENOSYS. Some functions are actually named
18428 something starting with __ and the normal name is an alias. */
18429 #if defined (__stub_connect) || defined (__stub___connect)
18432 char (*f) () = connect;
18441 return f != connect;
18446 rm -f conftest.$ac_objext conftest$ac_exeext
18447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18448 (eval $ac_link) 2>conftest.er1
18450 grep -v '^ *+' conftest.er1 >conftest.err
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
18455 { ac_try='test -z "$ac_c_werror_flag"
18456 || test ! -s conftest.err'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18468 ac_cv_func_connect=yes
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 ac_cv_func_connect=no
18475 rm -f conftest.err conftest.$ac_objext \
18476 conftest$ac_exeext conftest.$ac_ext
18478 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18479 echo "${ECHO_T}$ac_cv_func_connect" >&6
18481 if test $ac_cv_func_connect = no; then
18482 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18483 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18484 if test "${ac_cv_lib_socket_connect+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18487 ac_check_lib_save_LIBS=$LIBS
18488 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18496 /* Override any gcc2 internal prototype to avoid an error. */
18500 /* We use char because int might match the return type of a gcc2
18501 builtin and then its argument prototype would still apply. */
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18513 (eval $ac_link) 2>conftest.er1
18515 grep -v '^ *+' conftest.er1 >conftest.err
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_c_werror_flag"
18521 || test ! -s conftest.err'
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest$ac_exeext'
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_lib_socket_connect=yes
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18538 ac_cv_lib_socket_connect=no
18540 rm -f conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18544 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18545 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18546 if test $ac_cv_lib_socket_connect = yes; then
18547 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18552 # Guillermo Gomez says -lposix is necessary on A/UX.
18553 echo "$as_me:$LINENO: checking for remove" >&5
18554 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18555 if test "${ac_cv_func_remove+set}" = set; then
18556 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 cat >conftest.$ac_ext <<_ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h. */
18564 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18566 #define remove innocuous_remove
18568 /* System header to define __stub macros and hopefully few prototypes,
18569 which can conflict with char remove (); below.
18570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18571 <limits.h> exists even on freestanding compilers. */
18574 # include <limits.h>
18576 # include <assert.h>
18581 /* Override any gcc2 internal prototype to avoid an error. */
18586 /* We use char because int might match the return type of a gcc2
18587 builtin and then its argument prototype would still apply. */
18589 /* The GNU C library defines this for functions which it implements
18590 to always fail with ENOSYS. Some functions are actually named
18591 something starting with __ and the normal name is an alias. */
18592 #if defined (__stub_remove) || defined (__stub___remove)
18595 char (*f) () = remove;
18604 return f != remove;
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18611 (eval $ac_link) 2>conftest.er1
18613 grep -v '^ *+' conftest.er1 >conftest.err
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest$ac_exeext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_func_remove=yes
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_cv_func_remove=no
18638 rm -f conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18641 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18642 echo "${ECHO_T}$ac_cv_func_remove" >&6
18644 if test $ac_cv_func_remove = no; then
18645 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18646 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18647 if test "${ac_cv_lib_posix_remove+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lposix $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18659 /* Override any gcc2 internal prototype to avoid an error. */
18663 /* We use char because int might match the return type of a gcc2
18664 builtin and then its argument prototype would still apply. */
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676 (eval $ac_link) 2>conftest.er1
18678 grep -v '^ *+' conftest.er1 >conftest.err
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try='test -z "$ac_c_werror_flag"
18684 || test ! -s conftest.err'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest$ac_exeext'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696 ac_cv_lib_posix_remove=yes
18698 echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18701 ac_cv_lib_posix_remove=no
18703 rm -f conftest.err conftest.$ac_objext \
18704 conftest$ac_exeext conftest.$ac_ext
18705 LIBS=$ac_check_lib_save_LIBS
18707 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18708 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18709 if test $ac_cv_lib_posix_remove = yes; then
18710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18715 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18716 echo "$as_me:$LINENO: checking for shmat" >&5
18717 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18718 if test "${ac_cv_func_shmat+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18729 #define shmat innocuous_shmat
18731 /* System header to define __stub macros and hopefully few prototypes,
18732 which can conflict with char shmat (); below.
18733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734 <limits.h> exists even on freestanding compilers. */
18737 # include <limits.h>
18739 # include <assert.h>
18744 /* Override any gcc2 internal prototype to avoid an error. */
18749 /* We use char because int might match the return type of a gcc2
18750 builtin and then its argument prototype would still apply. */
18752 /* The GNU C library defines this for functions which it implements
18753 to always fail with ENOSYS. Some functions are actually named
18754 something starting with __ and the normal name is an alias. */
18755 #if defined (__stub_shmat) || defined (__stub___shmat)
18758 char (*f) () = shmat;
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774 (eval $ac_link) 2>conftest.er1
18776 grep -v '^ *+' conftest.er1 >conftest.err
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag"
18782 || test ! -s conftest.err'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try='test -s conftest$ac_exeext'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18794 ac_cv_func_shmat=yes
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18799 ac_cv_func_shmat=no
18801 rm -f conftest.err conftest.$ac_objext \
18802 conftest$ac_exeext conftest.$ac_ext
18804 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18805 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18807 if test $ac_cv_func_shmat = no; then
18808 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18809 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18810 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 ac_check_lib_save_LIBS=$LIBS
18815 cat >conftest.$ac_ext <<_ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 /* Override any gcc2 internal prototype to avoid an error. */
18826 /* We use char because int might match the return type of a gcc2
18827 builtin and then its argument prototype would still apply. */
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839 (eval $ac_link) 2>conftest.er1
18841 grep -v '^ *+' conftest.er1 >conftest.err
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
18846 { ac_try='test -z "$ac_c_werror_flag"
18847 || test ! -s conftest.err'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; } &&
18853 { ac_try='test -s conftest$ac_exeext'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; }; then
18859 ac_cv_lib_ipc_shmat=yes
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ac_cv_lib_ipc_shmat=no
18866 rm -f conftest.err conftest.$ac_objext \
18867 conftest$ac_exeext conftest.$ac_ext
18868 LIBS=$ac_check_lib_save_LIBS
18870 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18871 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18872 if test $ac_cv_lib_ipc_shmat = yes; then
18873 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18879 # Check for libraries that X11R6 Xt/Xaw programs need.
18880 ac_save_LDFLAGS=$LDFLAGS
18881 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18882 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18883 # check for ICE first), but we must link in the order -lSM -lICE or
18884 # we get undefined symbols. So assume we have SM if we have ICE.
18885 # These have to be linked with before -lX11, unlike the other
18886 # libraries we check for below, so use a different variable.
18887 # John Interrante, Karl Berry
18888 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18889 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18890 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 ac_check_lib_save_LIBS=$LIBS
18894 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18895 cat >conftest.$ac_ext <<_ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18902 /* Override any gcc2 internal prototype to avoid an error. */
18906 /* We use char because int might match the return type of a gcc2
18907 builtin and then its argument prototype would still apply. */
18908 char IceConnectionNumber ();
18912 IceConnectionNumber ();
18917 rm -f conftest.$ac_objext conftest$ac_exeext
18918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18919 (eval $ac_link) 2>conftest.er1
18921 grep -v '^ *+' conftest.er1 >conftest.err
18923 cat conftest.err >&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } &&
18926 { ac_try='test -z "$ac_c_werror_flag"
18927 || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest$ac_exeext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_lib_ICE_IceConnectionNumber=yes
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_lib_ICE_IceConnectionNumber=no
18946 rm -f conftest.err conftest.$ac_objext \
18947 conftest$ac_exeext conftest.$ac_ext
18948 LIBS=$ac_check_lib_save_LIBS
18950 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18951 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18952 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18953 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18956 LDFLAGS=$ac_save_LDFLAGS
19018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19020 echo "$as_me:$LINENO: checking for $ac_header" >&5
19021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19028 # Is the header compilable?
19029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19031 cat >conftest.$ac_ext <<_ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 $ac_includes_default
19038 #include <$ac_header>
19040 rm -f conftest.$ac_objext
19041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19042 (eval $ac_compile) 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } &&
19049 { ac_try='test -z "$ac_c_werror_flag"
19050 || test ! -s conftest.err'
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; } &&
19056 { ac_try='test -s conftest.$ac_objext'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_header_compiler=yes
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ac_header_compiler=no
19069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19071 echo "${ECHO_T}$ac_header_compiler" >&6
19073 # Is the header present?
19074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19076 cat >conftest.$ac_ext <<_ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19082 #include <$ac_header>
19084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19087 grep -v '^ *+' conftest.er1 >conftest.err
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } >/dev/null; then
19092 if test -s conftest.err; then
19093 ac_cpp_err=$ac_c_preproc_warn_flag
19094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19101 if test -z "$ac_cpp_err"; then
19102 ac_header_preproc=yes
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 ac_header_preproc=no
19109 rm -f conftest.err conftest.$ac_ext
19110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19111 echo "${ECHO_T}$ac_header_preproc" >&6
19113 # So? What about this header?
19114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19120 ac_header_preproc=yes
19123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19137 ## ------------------------------------------ ##
19138 ## Report this to the AC_PACKAGE_NAME lists. ##
19139 ## ------------------------------------------ ##
19142 sed "s/^/$as_me: WARNING: /" >&2
19145 echo "$as_me:$LINENO: checking for $ac_header" >&5
19146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 eval "$as_ac_Header=\$ac_header_preproc"
19152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19157 cat >>confdefs.h <<_ACEOF
19158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19165 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19166 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19167 if test "${ac_cv_header_stdc+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19170 cat >conftest.$ac_ext <<_ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h. */
19176 #include <stdlib.h>
19177 #include <stdarg.h>
19178 #include <string.h>
19189 rm -f conftest.$ac_objext
19190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19191 (eval $ac_compile) 2>conftest.er1
19193 grep -v '^ *+' conftest.er1 >conftest.err
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try='test -z "$ac_c_werror_flag"
19199 || test ! -s conftest.err'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } &&
19205 { ac_try='test -s conftest.$ac_objext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 ac_cv_header_stdc=yes
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_cv_header_stdc=no
19218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19220 if test $ac_cv_header_stdc = yes; then
19221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19222 cat >conftest.$ac_ext <<_ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19228 #include <string.h>
19231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19232 $EGREP "memchr" >/dev/null 2>&1; then
19235 ac_cv_header_stdc=no
19241 if test $ac_cv_header_stdc = yes; then
19242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19243 cat >conftest.$ac_ext <<_ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19249 #include <stdlib.h>
19252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19253 $EGREP "free" >/dev/null 2>&1; then
19256 ac_cv_header_stdc=no
19262 if test $ac_cv_header_stdc = yes; then
19263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19264 if test "$cross_compiling" = yes; then
19267 cat >conftest.$ac_ext <<_ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19274 #if ((' ' & 0x0FF) == 0x020)
19275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19278 # define ISLOWER(c) \
19279 (('a' <= (c) && (c) <= 'i') \
19280 || ('j' <= (c) && (c) <= 'r') \
19281 || ('s' <= (c) && (c) <= 'z'))
19282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19290 for (i = 0; i < 256; i++)
19291 if (XOR (islower (i), ISLOWER (i))
19292 || toupper (i) != TOUPPER (i))
19297 rm -f conftest$ac_exeext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19299 (eval $ac_link) 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19310 echo "$as_me: program exited with status $ac_status" >&5
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ( exit $ac_status )
19315 ac_cv_header_stdc=no
19317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19321 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19322 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19323 if test $ac_cv_header_stdc = yes; then
19325 cat >>confdefs.h <<\_ACEOF
19326 #define STDC_HEADERS 1
19331 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19332 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19333 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19334 echo $ECHO_N "(cached) $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 <sys/types.h>
19346 return makedev(0, 0);
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19353 (eval $ac_link) 2>conftest.er1
19355 grep -v '^ *+' conftest.er1 >conftest.err
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
19360 { ac_try='test -z "$ac_c_werror_flag"
19361 || test ! -s conftest.err'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest$ac_exeext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_cv_header_sys_types_h_makedev=yes
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 ac_cv_header_sys_types_h_makedev=no
19380 rm -f conftest.err conftest.$ac_objext \
19381 conftest$ac_exeext conftest.$ac_ext
19384 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19385 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19387 if test $ac_cv_header_sys_types_h_makedev = no; then
19388 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19389 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19390 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19391 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19395 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19397 # Is the header compilable?
19398 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19399 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19400 cat >conftest.$ac_ext <<_ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19406 $ac_includes_default
19407 #include <sys/mkdev.h>
19409 rm -f conftest.$ac_objext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19411 (eval $ac_compile) 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -z "$ac_c_werror_flag"
19419 || test ! -s conftest.err'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; } &&
19425 { ac_try='test -s conftest.$ac_objext'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; }; then
19431 ac_header_compiler=yes
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 ac_header_compiler=no
19438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19440 echo "${ECHO_T}$ac_header_compiler" >&6
19442 # Is the header present?
19443 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19444 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 #include <sys/mkdev.h>
19453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } >/dev/null; then
19461 if test -s conftest.err; then
19462 ac_cpp_err=$ac_c_preproc_warn_flag
19463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19470 if test -z "$ac_cpp_err"; then
19471 ac_header_preproc=yes
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476 ac_header_preproc=no
19478 rm -f conftest.err conftest.$ac_ext
19479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19480 echo "${ECHO_T}$ac_header_preproc" >&6
19482 # So? What about this header?
19483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19485 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19486 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19487 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19488 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19489 ac_header_preproc=yes
19492 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19493 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19494 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19495 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19496 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19497 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19498 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19499 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19501 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19503 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19506 ## ------------------------------------------ ##
19507 ## Report this to the AC_PACKAGE_NAME lists. ##
19508 ## ------------------------------------------ ##
19511 sed "s/^/$as_me: WARNING: /" >&2
19514 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19515 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19516 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19517 echo $ECHO_N "(cached) $ECHO_C" >&6
19519 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19522 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19525 if test $ac_cv_header_sys_mkdev_h = yes; then
19527 cat >>confdefs.h <<\_ACEOF
19528 #define MAJOR_IN_MKDEV 1
19535 if test $ac_cv_header_sys_mkdev_h = no; then
19536 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19537 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19538 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19539 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19543 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19545 # Is the header compilable?
19546 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19547 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19548 cat >conftest.$ac_ext <<_ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554 $ac_includes_default
19555 #include <sys/sysmacros.h>
19557 rm -f conftest.$ac_objext
19558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19559 (eval $ac_compile) 2>conftest.er1
19561 grep -v '^ *+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } &&
19566 { ac_try='test -z "$ac_c_werror_flag"
19567 || test ! -s conftest.err'
19568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569 (eval $ac_try) 2>&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; } &&
19573 { ac_try='test -s conftest.$ac_objext'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_header_compiler=yes
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ac_header_compiler=no
19586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19588 echo "${ECHO_T}$ac_header_compiler" >&6
19590 # Is the header present?
19591 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19592 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 #include <sys/sysmacros.h>
19601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19604 grep -v '^ *+' conftest.er1 >conftest.err
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } >/dev/null; then
19609 if test -s conftest.err; then
19610 ac_cpp_err=$ac_c_preproc_warn_flag
19611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19618 if test -z "$ac_cpp_err"; then
19619 ac_header_preproc=yes
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 ac_header_preproc=no
19626 rm -f conftest.err conftest.$ac_ext
19627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19628 echo "${ECHO_T}$ac_header_preproc" >&6
19630 # So? What about this header?
19631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19633 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19634 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19636 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19637 ac_header_preproc=yes
19640 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19641 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19642 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19643 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19644 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19645 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19646 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19647 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19649 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19650 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19651 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19654 ## ------------------------------------------ ##
19655 ## Report this to the AC_PACKAGE_NAME lists. ##
19656 ## ------------------------------------------ ##
19659 sed "s/^/$as_me: WARNING: /" >&2
19662 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19663 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19664 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19670 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19673 if test $ac_cv_header_sys_sysmacros_h = yes; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define MAJOR_IN_SYSMACROS 1
19690 ac_header_dirent=no
19691 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19692 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19693 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19694 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 #include <sys/types.h>
19716 rm -f conftest.$ac_objext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19720 grep -v '^ *+' conftest.er1 >conftest.err
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_c_werror_flag"
19726 || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 eval "$as_ac_Header=yes"
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 eval "$as_ac_Header=no"
19745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19750 cat >>confdefs.h <<_ACEOF
19751 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19754 ac_header_dirent=$ac_hdr; break
19758 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19759 if test $ac_header_dirent = dirent.h; then
19760 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19762 if test "${ac_cv_search_opendir+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 ac_func_search_save_LIBS=$LIBS
19766 ac_cv_search_opendir=no
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19774 /* Override any gcc2 internal prototype to avoid an error. */
19778 /* We use char because int might match the return type of a gcc2
19779 builtin and then its argument prototype would still apply. */
19789 rm -f conftest.$ac_objext conftest$ac_exeext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19791 (eval $ac_link) 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_c_werror_flag"
19799 || test ! -s conftest.err'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest$ac_exeext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 ac_cv_search_opendir="none required"
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19817 rm -f conftest.err conftest.$ac_objext \
19818 conftest$ac_exeext conftest.$ac_ext
19819 if test "$ac_cv_search_opendir" = no; then
19820 for ac_lib in dir; do
19821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19822 cat >conftest.$ac_ext <<_ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19829 /* Override any gcc2 internal prototype to avoid an error. */
19833 /* We use char because int might match the return type of a gcc2
19834 builtin and then its argument prototype would still apply. */
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19846 (eval $ac_link) 2>conftest.er1
19848 grep -v '^ *+' conftest.er1 >conftest.err
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
19853 { ac_try='test -z "$ac_c_werror_flag"
19854 || test ! -s conftest.err'
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; } &&
19860 { ac_try='test -s conftest$ac_exeext'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; }; then
19866 ac_cv_search_opendir="-l$ac_lib"
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19873 rm -f conftest.err conftest.$ac_objext \
19874 conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_func_search_save_LIBS
19879 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19880 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19881 if test "$ac_cv_search_opendir" != no; then
19882 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19887 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19888 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19889 if test "${ac_cv_search_opendir+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19892 ac_func_search_save_LIBS=$LIBS
19893 ac_cv_search_opendir=no
19894 cat >conftest.$ac_ext <<_ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19901 /* Override any gcc2 internal prototype to avoid an error. */
19905 /* We use char because int might match the return type of a gcc2
19906 builtin and then its argument prototype would still apply. */
19916 rm -f conftest.$ac_objext conftest$ac_exeext
19917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19918 (eval $ac_link) 2>conftest.er1
19920 grep -v '^ *+' conftest.er1 >conftest.err
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } &&
19925 { ac_try='test -z "$ac_c_werror_flag"
19926 || test ! -s conftest.err'
19927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928 (eval $ac_try) 2>&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; } &&
19932 { ac_try='test -s conftest$ac_exeext'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
19938 ac_cv_search_opendir="none required"
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19944 rm -f conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
19946 if test "$ac_cv_search_opendir" = no; then
19947 for ac_lib in x; do
19948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19949 cat >conftest.$ac_ext <<_ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19956 /* Override any gcc2 internal prototype to avoid an error. */
19960 /* We use char because int might match the return type of a gcc2
19961 builtin and then its argument prototype would still apply. */
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19973 (eval $ac_link) 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_c_werror_flag"
19981 || test ! -s conftest.err'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try='test -s conftest$ac_exeext'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; }; then
19993 ac_cv_search_opendir="-l$ac_lib"
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
20000 rm -f conftest.err conftest.$ac_objext \
20001 conftest$ac_exeext conftest.$ac_ext
20004 LIBS=$ac_func_search_save_LIBS
20006 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20007 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20008 if test "$ac_cv_search_opendir" != no; then
20009 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20015 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20016 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20017 if test "${ac_cv_header_stat_broken+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <sys/types.h>
20027 #include <sys/stat.h>
20029 #if defined(S_ISBLK) && defined(S_IFDIR)
20030 # if S_ISBLK (S_IFDIR)
20035 #if defined(S_ISBLK) && defined(S_IFCHR)
20036 # if S_ISBLK (S_IFCHR)
20041 #if defined(S_ISLNK) && defined(S_IFREG)
20042 # if S_ISLNK (S_IFREG)
20047 #if defined(S_ISSOCK) && defined(S_IFREG)
20048 # if S_ISSOCK (S_IFREG)
20054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055 $EGREP "You lose" >/dev/null 2>&1; then
20056 ac_cv_header_stat_broken=yes
20058 ac_cv_header_stat_broken=no
20063 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20064 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20065 if test $ac_cv_header_stat_broken = yes; then
20067 cat >>confdefs.h <<\_ACEOF
20068 #define STAT_MACROS_BROKEN 1
20073 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20074 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20075 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084 #include <sys/types.h>
20085 #include <sys/wait.h>
20086 #ifndef WEXITSTATUS
20087 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20090 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20098 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20103 rm -f conftest.$ac_objext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105 (eval $ac_compile) 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -z "$ac_c_werror_flag"
20113 || test ! -s conftest.err'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; } &&
20119 { ac_try='test -s conftest.$ac_objext'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 ac_cv_header_sys_wait_h=yes
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 ac_cv_header_sys_wait_h=no
20132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20134 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20135 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20136 if test $ac_cv_header_sys_wait_h = yes; then
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_SYS_WAIT_H 1
20144 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20145 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20146 if test "${ac_cv_header_time+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 cat >conftest.$ac_ext <<_ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <sys/types.h>
20156 #include <sys/time.h>
20162 if ((struct tm *) 0)
20168 rm -f conftest.$ac_objext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20170 (eval $ac_compile) 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -z "$ac_c_werror_flag"
20178 || test ! -s conftest.err'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; } &&
20184 { ac_try='test -s conftest.$ac_objext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 ac_cv_header_time=yes
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_header_time=no
20197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20199 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20200 echo "${ECHO_T}$ac_cv_header_time" >&6
20201 if test $ac_cv_header_time = yes; then
20203 cat >>confdefs.h <<\_ACEOF
20204 #define TIME_WITH_SYS_TIME 1
20210 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20211 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20212 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 $ac_includes_default
20225 static struct stat ac_aggr;
20226 if (ac_aggr.st_blksize)
20232 rm -f conftest.$ac_objext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20234 (eval $ac_compile) 2>conftest.er1
20236 grep -v '^ *+' conftest.er1 >conftest.err
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
20241 { ac_try='test -z "$ac_c_werror_flag"
20242 || test ! -s conftest.err'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest.$ac_objext'
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_cv_member_struct_stat_st_blksize=yes
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 cat >conftest.$ac_ext <<_ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 $ac_includes_default
20269 static struct stat ac_aggr;
20270 if (sizeof ac_aggr.st_blksize)
20276 rm -f conftest.$ac_objext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278 (eval $ac_compile) 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
20285 { ac_try='test -z "$ac_c_werror_flag"
20286 || test ! -s conftest.err'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; } &&
20292 { ac_try='test -s conftest.$ac_objext'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 ac_cv_member_struct_stat_st_blksize=yes
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20303 ac_cv_member_struct_stat_st_blksize=no
20305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20309 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20310 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20311 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20313 cat >>confdefs.h <<_ACEOF
20314 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20318 cat >>confdefs.h <<\_ACEOF
20319 #define HAVE_ST_BLKSIZE 1
20325 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20326 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20327 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20336 $ac_includes_default
20340 static struct stat ac_aggr;
20341 if (ac_aggr.st_blocks)
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349 (eval $ac_compile) 2>conftest.er1
20351 grep -v '^ *+' conftest.er1 >conftest.err
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag"
20357 || test ! -s conftest.err'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try='test -s conftest.$ac_objext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_cv_member_struct_stat_st_blocks=yes
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 cat >conftest.$ac_ext <<_ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20380 $ac_includes_default
20384 static struct stat ac_aggr;
20385 if (sizeof ac_aggr.st_blocks)
20391 rm -f conftest.$ac_objext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393 (eval $ac_compile) 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try='test -z "$ac_c_werror_flag"
20401 || test ! -s conftest.err'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; } &&
20407 { ac_try='test -s conftest.$ac_objext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_cv_member_struct_stat_st_blocks=yes
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_cv_member_struct_stat_st_blocks=no
20420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20424 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20425 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20426 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20428 cat >>confdefs.h <<_ACEOF
20429 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE_ST_BLOCKS 1
20439 "fileblocks.$ac_objext" | \
20440 *" fileblocks.$ac_objext" | \
20441 "fileblocks.$ac_objext "* | \
20442 *" fileblocks.$ac_objext "* ) ;;
20443 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20449 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20450 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20451 if test "${ac_cv_struct_tm+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 #include <sys/types.h>
20466 struct tm *tp; tp->tm_sec;
20471 rm -f conftest.$ac_objext
20472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20473 (eval $ac_compile) 2>conftest.er1
20475 grep -v '^ *+' conftest.er1 >conftest.err
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -z "$ac_c_werror_flag"
20481 || test ! -s conftest.err'
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; } &&
20487 { ac_try='test -s conftest.$ac_objext'
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20493 ac_cv_struct_tm=time.h
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20498 ac_cv_struct_tm=sys/time.h
20500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20502 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20503 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20504 if test $ac_cv_struct_tm = sys/time.h; then
20506 cat >>confdefs.h <<\_ACEOF
20507 #define TM_IN_SYS_TIME 1
20512 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20513 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20514 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 cat >conftest.$ac_ext <<_ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 #include <sys/types.h>
20524 #include <$ac_cv_struct_tm>
20530 static struct tm ac_aggr;
20531 if (ac_aggr.tm_zone)
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539 (eval $ac_compile) 2>conftest.er1
20541 grep -v '^ *+' conftest.er1 >conftest.err
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
20546 { ac_try='test -z "$ac_c_werror_flag"
20547 || test ! -s conftest.err'
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; } &&
20553 { ac_try='test -s conftest.$ac_objext'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20559 ac_cv_member_struct_tm_tm_zone=yes
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20570 #include <sys/types.h>
20571 #include <$ac_cv_struct_tm>
20577 static struct tm ac_aggr;
20578 if (sizeof ac_aggr.tm_zone)
20584 rm -f conftest.$ac_objext
20585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20586 (eval $ac_compile) 2>conftest.er1
20588 grep -v '^ *+' conftest.er1 >conftest.err
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } &&
20593 { ac_try='test -z "$ac_c_werror_flag"
20594 || test ! -s conftest.err'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; } &&
20600 { ac_try='test -s conftest.$ac_objext'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
20606 ac_cv_member_struct_tm_tm_zone=yes
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20611 ac_cv_member_struct_tm_tm_zone=no
20613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20617 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20618 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20619 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20621 cat >>confdefs.h <<_ACEOF
20622 #define HAVE_STRUCT_TM_TM_ZONE 1
20628 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20630 cat >>confdefs.h <<\_ACEOF
20631 #define HAVE_TM_ZONE 1
20635 echo "$as_me:$LINENO: checking for tzname" >&5
20636 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20637 if test "${ac_cv_var_tzname+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20647 #ifndef tzname /* For SGI. */
20648 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20659 rm -f conftest.$ac_objext conftest$ac_exeext
20660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20661 (eval $ac_link) 2>conftest.er1
20663 grep -v '^ *+' conftest.er1 >conftest.err
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
20668 { ac_try='test -z "$ac_c_werror_flag"
20669 || test ! -s conftest.err'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest$ac_exeext'
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; }; then
20681 ac_cv_var_tzname=yes
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ac_cv_var_tzname=no
20688 rm -f conftest.err conftest.$ac_objext \
20689 conftest$ac_exeext conftest.$ac_ext
20691 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20692 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20693 if test $ac_cv_var_tzname = yes; then
20695 cat >>confdefs.h <<\_ACEOF
20696 #define HAVE_TZNAME 1
20703 echo "$as_me:$LINENO: checking for utime.h" >&5
20704 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20705 if test "${ba_cv_header_utime_h+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20715 #include <sys/types.h>
20725 rm -f conftest.$ac_objext
20726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20727 (eval $ac_compile) 2>conftest.er1
20729 grep -v '^ *+' conftest.er1 >conftest.err
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
20734 { ac_try='test -z "$ac_c_werror_flag"
20735 || test ! -s conftest.err'
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20747 ba_cv_header_utime_h=yes
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ba_cv_header_utime_h=no
20754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20756 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20757 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20758 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20759 #define HAVE_UTIME_H 1
20763 echo "$as_me:$LINENO: checking for socklen_t" >&5
20764 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20765 if test "${ba_cv_header_socklen_t+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 cat >conftest.$ac_ext <<_ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20775 #include <sys/types.h>
20776 #include <sys/socket.h>
20785 rm -f conftest.$ac_objext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20787 (eval $ac_compile) 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -z "$ac_c_werror_flag"
20795 || test ! -s conftest.err'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest.$ac_objext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 ba_cv_header_socklen_t=yes
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ba_cv_header_socklen_t=no
20814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20816 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20817 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20818 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20819 #define HAVE_SOCKLEN_T 1
20823 echo "$as_me:$LINENO: checking for bigendian" >&5
20824 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20825 if test "${ba_cv_bigendian+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 if test "$cross_compiling" = yes; then
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20839 rm -f conftest$ac_exeext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20841 (eval $ac_link) 2>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ba_cv_bigendian=yes
20852 echo "$as_me: program exited with status $ac_status" >&5
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 ( exit $ac_status )
20859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20862 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20863 echo "${ECHO_T}$ba_cv_bigendian" >&6
20864 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_BIGENDIAN 1
20870 ac_cpp='$CXXCPP $CPPFLAGS'
20871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20876 echo "$as_me:$LINENO: checking for typeof" >&5
20877 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20878 if test "${ba_cv_have_typeof+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 if test "$cross_compiling" = yes; then
20882 ba_cv_have_typeof=no
20884 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20890 main(){char *a = 0; a = (typeof a)a;}
20892 rm -f conftest$ac_exeext
20893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20894 (eval $ac_link) 2>&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 ba_cv_have_typeof=yes
20905 echo "$as_me: program exited with status $ac_status" >&5
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ( exit $ac_status )
20910 ba_cv_have_typeof=no
20912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20915 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20916 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20917 test $ba_cv_have_typeof = yes &&
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_TYPEOF 1
20923 ac_cpp='$CPP $CPPFLAGS'
20924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20929 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20930 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20931 if test "${ac_cv_c_const+set}" = set; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20944 /* FIXME: Include the comments suggested by Paul. */
20945 #ifndef __cplusplus
20946 /* Ultrix mips cc rejects this. */
20947 typedef int charset[2];
20949 /* SunOS 4.1.1 cc rejects this. */
20950 char const *const *ccp;
20952 /* NEC SVR4.0.2 mips cc rejects this. */
20953 struct point {int x, y;};
20954 static struct point const zero = {0,0};
20955 /* AIX XL C 1.02.0.0 rejects this.
20956 It does not let you subtract one const X* pointer from another in
20957 an arm of an if-expression whose if-part is not a constant
20959 const char *g = "string";
20960 ccp = &g + (g ? g-g : 0);
20961 /* HPUX 7.0 cc rejects these. */
20964 ccp = (char const *const *) p;
20965 { /* SCO 3.2v4 cc rejects this. */
20967 char const *s = 0 ? (char *) 0 : (char const *) 0;
20971 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20972 int x[] = {25, 17};
20973 const int *foo = &x[0];
20976 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20977 typedef const int *iptr;
20981 { /* AIX XL C 1.02.0.0 rejects this saying
20982 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20983 struct s { int j; const int *ap[3]; };
20984 struct s *b; b->j = 5;
20986 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20987 const int foo = 10;
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997 (eval $ac_compile) 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -z "$ac_c_werror_flag"
21005 || test ! -s conftest.err'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } &&
21011 { ac_try='test -s conftest.$ac_objext'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21027 echo "${ECHO_T}$ac_cv_c_const" >&6
21028 if test $ac_cv_c_const = no; then
21030 cat >>confdefs.h <<\_ACEOF
21038 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21039 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21041 # The order of these tests is important.
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 #include <sys/statvfs.h>
21049 #include <sys/fstyp.h>
21051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } >/dev/null; then
21059 if test -s conftest.err; then
21060 ac_cpp_err=$ac_c_preproc_warn_flag
21061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21068 if test -z "$ac_cpp_err"; then
21069 cat >>confdefs.h <<\_ACEOF
21070 #define FSTYPE_STATVFS 1
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21079 rm -f conftest.err conftest.$ac_ext
21080 if test $fstype = no; then
21081 cat >conftest.$ac_ext <<_ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21087 #include <sys/statfs.h>
21088 #include <sys/fstyp.h>
21090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } >/dev/null; then
21098 if test -s conftest.err; then
21099 ac_cpp_err=$ac_c_preproc_warn_flag
21100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21107 if test -z "$ac_cpp_err"; then
21108 cat >>confdefs.h <<\_ACEOF
21109 #define FSTYPE_USG_STATFS 1
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21118 rm -f conftest.err conftest.$ac_ext
21120 if test $fstype = no; then
21121 cat >conftest.$ac_ext <<_ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 #include <sys/statfs.h>
21128 #include <sys/vmount.h>
21130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21133 grep -v '^ *+' conftest.er1 >conftest.err
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } >/dev/null; then
21138 if test -s conftest.err; then
21139 ac_cpp_err=$ac_c_preproc_warn_flag
21140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21147 if test -z "$ac_cpp_err"; then
21148 cat >>confdefs.h <<\_ACEOF
21149 #define FSTYPE_AIX_STATFS 1
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21158 rm -f conftest.err conftest.$ac_ext
21160 if test $fstype = no; then
21161 cat >conftest.$ac_ext <<_ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <mntent.h>
21169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21172 grep -v '^ *+' conftest.er1 >conftest.err
21174 cat conftest.err >&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } >/dev/null; then
21177 if test -s conftest.err; then
21178 ac_cpp_err=$ac_c_preproc_warn_flag
21179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21186 if test -z "$ac_cpp_err"; then
21187 cat >>confdefs.h <<\_ACEOF
21188 #define FSTYPE_MNTENT 1
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21197 rm -f conftest.err conftest.$ac_ext
21199 if test $fstype = no; then
21200 cat >conftest.$ac_ext <<_ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21206 #include <sys/mount.h>
21209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21210 $EGREP "f_type;" >/dev/null 2>&1; then
21211 cat >>confdefs.h <<\_ACEOF
21212 #define FSTYPE_STATFS 1
21219 if test $fstype = no; then
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 #include <sys/mount.h>
21227 #include <sys/fs_types.h>
21229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } >/dev/null; then
21237 if test -s conftest.err; then
21238 ac_cpp_err=$ac_c_preproc_warn_flag
21239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21246 if test -z "$ac_cpp_err"; then
21247 cat >>confdefs.h <<\_ACEOF
21248 #define FSTYPE_GETMNT 1
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21257 rm -f conftest.err conftest.$ac_ext
21259 echo "$as_me:$LINENO: result: $fstype" >&5
21260 echo "${ECHO_T}$fstype" >&6
21262 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21263 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21264 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21265 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21269 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21271 # Is the header compilable?
21272 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21273 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21274 cat >conftest.$ac_ext <<_ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 $ac_includes_default
21281 #include <sys/statvfs.h>
21283 rm -f conftest.$ac_objext
21284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21285 (eval $ac_compile) 2>conftest.er1
21287 grep -v '^ *+' conftest.er1 >conftest.err
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } &&
21292 { ac_try='test -z "$ac_c_werror_flag"
21293 || test ! -s conftest.err'
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; } &&
21299 { ac_try='test -s conftest.$ac_objext'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 ac_header_compiler=yes
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_header_compiler=no
21312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21314 echo "${ECHO_T}$ac_header_compiler" >&6
21316 # Is the header present?
21317 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21318 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21319 cat >conftest.$ac_ext <<_ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 #include <sys/statvfs.h>
21327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21330 grep -v '^ *+' conftest.er1 >conftest.err
21332 cat conftest.err >&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } >/dev/null; then
21335 if test -s conftest.err; then
21336 ac_cpp_err=$ac_c_preproc_warn_flag
21337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21344 if test -z "$ac_cpp_err"; then
21345 ac_header_preproc=yes
21347 echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21350 ac_header_preproc=no
21352 rm -f conftest.err conftest.$ac_ext
21353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21354 echo "${ECHO_T}$ac_header_preproc" >&6
21356 # So? What about this header?
21357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21359 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21360 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21361 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21362 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21363 ac_header_preproc=yes
21366 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21367 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21368 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21369 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21371 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21373 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21375 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21377 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21380 ## ------------------------------------------ ##
21381 ## Report this to the AC_PACKAGE_NAME lists. ##
21382 ## ------------------------------------------ ##
21385 sed "s/^/$as_me: WARNING: /" >&2
21388 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21389 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21390 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21396 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21399 if test $ac_cv_header_sys_statvfs_h = yes; then
21401 cat >>confdefs.h <<\_ACEOF
21402 #define HAVE_SYS_STATVFS_H 1
21409 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21410 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21411 if test "${ac_cv_type_signal+set}" = set; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 #include <sys/types.h>
21421 #include <signal.h>
21426 extern "C" void (*signal (int, void (*)(int)))(int);
21428 void (*signal ()) ();
21439 rm -f conftest.$ac_objext
21440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21441 (eval $ac_compile) 2>conftest.er1
21443 grep -v '^ *+' conftest.er1 >conftest.err
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -z "$ac_c_werror_flag"
21449 || test ! -s conftest.err'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; } &&
21455 { ac_try='test -s conftest.$ac_objext'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; }; then
21461 ac_cv_type_signal=void
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ac_cv_type_signal=int
21468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21470 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21471 echo "${ECHO_T}$ac_cv_type_signal" >&6
21473 cat >>confdefs.h <<_ACEOF
21474 #define RETSIGTYPE $ac_cv_type_signal
21479 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21480 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21481 if test "${bash_cv_signal_vintage+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 cat >conftest.$ac_ext <<_ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21491 #include <signal.h>
21497 struct sigaction sa;
21498 sigemptyset(&ss); sigsuspend(&ss);
21499 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21500 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21508 (eval $ac_link) 2>conftest.er1
21510 grep -v '^ *+' conftest.er1 >conftest.err
21512 cat conftest.err >&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); } &&
21515 { ac_try='test -z "$ac_c_werror_flag"
21516 || test ! -s conftest.err'
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518 (eval $ac_try) 2>&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; } &&
21522 { ac_try='test -s conftest$ac_exeext'
21523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21524 (eval $ac_try) 2>&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); }; }; then
21528 bash_cv_signal_vintage="posix"
21530 echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21534 cat >conftest.$ac_ext <<_ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21540 #include <signal.h>
21545 int mask = sigmask(SIGINT);
21546 sigsetmask(mask); sigblock(mask); sigpause(mask);
21552 rm -f conftest.$ac_objext conftest$ac_exeext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554 (eval $ac_link) 2>conftest.er1
21556 grep -v '^ *+' conftest.er1 >conftest.err
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } &&
21561 { ac_try='test -z "$ac_c_werror_flag"
21562 || test ! -s conftest.err'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; } &&
21568 { ac_try='test -s conftest$ac_exeext'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; }; then
21574 bash_cv_signal_vintage="4.2bsd"
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21580 cat >conftest.$ac_ext <<_ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21587 #include <signal.h>
21588 RETSIGTYPE foo() { }
21593 int mask = sigmask(SIGINT);
21594 sigset(SIGINT, foo); sigrelse(SIGINT);
21595 sighold(SIGINT); sigpause(SIGINT);
21601 rm -f conftest.$ac_objext conftest$ac_exeext
21602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21603 (eval $ac_link) 2>conftest.er1
21605 grep -v '^ *+' conftest.er1 >conftest.err
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } &&
21610 { ac_try='test -z "$ac_c_werror_flag"
21611 || test ! -s conftest.err'
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; } &&
21617 { ac_try='test -s conftest$ac_exeext'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; }; then
21623 bash_cv_signal_vintage="svr3"
21625 echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21628 bash_cv_signal_vintage="v7"
21631 rm -f conftest.err conftest.$ac_objext \
21632 conftest$ac_exeext conftest.$ac_ext
21635 rm -f conftest.err conftest.$ac_objext \
21636 conftest$ac_exeext conftest.$ac_ext
21639 rm -f conftest.err conftest.$ac_objext \
21640 conftest$ac_exeext conftest.$ac_ext
21644 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21645 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21646 if test "$bash_cv_signal_vintage" = "posix"; then
21647 cat >>confdefs.h <<\_ACEOF
21648 #define HAVE_POSIX_SIGNALS 1
21651 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21652 cat >>confdefs.h <<\_ACEOF
21653 #define HAVE_BSD_SIGNALS 1
21656 elif test "$bash_cv_signal_vintage" = "svr3"; then
21657 cat >>confdefs.h <<\_ACEOF
21658 #define HAVE_USG_SIGHOLD 1
21663 echo "$as_me:$LINENO: checking for mode_t" >&5
21664 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21665 if test "${ac_cv_type_mode_t+set}" = set; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 $ac_includes_default
21680 if (sizeof (mode_t))
21686 rm -f conftest.$ac_objext
21687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21688 (eval $ac_compile) 2>conftest.er1
21690 grep -v '^ *+' conftest.er1 >conftest.err
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } &&
21695 { ac_try='test -z "$ac_c_werror_flag"
21696 || test ! -s conftest.err'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; } &&
21702 { ac_try='test -s conftest.$ac_objext'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; }; then
21708 ac_cv_type_mode_t=yes
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21713 ac_cv_type_mode_t=no
21715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21717 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21718 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21719 if test $ac_cv_type_mode_t = yes; then
21723 cat >>confdefs.h <<_ACEOF
21729 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21730 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21731 if test "${ac_cv_type_uid_t+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 cat >conftest.$ac_ext <<_ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 #include <sys/types.h>
21743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21744 $EGREP "uid_t" >/dev/null 2>&1; then
21745 ac_cv_type_uid_t=yes
21747 ac_cv_type_uid_t=no
21752 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21753 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21754 if test $ac_cv_type_uid_t = no; then
21756 cat >>confdefs.h <<\_ACEOF
21761 cat >>confdefs.h <<\_ACEOF
21767 echo "$as_me:$LINENO: checking for size_t" >&5
21768 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21769 if test "${ac_cv_type_size_t+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 cat >conftest.$ac_ext <<_ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21778 $ac_includes_default
21784 if (sizeof (size_t))
21790 rm -f conftest.$ac_objext
21791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21792 (eval $ac_compile) 2>conftest.er1
21794 grep -v '^ *+' conftest.er1 >conftest.err
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } &&
21799 { ac_try='test -z "$ac_c_werror_flag"
21800 || test ! -s conftest.err'
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; } &&
21806 { ac_try='test -s conftest.$ac_objext'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; }; then
21812 ac_cv_type_size_t=yes
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21817 ac_cv_type_size_t=no
21819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21821 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21822 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21823 if test $ac_cv_type_size_t = yes; then
21827 cat >>confdefs.h <<_ACEOF
21828 #define size_t unsigned
21833 echo "$as_me:$LINENO: checking for pid_t" >&5
21834 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21835 if test "${ac_cv_type_pid_t+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 cat >conftest.$ac_ext <<_ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844 $ac_includes_default
21850 if (sizeof (pid_t))
21856 rm -f conftest.$ac_objext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858 (eval $ac_compile) 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } &&
21865 { ac_try='test -z "$ac_c_werror_flag"
21866 || test ! -s conftest.err'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; } &&
21872 { ac_try='test -s conftest.$ac_objext'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 ac_cv_type_pid_t=yes
21880 echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21883 ac_cv_type_pid_t=no
21885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21887 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21888 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21889 if test $ac_cv_type_pid_t = yes; then
21893 cat >>confdefs.h <<_ACEOF
21899 echo "$as_me:$LINENO: checking for off_t" >&5
21900 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21901 if test "${ac_cv_type_off_t+set}" = set; then
21902 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 $ac_includes_default
21916 if (sizeof (off_t))
21922 rm -f conftest.$ac_objext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21924 (eval $ac_compile) 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } &&
21931 { ac_try='test -z "$ac_c_werror_flag"
21932 || test ! -s conftest.err'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; } &&
21938 { ac_try='test -s conftest.$ac_objext'
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; }; then
21944 ac_cv_type_off_t=yes
21946 echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21949 ac_cv_type_off_t=no
21951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21953 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21954 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21955 if test $ac_cv_type_off_t = yes; then
21959 cat >>confdefs.h <<_ACEOF
21965 echo "$as_me:$LINENO: checking for ino_t" >&5
21966 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21967 if test "${ac_cv_type_ino_t+set}" = set; then
21968 echo $ECHO_N "(cached) $ECHO_C" >&6
21970 cat >conftest.$ac_ext <<_ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 $ac_includes_default
21982 if (sizeof (ino_t))
21988 rm -f conftest.$ac_objext
21989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21990 (eval $ac_compile) 2>conftest.er1
21992 grep -v '^ *+' conftest.er1 >conftest.err
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
21997 { ac_try='test -z "$ac_c_werror_flag"
21998 || test ! -s conftest.err'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest.$ac_objext'
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22010 ac_cv_type_ino_t=yes
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 ac_cv_type_ino_t=no
22017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22019 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22020 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22021 if test $ac_cv_type_ino_t = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define ino_t unsigned long
22031 echo "$as_me:$LINENO: checking for dev_t" >&5
22032 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22033 if test "${ac_cv_type_dev_t+set}" = set; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22036 cat >conftest.$ac_ext <<_ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042 $ac_includes_default
22048 if (sizeof (dev_t))
22054 rm -f conftest.$ac_objext
22055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22056 (eval $ac_compile) 2>conftest.er1
22058 grep -v '^ *+' conftest.er1 >conftest.err
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } &&
22063 { ac_try='test -z "$ac_c_werror_flag"
22064 || test ! -s conftest.err'
22065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066 (eval $ac_try) 2>&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; } &&
22070 { ac_try='test -s conftest.$ac_objext'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; }; then
22076 ac_cv_type_dev_t=yes
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22081 ac_cv_type_dev_t=no
22083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22085 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22086 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22087 if test $ac_cv_type_dev_t = yes; then
22091 cat >>confdefs.h <<_ACEOF
22092 #define dev_t unsigned long
22097 echo "$as_me:$LINENO: checking for daddr_t" >&5
22098 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22099 if test "${ac_cv_type_daddr_t+set}" = set; then
22100 echo $ECHO_N "(cached) $ECHO_C" >&6
22102 cat >conftest.$ac_ext <<_ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22108 $ac_includes_default
22114 if (sizeof (daddr_t))
22120 rm -f conftest.$ac_objext
22121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22122 (eval $ac_compile) 2>conftest.er1
22124 grep -v '^ *+' conftest.er1 >conftest.err
22126 cat conftest.err >&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } &&
22129 { ac_try='test -z "$ac_c_werror_flag"
22130 || test ! -s conftest.err'
22131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22132 (eval $ac_try) 2>&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); }; } &&
22136 { ac_try='test -s conftest.$ac_objext'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }; then
22142 ac_cv_type_daddr_t=yes
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ac_cv_type_daddr_t=no
22149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22151 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22152 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22153 if test $ac_cv_type_daddr_t = yes; then
22157 cat >>confdefs.h <<_ACEOF
22158 #define daddr_t long
22163 echo "$as_me:$LINENO: checking for major_t" >&5
22164 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22165 if test "${ac_cv_type_major_t+set}" = set; then
22166 echo $ECHO_N "(cached) $ECHO_C" >&6
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 $ac_includes_default
22180 if (sizeof (major_t))
22186 rm -f conftest.$ac_objext
22187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22188 (eval $ac_compile) 2>conftest.er1
22190 grep -v '^ *+' conftest.er1 >conftest.err
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } &&
22195 { ac_try='test -z "$ac_c_werror_flag"
22196 || test ! -s conftest.err'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; } &&
22202 { ac_try='test -s conftest.$ac_objext'
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; }; then
22208 ac_cv_type_major_t=yes
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22213 ac_cv_type_major_t=no
22215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22217 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22218 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22219 if test $ac_cv_type_major_t = yes; then
22223 cat >>confdefs.h <<_ACEOF
22224 #define major_t int
22229 echo "$as_me:$LINENO: checking for minor_t" >&5
22230 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22231 if test "${ac_cv_type_minor_t+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 cat >conftest.$ac_ext <<_ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 $ac_includes_default
22246 if (sizeof (minor_t))
22252 rm -f conftest.$ac_objext
22253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22254 (eval $ac_compile) 2>conftest.er1
22256 grep -v '^ *+' conftest.er1 >conftest.err
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
22261 { ac_try='test -z "$ac_c_werror_flag"
22262 || test ! -s conftest.err'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; } &&
22268 { ac_try='test -s conftest.$ac_objext'
22269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270 (eval $ac_try) 2>&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); }; }; then
22274 ac_cv_type_minor_t=yes
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22279 ac_cv_type_minor_t=no
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22283 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22284 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22285 if test $ac_cv_type_minor_t = yes; then
22289 cat >>confdefs.h <<_ACEOF
22290 #define minor_t int
22295 echo "$as_me:$LINENO: checking for ssize_t" >&5
22296 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22297 if test "${ac_cv_type_ssize_t+set}" = set; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 cat >conftest.$ac_ext <<_ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22306 $ac_includes_default
22312 if (sizeof (ssize_t))
22318 rm -f conftest.$ac_objext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>conftest.er1
22322 grep -v '^ *+' conftest.er1 >conftest.err
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
22327 { ac_try='test -z "$ac_c_werror_flag"
22328 || test ! -s conftest.err'
22329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330 (eval $ac_try) 2>&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; } &&
22334 { ac_try='test -s conftest.$ac_objext'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 ac_cv_type_ssize_t=yes
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22345 ac_cv_type_ssize_t=no
22347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22349 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22350 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22351 if test $ac_cv_type_ssize_t = yes; then
22355 cat >>confdefs.h <<_ACEOF
22356 #define ssize_t int
22361 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22362 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22363 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 $ac_includes_default
22376 static struct stat ac_aggr;
22377 if (ac_aggr.st_blocks)
22383 rm -f conftest.$ac_objext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385 (eval $ac_compile) 2>conftest.er1
22387 grep -v '^ *+' conftest.er1 >conftest.err
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } &&
22392 { ac_try='test -z "$ac_c_werror_flag"
22393 || test ! -s conftest.err'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; } &&
22399 { ac_try='test -s conftest.$ac_objext'
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405 ac_cv_member_struct_stat_st_blocks=yes
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 cat >conftest.$ac_ext <<_ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22416 $ac_includes_default
22420 static struct stat ac_aggr;
22421 if (sizeof ac_aggr.st_blocks)
22427 rm -f conftest.$ac_objext
22428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22429 (eval $ac_compile) 2>conftest.er1
22431 grep -v '^ *+' conftest.er1 >conftest.err
22433 cat conftest.err >&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
22436 { ac_try='test -z "$ac_c_werror_flag"
22437 || test ! -s conftest.err'
22438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; } &&
22443 { ac_try='test -s conftest.$ac_objext'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; }; then
22449 ac_cv_member_struct_stat_st_blocks=yes
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 ac_cv_member_struct_stat_st_blocks=no
22456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22461 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22462 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22464 cat >>confdefs.h <<_ACEOF
22465 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22469 cat >>confdefs.h <<\_ACEOF
22470 #define HAVE_ST_BLOCKS 1
22475 "fileblocks.$ac_objext" | \
22476 *" fileblocks.$ac_objext" | \
22477 "fileblocks.$ac_objext "* | \
22478 *" fileblocks.$ac_objext "* ) ;;
22479 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22486 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22487 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22488 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22491 cat >conftest.$ac_ext <<_ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22497 $ac_includes_default
22501 static struct stat ac_aggr;
22502 if (ac_aggr.st_rdev)
22508 rm -f conftest.$ac_objext
22509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22510 (eval $ac_compile) 2>conftest.er1
22512 grep -v '^ *+' conftest.er1 >conftest.err
22514 cat conftest.err >&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); } &&
22517 { ac_try='test -z "$ac_c_werror_flag"
22518 || test ! -s conftest.err'
22519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520 (eval $ac_try) 2>&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; } &&
22524 { ac_try='test -s conftest.$ac_objext'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; }; then
22530 ac_cv_member_struct_stat_st_rdev=yes
22532 echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22535 cat >conftest.$ac_ext <<_ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h. */
22541 $ac_includes_default
22545 static struct stat ac_aggr;
22546 if (sizeof ac_aggr.st_rdev)
22552 rm -f conftest.$ac_objext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22554 (eval $ac_compile) 2>conftest.er1
22556 grep -v '^ *+' conftest.er1 >conftest.err
22558 cat conftest.err >&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } &&
22561 { ac_try='test -z "$ac_c_werror_flag"
22562 || test ! -s conftest.err'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; } &&
22568 { ac_try='test -s conftest.$ac_objext'
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; }; then
22574 ac_cv_member_struct_stat_st_rdev=yes
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22579 ac_cv_member_struct_stat_st_rdev=no
22581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22585 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22586 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22587 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22589 cat >>confdefs.h <<_ACEOF
22590 #define HAVE_STRUCT_STAT_ST_RDEV 1
22594 cat >>confdefs.h <<\_ACEOF
22595 #define HAVE_ST_RDEV 1
22601 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22602 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22603 if test "${ac_cv_struct_tm+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22606 cat >conftest.$ac_ext <<_ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 #include <sys/types.h>
22618 struct tm *tp; tp->tm_sec;
22623 rm -f conftest.$ac_objext
22624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22625 (eval $ac_compile) 2>conftest.er1
22627 grep -v '^ *+' conftest.er1 >conftest.err
22629 cat conftest.err >&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } &&
22632 { ac_try='test -z "$ac_c_werror_flag"
22633 || test ! -s conftest.err'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; } &&
22639 { ac_try='test -s conftest.$ac_objext'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }; then
22645 ac_cv_struct_tm=time.h
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22650 ac_cv_struct_tm=sys/time.h
22652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22654 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22655 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22656 if test $ac_cv_struct_tm = sys/time.h; then
22658 cat >>confdefs.h <<\_ACEOF
22659 #define TM_IN_SYS_TIME 1
22664 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22665 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22666 if test "${ac_cv_c_const+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 cat >conftest.$ac_ext <<_ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22679 /* FIXME: Include the comments suggested by Paul. */
22680 #ifndef __cplusplus
22681 /* Ultrix mips cc rejects this. */
22682 typedef int charset[2];
22684 /* SunOS 4.1.1 cc rejects this. */
22685 char const *const *ccp;
22687 /* NEC SVR4.0.2 mips cc rejects this. */
22688 struct point {int x, y;};
22689 static struct point const zero = {0,0};
22690 /* AIX XL C 1.02.0.0 rejects this.
22691 It does not let you subtract one const X* pointer from another in
22692 an arm of an if-expression whose if-part is not a constant
22694 const char *g = "string";
22695 ccp = &g + (g ? g-g : 0);
22696 /* HPUX 7.0 cc rejects these. */
22699 ccp = (char const *const *) p;
22700 { /* SCO 3.2v4 cc rejects this. */
22702 char const *s = 0 ? (char *) 0 : (char const *) 0;
22706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22707 int x[] = {25, 17};
22708 const int *foo = &x[0];
22711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22712 typedef const int *iptr;
22716 { /* AIX XL C 1.02.0.0 rejects this saying
22717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22718 struct s { int j; const int *ap[3]; };
22719 struct s *b; b->j = 5;
22721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22722 const int foo = 10;
22730 rm -f conftest.$ac_objext
22731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22732 (eval $ac_compile) 2>conftest.er1
22734 grep -v '^ *+' conftest.er1 >conftest.err
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } &&
22739 { ac_try='test -z "$ac_c_werror_flag"
22740 || test ! -s conftest.err'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; } &&
22746 { ac_try='test -s conftest.$ac_objext'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; }; then
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22761 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22762 echo "${ECHO_T}$ac_cv_c_const" >&6
22763 if test $ac_cv_c_const = no; then
22765 cat >>confdefs.h <<\_ACEOF
22773 echo "$as_me:$LINENO: checking for char" >&5
22774 echo $ECHO_N "checking for char... $ECHO_C" >&6
22775 if test "${ac_cv_type_char+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 $ac_includes_default
22796 rm -f conftest.$ac_objext
22797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22798 (eval $ac_compile) 2>conftest.er1
22800 grep -v '^ *+' conftest.er1 >conftest.err
22802 cat conftest.err >&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } &&
22805 { ac_try='test -z "$ac_c_werror_flag"
22806 || test ! -s conftest.err'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; } &&
22812 { ac_try='test -s conftest.$ac_objext'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; }; then
22818 ac_cv_type_char=yes
22820 echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22827 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22828 echo "${ECHO_T}$ac_cv_type_char" >&6
22830 echo "$as_me:$LINENO: checking size of char" >&5
22831 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22832 if test "${ac_cv_sizeof_char+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22835 if test "$ac_cv_type_char" = yes; then
22836 # The cast to unsigned long works around a bug in the HP C Compiler
22837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22839 # This bug is HP SR number 8606223364.
22840 if test "$cross_compiling" = yes; then
22841 # Depending upon the size, compute the lo and hi bounds.
22842 cat >conftest.$ac_ext <<_ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22848 $ac_includes_default
22852 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22859 rm -f conftest.$ac_objext
22860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22861 (eval $ac_compile) 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } &&
22868 { ac_try='test -z "$ac_c_werror_flag"
22869 || test ! -s conftest.err'
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; } &&
22875 { ac_try='test -s conftest.$ac_objext'
22876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877 (eval $ac_try) 2>&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); }; }; then
22883 cat >conftest.$ac_ext <<_ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h. */
22889 $ac_includes_default
22893 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22900 rm -f conftest.$ac_objext
22901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22902 (eval $ac_compile) 2>conftest.er1
22904 grep -v '^ *+' conftest.er1 >conftest.err
22906 cat conftest.err >&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); } &&
22909 { ac_try='test -z "$ac_c_werror_flag"
22910 || test ! -s conftest.err'
22911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912 (eval $ac_try) 2>&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; } &&
22916 { ac_try='test -s conftest.$ac_objext'
22917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918 (eval $ac_try) 2>&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); }; }; then
22922 ac_hi=$ac_mid; break
22924 echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22927 ac_lo=`expr $ac_mid + 1`
22928 if test $ac_lo -le $ac_mid; then
22932 ac_mid=`expr 2 '*' $ac_mid + 1`
22934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22937 echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 cat >conftest.$ac_ext <<_ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946 $ac_includes_default
22950 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22957 rm -f conftest.$ac_objext
22958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22959 (eval $ac_compile) 2>conftest.er1
22961 grep -v '^ *+' conftest.er1 >conftest.err
22963 cat conftest.err >&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } &&
22966 { ac_try='test -z "$ac_c_werror_flag"
22967 || test ! -s conftest.err'
22968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969 (eval $ac_try) 2>&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; } &&
22973 { ac_try='test -s conftest.$ac_objext'
22974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975 (eval $ac_try) 2>&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); }; }; then
22981 cat >conftest.$ac_ext <<_ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 $ac_includes_default
22991 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22998 rm -f conftest.$ac_objext
22999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23000 (eval $ac_compile) 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } &&
23007 { ac_try='test -z "$ac_c_werror_flag"
23008 || test ! -s conftest.err'
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; } &&
23014 { ac_try='test -s conftest.$ac_objext'
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; }; then
23020 ac_lo=$ac_mid; break
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23025 ac_hi=`expr '(' $ac_mid ')' - 1`
23026 if test $ac_mid -le $ac_hi; then
23030 ac_mid=`expr 2 '*' $ac_mid`
23032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23043 # Binary search between lo and hi bounds.
23044 while test "x$ac_lo" != "x$ac_hi"; do
23045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23046 cat >conftest.$ac_ext <<_ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 $ac_includes_default
23056 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23063 rm -f conftest.$ac_objext
23064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23065 (eval $ac_compile) 2>conftest.er1
23067 grep -v '^ *+' conftest.er1 >conftest.err
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } &&
23072 { ac_try='test -z "$ac_c_werror_flag"
23073 || test ! -s conftest.err'
23074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075 (eval $ac_try) 2>&5
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); }; } &&
23079 { ac_try='test -s conftest.$ac_objext'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 ac_lo=`expr '(' $ac_mid ')' + 1`
23092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23095 ?*) ac_cv_sizeof_char=$ac_lo;;
23096 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23097 See \`config.log' for more details." >&5
23098 echo "$as_me: error: cannot compute sizeof (char), 77
23099 See \`config.log' for more details." >&2;}
23100 { (exit 1); exit 1; }; } ;;
23103 if test "$cross_compiling" = yes; then
23104 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23105 See \`config.log' for more details." >&5
23106 echo "$as_me: error: cannot run test program while cross compiling
23107 See \`config.log' for more details." >&2;}
23108 { (exit 1); exit 1; }; }
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 $ac_includes_default
23117 long longval () { return (long) (sizeof (char)); }
23118 unsigned long ulongval () { return (long) (sizeof (char)); }
23120 #include <stdlib.h>
23125 FILE *f = fopen ("conftest.val", "w");
23128 if (((long) (sizeof (char))) < 0)
23130 long i = longval ();
23131 if (i != ((long) (sizeof (char))))
23133 fprintf (f, "%ld\n", i);
23137 unsigned long i = ulongval ();
23138 if (i != ((long) (sizeof (char))))
23140 fprintf (f, "%lu\n", i);
23142 exit (ferror (f) || fclose (f) != 0);
23148 rm -f conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150 (eval $ac_link) 2>&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; }; then
23159 ac_cv_sizeof_char=`cat conftest.val`
23161 echo "$as_me: program exited with status $ac_status" >&5
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23165 ( exit $ac_status )
23166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23167 See \`config.log' for more details." >&5
23168 echo "$as_me: error: cannot compute sizeof (char), 77
23169 See \`config.log' for more details." >&2;}
23170 { (exit 1); exit 1; }; }
23172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23177 ac_cv_sizeof_char=0
23180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23181 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23182 cat >>confdefs.h <<_ACEOF
23183 #define SIZEOF_CHAR $ac_cv_sizeof_char
23187 echo "$as_me:$LINENO: checking for short int" >&5
23188 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23189 if test "${ac_cv_type_short_int+set}" = set; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23192 cat >conftest.$ac_ext <<_ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 $ac_includes_default
23202 if ((short int *) 0)
23204 if (sizeof (short int))
23210 rm -f conftest.$ac_objext
23211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23212 (eval $ac_compile) 2>conftest.er1
23214 grep -v '^ *+' conftest.er1 >conftest.err
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } &&
23219 { ac_try='test -z "$ac_c_werror_flag"
23220 || test ! -s conftest.err'
23221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; } &&
23226 { ac_try='test -s conftest.$ac_objext'
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ac_cv_type_short_int=yes
23234 echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23237 ac_cv_type_short_int=no
23239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23241 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23242 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23244 echo "$as_me:$LINENO: checking size of short int" >&5
23245 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23246 if test "${ac_cv_sizeof_short_int+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 if test "$ac_cv_type_short_int" = yes; then
23250 # The cast to unsigned long works around a bug in the HP C Compiler
23251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23253 # This bug is HP SR number 8606223364.
23254 if test "$cross_compiling" = yes; then
23255 # Depending upon the size, compute the lo and hi bounds.
23256 cat >conftest.$ac_ext <<_ACEOF
23259 cat confdefs.h >>conftest.$ac_ext
23260 cat >>conftest.$ac_ext <<_ACEOF
23261 /* end confdefs.h. */
23262 $ac_includes_default
23266 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23273 rm -f conftest.$ac_objext
23274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23275 (eval $ac_compile) 2>conftest.er1
23277 grep -v '^ *+' conftest.er1 >conftest.err
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } &&
23282 { ac_try='test -z "$ac_c_werror_flag"
23283 || test ! -s conftest.err'
23284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; } &&
23289 { ac_try='test -s conftest.$ac_objext'
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23297 cat >conftest.$ac_ext <<_ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23303 $ac_includes_default
23307 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23314 rm -f conftest.$ac_objext
23315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23316 (eval $ac_compile) 2>conftest.er1
23318 grep -v '^ *+' conftest.er1 >conftest.err
23320 cat conftest.err >&5
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); } &&
23323 { ac_try='test -z "$ac_c_werror_flag"
23324 || test ! -s conftest.err'
23325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326 (eval $ac_try) 2>&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; } &&
23330 { ac_try='test -s conftest.$ac_objext'
23331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332 (eval $ac_try) 2>&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); }; }; then
23336 ac_hi=$ac_mid; break
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23341 ac_lo=`expr $ac_mid + 1`
23342 if test $ac_lo -le $ac_mid; then
23346 ac_mid=`expr 2 '*' $ac_mid + 1`
23348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23354 cat >conftest.$ac_ext <<_ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h. */
23360 $ac_includes_default
23364 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23371 rm -f conftest.$ac_objext
23372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23373 (eval $ac_compile) 2>conftest.er1
23375 grep -v '^ *+' conftest.er1 >conftest.err
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } &&
23380 { ac_try='test -z "$ac_c_werror_flag"
23381 || test ! -s conftest.err'
23382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383 (eval $ac_try) 2>&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); }; } &&
23387 { ac_try='test -s conftest.$ac_objext'
23388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; }; then
23395 cat >conftest.$ac_ext <<_ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23401 $ac_includes_default
23405 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23412 rm -f conftest.$ac_objext
23413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23414 (eval $ac_compile) 2>conftest.er1
23416 grep -v '^ *+' conftest.er1 >conftest.err
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } &&
23421 { ac_try='test -z "$ac_c_werror_flag"
23422 || test ! -s conftest.err'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; } &&
23428 { ac_try='test -s conftest.$ac_objext'
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; }; then
23434 ac_lo=$ac_mid; break
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ac_hi=`expr '(' $ac_mid ')' - 1`
23440 if test $ac_mid -le $ac_hi; then
23444 ac_mid=`expr 2 '*' $ac_mid`
23446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23449 echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23457 # Binary search between lo and hi bounds.
23458 while test "x$ac_lo" != "x$ac_hi"; do
23459 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 $ac_includes_default
23470 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23477 rm -f conftest.$ac_objext
23478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23479 (eval $ac_compile) 2>conftest.er1
23481 grep -v '^ *+' conftest.er1 >conftest.err
23483 cat conftest.err >&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); } &&
23486 { ac_try='test -z "$ac_c_werror_flag"
23487 || test ! -s conftest.err'
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; } &&
23493 { ac_try='test -s conftest.$ac_objext'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; }; then
23501 echo "$as_me: failed program was:" >&5
23502 sed 's/^/| /' conftest.$ac_ext >&5
23504 ac_lo=`expr '(' $ac_mid ')' + 1`
23506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23509 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23510 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23511 See \`config.log' for more details." >&5
23512 echo "$as_me: error: cannot compute sizeof (short int), 77
23513 See \`config.log' for more details." >&2;}
23514 { (exit 1); exit 1; }; } ;;
23517 if test "$cross_compiling" = yes; then
23518 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23519 See \`config.log' for more details." >&5
23520 echo "$as_me: error: cannot run test program while cross compiling
23521 See \`config.log' for more details." >&2;}
23522 { (exit 1); exit 1; }; }
23524 cat >conftest.$ac_ext <<_ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h. */
23530 $ac_includes_default
23531 long longval () { return (long) (sizeof (short int)); }
23532 unsigned long ulongval () { return (long) (sizeof (short int)); }
23534 #include <stdlib.h>
23539 FILE *f = fopen ("conftest.val", "w");
23542 if (((long) (sizeof (short int))) < 0)
23544 long i = longval ();
23545 if (i != ((long) (sizeof (short int))))
23547 fprintf (f, "%ld\n", i);
23551 unsigned long i = ulongval ();
23552 if (i != ((long) (sizeof (short int))))
23554 fprintf (f, "%lu\n", i);
23556 exit (ferror (f) || fclose (f) != 0);
23562 rm -f conftest$ac_exeext
23563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23564 (eval $ac_link) 2>&5
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; }; then
23573 ac_cv_sizeof_short_int=`cat conftest.val`
23575 echo "$as_me: program exited with status $ac_status" >&5
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ( exit $ac_status )
23580 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23581 See \`config.log' for more details." >&5
23582 echo "$as_me: error: cannot compute sizeof (short int), 77
23583 See \`config.log' for more details." >&2;}
23584 { (exit 1); exit 1; }; }
23586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23591 ac_cv_sizeof_short_int=0
23594 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23595 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23596 cat >>confdefs.h <<_ACEOF
23597 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23601 echo "$as_me:$LINENO: checking for int" >&5
23602 echo $ECHO_N "checking for int... $ECHO_C" >&6
23603 if test "${ac_cv_type_int+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23606 cat >conftest.$ac_ext <<_ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 $ac_includes_default
23624 rm -f conftest.$ac_objext
23625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23626 (eval $ac_compile) 2>conftest.er1
23628 grep -v '^ *+' conftest.er1 >conftest.err
23630 cat conftest.err >&5
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); } &&
23633 { ac_try='test -z "$ac_c_werror_flag"
23634 || test ! -s conftest.err'
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; } &&
23640 { ac_try='test -s conftest.$ac_objext'
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23655 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23656 echo "${ECHO_T}$ac_cv_type_int" >&6
23658 echo "$as_me:$LINENO: checking size of int" >&5
23659 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23660 if test "${ac_cv_sizeof_int+set}" = set; then
23661 echo $ECHO_N "(cached) $ECHO_C" >&6
23663 if test "$ac_cv_type_int" = yes; then
23664 # The cast to unsigned long works around a bug in the HP C Compiler
23665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23667 # This bug is HP SR number 8606223364.
23668 if test "$cross_compiling" = yes; then
23669 # Depending upon the size, compute the lo and hi bounds.
23670 cat >conftest.$ac_ext <<_ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 $ac_includes_default
23680 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23687 rm -f conftest.$ac_objext
23688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23689 (eval $ac_compile) 2>conftest.er1
23691 grep -v '^ *+' conftest.er1 >conftest.err
23693 cat conftest.err >&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); } &&
23696 { ac_try='test -z "$ac_c_werror_flag"
23697 || test ! -s conftest.err'
23698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699 (eval $ac_try) 2>&5
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); }; } &&
23703 { ac_try='test -s conftest.$ac_objext'
23704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23705 (eval $ac_try) 2>&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); }; }; then
23711 cat >conftest.$ac_ext <<_ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h. */
23717 $ac_includes_default
23721 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23728 rm -f conftest.$ac_objext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23730 (eval $ac_compile) 2>conftest.er1
23732 grep -v '^ *+' conftest.er1 >conftest.err
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } &&
23737 { ac_try='test -z "$ac_c_werror_flag"
23738 || test ! -s conftest.err'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; } &&
23744 { ac_try='test -s conftest.$ac_objext'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; }; then
23750 ac_hi=$ac_mid; break
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23755 ac_lo=`expr $ac_mid + 1`
23756 if test $ac_lo -le $ac_mid; then
23760 ac_mid=`expr 2 '*' $ac_mid + 1`
23762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23765 echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23768 cat >conftest.$ac_ext <<_ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h. */
23774 $ac_includes_default
23778 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23785 rm -f conftest.$ac_objext
23786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23787 (eval $ac_compile) 2>conftest.er1
23789 grep -v '^ *+' conftest.er1 >conftest.err
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } &&
23794 { ac_try='test -z "$ac_c_werror_flag"
23795 || test ! -s conftest.err'
23796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797 (eval $ac_try) 2>&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); }; } &&
23801 { ac_try='test -s conftest.$ac_objext'
23802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803 (eval $ac_try) 2>&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; }; then
23809 cat >conftest.$ac_ext <<_ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23815 $ac_includes_default
23819 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23826 rm -f conftest.$ac_objext
23827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23828 (eval $ac_compile) 2>conftest.er1
23830 grep -v '^ *+' conftest.er1 >conftest.err
23832 cat conftest.err >&5
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } &&
23835 { ac_try='test -z "$ac_c_werror_flag"
23836 || test ! -s conftest.err'
23837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838 (eval $ac_try) 2>&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); }; } &&
23842 { ac_try='test -s conftest.$ac_objext'
23843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844 (eval $ac_try) 2>&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); }; }; then
23848 ac_lo=$ac_mid; break
23850 echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23853 ac_hi=`expr '(' $ac_mid ')' - 1`
23854 if test $ac_mid -le $ac_hi; then
23858 ac_mid=`expr 2 '*' $ac_mid`
23860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23871 # Binary search between lo and hi bounds.
23872 while test "x$ac_lo" != "x$ac_hi"; do
23873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23874 cat >conftest.$ac_ext <<_ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23880 $ac_includes_default
23884 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23891 rm -f conftest.$ac_objext
23892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23893 (eval $ac_compile) 2>conftest.er1
23895 grep -v '^ *+' conftest.er1 >conftest.err
23897 cat conftest.err >&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); } &&
23900 { ac_try='test -z "$ac_c_werror_flag"
23901 || test ! -s conftest.err'
23902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903 (eval $ac_try) 2>&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); }; } &&
23907 { ac_try='test -s conftest.$ac_objext'
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; }; then
23915 echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23918 ac_lo=`expr '(' $ac_mid ')' + 1`
23920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23923 ?*) ac_cv_sizeof_int=$ac_lo;;
23924 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23925 See \`config.log' for more details." >&5
23926 echo "$as_me: error: cannot compute sizeof (int), 77
23927 See \`config.log' for more details." >&2;}
23928 { (exit 1); exit 1; }; } ;;
23931 if test "$cross_compiling" = yes; then
23932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23933 See \`config.log' for more details." >&5
23934 echo "$as_me: error: cannot run test program while cross compiling
23935 See \`config.log' for more details." >&2;}
23936 { (exit 1); exit 1; }; }
23938 cat >conftest.$ac_ext <<_ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h. */
23944 $ac_includes_default
23945 long longval () { return (long) (sizeof (int)); }
23946 unsigned long ulongval () { return (long) (sizeof (int)); }
23948 #include <stdlib.h>
23953 FILE *f = fopen ("conftest.val", "w");
23956 if (((long) (sizeof (int))) < 0)
23958 long i = longval ();
23959 if (i != ((long) (sizeof (int))))
23961 fprintf (f, "%ld\n", i);
23965 unsigned long i = ulongval ();
23966 if (i != ((long) (sizeof (int))))
23968 fprintf (f, "%lu\n", i);
23970 exit (ferror (f) || fclose (f) != 0);
23976 rm -f conftest$ac_exeext
23977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23978 (eval $ac_link) 2>&5
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983 (eval $ac_try) 2>&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; }; then
23987 ac_cv_sizeof_int=`cat conftest.val`
23989 echo "$as_me: program exited with status $ac_status" >&5
23990 echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23993 ( exit $ac_status )
23994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23995 See \`config.log' for more details." >&5
23996 echo "$as_me: error: cannot compute sizeof (int), 77
23997 See \`config.log' for more details." >&2;}
23998 { (exit 1); exit 1; }; }
24000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24008 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24009 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24010 cat >>confdefs.h <<_ACEOF
24011 #define SIZEOF_INT $ac_cv_sizeof_int
24015 echo "$as_me:$LINENO: checking for long int" >&5
24016 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24017 if test "${ac_cv_type_long_int+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24020 cat >conftest.$ac_ext <<_ACEOF
24023 cat confdefs.h >>conftest.$ac_ext
24024 cat >>conftest.$ac_ext <<_ACEOF
24025 /* end confdefs.h. */
24026 $ac_includes_default
24030 if ((long int *) 0)
24032 if (sizeof (long int))
24038 rm -f conftest.$ac_objext
24039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24040 (eval $ac_compile) 2>conftest.er1
24042 grep -v '^ *+' conftest.er1 >conftest.err
24044 cat conftest.err >&5
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); } &&
24047 { ac_try='test -z "$ac_c_werror_flag"
24048 || test ! -s conftest.err'
24049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050 (eval $ac_try) 2>&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); }; } &&
24054 { ac_try='test -s conftest.$ac_objext'
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; }; then
24060 ac_cv_type_long_int=yes
24062 echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24065 ac_cv_type_long_int=no
24067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24069 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24070 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24072 echo "$as_me:$LINENO: checking size of long int" >&5
24073 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24074 if test "${ac_cv_sizeof_long_int+set}" = set; then
24075 echo $ECHO_N "(cached) $ECHO_C" >&6
24077 if test "$ac_cv_type_long_int" = yes; then
24078 # The cast to unsigned long works around a bug in the HP C Compiler
24079 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24080 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24081 # This bug is HP SR number 8606223364.
24082 if test "$cross_compiling" = yes; then
24083 # Depending upon the size, compute the lo and hi bounds.
24084 cat >conftest.$ac_ext <<_ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h. */
24090 $ac_includes_default
24094 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24101 rm -f conftest.$ac_objext
24102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24103 (eval $ac_compile) 2>conftest.er1
24105 grep -v '^ *+' conftest.er1 >conftest.err
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } &&
24110 { ac_try='test -z "$ac_c_werror_flag"
24111 || test ! -s conftest.err'
24112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113 (eval $ac_try) 2>&5
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); }; } &&
24117 { ac_try='test -s conftest.$ac_objext'
24118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119 (eval $ac_try) 2>&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); }; }; then
24125 cat >conftest.$ac_ext <<_ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h. */
24131 $ac_includes_default
24135 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24142 rm -f conftest.$ac_objext
24143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24144 (eval $ac_compile) 2>conftest.er1
24146 grep -v '^ *+' conftest.er1 >conftest.err
24148 cat conftest.err >&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } &&
24151 { ac_try='test -z "$ac_c_werror_flag"
24152 || test ! -s conftest.err'
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; } &&
24158 { ac_try='test -s conftest.$ac_objext'
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; }; then
24164 ac_hi=$ac_mid; break
24166 echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24169 ac_lo=`expr $ac_mid + 1`
24170 if test $ac_lo -le $ac_mid; then
24174 ac_mid=`expr 2 '*' $ac_mid + 1`
24176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24179 echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24182 cat >conftest.$ac_ext <<_ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24188 $ac_includes_default
24192 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24199 rm -f conftest.$ac_objext
24200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24201 (eval $ac_compile) 2>conftest.er1
24203 grep -v '^ *+' conftest.er1 >conftest.err
24205 cat conftest.err >&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } &&
24208 { ac_try='test -z "$ac_c_werror_flag"
24209 || test ! -s conftest.err'
24210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211 (eval $ac_try) 2>&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); }; } &&
24215 { ac_try='test -s conftest.$ac_objext'
24216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217 (eval $ac_try) 2>&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; }; then
24223 cat >conftest.$ac_ext <<_ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h. */
24229 $ac_includes_default
24233 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24240 rm -f conftest.$ac_objext
24241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24242 (eval $ac_compile) 2>conftest.er1
24244 grep -v '^ *+' conftest.er1 >conftest.err
24246 cat conftest.err >&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } &&
24249 { ac_try='test -z "$ac_c_werror_flag"
24250 || test ! -s conftest.err'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; } &&
24256 { ac_try='test -s conftest.$ac_objext'
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; }; then
24262 ac_lo=$ac_mid; break
24264 echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 ac_hi=`expr '(' $ac_mid ')' - 1`
24268 if test $ac_mid -le $ac_hi; then
24272 ac_mid=`expr 2 '*' $ac_mid`
24274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24277 echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24285 # Binary search between lo and hi bounds.
24286 while test "x$ac_lo" != "x$ac_hi"; do
24287 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24288 cat >conftest.$ac_ext <<_ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24294 $ac_includes_default
24298 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24305 rm -f conftest.$ac_objext
24306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24307 (eval $ac_compile) 2>conftest.er1
24309 grep -v '^ *+' conftest.er1 >conftest.err
24311 cat conftest.err >&5
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } &&
24314 { ac_try='test -z "$ac_c_werror_flag"
24315 || test ! -s conftest.err'
24316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24317 (eval $ac_try) 2>&5
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); }; } &&
24321 { ac_try='test -s conftest.$ac_objext'
24322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323 (eval $ac_try) 2>&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; }; then
24329 echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24332 ac_lo=`expr '(' $ac_mid ')' + 1`
24334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24337 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24338 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24339 See \`config.log' for more details." >&5
24340 echo "$as_me: error: cannot compute sizeof (long int), 77
24341 See \`config.log' for more details." >&2;}
24342 { (exit 1); exit 1; }; } ;;
24345 if test "$cross_compiling" = yes; then
24346 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24347 See \`config.log' for more details." >&5
24348 echo "$as_me: error: cannot run test program while cross compiling
24349 See \`config.log' for more details." >&2;}
24350 { (exit 1); exit 1; }; }
24352 cat >conftest.$ac_ext <<_ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h. */
24358 $ac_includes_default
24359 long longval () { return (long) (sizeof (long int)); }
24360 unsigned long ulongval () { return (long) (sizeof (long int)); }
24362 #include <stdlib.h>
24367 FILE *f = fopen ("conftest.val", "w");
24370 if (((long) (sizeof (long int))) < 0)
24372 long i = longval ();
24373 if (i != ((long) (sizeof (long int))))
24375 fprintf (f, "%ld\n", i);
24379 unsigned long i = ulongval ();
24380 if (i != ((long) (sizeof (long int))))
24382 fprintf (f, "%lu\n", i);
24384 exit (ferror (f) || fclose (f) != 0);
24390 rm -f conftest$ac_exeext
24391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392 (eval $ac_link) 2>&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397 (eval $ac_try) 2>&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); }; }; then
24401 ac_cv_sizeof_long_int=`cat conftest.val`
24403 echo "$as_me: program exited with status $ac_status" >&5
24404 echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24407 ( exit $ac_status )
24408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24409 See \`config.log' for more details." >&5
24410 echo "$as_me: error: cannot compute sizeof (long int), 77
24411 See \`config.log' for more details." >&2;}
24412 { (exit 1); exit 1; }; }
24414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24419 ac_cv_sizeof_long_int=0
24422 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24423 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24424 cat >>confdefs.h <<_ACEOF
24425 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24429 echo "$as_me:$LINENO: checking for long long int" >&5
24430 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24431 if test "${ac_cv_type_long_long_int+set}" = set; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24434 cat >conftest.$ac_ext <<_ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h. */
24440 $ac_includes_default
24444 if ((long long int *) 0)
24446 if (sizeof (long long int))
24452 rm -f conftest.$ac_objext
24453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24454 (eval $ac_compile) 2>conftest.er1
24456 grep -v '^ *+' conftest.er1 >conftest.err
24458 cat conftest.err >&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); } &&
24461 { ac_try='test -z "$ac_c_werror_flag"
24462 || test ! -s conftest.err'
24463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464 (eval $ac_try) 2>&5
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; } &&
24468 { ac_try='test -s conftest.$ac_objext'
24469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470 (eval $ac_try) 2>&5
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; }; then
24474 ac_cv_type_long_long_int=yes
24476 echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24479 ac_cv_type_long_long_int=no
24481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24483 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24484 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24486 echo "$as_me:$LINENO: checking size of long long int" >&5
24487 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24488 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24489 echo $ECHO_N "(cached) $ECHO_C" >&6
24491 if test "$ac_cv_type_long_long_int" = yes; then
24492 # The cast to unsigned long works around a bug in the HP C Compiler
24493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24495 # This bug is HP SR number 8606223364.
24496 if test "$cross_compiling" = yes; then
24497 # Depending upon the size, compute the lo and hi bounds.
24498 cat >conftest.$ac_ext <<_ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h. */
24504 $ac_includes_default
24508 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24515 rm -f conftest.$ac_objext
24516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24517 (eval $ac_compile) 2>conftest.er1
24519 grep -v '^ *+' conftest.er1 >conftest.err
24521 cat conftest.err >&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); } &&
24524 { ac_try='test -z "$ac_c_werror_flag"
24525 || test ! -s conftest.err'
24526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24527 (eval $ac_try) 2>&5
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); }; } &&
24531 { ac_try='test -s conftest.$ac_objext'
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; }; then
24539 cat >conftest.$ac_ext <<_ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 $ac_includes_default
24549 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24556 rm -f conftest.$ac_objext
24557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24558 (eval $ac_compile) 2>conftest.er1
24560 grep -v '^ *+' conftest.er1 >conftest.err
24562 cat conftest.err >&5
24563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); } &&
24565 { ac_try='test -z "$ac_c_werror_flag"
24566 || test ! -s conftest.err'
24567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24568 (eval $ac_try) 2>&5
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); }; } &&
24572 { ac_try='test -s conftest.$ac_objext'
24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574 (eval $ac_try) 2>&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; }; then
24578 ac_hi=$ac_mid; break
24580 echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24583 ac_lo=`expr $ac_mid + 1`
24584 if test $ac_lo -le $ac_mid; then
24588 ac_mid=`expr 2 '*' $ac_mid + 1`
24590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24593 echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24596 cat >conftest.$ac_ext <<_ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
24601 /* end confdefs.h. */
24602 $ac_includes_default
24606 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24613 rm -f conftest.$ac_objext
24614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24615 (eval $ac_compile) 2>conftest.er1
24617 grep -v '^ *+' conftest.er1 >conftest.err
24619 cat conftest.err >&5
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); } &&
24622 { ac_try='test -z "$ac_c_werror_flag"
24623 || test ! -s conftest.err'
24624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24625 (eval $ac_try) 2>&5
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); }; } &&
24629 { ac_try='test -s conftest.$ac_objext'
24630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24631 (eval $ac_try) 2>&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); }; }; then
24637 cat >conftest.$ac_ext <<_ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24643 $ac_includes_default
24647 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24654 rm -f conftest.$ac_objext
24655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24656 (eval $ac_compile) 2>conftest.er1
24658 grep -v '^ *+' conftest.er1 >conftest.err
24660 cat conftest.err >&5
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); } &&
24663 { ac_try='test -z "$ac_c_werror_flag"
24664 || test ! -s conftest.err'
24665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666 (eval $ac_try) 2>&5
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); }; } &&
24670 { ac_try='test -s conftest.$ac_objext'
24671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672 (eval $ac_try) 2>&5
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; }; then
24676 ac_lo=$ac_mid; break
24678 echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24681 ac_hi=`expr '(' $ac_mid ')' - 1`
24682 if test $ac_mid -le $ac_hi; then
24686 ac_mid=`expr 2 '*' $ac_mid`
24688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24691 echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24699 # Binary search between lo and hi bounds.
24700 while test "x$ac_lo" != "x$ac_hi"; do
24701 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24702 cat >conftest.$ac_ext <<_ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24708 $ac_includes_default
24712 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24719 rm -f conftest.$ac_objext
24720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24721 (eval $ac_compile) 2>conftest.er1
24723 grep -v '^ *+' conftest.er1 >conftest.err
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } &&
24728 { ac_try='test -z "$ac_c_werror_flag"
24729 || test ! -s conftest.err'
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; } &&
24735 { ac_try='test -s conftest.$ac_objext'
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; }; then
24743 echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24746 ac_lo=`expr '(' $ac_mid ')' + 1`
24748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24751 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24752 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24753 See \`config.log' for more details." >&5
24754 echo "$as_me: error: cannot compute sizeof (long long int), 77
24755 See \`config.log' for more details." >&2;}
24756 { (exit 1); exit 1; }; } ;;
24759 if test "$cross_compiling" = yes; then
24760 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24761 See \`config.log' for more details." >&5
24762 echo "$as_me: error: cannot run test program while cross compiling
24763 See \`config.log' for more details." >&2;}
24764 { (exit 1); exit 1; }; }
24766 cat >conftest.$ac_ext <<_ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24772 $ac_includes_default
24773 long longval () { return (long) (sizeof (long long int)); }
24774 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24776 #include <stdlib.h>
24781 FILE *f = fopen ("conftest.val", "w");
24784 if (((long) (sizeof (long long int))) < 0)
24786 long i = longval ();
24787 if (i != ((long) (sizeof (long long int))))
24789 fprintf (f, "%ld\n", i);
24793 unsigned long i = ulongval ();
24794 if (i != ((long) (sizeof (long long int))))
24796 fprintf (f, "%lu\n", i);
24798 exit (ferror (f) || fclose (f) != 0);
24804 rm -f conftest$ac_exeext
24805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24806 (eval $ac_link) 2>&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811 (eval $ac_try) 2>&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; }; then
24815 ac_cv_sizeof_long_long_int=`cat conftest.val`
24817 echo "$as_me: program exited with status $ac_status" >&5
24818 echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.$ac_ext >&5
24821 ( exit $ac_status )
24822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24823 See \`config.log' for more details." >&5
24824 echo "$as_me: error: cannot compute sizeof (long long int), 77
24825 See \`config.log' for more details." >&2;}
24826 { (exit 1); exit 1; }; }
24828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24833 ac_cv_sizeof_long_long_int=0
24836 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24837 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24838 cat >>confdefs.h <<_ACEOF
24839 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24843 echo "$as_me:$LINENO: checking for int *" >&5
24844 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24845 if test "${ac_cv_type_int_p+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24848 cat >conftest.$ac_ext <<_ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24854 $ac_includes_default
24860 if (sizeof (int *))
24866 rm -f conftest.$ac_objext
24867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24868 (eval $ac_compile) 2>conftest.er1
24870 grep -v '^ *+' conftest.er1 >conftest.err
24872 cat conftest.err >&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } &&
24875 { ac_try='test -z "$ac_c_werror_flag"
24876 || test ! -s conftest.err'
24877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878 (eval $ac_try) 2>&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); }; } &&
24882 { ac_try='test -s conftest.$ac_objext'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; }; then
24888 ac_cv_type_int_p=yes
24890 echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24893 ac_cv_type_int_p=no
24895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24897 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24898 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24900 echo "$as_me:$LINENO: checking size of int *" >&5
24901 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24902 if test "${ac_cv_sizeof_int_p+set}" = set; then
24903 echo $ECHO_N "(cached) $ECHO_C" >&6
24905 if test "$ac_cv_type_int_p" = yes; then
24906 # The cast to unsigned long works around a bug in the HP C Compiler
24907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24909 # This bug is HP SR number 8606223364.
24910 if test "$cross_compiling" = yes; then
24911 # Depending upon the size, compute the lo and hi bounds.
24912 cat >conftest.$ac_ext <<_ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24918 $ac_includes_default
24922 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24929 rm -f conftest.$ac_objext
24930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24931 (eval $ac_compile) 2>conftest.er1
24933 grep -v '^ *+' conftest.er1 >conftest.err
24935 cat conftest.err >&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } &&
24938 { ac_try='test -z "$ac_c_werror_flag"
24939 || test ! -s conftest.err'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; } &&
24945 { ac_try='test -s conftest.$ac_objext'
24946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947 (eval $ac_try) 2>&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; }; then
24953 cat >conftest.$ac_ext <<_ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h. */
24959 $ac_includes_default
24963 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24970 rm -f conftest.$ac_objext
24971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24972 (eval $ac_compile) 2>conftest.er1
24974 grep -v '^ *+' conftest.er1 >conftest.err
24976 cat conftest.err >&5
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } &&
24979 { ac_try='test -z "$ac_c_werror_flag"
24980 || test ! -s conftest.err'
24981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24982 (eval $ac_try) 2>&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; } &&
24986 { ac_try='test -s conftest.$ac_objext'
24987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24988 (eval $ac_try) 2>&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); }; }; then
24992 ac_hi=$ac_mid; break
24994 echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24997 ac_lo=`expr $ac_mid + 1`
24998 if test $ac_lo -le $ac_mid; then
25002 ac_mid=`expr 2 '*' $ac_mid + 1`
25004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25007 echo "$as_me: failed program was:" >&5
25008 sed 's/^/| /' conftest.$ac_ext >&5
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 $ac_includes_default
25020 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25027 rm -f conftest.$ac_objext
25028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25029 (eval $ac_compile) 2>conftest.er1
25031 grep -v '^ *+' conftest.er1 >conftest.err
25033 cat conftest.err >&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } &&
25036 { ac_try='test -z "$ac_c_werror_flag"
25037 || test ! -s conftest.err'
25038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039 (eval $ac_try) 2>&5
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; } &&
25043 { ac_try='test -s conftest.$ac_objext'
25044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; }; then
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 $ac_includes_default
25061 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25068 rm -f conftest.$ac_objext
25069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25070 (eval $ac_compile) 2>conftest.er1
25072 grep -v '^ *+' conftest.er1 >conftest.err
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } &&
25077 { ac_try='test -z "$ac_c_werror_flag"
25078 || test ! -s conftest.err'
25079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25080 (eval $ac_try) 2>&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; } &&
25084 { ac_try='test -s conftest.$ac_objext'
25085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086 (eval $ac_try) 2>&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; }; then
25090 ac_lo=$ac_mid; break
25092 echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25095 ac_hi=`expr '(' $ac_mid ')' - 1`
25096 if test $ac_mid -le $ac_hi; then
25100 ac_mid=`expr 2 '*' $ac_mid`
25102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25105 echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25113 # Binary search between lo and hi bounds.
25114 while test "x$ac_lo" != "x$ac_hi"; do
25115 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25116 cat >conftest.$ac_ext <<_ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25122 $ac_includes_default
25126 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25133 rm -f conftest.$ac_objext
25134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25135 (eval $ac_compile) 2>conftest.er1
25137 grep -v '^ *+' conftest.er1 >conftest.err
25139 cat conftest.err >&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } &&
25142 { ac_try='test -z "$ac_c_werror_flag"
25143 || test ! -s conftest.err'
25144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145 (eval $ac_try) 2>&5
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); }; } &&
25149 { ac_try='test -s conftest.$ac_objext'
25150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151 (eval $ac_try) 2>&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }; }; then
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25160 ac_lo=`expr '(' $ac_mid ')' + 1`
25162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25165 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25166 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25167 See \`config.log' for more details." >&5
25168 echo "$as_me: error: cannot compute sizeof (int *), 77
25169 See \`config.log' for more details." >&2;}
25170 { (exit 1); exit 1; }; } ;;
25173 if test "$cross_compiling" = yes; then
25174 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25175 See \`config.log' for more details." >&5
25176 echo "$as_me: error: cannot run test program while cross compiling
25177 See \`config.log' for more details." >&2;}
25178 { (exit 1); exit 1; }; }
25180 cat >conftest.$ac_ext <<_ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h. */
25186 $ac_includes_default
25187 long longval () { return (long) (sizeof (int *)); }
25188 unsigned long ulongval () { return (long) (sizeof (int *)); }
25190 #include <stdlib.h>
25195 FILE *f = fopen ("conftest.val", "w");
25198 if (((long) (sizeof (int *))) < 0)
25200 long i = longval ();
25201 if (i != ((long) (sizeof (int *))))
25203 fprintf (f, "%ld\n", i);
25207 unsigned long i = ulongval ();
25208 if (i != ((long) (sizeof (int *))))
25210 fprintf (f, "%lu\n", i);
25212 exit (ferror (f) || fclose (f) != 0);
25218 rm -f conftest$ac_exeext
25219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25220 (eval $ac_link) 2>&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225 (eval $ac_try) 2>&5
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); }; }; then
25229 ac_cv_sizeof_int_p=`cat conftest.val`
25231 echo "$as_me: program exited with status $ac_status" >&5
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 ( exit $ac_status )
25236 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25237 See \`config.log' for more details." >&5
25238 echo "$as_me: error: cannot compute sizeof (int *), 77
25239 See \`config.log' for more details." >&2;}
25240 { (exit 1); exit 1; }; }
25242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25247 ac_cv_sizeof_int_p=0
25250 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25251 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25252 cat >>confdefs.h <<_ACEOF
25253 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25258 # Check for sys/types.h types
25259 echo "$as_me:$LINENO: checking for u_int type" >&5
25260 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25261 if test "${ac_cv_have_u_int+set}" = set; then
25262 echo $ECHO_N "(cached) $ECHO_C" >&6
25265 cat >conftest.$ac_ext <<_ACEOF
25268 cat confdefs.h >>conftest.$ac_ext
25269 cat >>conftest.$ac_ext <<_ACEOF
25270 /* end confdefs.h. */
25271 #include <sys/types.h>
25280 rm -f conftest.$ac_objext
25281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25282 (eval $ac_compile) 2>conftest.er1
25284 grep -v '^ *+' conftest.er1 >conftest.err
25286 cat conftest.err >&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } &&
25289 { ac_try='test -z "$ac_c_werror_flag"
25290 || test ! -s conftest.err'
25291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25292 (eval $ac_try) 2>&5
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); }; } &&
25296 { ac_try='test -s conftest.$ac_objext'
25297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25298 (eval $ac_try) 2>&5
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); }; }; then
25302 ac_cv_have_u_int="yes"
25304 echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25307 ac_cv_have_u_int="no"
25310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25313 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25314 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25315 if test "x$ac_cv_have_u_int" = "xyes" ; then
25316 cat >>confdefs.h <<\_ACEOF
25317 #define HAVE_U_INT 1
25323 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25324 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25325 if test "${ac_cv_have_intmax_t+set}" = set; then
25326 echo $ECHO_N "(cached) $ECHO_C" >&6
25329 cat >conftest.$ac_ext <<_ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h. */
25335 #include <sys/types.h>
25344 rm -f conftest.$ac_objext
25345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25346 (eval $ac_compile) 2>conftest.er1
25348 grep -v '^ *+' conftest.er1 >conftest.err
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } &&
25353 { ac_try='test -z "$ac_c_werror_flag"
25354 || test ! -s conftest.err'
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } &&
25360 { ac_try='test -s conftest.$ac_objext'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; }; then
25366 ac_cv_have_intmax_t="yes"
25368 echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25372 cat >conftest.$ac_ext <<_ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h. */
25378 #include <stdint.h>
25387 rm -f conftest.$ac_objext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25389 (eval $ac_compile) 2>conftest.er1
25391 grep -v '^ *+' conftest.er1 >conftest.err
25393 cat conftest.err >&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); } &&
25396 { ac_try='test -z "$ac_c_werror_flag"
25397 || test ! -s conftest.err'
25398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399 (eval $ac_try) 2>&5
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; } &&
25403 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25409 ac_cv_have_intmax_t="yes"
25411 echo "$as_me: failed program was:" >&5
25412 sed 's/^/| /' conftest.$ac_ext >&5
25414 ac_cv_have_intmax_t="no"
25417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25425 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25426 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25427 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25428 cat >>confdefs.h <<\_ACEOF
25429 #define HAVE_INTMAX_T 1
25436 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25437 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25438 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25439 echo $ECHO_N "(cached) $ECHO_C" >&6
25442 cat >conftest.$ac_ext <<_ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h. */
25448 #include <sys/types.h>
25452 u_intmax_t a; a = 1;
25457 rm -f conftest.$ac_objext
25458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25459 (eval $ac_compile) 2>conftest.er1
25461 grep -v '^ *+' conftest.er1 >conftest.err
25463 cat conftest.err >&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } &&
25466 { ac_try='test -z "$ac_c_werror_flag"
25467 || test ! -s conftest.err'
25468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469 (eval $ac_try) 2>&5
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); }; } &&
25473 { ac_try='test -s conftest.$ac_objext'
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; }; then
25479 ac_cv_have_u_intmax_t="yes"
25481 echo "$as_me: failed program was:" >&5
25482 sed 's/^/| /' conftest.$ac_ext >&5
25485 cat >conftest.$ac_ext <<_ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491 #include <stdint.h>
25495 u_intmax_t a; a = 1;
25500 rm -f conftest.$ac_objext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25502 (eval $ac_compile) 2>conftest.er1
25504 grep -v '^ *+' conftest.er1 >conftest.err
25506 cat conftest.err >&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
25509 { ac_try='test -z "$ac_c_werror_flag"
25510 || test ! -s conftest.err'
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; } &&
25516 { ac_try='test -s conftest.$ac_objext'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_have_u_intmax_t="yes"
25524 echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25527 ac_cv_have_u_intmax_t="no"
25530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25537 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25538 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25539 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25540 cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_U_INTMAX_T 1
25548 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25549 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25550 if test "${ac_cv_have_intxx_t+set}" = set; then
25551 echo $ECHO_N "(cached) $ECHO_C" >&6
25554 cat >conftest.$ac_ext <<_ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h. */
25560 #include <sys/types.h>
25564 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25569 rm -f conftest.$ac_objext
25570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25571 (eval $ac_compile) 2>conftest.er1
25573 grep -v '^ *+' conftest.er1 >conftest.err
25575 cat conftest.err >&5
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); } &&
25578 { ac_try='test -z "$ac_c_werror_flag"
25579 || test ! -s conftest.err'
25580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581 (eval $ac_try) 2>&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; } &&
25585 { ac_try='test -s conftest.$ac_objext'
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); }; }; then
25591 ac_cv_have_intxx_t="yes"
25593 echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25596 ac_cv_have_intxx_t="no"
25599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25602 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25603 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25604 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25605 cat >>confdefs.h <<\_ACEOF
25606 #define HAVE_INTXX_T 1
25612 echo "$as_me:$LINENO: checking for int64_t type" >&5
25613 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25614 if test "${ac_cv_have_int64_t+set}" = set; then
25615 echo $ECHO_N "(cached) $ECHO_C" >&6
25618 cat >conftest.$ac_ext <<_ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h. */
25624 #include <sys/types.h>
25633 rm -f conftest.$ac_objext
25634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25635 (eval $ac_compile) 2>conftest.er1
25637 grep -v '^ *+' conftest.er1 >conftest.err
25639 cat conftest.err >&5
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } &&
25642 { ac_try='test -z "$ac_c_werror_flag"
25643 || test ! -s conftest.err'
25644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645 (eval $ac_try) 2>&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; } &&
25649 { ac_try='test -s conftest.$ac_objext'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; }; then
25655 ac_cv_have_int64_t="yes"
25657 echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25660 ac_cv_have_int64_t="no"
25663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25666 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25667 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25668 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25669 cat >>confdefs.h <<\_ACEOF
25670 #define HAVE_INT64_T 1
25676 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25677 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25678 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25679 echo $ECHO_N "(cached) $ECHO_C" >&6
25682 cat >conftest.$ac_ext <<_ACEOF
25685 cat confdefs.h >>conftest.$ac_ext
25686 cat >>conftest.$ac_ext <<_ACEOF
25687 /* end confdefs.h. */
25688 #include <sys/types.h>
25692 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699 (eval $ac_compile) 2>conftest.er1
25701 grep -v '^ *+' conftest.er1 >conftest.err
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } &&
25706 { ac_try='test -z "$ac_c_werror_flag"
25707 || test ! -s conftest.err'
25708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709 (eval $ac_try) 2>&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); }; } &&
25713 { ac_try='test -s conftest.$ac_objext'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; }; then
25719 ac_cv_have_u_intxx_t="yes"
25721 echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25724 ac_cv_have_u_intxx_t="no"
25727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25730 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25731 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25732 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25733 cat >>confdefs.h <<\_ACEOF
25734 #define HAVE_U_INTXX_T 1
25740 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25741 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25742 if test "${ac_cv_have_u_int64_t+set}" = set; then
25743 echo $ECHO_N "(cached) $ECHO_C" >&6
25746 cat >conftest.$ac_ext <<_ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h. */
25752 #include <sys/types.h>
25756 u_int64_t a; a = 1;
25761 rm -f conftest.$ac_objext
25762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25763 (eval $ac_compile) 2>conftest.er1
25765 grep -v '^ *+' conftest.er1 >conftest.err
25767 cat conftest.err >&5
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); } &&
25770 { ac_try='test -z "$ac_c_werror_flag"
25771 || test ! -s conftest.err'
25772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25773 (eval $ac_try) 2>&5
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); }; } &&
25777 { ac_try='test -s conftest.$ac_objext'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; }; then
25783 ac_cv_have_u_int64_t="yes"
25785 echo "$as_me: failed program was:" >&5
25786 sed 's/^/| /' conftest.$ac_ext >&5
25788 ac_cv_have_u_int64_t="no"
25791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25794 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25795 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25796 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25797 cat >>confdefs.h <<\_ACEOF
25798 #define HAVE_U_INT64_T 1
25804 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25805 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25807 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25808 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25809 cat >conftest.$ac_ext <<_ACEOF
25812 cat confdefs.h >>conftest.$ac_ext
25813 cat >>conftest.$ac_ext <<_ACEOF
25814 /* end confdefs.h. */
25815 #include <sys/bitypes.h>
25819 int8_t a; int16_t b; int32_t c;
25820 u_int8_t e; u_int16_t f; u_int32_t g;
25821 a = b = c = e = f = g = 1;
25826 rm -f conftest.$ac_objext
25827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25828 (eval $ac_compile) 2>conftest.er1
25830 grep -v '^ *+' conftest.er1 >conftest.err
25832 cat conftest.err >&5
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } &&
25835 { ac_try='test -z "$ac_c_werror_flag"
25836 || test ! -s conftest.err'
25837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838 (eval $ac_try) 2>&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; } &&
25842 { ac_try='test -s conftest.$ac_objext'
25843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844 (eval $ac_try) 2>&5
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); }; }; then
25848 cat >>confdefs.h <<\_ACEOF
25849 #define HAVE_U_INTXX_T 1
25852 cat >>confdefs.h <<\_ACEOF
25853 #define HAVE_INTXX_T 1
25856 cat >>confdefs.h <<\_ACEOF
25857 #define HAVE_SYS_BITYPES_H 1
25860 echo "$as_me:$LINENO: result: yes" >&5
25861 echo "${ECHO_T}yes" >&6
25863 echo "$as_me: failed program was:" >&5
25864 sed 's/^/| /' conftest.$ac_ext >&5
25866 echo "$as_me:$LINENO: result: no" >&5
25867 echo "${ECHO_T}no" >&6
25870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25873 if test -z "$have_u_intxx_t" ; then
25874 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25875 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25876 if test "${ac_cv_have_uintxx_t+set}" = set; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 cat >conftest.$ac_ext <<_ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h. */
25886 #include <sys/types.h>
25890 uint8_t a; uint16_t b;
25891 uint32_t c; a = b = c = 1;
25896 rm -f conftest.$ac_objext
25897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25898 (eval $ac_compile) 2>conftest.er1
25900 grep -v '^ *+' conftest.er1 >conftest.err
25902 cat conftest.err >&5
25903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904 (exit $ac_status); } &&
25905 { ac_try='test -z "$ac_c_werror_flag"
25906 || test ! -s conftest.err'
25907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908 (eval $ac_try) 2>&5
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); }; } &&
25912 { ac_try='test -s conftest.$ac_objext'
25913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914 (eval $ac_try) 2>&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); }; }; then
25918 ac_cv_have_uintxx_t="yes"
25920 echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25923 ac_cv_have_uintxx_t="no"
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25929 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25930 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25931 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25932 cat >>confdefs.h <<\_ACEOF
25933 #define HAVE_UINTXX_T 1
25939 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25940 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25942 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25943 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25944 cat >conftest.$ac_ext <<_ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h. */
25950 #include <sys/bitypes.h>
25954 int64_t a; u_int64_t b;
25960 rm -f conftest.$ac_objext
25961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25962 (eval $ac_compile) 2>conftest.er1
25964 grep -v '^ *+' conftest.er1 >conftest.err
25966 cat conftest.err >&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); } &&
25969 { ac_try='test -z "$ac_c_werror_flag"
25970 || test ! -s conftest.err'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; } &&
25976 { ac_try='test -s conftest.$ac_objext'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; }; then
25982 cat >>confdefs.h <<\_ACEOF
25983 #define HAVE_U_INT64_T 1
25986 cat >>confdefs.h <<\_ACEOF
25987 #define HAVE_INT64_T 1
25990 echo "$as_me:$LINENO: result: yes" >&5
25991 echo "${ECHO_T}yes" >&6
25993 echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25996 echo "$as_me:$LINENO: result: no" >&5
25997 echo "${ECHO_T}no" >&6
26000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26003 if (test -z "$have_uintxx_t" && \
26004 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26006 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26007 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 #include <sys/bitypes.h>
26018 uint8_t a; uint16_t b;
26019 uint32_t c; a = b = c = 1;
26024 rm -f conftest.$ac_objext
26025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26026 (eval $ac_compile) 2>conftest.er1
26028 grep -v '^ *+' conftest.er1 >conftest.err
26030 cat conftest.err >&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } &&
26033 { ac_try='test -z "$ac_c_werror_flag"
26034 || test ! -s conftest.err'
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; } &&
26040 { ac_try='test -s conftest.$ac_objext'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; }; then
26046 cat >>confdefs.h <<\_ACEOF
26047 #define HAVE_UINTXX_T 1
26050 echo "$as_me:$LINENO: result: yes" >&5
26051 echo "${ECHO_T}yes" >&6
26053 echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26056 echo "$as_me:$LINENO: result: no" >&5
26057 echo "${ECHO_T}no" >&6
26060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26097 echo "$as_me:$LINENO: checking for $ac_func" >&5
26098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26099 if eval "test \"\${$as_ac_var+set}\" = set"; then
26100 echo $ECHO_N "(cached) $ECHO_C" >&6
26102 cat >conftest.$ac_ext <<_ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h. */
26108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26110 #define $ac_func innocuous_$ac_func
26112 /* System header to define __stub macros and hopefully few prototypes,
26113 which can conflict with char $ac_func (); below.
26114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26115 <limits.h> exists even on freestanding compilers. */
26118 # include <limits.h>
26120 # include <assert.h>
26125 /* Override any gcc2 internal prototype to avoid an error. */
26130 /* We use char because int might match the return type of a gcc2
26131 builtin and then its argument prototype would still apply. */
26133 /* The GNU C library defines this for functions which it implements
26134 to always fail with ENOSYS. Some functions are actually named
26135 something starting with __ and the normal name is an alias. */
26136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26139 char (*f) () = $ac_func;
26148 return f != $ac_func;
26153 rm -f conftest.$ac_objext conftest$ac_exeext
26154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26155 (eval $ac_link) 2>conftest.er1
26157 grep -v '^ *+' conftest.er1 >conftest.err
26159 cat conftest.err >&5
26160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); } &&
26162 { ac_try='test -z "$ac_c_werror_flag"
26163 || test ! -s conftest.err'
26164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26165 (eval $ac_try) 2>&5
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); }; } &&
26169 { ac_try='test -s conftest$ac_exeext'
26170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26171 (eval $ac_try) 2>&5
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); }; }; then
26175 eval "$as_ac_var=yes"
26177 echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26180 eval "$as_ac_var=no"
26182 rm -f conftest.err conftest.$ac_objext \
26183 conftest$ac_exeext conftest.$ac_ext
26185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26187 if test `eval echo '${'$as_ac_var'}'` = yes; then
26188 cat >>confdefs.h <<_ACEOF
26189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26193 echo 'configure: cannot find needed function.'; exit 1
26200 for ac_func in fchdir
26202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26203 echo "$as_me:$LINENO: checking for $ac_func" >&5
26204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26205 if eval "test \"\${$as_ac_var+set}\" = set"; then
26206 echo $ECHO_N "(cached) $ECHO_C" >&6
26208 cat >conftest.$ac_ext <<_ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h. */
26214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26216 #define $ac_func innocuous_$ac_func
26218 /* System header to define __stub macros and hopefully few prototypes,
26219 which can conflict with char $ac_func (); below.
26220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26221 <limits.h> exists even on freestanding compilers. */
26224 # include <limits.h>
26226 # include <assert.h>
26231 /* Override any gcc2 internal prototype to avoid an error. */
26236 /* We use char because int might match the return type of a gcc2
26237 builtin and then its argument prototype would still apply. */
26239 /* The GNU C library defines this for functions which it implements
26240 to always fail with ENOSYS. Some functions are actually named
26241 something starting with __ and the normal name is an alias. */
26242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26245 char (*f) () = $ac_func;
26254 return f != $ac_func;
26259 rm -f conftest.$ac_objext conftest$ac_exeext
26260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26261 (eval $ac_link) 2>conftest.er1
26263 grep -v '^ *+' conftest.er1 >conftest.err
26265 cat conftest.err >&5
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); } &&
26268 { ac_try='test -z "$ac_c_werror_flag"
26269 || test ! -s conftest.err'
26270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26271 (eval $ac_try) 2>&5
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); }; } &&
26275 { ac_try='test -s conftest$ac_exeext'
26276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26277 (eval $ac_try) 2>&5
26279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); }; }; then
26281 eval "$as_ac_var=yes"
26283 echo "$as_me: failed program was:" >&5
26284 sed 's/^/| /' conftest.$ac_ext >&5
26286 eval "$as_ac_var=no"
26288 rm -f conftest.err conftest.$ac_objext \
26289 conftest$ac_exeext conftest.$ac_ext
26291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26293 if test `eval echo '${'$as_ac_var'}'` = yes; then
26294 cat >>confdefs.h <<_ACEOF
26295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26297 cat >>confdefs.h <<\_ACEOF
26298 #define HAVE_FCHDIR 1
26305 for ac_func in strtoll
26307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26308 echo "$as_me:$LINENO: checking for $ac_func" >&5
26309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26310 if eval "test \"\${$as_ac_var+set}\" = set"; then
26311 echo $ECHO_N "(cached) $ECHO_C" >&6
26313 cat >conftest.$ac_ext <<_ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h. */
26319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26321 #define $ac_func innocuous_$ac_func
26323 /* System header to define __stub macros and hopefully few prototypes,
26324 which can conflict with char $ac_func (); below.
26325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26326 <limits.h> exists even on freestanding compilers. */
26329 # include <limits.h>
26331 # include <assert.h>
26336 /* Override any gcc2 internal prototype to avoid an error. */
26341 /* We use char because int might match the return type of a gcc2
26342 builtin and then its argument prototype would still apply. */
26344 /* The GNU C library defines this for functions which it implements
26345 to always fail with ENOSYS. Some functions are actually named
26346 something starting with __ and the normal name is an alias. */
26347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26350 char (*f) () = $ac_func;
26359 return f != $ac_func;
26364 rm -f conftest.$ac_objext conftest$ac_exeext
26365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26366 (eval $ac_link) 2>conftest.er1
26368 grep -v '^ *+' conftest.er1 >conftest.err
26370 cat conftest.err >&5
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); } &&
26373 { ac_try='test -z "$ac_c_werror_flag"
26374 || test ! -s conftest.err'
26375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26376 (eval $ac_try) 2>&5
26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); }; } &&
26380 { ac_try='test -s conftest$ac_exeext'
26381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382 (eval $ac_try) 2>&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); }; }; then
26386 eval "$as_ac_var=yes"
26388 echo "$as_me: failed program was:" >&5
26389 sed 's/^/| /' conftest.$ac_ext >&5
26391 eval "$as_ac_var=no"
26393 rm -f conftest.err conftest.$ac_objext \
26394 conftest$ac_exeext conftest.$ac_ext
26396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26398 if test `eval echo '${'$as_ac_var'}'` = yes; then
26399 cat >>confdefs.h <<_ACEOF
26400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26402 cat >>confdefs.h <<\_ACEOF
26403 #define HAVE_STRTOLL 1
26411 for ac_func in chflags
26413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26414 echo "$as_me:$LINENO: checking for $ac_func" >&5
26415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26416 if eval "test \"\${$as_ac_var+set}\" = set"; then
26417 echo $ECHO_N "(cached) $ECHO_C" >&6
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26427 #define $ac_func innocuous_$ac_func
26429 /* System header to define __stub macros and hopefully few prototypes,
26430 which can conflict with char $ac_func (); below.
26431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26432 <limits.h> exists even on freestanding compilers. */
26435 # include <limits.h>
26437 # include <assert.h>
26442 /* Override any gcc2 internal prototype to avoid an error. */
26447 /* We use char because int might match the return type of a gcc2
26448 builtin and then its argument prototype would still apply. */
26450 /* The GNU C library defines this for functions which it implements
26451 to always fail with ENOSYS. Some functions are actually named
26452 something starting with __ and the normal name is an alias. */
26453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26456 char (*f) () = $ac_func;
26465 return f != $ac_func;
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26472 (eval $ac_link) 2>conftest.er1
26474 grep -v '^ *+' conftest.er1 >conftest.err
26476 cat conftest.err >&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); } &&
26479 { ac_try='test -z "$ac_c_werror_flag"
26480 || test ! -s conftest.err'
26481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482 (eval $ac_try) 2>&5
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); }; } &&
26486 { ac_try='test -s conftest$ac_exeext'
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; }; then
26492 eval "$as_ac_var=yes"
26494 echo "$as_me: failed program was:" >&5
26495 sed 's/^/| /' conftest.$ac_ext >&5
26497 eval "$as_ac_var=no"
26499 rm -f conftest.err conftest.$ac_objext \
26500 conftest$ac_exeext conftest.$ac_ext
26502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26504 if test `eval echo '${'$as_ac_var'}'` = yes; then
26505 cat >>confdefs.h <<_ACEOF
26506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26517 for ac_func in snprintf vsnprintf gethostid fseeko
26519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26520 echo "$as_me:$LINENO: checking for $ac_func" >&5
26521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26522 if eval "test \"\${$as_ac_var+set}\" = set"; then
26523 echo $ECHO_N "(cached) $ECHO_C" >&6
26525 cat >conftest.$ac_ext <<_ACEOF
26528 cat confdefs.h >>conftest.$ac_ext
26529 cat >>conftest.$ac_ext <<_ACEOF
26530 /* end confdefs.h. */
26531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26533 #define $ac_func innocuous_$ac_func
26535 /* System header to define __stub macros and hopefully few prototypes,
26536 which can conflict with char $ac_func (); below.
26537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26538 <limits.h> exists even on freestanding compilers. */
26541 # include <limits.h>
26543 # include <assert.h>
26548 /* Override any gcc2 internal prototype to avoid an error. */
26553 /* We use char because int might match the return type of a gcc2
26554 builtin and then its argument prototype would still apply. */
26556 /* The GNU C library defines this for functions which it implements
26557 to always fail with ENOSYS. Some functions are actually named
26558 something starting with __ and the normal name is an alias. */
26559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26562 char (*f) () = $ac_func;
26571 return f != $ac_func;
26576 rm -f conftest.$ac_objext conftest$ac_exeext
26577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26578 (eval $ac_link) 2>conftest.er1
26580 grep -v '^ *+' conftest.er1 >conftest.err
26582 cat conftest.err >&5
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } &&
26585 { ac_try='test -z "$ac_c_werror_flag"
26586 || test ! -s conftest.err'
26587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588 (eval $ac_try) 2>&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); }; } &&
26592 { ac_try='test -s conftest$ac_exeext'
26593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594 (eval $ac_try) 2>&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); }; }; then
26598 eval "$as_ac_var=yes"
26600 echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26603 eval "$as_ac_var=no"
26605 rm -f conftest.err conftest.$ac_objext \
26606 conftest$ac_exeext conftest.$ac_ext
26608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26610 if test `eval echo '${'$as_ac_var'}'` = yes; then
26611 cat >>confdefs.h <<_ACEOF
26612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26623 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26626 echo "$as_me:$LINENO: checking for $ac_func" >&5
26627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26628 if eval "test \"\${$as_ac_var+set}\" = set"; then
26629 echo $ECHO_N "(cached) $ECHO_C" >&6
26631 cat >conftest.$ac_ext <<_ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h. */
26637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26639 #define $ac_func innocuous_$ac_func
26641 /* System header to define __stub macros and hopefully few prototypes,
26642 which can conflict with char $ac_func (); below.
26643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26644 <limits.h> exists even on freestanding compilers. */
26647 # include <limits.h>
26649 # include <assert.h>
26654 /* Override any gcc2 internal prototype to avoid an error. */
26659 /* We use char because int might match the return type of a gcc2
26660 builtin and then its argument prototype would still apply. */
26662 /* The GNU C library defines this for functions which it implements
26663 to always fail with ENOSYS. Some functions are actually named
26664 something starting with __ and the normal name is an alias. */
26665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26668 char (*f) () = $ac_func;
26677 return f != $ac_func;
26682 rm -f conftest.$ac_objext conftest$ac_exeext
26683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26684 (eval $ac_link) 2>conftest.er1
26686 grep -v '^ *+' conftest.er1 >conftest.err
26688 cat conftest.err >&5
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); } &&
26691 { ac_try='test -z "$ac_c_werror_flag"
26692 || test ! -s conftest.err'
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; } &&
26698 { ac_try='test -s conftest$ac_exeext'
26699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26700 (eval $ac_try) 2>&5
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); }; }; then
26704 eval "$as_ac_var=yes"
26706 echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26709 eval "$as_ac_var=no"
26711 rm -f conftest.err conftest.$ac_objext \
26712 conftest$ac_exeext conftest.$ac_ext
26714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26716 if test `eval echo '${'$as_ac_var'}'` = yes; then
26717 cat >>confdefs.h <<_ACEOF
26718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26725 # If resolver functions are not in libc check for -lnsl or -lresolv.
26726 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26727 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26728 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26729 echo $ECHO_N "(cached) $ECHO_C" >&6
26731 cat >conftest.$ac_ext <<_ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26737 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26739 #define gethostbyname_r innocuous_gethostbyname_r
26741 /* System header to define __stub macros and hopefully few prototypes,
26742 which can conflict with char gethostbyname_r (); below.
26743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26744 <limits.h> exists even on freestanding compilers. */
26747 # include <limits.h>
26749 # include <assert.h>
26752 #undef gethostbyname_r
26754 /* Override any gcc2 internal prototype to avoid an error. */
26759 /* We use char because int might match the return type of a gcc2
26760 builtin and then its argument prototype would still apply. */
26761 char gethostbyname_r ();
26762 /* The GNU C library defines this for functions which it implements
26763 to always fail with ENOSYS. Some functions are actually named
26764 something starting with __ and the normal name is an alias. */
26765 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26768 char (*f) () = gethostbyname_r;
26777 return f != gethostbyname_r;
26782 rm -f conftest.$ac_objext conftest$ac_exeext
26783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26784 (eval $ac_link) 2>conftest.er1
26786 grep -v '^ *+' conftest.er1 >conftest.err
26788 cat conftest.err >&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } &&
26791 { ac_try='test -z "$ac_c_werror_flag"
26792 || test ! -s conftest.err'
26793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794 (eval $ac_try) 2>&5
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; } &&
26798 { ac_try='test -s conftest$ac_exeext'
26799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800 (eval $ac_try) 2>&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; }; then
26804 ac_cv_func_gethostbyname_r=yes
26806 echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26809 ac_cv_func_gethostbyname_r=no
26811 rm -f conftest.err conftest.$ac_objext \
26812 conftest$ac_exeext conftest.$ac_ext
26814 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26815 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26816 if test $ac_cv_func_gethostbyname_r = yes; then
26817 echo "$as_me:$LINENO: result: using libc's resolver" >&5
26818 echo "${ECHO_T}using libc's resolver" >&6
26821 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26822 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26823 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26824 echo $ECHO_N "(cached) $ECHO_C" >&6
26826 ac_check_lib_save_LIBS=$LIBS
26828 cat >conftest.$ac_ext <<_ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26835 /* Override any gcc2 internal prototype to avoid an error. */
26839 /* We use char because int might match the return type of a gcc2
26840 builtin and then its argument prototype would still apply. */
26841 char gethostbyname_r ();
26845 gethostbyname_r ();
26850 rm -f conftest.$ac_objext conftest$ac_exeext
26851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26852 (eval $ac_link) 2>conftest.er1
26854 grep -v '^ *+' conftest.er1 >conftest.err
26856 cat conftest.err >&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } &&
26859 { ac_try='test -z "$ac_c_werror_flag"
26860 || test ! -s conftest.err'
26861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862 (eval $ac_try) 2>&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); }; } &&
26866 { ac_try='test -s conftest$ac_exeext'
26867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26868 (eval $ac_try) 2>&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); }; }; then
26872 ac_cv_lib_nsl_gethostbyname_r=yes
26874 echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26877 ac_cv_lib_nsl_gethostbyname_r=no
26879 rm -f conftest.err conftest.$ac_objext \
26880 conftest$ac_exeext conftest.$ac_ext
26881 LIBS=$ac_check_lib_save_LIBS
26883 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26884 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26885 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26886 cat >>confdefs.h <<_ACEOF
26887 #define HAVE_LIBNSL 1
26895 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26896 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26897 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26898 echo $ECHO_N "(cached) $ECHO_C" >&6
26900 ac_check_lib_save_LIBS=$LIBS
26901 LIBS="-lresolv $LIBS"
26902 cat >conftest.$ac_ext <<_ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h. */
26909 /* Override any gcc2 internal prototype to avoid an error. */
26913 /* We use char because int might match the return type of a gcc2
26914 builtin and then its argument prototype would still apply. */
26915 char gethostbyname_r ();
26919 gethostbyname_r ();
26924 rm -f conftest.$ac_objext conftest$ac_exeext
26925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26926 (eval $ac_link) 2>conftest.er1
26928 grep -v '^ *+' conftest.er1 >conftest.err
26930 cat conftest.err >&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); } &&
26933 { ac_try='test -z "$ac_c_werror_flag"
26934 || test ! -s conftest.err'
26935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26936 (eval $ac_try) 2>&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); }; } &&
26940 { ac_try='test -s conftest$ac_exeext'
26941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942 (eval $ac_try) 2>&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); }; }; then
26946 ac_cv_lib_resolv_gethostbyname_r=yes
26948 echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.$ac_ext >&5
26951 ac_cv_lib_resolv_gethostbyname_r=no
26953 rm -f conftest.err conftest.$ac_objext \
26954 conftest$ac_exeext conftest.$ac_ext
26955 LIBS=$ac_check_lib_save_LIBS
26957 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26958 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26959 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26960 cat >>confdefs.h <<_ACEOF
26961 #define HAVE_LIBRESOLV 1
26964 LIBS="-lresolv $LIBS"
26974 for ac_func in inet_pton
26976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26977 echo "$as_me:$LINENO: checking for $ac_func" >&5
26978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26979 if eval "test \"\${$as_ac_var+set}\" = set"; then
26980 echo $ECHO_N "(cached) $ECHO_C" >&6
26982 cat >conftest.$ac_ext <<_ACEOF
26985 cat confdefs.h >>conftest.$ac_ext
26986 cat >>conftest.$ac_ext <<_ACEOF
26987 /* end confdefs.h. */
26988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26990 #define $ac_func innocuous_$ac_func
26992 /* System header to define __stub macros and hopefully few prototypes,
26993 which can conflict with char $ac_func (); below.
26994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26995 <limits.h> exists even on freestanding compilers. */
26998 # include <limits.h>
27000 # include <assert.h>
27005 /* Override any gcc2 internal prototype to avoid an error. */
27010 /* We use char because int might match the return type of a gcc2
27011 builtin and then its argument prototype would still apply. */
27013 /* The GNU C library defines this for functions which it implements
27014 to always fail with ENOSYS. Some functions are actually named
27015 something starting with __ and the normal name is an alias. */
27016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27019 char (*f) () = $ac_func;
27028 return f != $ac_func;
27033 rm -f conftest.$ac_objext conftest$ac_exeext
27034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27035 (eval $ac_link) 2>conftest.er1
27037 grep -v '^ *+' conftest.er1 >conftest.err
27039 cat conftest.err >&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } &&
27042 { ac_try='test -z "$ac_c_werror_flag"
27043 || test ! -s conftest.err'
27044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045 (eval $ac_try) 2>&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; } &&
27049 { ac_try='test -s conftest$ac_exeext'
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
27055 eval "$as_ac_var=yes"
27057 echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27060 eval "$as_ac_var=no"
27062 rm -f conftest.err conftest.$ac_objext \
27063 conftest$ac_exeext conftest.$ac_ext
27065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27067 if test `eval echo '${'$as_ac_var'}'` = yes; then
27068 cat >>confdefs.h <<_ACEOF
27069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27071 cat >>confdefs.h <<\_ACEOF
27072 #define HAVE_INET_PTON 1
27079 for ac_func in inet_ntop
27081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27082 echo "$as_me:$LINENO: checking for $ac_func" >&5
27083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27084 if eval "test \"\${$as_ac_var+set}\" = set"; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27087 cat >conftest.$ac_ext <<_ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27095 #define $ac_func innocuous_$ac_func
27097 /* System header to define __stub macros and hopefully few prototypes,
27098 which can conflict with char $ac_func (); below.
27099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27100 <limits.h> exists even on freestanding compilers. */
27103 # include <limits.h>
27105 # include <assert.h>
27110 /* Override any gcc2 internal prototype to avoid an error. */
27115 /* We use char because int might match the return type of a gcc2
27116 builtin and then its argument prototype would still apply. */
27118 /* The GNU C library defines this for functions which it implements
27119 to always fail with ENOSYS. Some functions are actually named
27120 something starting with __ and the normal name is an alias. */
27121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27124 char (*f) () = $ac_func;
27133 return f != $ac_func;
27138 rm -f conftest.$ac_objext conftest$ac_exeext
27139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27140 (eval $ac_link) 2>conftest.er1
27142 grep -v '^ *+' conftest.er1 >conftest.err
27144 cat conftest.err >&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } &&
27147 { ac_try='test -z "$ac_c_werror_flag"
27148 || test ! -s conftest.err'
27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150 (eval $ac_try) 2>&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); }; } &&
27154 { ac_try='test -s conftest$ac_exeext'
27155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27156 (eval $ac_try) 2>&5
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); }; }; then
27160 eval "$as_ac_var=yes"
27162 echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27165 eval "$as_ac_var=no"
27167 rm -f conftest.err conftest.$ac_objext \
27168 conftest$ac_exeext conftest.$ac_ext
27170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27172 if test `eval echo '${'$as_ac_var'}'` = yes; then
27173 cat >>confdefs.h <<_ACEOF
27174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27176 cat >>confdefs.h <<\_ACEOF
27177 #define HAVE_INET_NTOP 1
27184 for ac_func in gethostbyname2
27186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27187 echo "$as_me:$LINENO: checking for $ac_func" >&5
27188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27189 if eval "test \"\${$as_ac_var+set}\" = set"; then
27190 echo $ECHO_N "(cached) $ECHO_C" >&6
27192 cat >conftest.$ac_ext <<_ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h. */
27198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27200 #define $ac_func innocuous_$ac_func
27202 /* System header to define __stub macros and hopefully few prototypes,
27203 which can conflict with char $ac_func (); below.
27204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27205 <limits.h> exists even on freestanding compilers. */
27208 # include <limits.h>
27210 # include <assert.h>
27215 /* Override any gcc2 internal prototype to avoid an error. */
27220 /* We use char because int might match the return type of a gcc2
27221 builtin and then its argument prototype would still apply. */
27223 /* The GNU C library defines this for functions which it implements
27224 to always fail with ENOSYS. Some functions are actually named
27225 something starting with __ and the normal name is an alias. */
27226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27229 char (*f) () = $ac_func;
27238 return f != $ac_func;
27243 rm -f conftest.$ac_objext conftest$ac_exeext
27244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27245 (eval $ac_link) 2>conftest.er1
27247 grep -v '^ *+' conftest.er1 >conftest.err
27249 cat conftest.err >&5
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); } &&
27252 { ac_try='test -z "$ac_c_werror_flag"
27253 || test ! -s conftest.err'
27254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 (eval $ac_try) 2>&5
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }; } &&
27259 { ac_try='test -s conftest$ac_exeext'
27260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27261 (eval $ac_try) 2>&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); }; }; then
27265 eval "$as_ac_var=yes"
27267 echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27270 eval "$as_ac_var=no"
27272 rm -f conftest.err conftest.$ac_objext \
27273 conftest$ac_exeext conftest.$ac_ext
27275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27277 if test `eval echo '${'$as_ac_var'}'` = yes; then
27278 cat >>confdefs.h <<_ACEOF
27279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27281 cat >>confdefs.h <<\_ACEOF
27282 #define HAVE_GETHOSTBYNAME2 1
27289 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27290 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27291 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27292 echo $ECHO_N "(cached) $ECHO_C" >&6
27294 cat >conftest.$ac_ext <<_ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27300 #include <sys/socket.h>
27304 struct sockaddr s; s.sa_len;
27309 rm -f conftest.$ac_objext
27310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27311 (eval $ac_compile) 2>conftest.er1
27313 grep -v '^ *+' conftest.er1 >conftest.err
27315 cat conftest.err >&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); } &&
27318 { ac_try='test -z "$ac_c_werror_flag"
27319 || test ! -s conftest.err'
27320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27321 (eval $ac_try) 2>&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); }; } &&
27325 { ac_try='test -s conftest.$ac_objext'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
27331 ac_cv_struct_sockaddr_sa_len=yes
27333 echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27336 ac_cv_struct_sockaddr_sa_len=no
27338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27340 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27341 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27343 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27345 cat >>confdefs.h <<\_ACEOF
27346 #define HAVE_SA_LEN 1
27352 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27353 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27354 if test "${ac_cv_ipv6_support+set}" = set; then
27355 echo $ECHO_N "(cached) $ECHO_C" >&6
27357 cat >conftest.$ac_ext <<_ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h. */
27363 #include <sys/types.h>
27364 #include <sys/socket.h>
27365 #include <netinet/in.h>
27369 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27375 rm -f conftest.$ac_objext conftest$ac_exeext
27376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27377 (eval $ac_link) 2>conftest.er1
27379 grep -v '^ *+' conftest.er1 >conftest.err
27381 cat conftest.err >&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); } &&
27384 { ac_try='test -z "$ac_c_werror_flag"
27385 || test ! -s conftest.err'
27386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387 (eval $ac_try) 2>&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; } &&
27391 { ac_try='test -s conftest$ac_exeext'
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; }; then
27397 ac_cv_ipv6_support=yes
27399 echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27402 ac_cv_ipv6_support=no
27404 rm -f conftest.err conftest.$ac_objext \
27405 conftest$ac_exeext conftest.$ac_ext
27407 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27408 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27410 if test "$ac_cv_ipv6_support" = yes; then
27412 cat >>confdefs.h <<\_ACEOF
27413 #define HAVE_IPV6 1
27421 for ac_func in strftime
27423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27424 echo "$as_me:$LINENO: checking for $ac_func" >&5
27425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27426 if eval "test \"\${$as_ac_var+set}\" = set"; then
27427 echo $ECHO_N "(cached) $ECHO_C" >&6
27429 cat >conftest.$ac_ext <<_ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h. */
27435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27437 #define $ac_func innocuous_$ac_func
27439 /* System header to define __stub macros and hopefully few prototypes,
27440 which can conflict with char $ac_func (); below.
27441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27442 <limits.h> exists even on freestanding compilers. */
27445 # include <limits.h>
27447 # include <assert.h>
27452 /* Override any gcc2 internal prototype to avoid an error. */
27457 /* We use char because int might match the return type of a gcc2
27458 builtin and then its argument prototype would still apply. */
27460 /* The GNU C library defines this for functions which it implements
27461 to always fail with ENOSYS. Some functions are actually named
27462 something starting with __ and the normal name is an alias. */
27463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27466 char (*f) () = $ac_func;
27475 return f != $ac_func;
27480 rm -f conftest.$ac_objext conftest$ac_exeext
27481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27482 (eval $ac_link) 2>conftest.er1
27484 grep -v '^ *+' conftest.er1 >conftest.err
27486 cat conftest.err >&5
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); } &&
27489 { ac_try='test -z "$ac_c_werror_flag"
27490 || test ! -s conftest.err'
27491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27492 (eval $ac_try) 2>&5
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); }; } &&
27496 { ac_try='test -s conftest$ac_exeext'
27497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27498 (eval $ac_try) 2>&5
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); }; }; then
27502 eval "$as_ac_var=yes"
27504 echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27507 eval "$as_ac_var=no"
27509 rm -f conftest.err conftest.$ac_objext \
27510 conftest$ac_exeext conftest.$ac_ext
27512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27514 if test `eval echo '${'$as_ac_var'}'` = yes; then
27515 cat >>confdefs.h <<_ACEOF
27516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27520 # strftime is in -lintl on SCO UNIX.
27521 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27522 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27523 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27524 echo $ECHO_N "(cached) $ECHO_C" >&6
27526 ac_check_lib_save_LIBS=$LIBS
27527 LIBS="-lintl $LIBS"
27528 cat >conftest.$ac_ext <<_ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h. */
27535 /* Override any gcc2 internal prototype to avoid an error. */
27539 /* We use char because int might match the return type of a gcc2
27540 builtin and then its argument prototype would still apply. */
27550 rm -f conftest.$ac_objext conftest$ac_exeext
27551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27552 (eval $ac_link) 2>conftest.er1
27554 grep -v '^ *+' conftest.er1 >conftest.err
27556 cat conftest.err >&5
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); } &&
27559 { ac_try='test -z "$ac_c_werror_flag"
27560 || test ! -s conftest.err'
27561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562 (eval $ac_try) 2>&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); }; } &&
27566 { ac_try='test -s conftest$ac_exeext'
27567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27568 (eval $ac_try) 2>&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; }; then
27572 ac_cv_lib_intl_strftime=yes
27574 echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27577 ac_cv_lib_intl_strftime=no
27579 rm -f conftest.err conftest.$ac_objext \
27580 conftest$ac_exeext conftest.$ac_ext
27581 LIBS=$ac_check_lib_save_LIBS
27583 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27584 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27585 if test $ac_cv_lib_intl_strftime = yes; then
27586 cat >>confdefs.h <<\_ACEOF
27587 #define HAVE_STRFTIME 1
27590 LIBS="-lintl $LIBS"
27597 for ac_func in vprintf
27599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27600 echo "$as_me:$LINENO: checking for $ac_func" >&5
27601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27602 if eval "test \"\${$as_ac_var+set}\" = set"; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
27605 cat >conftest.$ac_ext <<_ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h. */
27611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27613 #define $ac_func innocuous_$ac_func
27615 /* System header to define __stub macros and hopefully few prototypes,
27616 which can conflict with char $ac_func (); below.
27617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27618 <limits.h> exists even on freestanding compilers. */
27621 # include <limits.h>
27623 # include <assert.h>
27628 /* Override any gcc2 internal prototype to avoid an error. */
27633 /* We use char because int might match the return type of a gcc2
27634 builtin and then its argument prototype would still apply. */
27636 /* The GNU C library defines this for functions which it implements
27637 to always fail with ENOSYS. Some functions are actually named
27638 something starting with __ and the normal name is an alias. */
27639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27642 char (*f) () = $ac_func;
27651 return f != $ac_func;
27656 rm -f conftest.$ac_objext conftest$ac_exeext
27657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27658 (eval $ac_link) 2>conftest.er1
27660 grep -v '^ *+' conftest.er1 >conftest.err
27662 cat conftest.err >&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); } &&
27665 { ac_try='test -z "$ac_c_werror_flag"
27666 || test ! -s conftest.err'
27667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668 (eval $ac_try) 2>&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; } &&
27672 { ac_try='test -s conftest$ac_exeext'
27673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27674 (eval $ac_try) 2>&5
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); }; }; then
27678 eval "$as_ac_var=yes"
27680 echo "$as_me: failed program was:" >&5
27681 sed 's/^/| /' conftest.$ac_ext >&5
27683 eval "$as_ac_var=no"
27685 rm -f conftest.err conftest.$ac_objext \
27686 conftest$ac_exeext conftest.$ac_ext
27688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27690 if test `eval echo '${'$as_ac_var'}'` = yes; then
27691 cat >>confdefs.h <<_ACEOF
27692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27695 echo "$as_me:$LINENO: checking for _doprnt" >&5
27696 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27697 if test "${ac_cv_func__doprnt+set}" = set; then
27698 echo $ECHO_N "(cached) $ECHO_C" >&6
27700 cat >conftest.$ac_ext <<_ACEOF
27703 cat confdefs.h >>conftest.$ac_ext
27704 cat >>conftest.$ac_ext <<_ACEOF
27705 /* end confdefs.h. */
27706 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27708 #define _doprnt innocuous__doprnt
27710 /* System header to define __stub macros and hopefully few prototypes,
27711 which can conflict with char _doprnt (); below.
27712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27713 <limits.h> exists even on freestanding compilers. */
27716 # include <limits.h>
27718 # include <assert.h>
27723 /* Override any gcc2 internal prototype to avoid an error. */
27728 /* We use char because int might match the return type of a gcc2
27729 builtin and then its argument prototype would still apply. */
27731 /* The GNU C library defines this for functions which it implements
27732 to always fail with ENOSYS. Some functions are actually named
27733 something starting with __ and the normal name is an alias. */
27734 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27737 char (*f) () = _doprnt;
27746 return f != _doprnt;
27751 rm -f conftest.$ac_objext conftest$ac_exeext
27752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27753 (eval $ac_link) 2>conftest.er1
27755 grep -v '^ *+' conftest.er1 >conftest.err
27757 cat conftest.err >&5
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); } &&
27760 { ac_try='test -z "$ac_c_werror_flag"
27761 || test ! -s conftest.err'
27762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27763 (eval $ac_try) 2>&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; } &&
27767 { ac_try='test -s conftest$ac_exeext'
27768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769 (eval $ac_try) 2>&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
27773 ac_cv_func__doprnt=yes
27775 echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27778 ac_cv_func__doprnt=no
27780 rm -f conftest.err conftest.$ac_objext \
27781 conftest$ac_exeext conftest.$ac_ext
27783 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27784 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27785 if test $ac_cv_func__doprnt = yes; then
27787 cat >>confdefs.h <<\_ACEOF
27788 #define HAVE_DOPRNT 1
27797 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27798 # for constant arguments. Useless!
27799 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27800 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27801 if test "${ac_cv_working_alloca_h+set}" = set; then
27802 echo $ECHO_N "(cached) $ECHO_C" >&6
27804 cat >conftest.$ac_ext <<_ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h. */
27810 #include <alloca.h>
27814 char *p = (char *) alloca (2 * sizeof (int));
27819 rm -f conftest.$ac_objext conftest$ac_exeext
27820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27821 (eval $ac_link) 2>conftest.er1
27823 grep -v '^ *+' conftest.er1 >conftest.err
27825 cat conftest.err >&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } &&
27828 { ac_try='test -z "$ac_c_werror_flag"
27829 || test ! -s conftest.err'
27830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27831 (eval $ac_try) 2>&5
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); }; } &&
27835 { ac_try='test -s conftest$ac_exeext'
27836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837 (eval $ac_try) 2>&5
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; }; then
27841 ac_cv_working_alloca_h=yes
27843 echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27846 ac_cv_working_alloca_h=no
27848 rm -f conftest.err conftest.$ac_objext \
27849 conftest$ac_exeext conftest.$ac_ext
27851 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27852 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27853 if test $ac_cv_working_alloca_h = yes; then
27855 cat >>confdefs.h <<\_ACEOF
27856 #define HAVE_ALLOCA_H 1
27861 echo "$as_me:$LINENO: checking for alloca" >&5
27862 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27863 if test "${ac_cv_func_alloca_works+set}" = set; then
27864 echo $ECHO_N "(cached) $ECHO_C" >&6
27866 cat >conftest.$ac_ext <<_ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h. */
27873 # define alloca __builtin_alloca
27876 # include <malloc.h>
27877 # define alloca _alloca
27880 # include <alloca.h>
27885 # ifndef alloca /* predefined by HP cc +Olibcalls */
27896 char *p = (char *) alloca (1);
27901 rm -f conftest.$ac_objext conftest$ac_exeext
27902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27903 (eval $ac_link) 2>conftest.er1
27905 grep -v '^ *+' conftest.er1 >conftest.err
27907 cat conftest.err >&5
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); } &&
27910 { ac_try='test -z "$ac_c_werror_flag"
27911 || test ! -s conftest.err'
27912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913 (eval $ac_try) 2>&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); }; } &&
27917 { ac_try='test -s conftest$ac_exeext'
27918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919 (eval $ac_try) 2>&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; }; then
27923 ac_cv_func_alloca_works=yes
27925 echo "$as_me: failed program was:" >&5
27926 sed 's/^/| /' conftest.$ac_ext >&5
27928 ac_cv_func_alloca_works=no
27930 rm -f conftest.err conftest.$ac_objext \
27931 conftest$ac_exeext conftest.$ac_ext
27933 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27934 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27936 if test $ac_cv_func_alloca_works = yes; then
27938 cat >>confdefs.h <<\_ACEOF
27939 #define HAVE_ALLOCA 1
27943 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27944 # that cause trouble. Some versions do not even contain alloca or
27945 # contain a buggy version. If you still want to use their alloca,
27946 # use ar to extract alloca.o from them instead of compiling alloca.c.
27948 ALLOCA=alloca.$ac_objext
27950 cat >>confdefs.h <<\_ACEOF
27955 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27956 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27957 if test "${ac_cv_os_cray+set}" = set; then
27958 echo $ECHO_N "(cached) $ECHO_C" >&6
27960 cat >conftest.$ac_ext <<_ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h. */
27966 #if defined(CRAY) && ! defined(CRAY2)
27973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27974 $EGREP "webecray" >/dev/null 2>&1; then
27982 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27983 echo "${ECHO_T}$ac_cv_os_cray" >&6
27984 if test $ac_cv_os_cray = yes; then
27985 for ac_func in _getb67 GETB67 getb67; do
27986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27987 echo "$as_me:$LINENO: checking for $ac_func" >&5
27988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27989 if eval "test \"\${$as_ac_var+set}\" = set"; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27992 cat >conftest.$ac_ext <<_ACEOF
27995 cat confdefs.h >>conftest.$ac_ext
27996 cat >>conftest.$ac_ext <<_ACEOF
27997 /* end confdefs.h. */
27998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28000 #define $ac_func innocuous_$ac_func
28002 /* System header to define __stub macros and hopefully few prototypes,
28003 which can conflict with char $ac_func (); below.
28004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28005 <limits.h> exists even on freestanding compilers. */
28008 # include <limits.h>
28010 # include <assert.h>
28015 /* Override any gcc2 internal prototype to avoid an error. */
28020 /* We use char because int might match the return type of a gcc2
28021 builtin and then its argument prototype would still apply. */
28023 /* The GNU C library defines this for functions which it implements
28024 to always fail with ENOSYS. Some functions are actually named
28025 something starting with __ and the normal name is an alias. */
28026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28029 char (*f) () = $ac_func;
28038 return f != $ac_func;
28043 rm -f conftest.$ac_objext conftest$ac_exeext
28044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28045 (eval $ac_link) 2>conftest.er1
28047 grep -v '^ *+' conftest.er1 >conftest.err
28049 cat conftest.err >&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } &&
28052 { ac_try='test -z "$ac_c_werror_flag"
28053 || test ! -s conftest.err'
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; } &&
28059 { ac_try='test -s conftest$ac_exeext'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; }; then
28065 eval "$as_ac_var=yes"
28067 echo "$as_me: failed program was:" >&5
28068 sed 's/^/| /' conftest.$ac_ext >&5
28070 eval "$as_ac_var=no"
28072 rm -f conftest.err conftest.$ac_objext \
28073 conftest$ac_exeext conftest.$ac_ext
28075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28077 if test `eval echo '${'$as_ac_var'}'` = yes; then
28079 cat >>confdefs.h <<_ACEOF
28080 #define CRAY_STACKSEG_END $ac_func
28089 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28090 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28091 if test "${ac_cv_c_stack_direction+set}" = set; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28094 if test "$cross_compiling" = yes; then
28095 ac_cv_c_stack_direction=0
28097 cat >conftest.$ac_ext <<_ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h. */
28104 find_stack_direction ()
28106 static char *addr = 0;
28111 return find_stack_direction ();
28114 return (&dummy > addr) ? 1 : -1;
28120 exit (find_stack_direction () < 0);
28123 rm -f conftest$ac_exeext
28124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28125 (eval $ac_link) 2>&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; }; then
28134 ac_cv_c_stack_direction=1
28136 echo "$as_me: program exited with status $ac_status" >&5
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28140 ( exit $ac_status )
28141 ac_cv_c_stack_direction=-1
28143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28146 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28147 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28149 cat >>confdefs.h <<_ACEOF
28150 #define STACK_DIRECTION $ac_cv_c_stack_direction
28156 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28157 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28158 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28159 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28162 ac_check_lib_save_LIBS=$LIBS
28164 cat >conftest.$ac_ext <<_ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h. */
28171 /* Override any gcc2 internal prototype to avoid an error. */
28175 /* We use char because int might match the return type of a gcc2
28176 builtin and then its argument prototype would still apply. */
28186 rm -f conftest.$ac_objext conftest$ac_exeext
28187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28188 (eval $ac_link) 2>conftest.er1
28190 grep -v '^ *+' conftest.er1 >conftest.err
28192 cat conftest.err >&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); } &&
28195 { ac_try='test -z "$ac_c_werror_flag"
28196 || test ! -s conftest.err'
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; } &&
28202 { ac_try='test -s conftest$ac_exeext'
28203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204 (eval $ac_try) 2>&5
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; }; then
28208 ac_cv_lib_sun_getmntent=yes
28210 echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28213 ac_cv_lib_sun_getmntent=no
28215 rm -f conftest.err conftest.$ac_objext \
28216 conftest$ac_exeext conftest.$ac_ext
28217 LIBS=$ac_check_lib_save_LIBS
28219 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28220 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28221 if test $ac_cv_lib_sun_getmntent = yes; then
28224 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28225 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28226 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28227 echo $ECHO_N "(cached) $ECHO_C" >&6
28229 ac_check_lib_save_LIBS=$LIBS
28231 cat >conftest.$ac_ext <<_ACEOF
28234 cat confdefs.h >>conftest.$ac_ext
28235 cat >>conftest.$ac_ext <<_ACEOF
28236 /* end confdefs.h. */
28238 /* Override any gcc2 internal prototype to avoid an error. */
28242 /* We use char because int might match the return type of a gcc2
28243 builtin and then its argument prototype would still apply. */
28253 rm -f conftest.$ac_objext conftest$ac_exeext
28254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28255 (eval $ac_link) 2>conftest.er1
28257 grep -v '^ *+' conftest.er1 >conftest.err
28259 cat conftest.err >&5
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); } &&
28262 { ac_try='test -z "$ac_c_werror_flag"
28263 || test ! -s conftest.err'
28264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265 (eval $ac_try) 2>&5
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); }; } &&
28269 { ac_try='test -s conftest$ac_exeext'
28270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28271 (eval $ac_try) 2>&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); }; }; then
28275 ac_cv_lib_seq_getmntent=yes
28277 echo "$as_me: failed program was:" >&5
28278 sed 's/^/| /' conftest.$ac_ext >&5
28280 ac_cv_lib_seq_getmntent=no
28282 rm -f conftest.err conftest.$ac_objext \
28283 conftest$ac_exeext conftest.$ac_ext
28284 LIBS=$ac_check_lib_save_LIBS
28286 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28287 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28288 if test $ac_cv_lib_seq_getmntent = yes; then
28291 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28292 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28293 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28294 echo $ECHO_N "(cached) $ECHO_C" >&6
28296 ac_check_lib_save_LIBS=$LIBS
28298 cat >conftest.$ac_ext <<_ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h. */
28305 /* Override any gcc2 internal prototype to avoid an error. */
28309 /* We use char because int might match the return type of a gcc2
28310 builtin and then its argument prototype would still apply. */
28320 rm -f conftest.$ac_objext conftest$ac_exeext
28321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28322 (eval $ac_link) 2>conftest.er1
28324 grep -v '^ *+' conftest.er1 >conftest.err
28326 cat conftest.err >&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } &&
28329 { ac_try='test -z "$ac_c_werror_flag"
28330 || test ! -s conftest.err'
28331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332 (eval $ac_try) 2>&5
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); }; } &&
28336 { ac_try='test -s conftest$ac_exeext'
28337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338 (eval $ac_try) 2>&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
28342 ac_cv_lib_gen_getmntent=yes
28344 echo "$as_me: failed program was:" >&5
28345 sed 's/^/| /' conftest.$ac_ext >&5
28347 ac_cv_lib_gen_getmntent=no
28349 rm -f conftest.err conftest.$ac_objext \
28350 conftest$ac_exeext conftest.$ac_ext
28351 LIBS=$ac_check_lib_save_LIBS
28353 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28354 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28355 if test $ac_cv_lib_gen_getmntent = yes; then
28364 for ac_func in getmntent
28366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28367 echo "$as_me:$LINENO: checking for $ac_func" >&5
28368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28369 if eval "test \"\${$as_ac_var+set}\" = set"; then
28370 echo $ECHO_N "(cached) $ECHO_C" >&6
28372 cat >conftest.$ac_ext <<_ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28380 #define $ac_func innocuous_$ac_func
28382 /* System header to define __stub macros and hopefully few prototypes,
28383 which can conflict with char $ac_func (); below.
28384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28385 <limits.h> exists even on freestanding compilers. */
28388 # include <limits.h>
28390 # include <assert.h>
28395 /* Override any gcc2 internal prototype to avoid an error. */
28400 /* We use char because int might match the return type of a gcc2
28401 builtin and then its argument prototype would still apply. */
28403 /* The GNU C library defines this for functions which it implements
28404 to always fail with ENOSYS. Some functions are actually named
28405 something starting with __ and the normal name is an alias. */
28406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28409 char (*f) () = $ac_func;
28418 return f != $ac_func;
28423 rm -f conftest.$ac_objext conftest$ac_exeext
28424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28425 (eval $ac_link) 2>conftest.er1
28427 grep -v '^ *+' conftest.er1 >conftest.err
28429 cat conftest.err >&5
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); } &&
28432 { ac_try='test -z "$ac_c_werror_flag"
28433 || test ! -s conftest.err'
28434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28435 (eval $ac_try) 2>&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); }; } &&
28439 { ac_try='test -s conftest$ac_exeext'
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; }; then
28445 eval "$as_ac_var=yes"
28447 echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.$ac_ext >&5
28450 eval "$as_ac_var=no"
28452 rm -f conftest.err conftest.$ac_objext \
28453 conftest$ac_exeext conftest.$ac_ext
28455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28457 if test `eval echo '${'$as_ac_var'}'` = yes; then
28458 cat >>confdefs.h <<_ACEOF
28459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28466 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28467 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28468 if test "${ac_cv_func_closedir_void+set}" = set; then
28469 echo $ECHO_N "(cached) $ECHO_C" >&6
28471 if test "$cross_compiling" = yes; then
28472 ac_cv_func_closedir_void=yes
28474 cat >conftest.$ac_ext <<_ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28480 $ac_includes_default
28481 #include <$ac_header_dirent>
28482 #ifndef __cplusplus
28489 exit (closedir (opendir (".")) != 0);
28494 rm -f conftest$ac_exeext
28495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28496 (eval $ac_link) 2>&5
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28501 (eval $ac_try) 2>&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; }; then
28505 ac_cv_func_closedir_void=no
28507 echo "$as_me: program exited with status $ac_status" >&5
28508 echo "$as_me: failed program was:" >&5
28509 sed 's/^/| /' conftest.$ac_ext >&5
28511 ( exit $ac_status )
28512 ac_cv_func_closedir_void=yes
28514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28517 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28518 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28519 if test $ac_cv_func_closedir_void = yes; then
28521 cat >>confdefs.h <<\_ACEOF
28522 #define CLOSEDIR_VOID 1
28527 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28528 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28529 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28530 echo $ECHO_N "(cached) $ECHO_C" >&6
28532 if test "$cross_compiling" = yes; then
28533 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28534 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28535 { (exit 1); exit 1; }; }
28537 cat >conftest.$ac_ext <<_ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h. */
28544 # include <unistd.h>
28550 /* If this system has a BSD-style setpgrp which takes arguments,
28551 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28552 exit successfully. */
28553 exit (setpgrp (1,1) == -1 ? 0 : 1);
28558 rm -f conftest$ac_exeext
28559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28560 (eval $ac_link) 2>&5
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565 (eval $ac_try) 2>&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); }; }; then
28569 ac_cv_func_setpgrp_void=no
28571 echo "$as_me: program exited with status $ac_status" >&5
28572 echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28575 ( exit $ac_status )
28576 ac_cv_func_setpgrp_void=yes
28578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28581 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28582 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28583 if test $ac_cv_func_setpgrp_void = yes; then
28585 cat >>confdefs.h <<\_ACEOF
28586 #define SETPGRP_VOID 1
28590 # AC_FUNC_FNMATCH dnl use local version
28593 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28594 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28595 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28598 ac_check_lib_save_LIBS=$LIBS
28599 LIBS="-lintl $LIBS"
28600 cat >conftest.$ac_ext <<_ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h. */
28607 /* Override any gcc2 internal prototype to avoid an error. */
28611 /* We use char because int might match the return type of a gcc2
28612 builtin and then its argument prototype would still apply. */
28622 rm -f conftest.$ac_objext conftest$ac_exeext
28623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28624 (eval $ac_link) 2>conftest.er1
28626 grep -v '^ *+' conftest.er1 >conftest.err
28628 cat conftest.err >&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } &&
28631 { ac_try='test -z "$ac_c_werror_flag"
28632 || test ! -s conftest.err'
28633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28634 (eval $ac_try) 2>&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); }; } &&
28638 { ac_try='test -s conftest$ac_exeext'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; }; then
28644 ac_cv_lib_intl_gettext=yes
28646 echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28649 ac_cv_lib_intl_gettext=no
28651 rm -f conftest.err conftest.$ac_objext \
28652 conftest$ac_exeext conftest.$ac_ext
28653 LIBS=$ac_check_lib_save_LIBS
28655 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28656 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28657 if test $ac_cv_lib_intl_gettext = yes; then
28658 LIBS="$LIBS -lintl"
28664 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28665 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28666 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28667 echo $ECHO_N "(cached) $ECHO_C" >&6
28669 ac_check_lib_save_LIBS=$LIBS
28671 cat >conftest.$ac_ext <<_ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h. */
28678 /* Override any gcc2 internal prototype to avoid an error. */
28682 /* We use char because int might match the return type of a gcc2
28683 builtin and then its argument prototype would still apply. */
28693 rm -f conftest.$ac_objext conftest$ac_exeext
28694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28695 (eval $ac_link) 2>conftest.er1
28697 grep -v '^ *+' conftest.er1 >conftest.err
28699 cat conftest.err >&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); } &&
28702 { ac_try='test -z "$ac_c_werror_flag"
28703 || test ! -s conftest.err'
28704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705 (eval $ac_try) 2>&5
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; } &&
28709 { ac_try='test -s conftest$ac_exeext'
28710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28711 (eval $ac_try) 2>&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; }; then
28715 ac_cv_lib_sun_getpwnam=yes
28717 echo "$as_me: failed program was:" >&5
28718 sed 's/^/| /' conftest.$ac_ext >&5
28720 ac_cv_lib_sun_getpwnam=no
28722 rm -f conftest.err conftest.$ac_objext \
28723 conftest$ac_exeext conftest.$ac_ext
28724 LIBS=$ac_check_lib_save_LIBS
28726 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28727 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28728 if test $ac_cv_lib_sun_getpwnam = yes; then
28729 cat >>confdefs.h <<_ACEOF
28730 #define HAVE_LIBSUN 1
28739 for ac_header in zlib.h
28741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28743 echo "$as_me:$LINENO: checking for $ac_header" >&5
28744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28746 echo $ECHO_N "(cached) $ECHO_C" >&6
28748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28751 # Is the header compilable?
28752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28754 cat >conftest.$ac_ext <<_ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h. */
28760 $ac_includes_default
28761 #include <$ac_header>
28763 rm -f conftest.$ac_objext
28764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28765 (eval $ac_compile) 2>conftest.er1
28767 grep -v '^ *+' conftest.er1 >conftest.err
28769 cat conftest.err >&5
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } &&
28772 { ac_try='test -z "$ac_c_werror_flag"
28773 || test ! -s conftest.err'
28774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775 (eval $ac_try) 2>&5
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); }; } &&
28779 { ac_try='test -s conftest.$ac_objext'
28780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781 (eval $ac_try) 2>&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
28785 ac_header_compiler=yes
28787 echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28790 ac_header_compiler=no
28792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28794 echo "${ECHO_T}$ac_header_compiler" >&6
28796 # Is the header present?
28797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28799 cat >conftest.$ac_ext <<_ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h. */
28805 #include <$ac_header>
28807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28810 grep -v '^ *+' conftest.er1 >conftest.err
28812 cat conftest.err >&5
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); } >/dev/null; then
28815 if test -s conftest.err; then
28816 ac_cpp_err=$ac_c_preproc_warn_flag
28817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28824 if test -z "$ac_cpp_err"; then
28825 ac_header_preproc=yes
28827 echo "$as_me: failed program was:" >&5
28828 sed 's/^/| /' conftest.$ac_ext >&5
28830 ac_header_preproc=no
28832 rm -f conftest.err conftest.$ac_ext
28833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28834 echo "${ECHO_T}$ac_header_preproc" >&6
28836 # So? What about this header?
28837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28843 ac_header_preproc=yes
28846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28860 ## ------------------------------------------ ##
28861 ## Report this to the AC_PACKAGE_NAME lists. ##
28862 ## ------------------------------------------ ##
28865 sed "s/^/$as_me: WARNING: /" >&2
28868 echo "$as_me:$LINENO: checking for $ac_header" >&5
28869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28871 echo $ECHO_N "(cached) $ECHO_C" >&6
28873 eval "$as_ac_Header=\$ac_header_preproc"
28875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28880 cat >>confdefs.h <<_ACEOF
28881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28888 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28889 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28890 if test "${ac_cv_lib_z_deflate+set}" = set; then
28891 echo $ECHO_N "(cached) $ECHO_C" >&6
28893 ac_check_lib_save_LIBS=$LIBS
28895 cat >conftest.$ac_ext <<_ACEOF
28898 cat confdefs.h >>conftest.$ac_ext
28899 cat >>conftest.$ac_ext <<_ACEOF
28900 /* end confdefs.h. */
28902 /* Override any gcc2 internal prototype to avoid an error. */
28906 /* We use char because int might match the return type of a gcc2
28907 builtin and then its argument prototype would still apply. */
28917 rm -f conftest.$ac_objext conftest$ac_exeext
28918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28919 (eval $ac_link) 2>conftest.er1
28921 grep -v '^ *+' conftest.er1 >conftest.err
28923 cat conftest.err >&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); } &&
28926 { ac_try='test -z "$ac_c_werror_flag"
28927 || test ! -s conftest.err'
28928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28929 (eval $ac_try) 2>&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); }; } &&
28933 { ac_try='test -s conftest$ac_exeext'
28934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935 (eval $ac_try) 2>&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; }; then
28939 ac_cv_lib_z_deflate=yes
28941 echo "$as_me: failed program was:" >&5
28942 sed 's/^/| /' conftest.$ac_ext >&5
28944 ac_cv_lib_z_deflate=no
28946 rm -f conftest.err conftest.$ac_objext \
28947 conftest$ac_exeext conftest.$ac_ext
28948 LIBS=$ac_check_lib_save_LIBS
28950 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28951 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28952 if test $ac_cv_lib_z_deflate = yes; then
28957 if test x$FDLIBS = x-lz; then
28958 cat >>confdefs.h <<\_ACEOF
28959 #define HAVE_LIBZ 1
28966 # Check for ACL libraries
28969 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28970 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28971 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28972 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28973 echo $ECHO_N "(cached) $ECHO_C" >&6
28975 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28976 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28978 # Is the header compilable?
28979 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28980 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28981 cat >conftest.$ac_ext <<_ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h. */
28987 $ac_includes_default
28988 #include <sys/acl.h>
28990 rm -f conftest.$ac_objext
28991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28992 (eval $ac_compile) 2>conftest.er1
28994 grep -v '^ *+' conftest.er1 >conftest.err
28996 cat conftest.err >&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } &&
28999 { ac_try='test -z "$ac_c_werror_flag"
29000 || test ! -s conftest.err'
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; } &&
29006 { ac_try='test -s conftest.$ac_objext'
29007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008 (eval $ac_try) 2>&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); }; }; then
29012 ac_header_compiler=yes
29014 echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29017 ac_header_compiler=no
29019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29021 echo "${ECHO_T}$ac_header_compiler" >&6
29023 # Is the header present?
29024 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29025 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29026 cat >conftest.$ac_ext <<_ACEOF
29029 cat confdefs.h >>conftest.$ac_ext
29030 cat >>conftest.$ac_ext <<_ACEOF
29031 /* end confdefs.h. */
29032 #include <sys/acl.h>
29034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29037 grep -v '^ *+' conftest.er1 >conftest.err
29039 cat conftest.err >&5
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); } >/dev/null; then
29042 if test -s conftest.err; then
29043 ac_cpp_err=$ac_c_preproc_warn_flag
29044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29051 if test -z "$ac_cpp_err"; then
29052 ac_header_preproc=yes
29054 echo "$as_me: failed program was:" >&5
29055 sed 's/^/| /' conftest.$ac_ext >&5
29057 ac_header_preproc=no
29059 rm -f conftest.err conftest.$ac_ext
29060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29061 echo "${ECHO_T}$ac_header_preproc" >&6
29063 # So? What about this header?
29064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29066 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29067 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29068 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29069 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29070 ac_header_preproc=yes
29073 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29074 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29075 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29076 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29077 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29078 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29079 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29080 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29081 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29082 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29084 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29087 ## ------------------------------------------ ##
29088 ## Report this to the AC_PACKAGE_NAME lists. ##
29089 ## ------------------------------------------ ##
29092 sed "s/^/$as_me: WARNING: /" >&2
29095 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29096 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29097 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29098 echo $ECHO_N "(cached) $ECHO_C" >&6
29100 ac_cv_header_sys_acl_h=$ac_header_preproc
29102 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29103 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29108 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29109 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29110 if test "${ac_cv_func_acl_get_file+set}" = set; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29113 cat >conftest.$ac_ext <<_ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h. */
29119 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29121 #define acl_get_file innocuous_acl_get_file
29123 /* System header to define __stub macros and hopefully few prototypes,
29124 which can conflict with char acl_get_file (); below.
29125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29126 <limits.h> exists even on freestanding compilers. */
29129 # include <limits.h>
29131 # include <assert.h>
29134 #undef acl_get_file
29136 /* Override any gcc2 internal prototype to avoid an error. */
29141 /* We use char because int might match the return type of a gcc2
29142 builtin and then its argument prototype would still apply. */
29143 char acl_get_file ();
29144 /* The GNU C library defines this for functions which it implements
29145 to always fail with ENOSYS. Some functions are actually named
29146 something starting with __ and the normal name is an alias. */
29147 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29150 char (*f) () = acl_get_file;
29159 return f != acl_get_file;
29164 rm -f conftest.$ac_objext conftest$ac_exeext
29165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29166 (eval $ac_link) 2>conftest.er1
29168 grep -v '^ *+' conftest.er1 >conftest.err
29170 cat conftest.err >&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); } &&
29173 { ac_try='test -z "$ac_c_werror_flag"
29174 || test ! -s conftest.err'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; } &&
29180 { ac_try='test -s conftest$ac_exeext'
29181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182 (eval $ac_try) 2>&5
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); }; }; then
29186 ac_cv_func_acl_get_file=yes
29188 echo "$as_me: failed program was:" >&5
29189 sed 's/^/| /' conftest.$ac_ext >&5
29191 ac_cv_func_acl_get_file=no
29193 rm -f conftest.err conftest.$ac_objext \
29194 conftest$ac_exeext conftest.$ac_ext
29196 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29197 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29198 if test $ac_cv_func_acl_get_file = yes; then
29201 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29202 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29203 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29206 ac_check_lib_save_LIBS=$LIBS
29208 cat >conftest.$ac_ext <<_ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h. */
29215 /* Override any gcc2 internal prototype to avoid an error. */
29219 /* We use char because int might match the return type of a gcc2
29220 builtin and then its argument prototype would still apply. */
29221 char acl_get_file ();
29230 rm -f conftest.$ac_objext conftest$ac_exeext
29231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29232 (eval $ac_link) 2>conftest.er1
29234 grep -v '^ *+' conftest.er1 >conftest.err
29236 cat conftest.err >&5
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } &&
29239 { ac_try='test -z "$ac_c_werror_flag"
29240 || test ! -s conftest.err'
29241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242 (eval $ac_try) 2>&5
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest$ac_exeext'
29247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248 (eval $ac_try) 2>&5
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; }; then
29252 ac_cv_lib_acl_acl_get_file=yes
29254 echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29257 ac_cv_lib_acl_acl_get_file=no
29259 rm -f conftest.err conftest.$ac_objext \
29260 conftest$ac_exeext conftest.$ac_ext
29261 LIBS=$ac_check_lib_save_LIBS
29263 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29264 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29265 if test $ac_cv_lib_acl_acl_get_file = yes; then
29266 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29268 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29269 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29270 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29273 ac_check_lib_save_LIBS=$LIBS
29275 cat >conftest.$ac_ext <<_ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h. */
29282 /* Override any gcc2 internal prototype to avoid an error. */
29286 /* We use char because int might match the return type of a gcc2
29287 builtin and then its argument prototype would still apply. */
29297 rm -f conftest.$ac_objext conftest$ac_exeext
29298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29299 (eval $ac_link) 2>conftest.er1
29301 grep -v '^ *+' conftest.er1 >conftest.err
29303 cat conftest.err >&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } &&
29306 { ac_try='test -z "$ac_c_werror_flag"
29307 || test ! -s conftest.err'
29308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309 (eval $ac_try) 2>&5
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); }; } &&
29313 { ac_try='test -s conftest$ac_exeext'
29314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29315 (eval $ac_try) 2>&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; }; then
29319 ac_cv_lib_sec_acltotext=yes
29321 echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29324 ac_cv_lib_sec_acltotext=no
29326 rm -f conftest.err conftest.$ac_objext \
29327 conftest$ac_exeext conftest.$ac_ext
29328 LIBS=$ac_check_lib_save_LIBS
29330 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29331 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29332 if test $ac_cv_lib_sec_acltotext = yes; then
29333 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29342 if test $have_acl = yes; then
29343 cat >>confdefs.h <<\_ACEOF
29350 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29351 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29352 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29353 echo $ECHO_N "(cached) $ECHO_C" >&6
29355 ac_check_lib_save_LIBS=$LIBS
29356 LIBS="-lpthread $LIBS"
29357 cat >conftest.$ac_ext <<_ACEOF
29360 cat confdefs.h >>conftest.$ac_ext
29361 cat >>conftest.$ac_ext <<_ACEOF
29362 /* end confdefs.h. */
29364 /* Override any gcc2 internal prototype to avoid an error. */
29368 /* We use char because int might match the return type of a gcc2
29369 builtin and then its argument prototype would still apply. */
29370 char pthread_create ();
29379 rm -f conftest.$ac_objext conftest$ac_exeext
29380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29381 (eval $ac_link) 2>conftest.er1
29383 grep -v '^ *+' conftest.er1 >conftest.err
29385 cat conftest.err >&5
29386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 (exit $ac_status); } &&
29388 { ac_try='test -z "$ac_c_werror_flag"
29389 || test ! -s conftest.err'
29390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391 (eval $ac_try) 2>&5
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; } &&
29395 { ac_try='test -s conftest$ac_exeext'
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; }; then
29401 ac_cv_lib_pthread_pthread_create=yes
29403 echo "$as_me: failed program was:" >&5
29404 sed 's/^/| /' conftest.$ac_ext >&5
29406 ac_cv_lib_pthread_pthread_create=no
29408 rm -f conftest.err conftest.$ac_objext \
29409 conftest$ac_exeext conftest.$ac_ext
29410 LIBS=$ac_check_lib_save_LIBS
29412 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29413 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29414 if test $ac_cv_lib_pthread_pthread_create = yes; then
29415 PTHREAD_LIB="-lpthread"
29417 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29418 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29419 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29422 ac_check_lib_save_LIBS=$LIBS
29423 LIBS="-lpthreads $LIBS"
29424 cat >conftest.$ac_ext <<_ACEOF
29427 cat confdefs.h >>conftest.$ac_ext
29428 cat >>conftest.$ac_ext <<_ACEOF
29429 /* end confdefs.h. */
29431 /* Override any gcc2 internal prototype to avoid an error. */
29435 /* We use char because int might match the return type of a gcc2
29436 builtin and then its argument prototype would still apply. */
29437 char pthread_create ();
29446 rm -f conftest.$ac_objext conftest$ac_exeext
29447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29448 (eval $ac_link) 2>conftest.er1
29450 grep -v '^ *+' conftest.er1 >conftest.err
29452 cat conftest.err >&5
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); } &&
29455 { ac_try='test -z "$ac_c_werror_flag"
29456 || test ! -s conftest.err'
29457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458 (eval $ac_try) 2>&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); }; } &&
29462 { ac_try='test -s conftest$ac_exeext'
29463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464 (eval $ac_try) 2>&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); }; }; then
29468 ac_cv_lib_pthreads_pthread_create=yes
29470 echo "$as_me: failed program was:" >&5
29471 sed 's/^/| /' conftest.$ac_ext >&5
29473 ac_cv_lib_pthreads_pthread_create=no
29475 rm -f conftest.err conftest.$ac_objext \
29476 conftest$ac_exeext conftest.$ac_ext
29477 LIBS=$ac_check_lib_save_LIBS
29479 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29480 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29481 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29482 PTHREAD_LIB="-lpthreads"
29484 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29485 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29486 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29487 echo $ECHO_N "(cached) $ECHO_C" >&6
29489 ac_check_lib_save_LIBS=$LIBS
29491 cat >conftest.$ac_ext <<_ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h. */
29498 /* Override any gcc2 internal prototype to avoid an error. */
29502 /* We use char because int might match the return type of a gcc2
29503 builtin and then its argument prototype would still apply. */
29504 char pthread_create ();
29513 rm -f conftest.$ac_objext conftest$ac_exeext
29514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29515 (eval $ac_link) 2>conftest.er1
29517 grep -v '^ *+' conftest.er1 >conftest.err
29519 cat conftest.err >&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } &&
29522 { ac_try='test -z "$ac_c_werror_flag"
29523 || test ! -s conftest.err'
29524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; } &&
29529 { ac_try='test -s conftest$ac_exeext'
29530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29531 (eval $ac_try) 2>&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; }; then
29535 ac_cv_lib_c_r_pthread_create=yes
29537 echo "$as_me: failed program was:" >&5
29538 sed 's/^/| /' conftest.$ac_ext >&5
29540 ac_cv_lib_c_r_pthread_create=no
29542 rm -f conftest.err conftest.$ac_objext \
29543 conftest$ac_exeext conftest.$ac_ext
29544 LIBS=$ac_check_lib_save_LIBS
29546 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29547 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29548 if test $ac_cv_lib_c_r_pthread_create = yes; then
29549 PTHREAD_LIB="-lc_r"
29551 echo "$as_me:$LINENO: checking for pthread_create" >&5
29552 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29553 if test "${ac_cv_func_pthread_create+set}" = set; then
29554 echo $ECHO_N "(cached) $ECHO_C" >&6
29556 cat >conftest.$ac_ext <<_ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h. */
29562 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29564 #define pthread_create innocuous_pthread_create
29566 /* System header to define __stub macros and hopefully few prototypes,
29567 which can conflict with char pthread_create (); below.
29568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29569 <limits.h> exists even on freestanding compilers. */
29572 # include <limits.h>
29574 # include <assert.h>
29577 #undef pthread_create
29579 /* Override any gcc2 internal prototype to avoid an error. */
29584 /* We use char because int might match the return type of a gcc2
29585 builtin and then its argument prototype would still apply. */
29586 char pthread_create ();
29587 /* The GNU C library defines this for functions which it implements
29588 to always fail with ENOSYS. Some functions are actually named
29589 something starting with __ and the normal name is an alias. */
29590 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29593 char (*f) () = pthread_create;
29602 return f != pthread_create;
29607 rm -f conftest.$ac_objext conftest$ac_exeext
29608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29609 (eval $ac_link) 2>conftest.er1
29611 grep -v '^ *+' conftest.er1 >conftest.err
29613 cat conftest.err >&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } &&
29616 { ac_try='test -z "$ac_c_werror_flag"
29617 || test ! -s conftest.err'
29618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29619 (eval $ac_try) 2>&5
29621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622 (exit $ac_status); }; } &&
29623 { ac_try='test -s conftest$ac_exeext'
29624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29625 (eval $ac_try) 2>&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); }; }; then
29629 ac_cv_func_pthread_create=yes
29631 echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29634 ac_cv_func_pthread_create=no
29636 rm -f conftest.err conftest.$ac_objext \
29637 conftest$ac_exeext conftest.$ac_ext
29639 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29640 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29653 cat >>confdefs.h <<\_ACEOF
29659 CFLAGS=${CFLAGS--O}
29661 if test x$have_gcc = xyes ; then
29662 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29663 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29665 LDFLAGS=${LDFLAGS--O}
29666 DB_LIBS="${SQL_LFLAGS}"
29667 CPPFLAGS="$CPPFLAGS"
29695 # Finally we set appropriate distribution specific
29696 # variables and defaults
29698 # PFILES are platform specific files
29699 PFILES="platforms/Makefile"
29703 hostname=`uname -n | cut -d '.' -f 1`
29704 if test x${hostname} = x ; then
29705 hostname="localhost"
29707 case "$DISTNAME" in
29710 PSCMD="ps -e -o pid,comm"
29711 PFILES="${PFILES} \
29712 platforms/aix/Makefile"
29713 TAPEDRIVE="/dev/rmt0.1"
29717 PTHREAD_LIB="-lpthread -lexc"
29718 if test "${CC}" = "gcc" ; then
29725 TAPEDRIVE="/dev/nrmt0"
29728 DISTVER=`uname -a |awk '{print $3}'`
29729 TAPEDRIVE="/dev/nrmt0"
29730 PTHREAD_LIB="-pthread"
29731 CFLAGS="${CFLAGS} -pthread"
29732 PSCMD="ps -ax -o pid,command"
29735 PFILES="${PFILES} \
29736 platforms/bsdi/Makefile \
29737 platforms/bsdi/bacula-fd \
29738 platforms/bsdi/bacula-sd \
29739 platforms/bsdi/bacula-dir"
29740 largefile_support="yes"
29743 DISTVER=`uname -a |awk '{print $3}'`
29744 TAPEDRIVE="/dev/nrst0"
29746 WCFLAGS="-mwindows"
29747 WLDFLAGS="-mwindows"
29751 TAPEDRIVE="/dev/nst0"
29752 PSCMD="ps -e -o pid,command"
29754 PFILES="${PFILES} \
29755 platforms/darwin/Makefile"
29758 DISTVER=`cat /etc/debian_version`
29759 TAPEDRIVE="/dev/nrst0"
29760 PSCMD="ps -e -o pid,command"
29763 DISTVER=`uname -a |awk '{print $3}'`
29764 VER=`echo $DISTVER | cut -c 1`
29765 if test x$VER = x4 ; then
29766 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29767 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29771 TAPEDRIVE="/dev/nrsa0"
29772 PSCMD="ps -ax -o pid,command"
29773 PFILES="${PFILES} \
29774 platforms/freebsd/Makefile \
29775 platforms/freebsd/bacula-fd \
29776 platforms/freebsd/bacula-sd \
29777 platforms/freebsd/bacula-dir"
29778 largefile_support="yes"
29781 PSCMD="UNIX95=1 ps -e -o pid,comm"
29782 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29784 TAPEDRIVE="/dev/rmt/0hnb"
29785 PTHREAD_LIB="-lpthread"
29786 cat >>confdefs.h <<\_ACEOF
29787 #define _INCLUDE_LONGLONG 1
29793 TAPEDRIVE="/dev/rmt/0cbn"
29794 PSCMD="ps -e -o pid,comm"
29795 PFILES="${PFILES} \
29796 platforms/irix/Makefile \
29797 platforms/irix/bacula-fd \
29798 platforms/irix/bacula-sd \
29799 platforms/irix/bacula-dir"
29802 DISTVER=`uname -a |awk '{print $3}'`
29805 TAPEDRIVE="/dev/nrst0"
29806 PSCMD="ps -ax -o pid,command"
29807 PTHREAD_LIB="-pthread"
29808 CFLAGS="${CFLAGS} -pthread"
29811 DISTVER=`uname -a |awk '{print $3}'`
29814 TAPEDRIVE="/dev/nrst0"
29815 PSCMD="ps -ax -o pid,command"
29816 PTHREAD_LIB="-pthread"
29817 CFLAGS="${CFLAGS} -pthread"
29818 PFILES="${PFILES} \
29819 platforms/openbsd/Makefile \
29820 platforms/openbsd/bacula-fd \
29821 platforms/openbsd/bacula-sd \
29822 platforms/openbsd/bacula-dir"
29825 if test -f /etc/whitebox-release ; then
29826 f=/etc/whitebox-release
29828 f=/etc/redhat-release
29830 if test `cat $f | grep release |\
29831 cut -f 3 -d ' '`x = "Enterprise"x ; then
29832 DISTVER="Enterprise "`cat $f | grep release |\
29835 DISTVER=`cat /etc/redhat-release | grep release |\
29838 TAPEDRIVE="/dev/nst0"
29839 PSCMD="ps -e -o pid,command"
29840 PFILES="${PFILES} \
29841 platforms/redhat/Makefile \
29842 platforms/redhat/bacula-fd \
29843 platforms/redhat/bacula-sd \
29844 platforms/redhat/bacula-dir \
29845 platforms/redhat/bacula.spec \
29849 DISTVER=`cat /etc/mandrake-release | grep release |\
29851 TAPEDRIVE="/dev/nst0"
29852 PSCMD="ps -e -o pid,command"
29853 PFILES="${PFILES} \
29854 platforms/mandrake/Makefile \
29855 platforms/mandrake/bacula-fd \
29856 platforms/mandrake/bacula-sd \
29857 platforms/mandrake/bacula-dir \
29858 platforms/mandrake/bacula.spec \
29862 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29863 TAPEDRIVE="/dev/nst0"
29864 PSCMD="ps -e -o pid,command"
29865 PFILES="${PFILES} \
29866 platforms/gentoo/Makefile \
29867 platforms/gentoo/bacula-init \
29868 platforms/gentoo/bacula-fd \
29869 platforms/gentoo/bacula-sd \
29870 platforms/gentoo/bacula-dir"
29873 DISTVER=`cat /etc/slackware-version`
29874 TAPEDRIVE="/dev/nst0"
29875 PSCMD="ps -e -o pid,command"
29876 PFILES="${PFILES} \
29877 platforms/slackware/Makefile \
29878 platforms/slackware/rc.bacula-fd \
29879 platforms/slackware/rc.bacula-sd \
29880 platforms/slackware/rc.bacula-dir\
29881 platforms/slackware/functions.bacula"
29885 TAPEDRIVE="/dev/rmt/0cbn"
29886 PSCMD="ps -e -o pid,comm"
29887 PFILES="${PFILES} \
29888 platforms/solaris/Makefile \
29889 platforms/solaris/bacula-fd \
29890 platforms/solaris/bacula-sd \
29891 platforms/solaris/bacula-dir"
29892 if test x$DISTVER = x5.6 ; then
29893 cat >>confdefs.h <<\_ACEOF
29894 #define HAVE_OLD_SOCKOPT 1
29898 LIBS="$LIBS -lresolv"
29901 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29903 TAPEDRIVE="/dev/nst0"
29904 PSCMD="ps -e -o pid,command"
29905 PFILES="${PFILES} \
29906 platforms/suse/Makefile \
29907 platforms/suse/bacula-fd \
29908 platforms/suse/bacula-sd \
29909 platforms/suse/bacula-dir \
29910 platforms/suse/bacula \
29911 platforms/suse/bacula.spec"
29916 TAPEDRIVE="/dev/nst0"
29917 PSCMD="ps -e -o pid,command"
29918 PFILES="${PFILES} \
29919 platforms/suse/Makefile \
29920 platforms/suse/bacula-fd \
29921 platforms/suse/bacula-sd \
29922 platforms/suse/bacula-dir"
29926 TAPEDRIVE="/dev/nst0"
29929 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29935 LIBS="$PTHREAD_LIB $LIBS"
29937 cat >>confdefs.h <<_ACEOF
29941 cat >>confdefs.h <<_ACEOF
29952 MCOMMON=./autoconf/Make.common
29955 if test "x${subsysdir}" = "x${sbindir}" ; then
29958 echo "You have set both --sbindir and --with-subsys-dir"
29959 echo " equal to: ${subsysdir} "
29960 echo "This is not permitted. Please reconfigure."
29962 echo "Aborting configuration ..."
29968 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/pygtk-console/Makefile src/tools/Makefile po/Makefile.in $PFILES"
29969 ac_config_commands="$ac_config_commands default"
29970 cat >confcache <<\_ACEOF
29971 # This file is a shell script that caches the results of configure
29972 # tests run on this system so they can be shared between configure
29973 # scripts and configure runs, see configure's option --config-cache.
29974 # It is not useful on other systems. If it contains results you don't
29975 # want to keep, you may remove or edit it.
29977 # config.status only pays attention to the cache file if you give it
29978 # the --recheck option to rerun configure.
29980 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29981 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29982 # following values.
29986 # The following way of writing the cache mishandles newlines in values,
29987 # but we know of no workaround that is simple, portable, and efficient.
29988 # So, don't put newlines in cache variables' values.
29989 # Ultrix sh set writes to stderr and can't be redirected directly,
29990 # and sets the high bit in the cache file unless we assign to the vars.
29993 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29995 # `set' does not quote correctly, so add quotes (double-quote
29996 # substitution turns \\\\ into \\, and sed turns \\ into \).
29999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30002 # `set' quotes correctly as required by POSIX, so do not add quotes.
30004 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30013 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30015 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30016 if test -w $cache_file; then
30017 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30018 cat confcache >$cache_file
30020 echo "not updating unwritable cache $cache_file"
30025 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30026 # Let make expand exec_prefix.
30027 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30029 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30030 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30031 # trailing colons and then remove the whole line if VPATH becomes empty
30032 # (actually we leave an empty line to preserve line numbers).
30033 if test "x$srcdir" = x.; then
30034 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30035 s/:*\$(srcdir):*/:/;
30036 s/:*\${srcdir}:*/:/;
30038 s/^\([^=]*=[ ]*\):*/\1/;
30044 DEFS=-DHAVE_CONFIG_H
30048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30049 # 1. Remove the extension, and $U if already installed.
30050 ac_i=`echo "$ac_i" |
30051 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30053 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30054 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30056 LIBOBJS=$ac_libobjs
30058 LTLIBOBJS=$ac_ltlibobjs
30062 : ${CONFIG_STATUS=./config.status}
30063 ac_clean_files_save=$ac_clean_files
30064 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30065 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30066 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30067 cat >$CONFIG_STATUS <<_ACEOF
30069 # Generated by $as_me.
30070 # Run this file to recreate the current configuration.
30071 # Compiler output produced by configure, useful for debugging
30072 # configure, is in config.log if it exists.
30075 ac_cs_recheck=false
30077 SHELL=\${CONFIG_SHELL-$SHELL}
30080 cat >>$CONFIG_STATUS <<\_ACEOF
30081 ## --------------------- ##
30082 ## M4sh Initialization. ##
30083 ## --------------------- ##
30085 # Be Bourne compatible
30086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30089 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30090 # is contrary to our usage. Disable this feature.
30091 alias -g '${1+"$@"}'='"$@"'
30092 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30095 DUALCASE=1; export DUALCASE # for MKS sh
30097 # Support unset when possible.
30098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30105 # Work around bugs in pre-3.0 UWIN ksh.
30106 $as_unset ENV MAIL MAILPATH
30113 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30114 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30115 LC_TELEPHONE LC_TIME
30117 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30118 eval $as_var=C; export $as_var
30124 # Required to use basename.
30125 if expr a : '\(a\)' >/dev/null 2>&1; then
30131 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30132 as_basename=basename
30138 # Name of the executable.
30139 as_me=`$as_basename "$0" ||
30140 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30141 X"$0" : 'X\(//\)$' \| \
30142 X"$0" : 'X\(/\)$' \| \
30143 . : '\(.\)' 2>/dev/null ||
30145 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30146 /^X\/\(\/\/\)$/{ s//\1/; q; }
30147 /^X\/\(\/\).*/{ s//\1/; q; }
30151 # PATH needs CR, and LINENO needs CR and PATH.
30152 # Avoid depending upon Character Ranges.
30153 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30154 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30155 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30156 as_cr_digits='0123456789'
30157 as_cr_alnum=$as_cr_Letters$as_cr_digits
30159 # The user is always right.
30160 if test "${PATH_SEPARATOR+set}" != set; then
30161 echo "#! /bin/sh" >conf$$.sh
30162 echo "exit 0" >>conf$$.sh
30164 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30173 as_lineno_1=$LINENO
30174 as_lineno_2=$LINENO
30175 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30176 test "x$as_lineno_1" != "x$as_lineno_2" &&
30177 test "x$as_lineno_3" = "x$as_lineno_2" || {
30178 # Find who we are. Look in the path if we contain no path at all
30181 *[\\/]* ) as_myself=$0 ;;
30182 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30183 for as_dir in $PATH
30186 test -z "$as_dir" && as_dir=.
30187 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30192 # We did not find ourselves, most probably we were run as `sh COMMAND'
30193 # in which case we are not to be found in the path.
30194 if test "x$as_myself" = x; then
30197 if test ! -f "$as_myself"; then
30198 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30199 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30200 { (exit 1); exit 1; }; }
30202 case $CONFIG_SHELL in
30204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30208 test -z "$as_dir" && as_dir=.
30209 for as_base in sh bash ksh sh5; do
30212 if ("$as_dir/$as_base" -c '
30213 as_lineno_1=$LINENO
30214 as_lineno_2=$LINENO
30215 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30216 test "x$as_lineno_1" != "x$as_lineno_2" &&
30217 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30218 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30219 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30220 CONFIG_SHELL=$as_dir/$as_base
30221 export CONFIG_SHELL
30222 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30231 # uniformly replaced by the line number. The first 'sed' inserts a
30232 # line-number line before each line; the second 'sed' does the real
30233 # work. The second script uses 'N' to pair each line-number line
30234 # with the numbered line, and appends trailing '-' during
30235 # substitution so that $LINENO is not a special case at line end.
30236 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30237 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30238 sed '=' <$as_myself |
30243 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30246 s,^['$as_cr_digits']*\n,,
30247 ' >$as_me.lineno &&
30248 chmod +x $as_me.lineno ||
30249 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30250 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30251 { (exit 1); exit 1; }; }
30253 # Don't try to exec as it changes $[0], causing all sort of problems
30254 # (the dirname of $[0] is not the place where we might find the
30255 # original and so on. Autoconf is especially sensible to this).
30257 # Exit status is that of the last command.
30262 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30263 *c*,-n*) ECHO_N= ECHO_C='
30265 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30266 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30269 if expr a : '\(a\)' >/dev/null 2>&1; then
30275 rm -f conf$$ conf$$.exe conf$$.file
30277 if ln -s conf$$.file conf$$ 2>/dev/null; then
30278 # We could just check for DJGPP; but this test a) works b) is more generic
30279 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30280 if test -f conf$$.exe; then
30281 # Don't use ln at all; we don't have any links
30286 elif ln conf$$.file conf$$ 2>/dev/null; then
30291 rm -f conf$$ conf$$.exe conf$$.file
30293 if mkdir -p . 2>/dev/null; then
30296 test -d ./-p && rmdir ./-p
30300 as_executable_p="test -f"
30302 # Sed expression to map a string onto a valid CPP name.
30303 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30305 # Sed expression to map a string onto a valid variable name.
30306 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30310 # We need space, tab and new line, in precisely that order.
30320 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30321 # report actual input values of CONFIG_FILES etc. instead of their
30322 # values after options handling. Logging --version etc. is OK.
30326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30327 ## Running $as_me. ##
30332 This file was extended by $as_me, which was
30333 generated by GNU Autoconf 2.59. Invocation command line was
30335 CONFIG_FILES = $CONFIG_FILES
30336 CONFIG_HEADERS = $CONFIG_HEADERS
30337 CONFIG_LINKS = $CONFIG_LINKS
30338 CONFIG_COMMANDS = $CONFIG_COMMANDS
30342 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30346 # Files that config.status was made for.
30347 if test -n "$ac_config_files"; then
30348 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30351 if test -n "$ac_config_headers"; then
30352 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30355 if test -n "$ac_config_links"; then
30356 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30359 if test -n "$ac_config_commands"; then
30360 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30363 cat >>$CONFIG_STATUS <<\_ACEOF
30366 \`$as_me' instantiates files from templates according to the
30367 current configuration.
30369 Usage: $0 [OPTIONS] [FILE]...
30371 -h, --help print this help, then exit
30372 -V, --version print version number, then exit
30373 -q, --quiet do not print progress messages
30374 -d, --debug don't remove temporary files
30375 --recheck update $as_me by reconfiguring in the same conditions
30376 --file=FILE[:TEMPLATE]
30377 instantiate the configuration file FILE
30378 --header=FILE[:TEMPLATE]
30379 instantiate the configuration header FILE
30381 Configuration files:
30384 Configuration headers:
30387 Configuration commands:
30390 Report bugs to <bug-autoconf@gnu.org>."
30393 cat >>$CONFIG_STATUS <<_ACEOF
30396 configured by $0, generated by GNU Autoconf 2.59,
30397 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30399 Copyright (C) 2003 Free Software Foundation, Inc.
30400 This config.status script is free software; the Free Software Foundation
30401 gives unlimited permission to copy, distribute and modify it."
30406 cat >>$CONFIG_STATUS <<\_ACEOF
30407 # If no file are specified by the user, then we need to provide default
30408 # value. By we need to know if files were specified by the user.
30414 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30415 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30423 *) # This is not an option, so the user has probably given explicit
30426 ac_need_defaults=false;;
30430 # Handling of the options.
30432 cat >>$CONFIG_STATUS <<\_ACEOF
30433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30435 --version | --vers* | -V )
30436 echo "$ac_cs_version"; exit 0 ;;
30438 # Conflict between --help and --header
30439 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30440 Try \`$0 --help' for more information." >&5
30441 echo "$as_me: error: ambiguous option: $1
30442 Try \`$0 --help' for more information." >&2;}
30443 { (exit 1); exit 1; }; };;
30444 --help | --hel | -h )
30445 echo "$ac_cs_usage"; exit 0 ;;
30446 --debug | --d* | -d )
30448 --file | --fil | --fi | --f )
30450 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30451 ac_need_defaults=false;;
30452 --header | --heade | --head | --hea )
30454 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30455 ac_need_defaults=false;;
30456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30460 # This is an error.
30461 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30462 Try \`$0 --help' for more information." >&5
30463 echo "$as_me: error: unrecognized option: $1
30464 Try \`$0 --help' for more information." >&2;}
30465 { (exit 1); exit 1; }; } ;;
30467 *) ac_config_targets="$ac_config_targets $1" ;;
30473 ac_configure_extra_args=
30475 if $ac_cs_silent; then
30477 ac_configure_extra_args="$ac_configure_extra_args --silent"
30481 cat >>$CONFIG_STATUS <<_ACEOF
30482 if \$ac_cs_recheck; then
30483 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30484 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30489 cat >>$CONFIG_STATUS <<_ACEOF
30491 # INIT-COMMANDS section.
30494 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30495 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30497 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30498 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30499 LINGUAS="${LINGUAS-%UNSET%}"
30506 cat >>$CONFIG_STATUS <<\_ACEOF
30507 for ac_config_target in $ac_config_targets
30509 case "$ac_config_target" in
30510 # Handling of arguments.
30511 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30512 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30513 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30514 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30515 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30516 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30517 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30518 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30519 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30520 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30521 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30522 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30523 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30524 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30525 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30526 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30527 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30528 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30529 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30530 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30531 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30532 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30533 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30534 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30535 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30536 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30537 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30538 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30539 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30540 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30541 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30542 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30543 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30544 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30545 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30546 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30547 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30548 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30549 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30550 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30551 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30552 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30553 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30554 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30555 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30556 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30557 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30558 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30559 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30560 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30561 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30562 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30563 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30564 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30565 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30566 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30567 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30568 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30569 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30570 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30571 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30572 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30573 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30574 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30575 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30576 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30577 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30578 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30579 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30580 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30581 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30582 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30583 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30584 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30585 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30586 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30587 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30588 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30589 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30590 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30591 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30592 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30593 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30594 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30595 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30596 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30597 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30598 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30599 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30600 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30601 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30602 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30603 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30604 "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30605 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30606 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30607 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30608 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30609 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30610 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30611 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30613 { (exit 1); exit 1; }; };;
30617 # If the user did not use the arguments to specify the items to instantiate,
30618 # then the envvar interface is used. Set only those that are not.
30619 # We use the long form for the default assignment because of an extremely
30620 # bizarre bug on SunOS 4.1.3.
30621 if $ac_need_defaults; then
30622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30627 # Have a temporary directory for convenience. Make it in the build tree
30628 # simply because there is no reason to put it here, and in addition,
30629 # creating and moving files from /tmp can sometimes cause problems.
30630 # Create a temporary directory, and hook for its removal unless debugging.
30633 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30634 trap '{ (exit 1); exit 1; }' 1 2 13 15
30637 # Create a (secure) tmp directory for tmp files.
30640 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30641 test -n "$tmp" && test -d "$tmp"
30644 tmp=./confstat$$-$RANDOM
30645 (umask 077 && mkdir $tmp)
30648 echo "$me: cannot create a temporary directory in ." >&2
30649 { (exit 1); exit 1; }
30654 cat >>$CONFIG_STATUS <<_ACEOF
30657 # CONFIG_FILES section.
30660 # No need to generate the scripts if there are no CONFIG_FILES.
30661 # This happens for instance when ./config.status config.h
30662 if test -n "\$CONFIG_FILES"; then
30663 # Protect against being on the right side of a sed subst in config.status.
30664 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30665 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30666 s,@SHELL@,$SHELL,;t t
30667 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30668 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30669 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30670 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30671 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30672 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30673 s,@exec_prefix@,$exec_prefix,;t t
30674 s,@prefix@,$prefix,;t t
30675 s,@program_transform_name@,$program_transform_name,;t t
30676 s,@bindir@,$bindir,;t t
30677 s,@sbindir@,$sbindir,;t t
30678 s,@libexecdir@,$libexecdir,;t t
30679 s,@datadir@,$datadir,;t t
30680 s,@sysconfdir@,$sysconfdir,;t t
30681 s,@sharedstatedir@,$sharedstatedir,;t t
30682 s,@localstatedir@,$localstatedir,;t t
30683 s,@libdir@,$libdir,;t t
30684 s,@includedir@,$includedir,;t t
30685 s,@oldincludedir@,$oldincludedir,;t t
30686 s,@infodir@,$infodir,;t t
30687 s,@mandir@,$mandir,;t t
30688 s,@build_alias@,$build_alias,;t t
30689 s,@host_alias@,$host_alias,;t t
30690 s,@target_alias@,$target_alias,;t t
30691 s,@DEFS@,$DEFS,;t t
30692 s,@ECHO_C@,$ECHO_C,;t t
30693 s,@ECHO_N@,$ECHO_N,;t t
30694 s,@ECHO_T@,$ECHO_T,;t t
30695 s,@LIBS@,$LIBS,;t t
30696 s,@BUILD_DIR@,$BUILD_DIR,;t t
30697 s,@TOP_DIR@,$TOP_DIR,;t t
30698 s,@TRUEPRG@,$TRUEPRG,;t t
30699 s,@FALSEPRG@,$FALSEPRG,;t t
30700 s,@VERSION@,$VERSION,;t t
30701 s,@DATE@,$DATE,;t t
30702 s,@LSMDATE@,$LSMDATE,;t t
30704 s,@CFLAGS@,$CFLAGS,;t t
30705 s,@LDFLAGS@,$LDFLAGS,;t t
30706 s,@CPPFLAGS@,$CPPFLAGS,;t t
30707 s,@ac_ct_CC@,$ac_ct_CC,;t t
30708 s,@EXEEXT@,$EXEEXT,;t t
30709 s,@OBJEXT@,$OBJEXT,;t t
30711 s,@CXXFLAGS@,$CXXFLAGS,;t t
30712 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30714 s,@EGREP@,$EGREP,;t t
30715 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30716 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30717 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30718 s,@RANLIB@,$RANLIB,;t t
30719 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30724 s,@ECHO@,$ECHO,;t t
30728 s,@OPENSSL@,$OPENSSL,;t t
30731 s,@MKISOFS@,$MKISOFS,;t t
30732 s,@PYTHON@,$PYTHON,;t t
30733 s,@GROWISOFS@,$GROWISOFS,;t t
30734 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30735 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30736 s,@PKGCONFIG@,$PKGCONFIG,;t t
30737 s,@WXCONFIG@,$WXCONFIG,;t t
30738 s,@WXFLAGS@,$WXFLAGS,;t t
30739 s,@CDRECORD@,$CDRECORD,;t t
30740 s,@PIDOF@,$PIDOF,;t t
30742 s,@ARFLAGS@,$ARFLAGS,;t t
30743 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30744 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30745 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30746 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30747 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30748 s,@build@,$build,;t t
30749 s,@build_cpu@,$build_cpu,;t t
30750 s,@build_vendor@,$build_vendor,;t t
30751 s,@build_os@,$build_os,;t t
30752 s,@host@,$host,;t t
30753 s,@host_cpu@,$host_cpu,;t t
30754 s,@host_vendor@,$host_vendor,;t t
30755 s,@host_os@,$host_os,;t t
30756 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30757 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30758 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30759 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30760 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30761 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30762 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30763 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30764 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30765 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30766 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30767 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30768 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30769 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30770 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30771 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30772 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30773 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30774 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30775 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30776 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30777 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30778 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30779 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30780 s,@SET_MAKE@,$SET_MAKE,;t t
30781 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30782 s,@USE_NLS@,$USE_NLS,;t t
30783 s,@MSGFMT@,$MSGFMT,;t t
30784 s,@GMSGFMT@,$GMSGFMT,;t t
30785 s,@XGETTEXT@,$XGETTEXT,;t t
30786 s,@MSGMERGE@,$MSGMERGE,;t t
30787 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30788 s,@LIBICONV@,$LIBICONV,;t t
30789 s,@LTLIBICONV@,$LTLIBICONV,;t t
30790 s,@INTLLIBS@,$INTLLIBS,;t t
30791 s,@LIBINTL@,$LIBINTL,;t t
30792 s,@LTLIBINTL@,$LTLIBINTL,;t t
30793 s,@POSUB@,$POSUB,;t t
30794 s,@GLIBC2@,$GLIBC2,;t t
30795 s,@ALLOCA@,$ALLOCA,;t t
30796 s,@GLIBC21@,$GLIBC21,;t t
30797 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30798 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30799 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30800 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30801 s,@INTLBISON@,$INTLBISON,;t t
30802 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30803 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30804 s,@CATOBJEXT@,$CATOBJEXT,;t t
30805 s,@DATADIRNAME@,$DATADIRNAME,;t t
30806 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30807 s,@GENCAT@,$GENCAT,;t t
30808 s,@INTLOBJS@,$INTLOBJS,;t t
30809 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30810 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30811 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30812 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30813 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30814 s,@GNOME_DIR@,$GNOME_DIR,;t t
30815 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30816 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30817 s,@WX_DIR@,$WX_DIR,;t t
30818 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30819 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30820 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30821 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30822 s,@STATIC_FD@,$STATIC_FD,;t t
30823 s,@STATIC_SD@,$STATIC_SD,;t t
30824 s,@STATIC_DIR@,$STATIC_DIR,;t t
30825 s,@STATIC_CONS@,$STATIC_CONS,;t t
30826 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30827 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30828 s,@ALL_DIRS@,$ALL_DIRS,;t t
30829 s,@DIRD_DIR@,$DIRD_DIR,;t t
30830 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30831 s,@STORED_DIR@,$STORED_DIR,;t t
30832 s,@CONS_INC@,$CONS_INC,;t t
30833 s,@CONS_OBJ@,$CONS_OBJ,;t t
30834 s,@CONS_SRC@,$CONS_SRC,;t t
30835 s,@CONS_LIBS@,$CONS_LIBS,;t t
30836 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30837 s,@READLINE_SRC@,$READLINE_SRC,;t t
30838 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30839 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30840 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30841 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30842 s,@working_dir@,$working_dir,;t t
30843 s,@scriptdir@,$scriptdir,;t t
30844 s,@dump_email@,$dump_email,;t t
30845 s,@job_email@,$job_email,;t t
30846 s,@smtp_host@,$smtp_host,;t t
30847 s,@piddir@,$piddir,;t t
30848 s,@subsysdir@,$subsysdir,;t t
30849 s,@baseport@,$baseport,;t t
30850 s,@dir_port@,$dir_port,;t t
30851 s,@fd_port@,$fd_port,;t t
30852 s,@sd_port@,$sd_port,;t t
30853 s,@dir_password@,$dir_password,;t t
30854 s,@fd_password@,$fd_password,;t t
30855 s,@sd_password@,$sd_password,;t t
30856 s,@mon_dir_password@,$mon_dir_password,;t t
30857 s,@mon_fd_password@,$mon_fd_password,;t t
30858 s,@mon_sd_password@,$mon_sd_password,;t t
30859 s,@dir_user@,$dir_user,;t t
30860 s,@dir_group@,$dir_group,;t t
30861 s,@sd_user@,$sd_user,;t t
30862 s,@sd_group@,$sd_group,;t t
30863 s,@fd_user@,$fd_user,;t t
30864 s,@fd_group@,$fd_group,;t t
30865 s,@SBINPERM@,$SBINPERM,;t t
30866 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30867 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30868 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30869 s,@cats@,$cats,;t t
30870 s,@DB_NAME@,$DB_NAME,;t t
30871 s,@GETCONF@,$GETCONF,;t t
30872 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30873 s,@X_CFLAGS@,$X_CFLAGS,;t t
30874 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30875 s,@X_LIBS@,$X_LIBS,;t t
30876 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30877 s,@LIBOBJS@,$LIBOBJS,;t t
30878 s,@FDLIBS@,$FDLIBS,;t t
30879 s,@DEBUG@,$DEBUG,;t t
30880 s,@DINCLUDE@,$DINCLUDE,;t t
30881 s,@DLIB@,$DLIB,;t t
30882 s,@DB_LIBS@,$DB_LIBS,;t t
30883 s,@WCFLAGS@,$WCFLAGS,;t t
30884 s,@WLDFLAGS@,$WLDFLAGS,;t t
30885 s,@WRAPLIBS@,$WRAPLIBS,;t t
30886 s,@OBJLIST@,$OBJLIST,;t t
30887 s,@hostname@,$hostname,;t t
30888 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30889 s,@PSCMD@,$PSCMD,;t t
30890 s,@WIN32@,$WIN32,;t t
30891 s,@MACOSX@,$MACOSX,;t t
30892 s,@DISTNAME@,$DISTNAME,;t t
30893 s,@DISTVER@,$DISTVER,;t t
30894 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30895 /@MCOMMON@/r $MCOMMON
30901 cat >>$CONFIG_STATUS <<\_ACEOF
30902 # Split the substitutions into bite-sized pieces for seds with
30903 # small command number limits, like on Digital OSF/1 and HP-UX.
30904 ac_max_sed_lines=48
30905 ac_sed_frag=1 # Number of current file.
30906 ac_beg=1 # First line for current file.
30907 ac_end=$ac_max_sed_lines # Line after last line for current file.
30910 while $ac_more_lines; do
30911 if test $ac_beg -gt 1; then
30912 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30914 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30916 if test ! -s $tmp/subs.frag; then
30917 ac_more_lines=false
30919 # The purpose of the label and of the branching condition is to
30920 # speed up the sed processing (if there are no `@' at all, there
30921 # is no need to browse any of the substitutions).
30922 # These are the two extra sed commands mentioned above.
30924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30925 if test -z "$ac_sed_cmds"; then
30926 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30928 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30930 ac_sed_frag=`expr $ac_sed_frag + 1`
30932 ac_end=`expr $ac_end + $ac_max_sed_lines`
30935 if test -z "$ac_sed_cmds"; then
30938 fi # test -n "$CONFIG_FILES"
30941 cat >>$CONFIG_STATUS <<\_ACEOF
30942 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30945 - | *:- | *:-:* ) # input from stdin
30947 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30949 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30951 * ) ac_file_in=$ac_file.in ;;
30954 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30955 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30957 X"$ac_file" : 'X\(//\)[^/]' \| \
30958 X"$ac_file" : 'X\(//\)$' \| \
30959 X"$ac_file" : 'X\(/\)' \| \
30960 . : '\(.\)' 2>/dev/null ||
30962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30964 /^X\(\/\/\)$/{ s//\1/; q; }
30965 /^X\(\/\).*/{ s//\1/; q; }
30967 { if $as_mkdir_p; then
30972 while test ! -d "$as_dir"; do
30973 as_dirs="$as_dir $as_dirs"
30974 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30976 X"$as_dir" : 'X\(//\)[^/]' \| \
30977 X"$as_dir" : 'X\(//\)$' \| \
30978 X"$as_dir" : 'X\(/\)' \| \
30979 . : '\(.\)' 2>/dev/null ||
30981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30983 /^X\(\/\/\)$/{ s//\1/; q; }
30984 /^X\(\/\).*/{ s//\1/; q; }
30987 test ! -n "$as_dirs" || mkdir $as_dirs
30988 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30989 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30990 { (exit 1); exit 1; }; }; }
30994 if test "$ac_dir" != .; then
30995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30996 # A "../" for each directory in $ac_dir_suffix.
30997 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30999 ac_dir_suffix= ac_top_builddir=
31003 .) # No --srcdir option. We are building in place.
31005 if test -z "$ac_top_builddir"; then
31008 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31010 [\\/]* | ?:[\\/]* ) # Absolute path.
31011 ac_srcdir=$srcdir$ac_dir_suffix;
31012 ac_top_srcdir=$srcdir ;;
31013 *) # Relative path.
31014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31018 # Do not use `cd foo && pwd` to compute absolute paths, because
31019 # the directories may not exist.
31021 .) ac_abs_builddir="$ac_dir";;
31024 .) ac_abs_builddir=`pwd`;;
31025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31029 case $ac_abs_builddir in
31030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31032 case ${ac_top_builddir}. in
31033 .) ac_abs_top_builddir=$ac_abs_builddir;;
31034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31038 case $ac_abs_builddir in
31039 .) ac_abs_srcdir=$ac_srcdir;;
31042 .) ac_abs_srcdir=$ac_abs_builddir;;
31043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31047 case $ac_abs_builddir in
31048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31050 case $ac_top_srcdir in
31051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31060 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31063 if test x"$ac_file" != x-; then
31064 { echo "$as_me:$LINENO: creating $ac_file" >&5
31065 echo "$as_me: creating $ac_file" >&6;}
31068 # Let's still pretend it is `configure' which instantiates (i.e., don't
31069 # use $as_me), people would be surprised to read:
31070 # /* config.h. Generated by config.status. */
31071 if test x"$ac_file" = x-; then
31074 configure_input="$ac_file. "
31076 configure_input=$configure_input"Generated from `echo $ac_file_in |
31077 sed 's,.*/,,'` by configure."
31079 # First look for the input files in the build tree, otherwise in the
31081 ac_file_inputs=`IFS=:
31082 for f in $ac_file_in; do
31084 -) echo $tmp/stdin ;;
31086 # Absolute (can't be DOS-style, as IFS=:)
31087 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31088 echo "$as_me: error: cannot find input file: $f" >&2;}
31089 { (exit 1); exit 1; }; }
31092 if test -f "$f"; then
31095 elif test -f "$srcdir/$f"; then
31100 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31101 echo "$as_me: error: cannot find input file: $f" >&2;}
31102 { (exit 1); exit 1; }; }
31105 done` || { (exit 1); exit 1; }
31107 cat >>$CONFIG_STATUS <<_ACEOF
31111 cat >>$CONFIG_STATUS <<\_ACEOF
31113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31114 s,@configure_input@,$configure_input,;t t
31115 s,@srcdir@,$ac_srcdir,;t t
31116 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31117 s,@top_srcdir@,$ac_top_srcdir,;t t
31118 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31119 s,@builddir@,$ac_builddir,;t t
31120 s,@abs_builddir@,$ac_abs_builddir,;t t
31121 s,@top_builddir@,$ac_top_builddir,;t t
31122 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31123 s,@INSTALL@,$ac_INSTALL,;t t
31124 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31126 if test x"$ac_file" != x-; then
31127 mv $tmp/out $ac_file
31135 cat >>$CONFIG_STATUS <<\_ACEOF
31138 # CONFIG_HEADER section.
31141 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31142 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31144 # ac_d sets the value in "#define NAME VALUE" lines.
31145 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31146 ac_dB='[ ].*$,\1#\2'
31149 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31150 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31151 ac_uB='$,\1#\2define\3'
31155 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31156 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31158 - | *:- | *:-:* ) # input from stdin
31160 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31161 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31162 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31164 * ) ac_file_in=$ac_file.in ;;
31167 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31168 echo "$as_me: creating $ac_file" >&6;}
31170 # First look for the input files in the build tree, otherwise in the
31172 ac_file_inputs=`IFS=:
31173 for f in $ac_file_in; do
31175 -) echo $tmp/stdin ;;
31177 # Absolute (can't be DOS-style, as IFS=:)
31178 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31179 echo "$as_me: error: cannot find input file: $f" >&2;}
31180 { (exit 1); exit 1; }; }
31181 # Do quote $f, to prevent DOS paths from being IFS'd.
31184 if test -f "$f"; then
31187 elif test -f "$srcdir/$f"; then
31192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31193 echo "$as_me: error: cannot find input file: $f" >&2;}
31194 { (exit 1); exit 1; }; }
31197 done` || { (exit 1); exit 1; }
31198 # Remove the trailing spaces.
31199 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31203 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31204 # `conftest.undefs', that substitutes the proper values into
31205 # config.h.in to produce config.h. The first handles `#define'
31206 # templates, and the second `#undef' templates.
31207 # And first: Protect against being on the right side of a sed subst in
31208 # config.status. Protect against being in an unquoted here document
31209 # in config.status.
31210 rm -f conftest.defines conftest.undefs
31211 # Using a here document instead of a string reduces the quoting nightmare.
31212 # Putting comments in sed scripts is not portable.
31214 # `end' is used to avoid that the second main sed command (meant for
31215 # 0-ary CPP macros) applies to n-ary macro definitions.
31216 # See the Autoconf documentation for `clear'.
31217 cat >confdef2sed.sed <<\_ACEOF
31222 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31224 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31227 # If some macros were called several times there might be several times
31228 # the same #defines, which is useless. Nevertheless, we may not want to
31229 # sort them, since we want the *last* AC-DEFINE to be honored.
31230 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31231 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31232 rm -f confdef2sed.sed
31234 # This sed command replaces #undef with comments. This is necessary, for
31235 # example, in the case of _POSIX_SOURCE, which is predefined and required
31236 # on some systems where configure will not decide to define it.
31237 cat >>conftest.undefs <<\_ACEOF
31238 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31241 # Break up conftest.defines because some shells have a limit on the size
31242 # of here documents, and old seds have small limits too (100 cmds).
31243 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31244 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31245 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31246 echo ' :' >>$CONFIG_STATUS
31247 rm -f conftest.tail
31248 while grep . conftest.defines >/dev/null
31250 # Write a limited-size here document to $tmp/defines.sed.
31251 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31252 # Speed up: don't consider the non `#define' lines.
31253 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31254 # Work around the forget-to-reset-the-flag bug.
31255 echo 't clr' >>$CONFIG_STATUS
31256 echo ': clr' >>$CONFIG_STATUS
31257 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31259 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31261 mv $tmp/out $tmp/in
31263 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31264 rm -f conftest.defines
31265 mv conftest.tail conftest.defines
31267 rm -f conftest.defines
31268 echo ' fi # grep' >>$CONFIG_STATUS
31269 echo >>$CONFIG_STATUS
31271 # Break up conftest.undefs because some shells have a limit on the size
31272 # of here documents, and old seds have small limits too (100 cmds).
31273 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31274 rm -f conftest.tail
31275 while grep . conftest.undefs >/dev/null
31277 # Write a limited-size here document to $tmp/undefs.sed.
31278 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31279 # Speed up: don't consider the non `#undef'
31280 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31281 # Work around the forget-to-reset-the-flag bug.
31282 echo 't clr' >>$CONFIG_STATUS
31283 echo ': clr' >>$CONFIG_STATUS
31284 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31286 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31288 mv $tmp/out $tmp/in
31290 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31291 rm -f conftest.undefs
31292 mv conftest.tail conftest.undefs
31294 rm -f conftest.undefs
31296 cat >>$CONFIG_STATUS <<\_ACEOF
31297 # Let's still pretend it is `configure' which instantiates (i.e., don't
31298 # use $as_me), people would be surprised to read:
31299 # /* config.h. Generated by config.status. */
31300 if test x"$ac_file" = x-; then
31301 echo "/* Generated by configure. */" >$tmp/config.h
31303 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31305 cat $tmp/in >>$tmp/config.h
31307 if test x"$ac_file" != x-; then
31308 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31309 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31310 echo "$as_me: $ac_file is unchanged" >&6;}
31312 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31314 X"$ac_file" : 'X\(//\)[^/]' \| \
31315 X"$ac_file" : 'X\(//\)$' \| \
31316 X"$ac_file" : 'X\(/\)' \| \
31317 . : '\(.\)' 2>/dev/null ||
31319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31321 /^X\(\/\/\)$/{ s//\1/; q; }
31322 /^X\(\/\).*/{ s//\1/; q; }
31324 { if $as_mkdir_p; then
31329 while test ! -d "$as_dir"; do
31330 as_dirs="$as_dir $as_dirs"
31331 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31333 X"$as_dir" : 'X\(//\)[^/]' \| \
31334 X"$as_dir" : 'X\(//\)$' \| \
31335 X"$as_dir" : 'X\(/\)' \| \
31336 . : '\(.\)' 2>/dev/null ||
31338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31340 /^X\(\/\/\)$/{ s//\1/; q; }
31341 /^X\(\/\).*/{ s//\1/; q; }
31344 test ! -n "$as_dirs" || mkdir $as_dirs
31345 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31346 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31347 { (exit 1); exit 1; }; }; }
31350 mv $tmp/config.h $ac_file
31354 rm -f $tmp/config.h
31358 cat >>$CONFIG_STATUS <<\_ACEOF
31361 # CONFIG_COMMANDS section.
31363 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31364 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31365 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31366 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31367 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31368 X"$ac_dest" : 'X\(//\)[^/]' \| \
31369 X"$ac_dest" : 'X\(//\)$' \| \
31370 X"$ac_dest" : 'X\(/\)' \| \
31371 . : '\(.\)' 2>/dev/null ||
31373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31375 /^X\(\/\/\)$/{ s//\1/; q; }
31376 /^X\(\/\).*/{ s//\1/; q; }
31378 { if $as_mkdir_p; then
31383 while test ! -d "$as_dir"; do
31384 as_dirs="$as_dir $as_dirs"
31385 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31387 X"$as_dir" : 'X\(//\)[^/]' \| \
31388 X"$as_dir" : 'X\(//\)$' \| \
31389 X"$as_dir" : 'X\(/\)' \| \
31390 . : '\(.\)' 2>/dev/null ||
31392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31394 /^X\(\/\/\)$/{ s//\1/; q; }
31395 /^X\(\/\).*/{ s//\1/; q; }
31398 test ! -n "$as_dirs" || mkdir $as_dirs
31399 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31400 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31401 { (exit 1); exit 1; }; }; }
31405 if test "$ac_dir" != .; then
31406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31407 # A "../" for each directory in $ac_dir_suffix.
31408 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31410 ac_dir_suffix= ac_top_builddir=
31414 .) # No --srcdir option. We are building in place.
31416 if test -z "$ac_top_builddir"; then
31419 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31421 [\\/]* | ?:[\\/]* ) # Absolute path.
31422 ac_srcdir=$srcdir$ac_dir_suffix;
31423 ac_top_srcdir=$srcdir ;;
31424 *) # Relative path.
31425 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31426 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31429 # Do not use `cd foo && pwd` to compute absolute paths, because
31430 # the directories may not exist.
31432 .) ac_abs_builddir="$ac_dir";;
31435 .) ac_abs_builddir=`pwd`;;
31436 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31437 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31440 case $ac_abs_builddir in
31441 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31443 case ${ac_top_builddir}. in
31444 .) ac_abs_top_builddir=$ac_abs_builddir;;
31445 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31446 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31449 case $ac_abs_builddir in
31450 .) ac_abs_srcdir=$ac_srcdir;;
31453 .) ac_abs_srcdir=$ac_abs_builddir;;
31454 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31455 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31458 case $ac_abs_builddir in
31459 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31461 case $ac_top_srcdir in
31462 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31463 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31464 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31469 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31470 echo "$as_me: executing $ac_dest commands" >&6;}
31473 for ac_file in $CONFIG_FILES; do
31474 # Support "outfile[:infile[:infile...]]"
31476 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31478 # PO directories have a Makefile.in generated from Makefile.in.in.
31479 case "$ac_file" in */Makefile.in)
31480 # Adjust a relative srcdir.
31481 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31482 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31483 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31484 # In autoconf-2.13 it is called $ac_given_srcdir.
31485 # In autoconf-2.50 it is called $srcdir.
31486 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31487 case "$ac_given_srcdir" in
31488 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31489 /*) top_srcdir="$ac_given_srcdir" ;;
31490 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31492 # Treat a directory as a PO directory if and only if it has a
31493 # POTFILES.in file. This allows packages to have multiple PO
31494 # directories under different names or in different locations.
31495 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31496 rm -f "$ac_dir/POTFILES"
31497 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31498 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31499 POMAKEFILEDEPS="POTFILES.in"
31500 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31501 # on $ac_dir but don't depend on user-specified configuration
31503 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31504 # The LINGUAS file contains the set of available languages.
31505 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31506 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31508 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31509 # Hide the ALL_LINGUAS assigment from automake.
31510 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31511 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31513 # The set of available languages was given in configure.in.
31514 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31517 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31518 # Compute UPDATEPOFILES
31519 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31520 # Compute DUMMYPOFILES
31521 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31523 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31524 case "$ac_given_srcdir" in
31526 *) srcdirpre='$(srcdir)/' ;;
31532 for lang in $ALL_LINGUAS; do
31533 POFILES="$POFILES $srcdirpre$lang.po"
31534 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31535 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31536 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31538 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31539 # environment variable.
31541 if test -n "$ALL_LINGUAS"; then
31542 for presentlang in $ALL_LINGUAS; do
31544 if test "%UNSET%" != "$LINGUAS"; then
31545 desiredlanguages="$LINGUAS"
31547 desiredlanguages="$ALL_LINGUAS"
31549 for desiredlang in $desiredlanguages; do
31550 # Use the presentlang catalog if desiredlang is
31551 # a. equal to presentlang, or
31552 # b. a variant of presentlang (because in this case,
31553 # presentlang can be used as a fallback for messages
31554 # which are not translated in the desiredlang catalog).
31555 case "$desiredlang" in
31556 "$presentlang"*) useit=yes;;
31559 if test $useit = yes; then
31560 INST_LINGUAS="$INST_LINGUAS $presentlang"
31565 if test -n "$INST_LINGUAS"; then
31566 for lang in $INST_LINGUAS; do
31567 CATALOGS="$CATALOGS $lang.gmo"
31570 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31571 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"
31572 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31573 if test -f "$f"; then
31575 *.orig | *.bak | *~) ;;
31576 *) cat "$f" >> "$ac_dir/Makefile" ;;
31584 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31590 cat >>$CONFIG_STATUS <<\_ACEOF
31592 { (exit 0); exit 0; }
31594 chmod +x $CONFIG_STATUS
31595 ac_clean_files=$ac_clean_files_save
31598 # configure is writing to config.log, and then calls config.status.
31599 # config.status does its own redirection, appending to config.log.
31600 # Unfortunately, on DOS this fails, as config.log is still kept open
31601 # by configure, so config.status won't be able to write to it; its
31602 # output is simply discarded. So we exec the FD to /dev/null,
31603 # effectively closing config.log, so it can be properly (re)opened and
31604 # appended to by config.status. When coming back to configure, we
31605 # need to make the FD available again.
31606 if test "$no_create" != yes; then
31608 ac_config_status_args=
31609 test "$silent" = yes &&
31610 ac_config_status_args="$ac_config_status_args --quiet"
31612 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31614 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31615 # would make configure fail if this is the last instruction.
31616 $ac_cs_success || { (exit 1); exit 1; }
31621 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31622 chmod 755 dvd-handler dvd-simulator
31623 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31628 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31629 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31631 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31632 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31634 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31635 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31637 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31638 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31640 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31641 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31643 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31644 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31646 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31647 chmod 755 $c/sqlite
31650 chmod 755 src/win32/build-depkgs-mingw32
31652 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31653 largefile_support="yes"
31657 # A whole lot of hand springs to get the compiler version.
31658 # This is because gcc changed the output in version 3.0
31660 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31661 if test "x${CCVERSION}" = "x" ; then
31662 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31664 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31665 if test x"${CXXVERSION}" = x ; then
31666 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31669 if test "x${subsysdir}" = "x${sbindir}" ; then
31672 echo "You have set --sbindir and --with-subsys-dir"
31673 echo " both equal to: ${subsysdir} "
31674 echo " This is not permitted. Please reconfigure."
31676 echo "Aborting configuration ..."
31682 if test "x${db_name}" = "xInternal" ; then
31685 echo "You have not specified either --enable-client-only or one of the"
31686 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31687 echo " This is not permitted. Please reconfigure."
31689 echo "Aborting the configuration ..."
31696 Configuration on `date`:
31698 Host: $host -- ${DISTNAME} ${DISTVER}
31699 Bacula version: ${VERSION} (${DATE})
31700 Source code location: ${srcdir}
31701 Install binaries: ${sbindir}
31702 Install config files: ${sysconfdir}
31703 Scripts directory: ${scriptdir}
31704 Working directory: ${working_dir}
31705 PID directory: ${piddir}
31706 Subsys directory: ${subsysdir}
31707 Man directory: ${mandir}
31708 Data directory: ${datadir}
31709 C Compiler: ${CC} ${CCVERSION}
31710 C++ Compiler: ${CXX} ${CXXVERSION}
31711 Compiler flags: ${WCFLAGS} ${CFLAGS}
31712 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31714 Statically Linked Tools: ${support_static_tools}
31715 Statically Linked FD: ${support_static_fd}
31716 Statically Linked SD: ${support_static_sd}
31717 Statically Linked DIR: ${support_static_dir}
31718 Statically Linked CONS: ${support_static_cons}
31719 Database type: ${db_name}
31720 Database lib: ${DB_LIBS}
31722 Job Output Email: ${job_email}
31723 Traceback Email: ${dump_email}
31724 SMTP Host Address: ${smtp_host}
31726 Director Port: ${dir_port}
31727 File daemon Port: ${fd_port}
31728 Storage daemon Port: ${sd_port}
31730 Director User: ${dir_user}
31731 Director Group: ${dir_group}
31732 Storage Daemon User: ${sd_user}
31733 Storage DaemonGroup: ${sd_group}
31734 File Daemon User: ${fd_user}
31735 File Daemon Group: ${fd_group}
31737 SQL binaries Directory ${SQL_BINDIR}
31739 Large file support: $largefile_support
31740 Bacula conio support: ${got_conio} ${CONS_LIBS}
31741 readline support: ${got_readline} ${PRTREADLINE_SRC}
31742 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31743 TLS support: ${support_tls}
31744 Encryption support: ${support_crypto}
31745 ZLIB support: ${have_zlib}
31746 enable-smartalloc: ${support_smartalloc}
31747 enable-gnome: ${support_gnome} ${gnome_version}
31748 enable-wx-console: ${support_wx_console} ${wx_version}
31749 enable-tray-monitor: ${support_tray_monitor}
31750 client-only: ${build_client_only}
31751 build-dird: ${build_dird}
31752 build-stored: ${build_stored}
31753 ACL support: ${have_acl}
31754 Python support: ${support_python} ${PYTHON_LIBS}