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 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 DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO 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
1403 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1404 if test -f $ac_dir/install-sh; then
1406 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 elif test -f $ac_dir/install.sh; then
1410 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 elif test -f $ac_dir/shtool; then
1414 ac_install_sh="$ac_aux_dir/shtool install -c"
1418 if test -z "$ac_aux_dir"; then
1419 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1420 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1421 { (exit 1); exit 1; }; }
1423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1435 # Extract the first word of "$ac_prog", so it can be a program name with args.
1436 set dummy $ac_prog; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 TRUEPRG=$ac_cv_path_TRUEPRG
1466 if test -n "$TRUEPRG"; then
1467 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1468 echo "${ECHO_T}$TRUEPRG" >&6
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1474 test -n "$TRUEPRG" && break
1476 test -n "$TRUEPRG" || TRUEPRG=":"
1478 for ac_prog in false
1480 # Extract the first word of "$ac_prog", so it can be a program name with args.
1481 set dummy $ac_prog; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509 FALSEPRG=$ac_cv_path_FALSEPRG
1511 if test -n "$FALSEPRG"; then
1512 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1513 echo "${ECHO_T}$FALSEPRG" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1519 test -n "$FALSEPRG" && break
1521 test -n "$FALSEPRG" || FALSEPRG=":"
1526 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 echo "configuring for bacula $VERSION ($DATE)"
1534 ac_cpp='$CPP $CPPFLAGS'
1535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538 if test -n "$ac_tool_prefix"; then
1539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_CC+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 if test -n "$CC"; then
1567 echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1570 echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1575 if test -z "$ac_cv_prog_CC"; then
1577 # Extract the first word of "gcc", so it can be a program name with args.
1578 set dummy gcc; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 if test -n "$ac_ct_CC"; then
1585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 test -z "$as_dir" && as_dir=.
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_ac_ct_CC="gcc"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604 if test -n "$ac_ct_CC"; then
1605 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1606 echo "${ECHO_T}$ac_ct_CC" >&6
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1617 if test -z "$CC"; then
1618 if test -n "$ac_tool_prefix"; then
1619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1620 set dummy ${ac_tool_prefix}cc; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC="${ac_tool_prefix}cc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1655 if test -z "$ac_cv_prog_CC"; then
1657 # Extract the first word of "cc", so it can be a program name with args.
1658 set dummy cc; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_ac_ct_CC="cc"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1698 if test -z "$CC"; then
1699 # Extract the first word of "cc", so it can be a program name with args.
1700 set dummy cc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC="$CC" # Let the user override the test.
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1718 ac_prog_rejected=yes
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 if test $ac_prog_rejected = yes; then
1729 # We found a bogon in the path, so make sure we never use it.
1730 set dummy $ac_cv_prog_CC
1732 if test $# != 0; then
1733 # We chose a different compiler from the bogus one.
1734 # However, it has the same basename, so the bogon will be chosen
1735 # first if we set CC to just the basename; use the full file name.
1737 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1743 if test -n "$CC"; then
1744 echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1752 if test -z "$CC"; then
1753 if test -n "$ac_tool_prefix"; then
1756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 if test -n "$CC"; then
1764 ac_cv_prog_CC="$CC" # Let the user override the test.
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 if test -n "$CC"; then
1784 echo "$as_me:$LINENO: result: $CC" >&5
1785 echo "${ECHO_T}$CC" >&6
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1791 test -n "$CC" && break
1794 if test -z "$CC"; then
1798 # Extract the first word of "$ac_prog", so it can be a program name with args.
1799 set dummy $ac_prog; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test -n "$ac_ct_CC"; then
1806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_ac_ct_CC="$ac_prog"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825 if test -n "$ac_ct_CC"; then
1826 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827 echo "${ECHO_T}$ac_ct_CC" >&6
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1833 test -n "$ac_ct_CC" && break
1842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1843 See \`config.log' for more details." >&5
1844 echo "$as_me: error: no acceptable C compiler found in \$PATH
1845 See \`config.log' for more details." >&2;}
1846 { (exit 1); exit 1; }; }
1848 # Provide some information about the compiler.
1849 echo "$as_me:$LINENO:" \
1850 "checking for C compiler version" >&5
1851 ac_compiler=`set X $ac_compile; echo $2`
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1853 (eval $ac_compiler --version </dev/null >&5) 2>&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1858 (eval $ac_compiler -v </dev/null >&5) 2>&5
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }
1862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1863 (eval $ac_compiler -V </dev/null >&5) 2>&5
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }
1868 cat >conftest.$ac_ext <<_ACEOF
1871 cat confdefs.h >>conftest.$ac_ext
1872 cat >>conftest.$ac_ext <<_ACEOF
1873 /* end confdefs.h. */
1883 ac_clean_files_save=$ac_clean_files
1884 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1885 # Try to create an executable without -o first, disregard a.out.
1886 # It will help us diagnose broken compilers, and finding out an intuition
1888 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1889 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1890 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1891 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1892 (eval $ac_link_default) 2>&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; then
1896 # Find the output, starting from the most likely. This scheme is
1897 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1900 # Be careful to initialize this variable, since it used to be cached.
1901 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1903 # b.out is created by i960 compilers.
1904 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1906 test -f "$ac_file" || continue
1908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1911 # This is the source file.
1914 # We found the default executable, but exeext='' is most
1918 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919 # FIXME: I believe we export ac_cv_exeext for Libtool,
1920 # but it would be cool to find out if it's true. Does anybody
1921 # maintain Libtool? --akim.
1929 echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1932 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: C compiler cannot create executables
1935 See \`config.log' for more details." >&2;}
1936 { (exit 77); exit 77; }; }
1939 ac_exeext=$ac_cv_exeext
1940 echo "$as_me:$LINENO: result: $ac_file" >&5
1941 echo "${ECHO_T}$ac_file" >&6
1943 # Check the compiler produces executables we can run. If not, either
1944 # the compiler is broken, or we cross compile.
1945 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1946 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1947 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1948 # If not cross compiling, check that we can run a simple program.
1949 if test "$cross_compiling" != yes; then
1950 if { ac_try='./$ac_file'
1951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; }; then
1958 if test "$cross_compiling" = maybe; then
1961 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&5
1964 echo "$as_me: error: cannot run C compiled programs.
1965 If you meant to cross compile, use \`--host'.
1966 See \`config.log' for more details." >&2;}
1967 { (exit 1); exit 1; }; }
1971 echo "$as_me:$LINENO: result: yes" >&5
1972 echo "${ECHO_T}yes" >&6
1974 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1975 ac_clean_files=$ac_clean_files_save
1976 # Check the compiler produces executables we can run. If not, either
1977 # the compiler is broken, or we cross compile.
1978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1981 echo "${ECHO_T}$cross_compiling" >&6
1983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1986 (eval $ac_link) 2>&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; then
1990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1992 # work properly (i.e., refer to `conftest.exe'), while it won't with
1994 for ac_file in conftest.exe conftest conftest.*; do
1995 test -f "$ac_file" || continue
1997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2005 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2006 See \`config.log' for more details." >&5
2007 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2008 See \`config.log' for more details." >&2;}
2009 { (exit 1); exit 1; }; }
2012 rm -f conftest$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2014 echo "${ECHO_T}$ac_cv_exeext" >&6
2016 rm -f conftest.$ac_ext
2017 EXEEXT=$ac_cv_exeext
2019 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2021 if test "${ac_cv_objext+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 cat >conftest.$ac_ext <<_ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h. */
2039 rm -f conftest.o conftest.obj
2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; then
2045 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2053 echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2056 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2057 See \`config.log' for more details." >&5
2058 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2059 See \`config.log' for more details." >&2;}
2060 { (exit 1); exit 1; }; }
2063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2065 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2066 echo "${ECHO_T}$ac_cv_objext" >&6
2067 OBJEXT=$ac_cv_objext
2069 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 cat >conftest.$ac_ext <<_ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h. */
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>conftest.er1
2096 grep -v '^ *+' conftest.er1 >conftest.err
2098 cat conftest.err >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -z "$ac_c_werror_flag"
2102 || test ! -s conftest.err'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2116 echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2125 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2126 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2127 GCC=`test $ac_compiler_gnu = yes && echo yes`
2128 ac_test_CFLAGS=${CFLAGS+set}
2129 ac_save_CFLAGS=$CFLAGS
2131 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_g+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 cat >conftest.$ac_ext <<_ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2155 grep -v '^ *+' conftest.er1 >conftest.err
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2183 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2184 if test "$ac_test_CFLAGS" = set; then
2185 CFLAGS=$ac_save_CFLAGS
2186 elif test $ac_cv_prog_cc_g = yes; then
2187 if test "$GCC" = yes; then
2193 if test "$GCC" = yes; then
2199 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2200 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2201 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 ac_cv_prog_cc_stdc=no
2206 cat >conftest.$ac_ext <<_ACEOF
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h. */
2214 #include <sys/types.h>
2215 #include <sys/stat.h>
2216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2217 struct buf { int x; };
2218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2219 static char *e (p, i)
2225 static char *f (char * (*g) (char **, int), char **p, ...)
2230 s = g (p, va_arg (v,int));
2235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2236 function prototypes and stuff, but not '\xHH' hex character constants.
2237 These don't provoke an error unfortunately, instead are silently treated
2238 as 'x'. The following induces an error, until -std1 is added to get
2239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2240 array size at least. It's necessary to write '\x00'==0 to get something
2241 that's true only with -std1. */
2242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2244 int test (int i, double x);
2245 struct s1 {int (*f) (int a);};
2246 struct s2 {int (*f) (double a);};
2247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2258 # Don't try gcc -ansi; that turns off useful extensions and
2259 # breaks some systems' header files.
2260 # AIX -qlanglvl=ansi
2261 # Ultrix and OSF/1 -std1
2262 # HP-UX 10.20 and later -Ae
2263 # HP-UX older versions -Aa -D_HPUX_SOURCE
2264 # SVR4 -Xc -D__EXTENSIONS__
2265 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2267 CC="$ac_save_CC $ac_arg"
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2272 grep -v '^ *+' conftest.er1 >conftest.err
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 ac_cv_prog_cc_stdc=$ac_arg
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2297 rm -f conftest.err conftest.$ac_objext
2299 rm -f conftest.$ac_ext conftest.$ac_objext
2304 case "x$ac_cv_prog_cc_stdc" in
2306 echo "$as_me:$LINENO: result: none needed" >&5
2307 echo "${ECHO_T}none needed" >&6 ;;
2309 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2310 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2311 CC="$CC $ac_cv_prog_cc_stdc" ;;
2314 # Some people use a C++ compiler to compile C. Since we use `exit',
2315 # in C++ we need to declare it. In case someone uses the same compiler
2316 # for both compiling C and C++ we need to have the C++ compiler decide
2317 # the declaration of exit, since it's the most demanding environment.
2318 cat >conftest.$ac_ext <<_ACEOF
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>conftest.er1
2327 grep -v '^ *+' conftest.er1 >conftest.err
2329 cat conftest.err >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -z "$ac_c_werror_flag"
2333 || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 for ac_declaration in \
2347 'extern "C" void std::exit (int) throw (); using std::exit;' \
2348 'extern "C" void std::exit (int); using std::exit;' \
2349 'extern "C" void exit (int) throw ();' \
2350 'extern "C" void exit (int);' \
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2373 grep -v '^ *+' conftest.er1 >conftest.err
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag"
2379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 cat >conftest.$ac_ext <<_ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1 >conftest.err
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -z "$ac_c_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 if test -n "$ac_declaration"; then
2446 echo '#ifdef __cplusplus' >>confdefs.h
2447 echo $ac_declaration >>confdefs.h
2448 echo '#endif' >>confdefs.h
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 ac_cpp='$CXXCPP $CPPFLAGS'
2465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2468 if test -n "$ac_tool_prefix"; then
2469 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_CXX+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$CXX"; then
2479 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 if test -n "$CXX"; then
2499 echo "$as_me:$LINENO: result: $CXX" >&5
2500 echo "${ECHO_T}$CXX" >&6
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2506 test -n "$CXX" && break
2509 if test -z "$CXX"; then
2511 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$ac_ct_CXX"; then
2521 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_ac_ct_CXX="$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2540 if test -n "$ac_ct_CXX"; then
2541 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2542 echo "${ECHO_T}$ac_ct_CXX" >&6
2544 echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2548 test -n "$ac_ct_CXX" && break
2550 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2556 # Provide some information about the compiler.
2557 echo "$as_me:$LINENO:" \
2558 "checking for C++ compiler version" >&5
2559 ac_compiler=`set X $ac_compile; echo $2`
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2561 (eval $ac_compiler --version </dev/null >&5) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2565 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2566 (eval $ac_compiler -v </dev/null >&5) 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }
2570 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2571 (eval $ac_compiler -V </dev/null >&5) 2>&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }
2576 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2577 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2578 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_cxx_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2632 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2633 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2634 GXX=`test $ac_compiler_gnu = yes && echo yes`
2635 ac_test_CXXFLAGS=${CXXFLAGS+set}
2636 ac_save_CXXFLAGS=$CXXFLAGS
2638 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2639 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2640 if test "${ac_cv_prog_cxx_g+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>conftest.er1
2662 grep -v '^ *+' conftest.er1 >conftest.err
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try='test -z "$ac_cxx_werror_flag"
2668 || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2680 ac_cv_prog_cxx_g=yes
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2691 if test "$ac_test_CXXFLAGS" = set; then
2692 CXXFLAGS=$ac_save_CXXFLAGS
2693 elif test $ac_cv_prog_cxx_g = yes; then
2694 if test "$GXX" = yes; then
2700 if test "$GXX" = yes; then
2706 for ac_declaration in \
2708 'extern "C" void std::exit (int) throw (); using std::exit;' \
2709 'extern "C" void std::exit (int); using std::exit;' \
2710 'extern "C" void exit (int) throw ();' \
2711 'extern "C" void exit (int);' \
2714 cat >conftest.$ac_ext <<_ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2734 grep -v '^ *+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_cxx_werror_flag"
2740 || test ! -s conftest.err'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_cxx_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 if test -n "$ac_declaration"; then
2807 echo '#ifdef __cplusplus' >>confdefs.h
2808 echo $ac_declaration >>confdefs.h
2809 echo '#endif' >>confdefs.h
2813 ac_cpp='$CPP $CPPFLAGS'
2814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818 if test "x$CC" != xcc; then
2819 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2820 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2822 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2823 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2825 set dummy $CC; ac_cc=`echo $2 |
2826 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2827 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 cat >conftest.$ac_ext <<_ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2845 # Make sure it works both with $CC and with simple cc.
2846 # We do the test twice because some compilers refuse to overwrite an
2847 # existing .o file with -o, though they will create one.
2848 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2849 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); };
2860 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2861 if test "x$CC" != xcc; then
2862 # Test first that cc exists at all.
2863 if { ac_try='cc -c conftest.$ac_ext >&5'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2870 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); };
2884 # cc exists but doesn't like -o.
2885 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2890 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2895 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2896 echo "$as_me:$LINENO: result: yes" >&5
2897 echo "${ECHO_T}yes" >&6
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2902 cat >>confdefs.h <<\_ACEOF
2903 #define NO_MINUS_C_MINUS_O 1
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2914 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2915 # On Suns, sometimes $CPP names a directory.
2916 if test -n "$CPP" && test -d "$CPP"; then
2919 if test -z "$CPP"; then
2920 if test "${ac_cv_prog_CPP+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 # Double quotes because CPP needs to be expanded
2924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2927 for ac_c_preproc_warn_flag in '' yes
2929 # Use a header file that comes with gcc, so configuring glibc
2930 # with a fresh cross-compiler works.
2931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932 # <limits.h> exists even on freestanding compilers.
2933 # On the NeXT, cc -E runs the code through the compiler's parser,
2934 # not just through cpp. "Syntax error" is here to catch this case.
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2942 # include <limits.h>
2944 # include <assert.h>
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965 if test -z "$ac_cpp_err"; then
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 # Broken: fails on valid input.
2974 rm -f conftest.err conftest.$ac_ext
2976 # OK, works on sane cases. Now check whether non-existent headers
2977 # can be detected and how.
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2984 #include <ac_nonexistent.h>
2986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989 grep -v '^ *+' conftest.er1 >conftest.err
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } >/dev/null; then
2994 if test -s conftest.err; then
2995 ac_cpp_err=$ac_c_preproc_warn_flag
2996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003 if test -z "$ac_cpp_err"; then
3004 # Broken: success on invalid input.
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 # Passes both tests.
3014 rm -f conftest.err conftest.$ac_ext
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3031 echo "$as_me:$LINENO: result: $CPP" >&5
3032 echo "${ECHO_T}$CPP" >&6
3034 for ac_c_preproc_warn_flag in '' yes
3036 # Use a header file that comes with gcc, so configuring glibc
3037 # with a fresh cross-compiler works.
3038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3039 # <limits.h> exists even on freestanding compilers.
3040 # On the NeXT, cc -E runs the code through the compiler's parser,
3041 # not just through cpp. "Syntax error" is here to catch this case.
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3049 # include <limits.h>
3051 # include <assert.h>
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev/null; then
3063 if test -s conftest.err; then
3064 ac_cpp_err=$ac_c_preproc_warn_flag
3065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072 if test -z "$ac_cpp_err"; then
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3078 # Broken: fails on valid input.
3081 rm -f conftest.err conftest.$ac_ext
3083 # OK, works on sane cases. Now check whether non-existent headers
3084 # can be detected and how.
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3091 #include <ac_nonexistent.h>
3093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } >/dev/null; then
3101 if test -s conftest.err; then
3102 ac_cpp_err=$ac_c_preproc_warn_flag
3103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3110 if test -z "$ac_cpp_err"; then
3111 # Broken: success on invalid input.
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 # Passes both tests.
3121 rm -f conftest.err conftest.$ac_ext
3124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3125 rm -f conftest.err conftest.$ac_ext
3126 if $ac_preproc_ok; then
3129 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3130 See \`config.log' for more details." >&5
3131 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3132 See \`config.log' for more details." >&2;}
3133 { (exit 1); exit 1; }; }
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 echo "$as_me:$LINENO: checking for egrep" >&5
3144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3145 if test "${ac_cv_prog_egrep+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3149 then ac_cv_prog_egrep='grep -E'
3150 else ac_cv_prog_egrep='egrep'
3153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3155 EGREP=$ac_cv_prog_egrep
3158 if test $ac_cv_c_compiler_gnu = yes; then
3159 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3160 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3161 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 ac_pattern="Autoconf.*'x'"
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3176 ac_cv_prog_gcc_traditional=yes
3178 ac_cv_prog_gcc_traditional=no
3183 if test $ac_cv_prog_gcc_traditional = no; then
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3194 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3195 ac_cv_prog_gcc_traditional=yes
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3202 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3203 if test $ac_cv_prog_gcc_traditional = yes; then
3204 CC="$CC -traditional"
3208 if test "x$CC" = xgcc; then
3209 cat >>confdefs.h <<\_ACEOF
3214 # Extract the first word of "$CXX", so it can be a program name with args.
3215 set dummy $CXX; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_CXX+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3246 if test -n "$CXX"; then
3247 echo "$as_me:$LINENO: result: $CXX" >&5
3248 echo "${ECHO_T}$CXX" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 if test ! -e $CXX; then
3255 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3256 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3257 { (exit 1); exit 1; }; }
3260 # Find a good install program. We prefer a C program (faster),
3261 # so one script is as good as another. But avoid the broken or
3262 # incompatible versions:
3263 # SysV /etc/install, /usr/sbin/install
3264 # SunOS /usr/etc/install
3265 # IRIX /sbin/install
3267 # AmigaOS /C/install, which installs bootblocks on floppy discs
3268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3271 # OS/2's system install, which has a completely different semantic
3272 # ./install, which can be erroneously created by make from ./install.sh.
3273 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3274 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3275 if test -z "$INSTALL"; then
3276 if test "${ac_cv_path_install+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir=.
3284 # Account for people who put trailing slashes in PATH elements.
3286 ./ | .// | /cC/* | \
3287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3288 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3291 # OSF1 and SCO ODT 3.0 have their own names for install.
3292 # Don't use installbsd from OSF since it installs stuff as root
3294 for ac_prog in ginstall scoinst install; do
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3297 if test $ac_prog = install &&
3298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3299 # AIX install. It has an incompatible calling convention.
3301 elif test $ac_prog = install &&
3302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303 # program-specific install script used by HP pwplus--don't use.
3306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3318 if test "${ac_cv_path_install+set}" = set; then
3319 INSTALL=$ac_cv_path_install
3321 # As a last resort, use the slow shell script. We don't cache a
3322 # path for INSTALL within a source directory, because that will
3323 # break other packages using the cache if that directory is
3324 # removed, or if the path is relative.
3325 INSTALL=$ac_install_sh
3328 echo "$as_me:$LINENO: result: $INSTALL" >&5
3329 echo "${ECHO_T}$INSTALL" >&6
3331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3332 # It thinks the first close brace ends the variable substitution.
3333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3342 echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344 if test "${ac_cv_prog_RANLIB+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -n "$RANLIB"; then
3348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 RANLIB=$ac_cv_prog_RANLIB
3367 if test -n "$RANLIB"; then
3368 echo "$as_me:$LINENO: result: $RANLIB" >&5
3369 echo "${ECHO_T}$RANLIB" >&6
3371 echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3376 if test -z "$ac_cv_prog_RANLIB"; then
3377 ac_ct_RANLIB=$RANLIB
3378 # Extract the first word of "ranlib", so it can be a program name with args.
3379 set dummy ranlib; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 if test -n "$ac_ct_RANLIB"; then
3386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395 ac_cv_prog_ac_ct_RANLIB="ranlib"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3406 if test -n "$ac_ct_RANLIB"; then
3407 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 RANLIB=$ac_ct_RANLIB
3416 RANLIB="$ac_cv_prog_RANLIB"
3419 # Extract the first word of "mv", so it can be a program name with args.
3420 set dummy mv; ac_word=$2
3421 echo "$as_me:$LINENO: checking for $ac_word" >&5
3422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423 if test "${ac_cv_path_MV+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3451 if test -n "$MV"; then
3452 echo "$as_me:$LINENO: result: $MV" >&5
3453 echo "${ECHO_T}$MV" >&6
3455 echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3459 # Extract the first word of "rm", so it can be a program name with args.
3460 set dummy rm; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_path_RM+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3491 if test -n "$RM"; then
3492 echo "$as_me:$LINENO: result: $RM" >&5
3493 echo "${ECHO_T}$RM" >&6
3495 echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3499 # Extract the first word of "cp", so it can be a program name with args.
3500 set dummy cp; ac_word=$2
3501 echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503 if test "${ac_cv_path_CP+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3531 if test -n "$CP"; then
3532 echo "$as_me:$LINENO: result: $CP" >&5
3533 echo "${ECHO_T}$CP" >&6
3535 echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3539 # Extract the first word of "sed", so it can be a program name with args.
3540 set dummy sed; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_path_SED+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3571 if test -n "$SED"; then
3572 echo "$as_me:$LINENO: result: $SED" >&5
3573 echo "${ECHO_T}$SED" >&6
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 # Extract the first word of "echo", so it can be a program name with args.
3580 set dummy echo; ac_word=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_path_ECHO+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3609 ECHO=$ac_cv_path_ECHO
3611 if test -n "$ECHO"; then
3612 echo "$as_me:$LINENO: result: $ECHO" >&5
3613 echo "${ECHO_T}$ECHO" >&6
3615 echo "$as_me:$LINENO: result: no" >&5
3616 echo "${ECHO_T}no" >&6
3619 # Extract the first word of "cmp", so it can be a program name with args.
3620 set dummy cmp; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_path_CMP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3651 if test -n "$CMP"; then
3652 echo "$as_me:$LINENO: result: $CMP" >&5
3653 echo "${ECHO_T}$CMP" >&6
3655 echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3659 # Extract the first word of "tbl", so it can be a program name with args.
3660 set dummy tbl; ac_word=$2
3661 echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663 if test "${ac_cv_path_TBL+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3691 if test -n "$TBL"; then
3692 echo "$as_me:$LINENO: result: $TBL" >&5
3693 echo "${ECHO_T}$TBL" >&6
3695 echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3699 # Extract the first word of "ar", so it can be a program name with args.
3700 set dummy ar; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_path_AR+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3731 if test -n "$AR"; then
3732 echo "$as_me:$LINENO: result: $AR" >&5
3733 echo "${ECHO_T}$AR" >&6
3735 echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3739 # Extract the first word of "openssl", so it can be a program name with args.
3740 set dummy openssl; ac_word=$2
3741 echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_path_OPENSSL+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3769 OPENSSL=$ac_cv_path_OPENSSL
3771 if test -n "$OPENSSL"; then
3772 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3773 echo "${ECHO_T}$OPENSSL" >&6
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3779 # Extract the first word of "mtx", so it can be a program name with args.
3780 set dummy mtx; ac_word=$2
3781 echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783 if test "${ac_cv_path_MTX+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3811 if test -n "$MTX"; then
3812 echo "$as_me:$LINENO: result: $MTX" >&5
3813 echo "${ECHO_T}$MTX" >&6
3815 echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3819 # Extract the first word of "df", so it can be a program name with args.
3820 set dummy df; ac_word=$2
3821 echo "$as_me:$LINENO: checking for $ac_word" >&5
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823 if test "${ac_cv_path_DF+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3851 if test -n "$DF"; then
3852 echo "$as_me:$LINENO: result: $DF" >&5
3853 echo "${ECHO_T}$DF" >&6
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 # Extract the first word of "mkisofs", so it can be a program name with args.
3860 set dummy mkisofs; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_path_MKISOFS+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3889 MKISOFS=$ac_cv_path_MKISOFS
3891 if test -n "$MKISOFS"; then
3892 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3893 echo "${ECHO_T}$MKISOFS" >&6
3895 echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3899 # Extract the first word of "python", so it can be a program name with args.
3900 set dummy python; ac_word=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_path_PYTHON+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3929 PYTHON=$ac_cv_path_PYTHON
3931 if test -n "$PYTHON"; then
3932 echo "$as_me:$LINENO: result: $PYTHON" >&5
3933 echo "${ECHO_T}$PYTHON" >&6
3935 echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3939 # Extract the first word of "growisofs", so it can be a program name with args.
3940 set dummy growisofs; ac_word=$2
3941 echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3969 GROWISOFS=$ac_cv_path_GROWISOFS
3971 if test -n "$GROWISOFS"; then
3972 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3973 echo "${ECHO_T}$GROWISOFS" >&6
3975 echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3979 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3980 set dummy dvd+rw-mediainfo; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 case $DVDRWMEDIAINFO in
3988 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4009 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4011 if test -n "$DVDRWMEDIAINFO"; then
4012 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4013 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4015 echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4019 # Extract the first word of "pkg-config", so it can be a program name with args.
4020 set dummy pkg-config; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4049 PKGCONFIG=$ac_cv_path_PKGCONFIG
4051 if test -n "$PKGCONFIG"; then
4052 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4053 echo "${ECHO_T}$PKGCONFIG" >&6
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4060 if test "x$WXCONFIG" = x; then
4063 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4064 set dummy ${WXCONFIG}; 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_WXCONFIG+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_cv_path_WXCONFIG="$WXCONFIG" # 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_WXCONFIG="$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_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4093 WXCONFIG=$ac_cv_path_WXCONFIG
4095 if test -n "$WXCONFIG"; then
4096 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4097 echo "${ECHO_T}$WXCONFIG" >&6
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4104 # Extract the first word of "cdrecord", so it can be a program name with args.
4105 set dummy cdrecord; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_CDRECORD+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4134 CDRECORD=$ac_cv_path_CDRECORD
4136 if test -n "$CDRECORD"; then
4137 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4138 echo "${ECHO_T}$CDRECORD" >&6
4140 echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4144 # Extract the first word of "pidof", so it can be a program name with args.
4145 set dummy pidof; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_path_PIDOF+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4174 PIDOF=$ac_cv_path_PIDOF
4176 if test -n "$PIDOF"; then
4177 echo "$as_me:$LINENO: result: $PIDOF" >&5
4178 echo "${ECHO_T}$PIDOF" >&6
4180 echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4184 for ac_prog in gawk mawk nawk awk
4186 # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190 if test "${ac_cv_prog_AWK+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 if test -n "$AWK"; then
4194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_AWK="$ac_prog"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 if test -n "$AWK"; then
4214 echo "$as_me:$LINENO: result: $AWK" >&5
4215 echo "${ECHO_T}$AWK" >&6
4217 echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6
4221 test -n "$AWK" && break
4224 # Some AWK programs fail, so test it and warn the user
4225 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4226 { if ((prog == $2) || (("(" prog ")") == $2) ||
4227 (("" prog "") == $2) ||
4228 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4230 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4231 The regex engine of $AWK is too broken to be used you
4232 might want to install GNU AWK.
4233 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4234 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4235 The regex engine of $AWK is too broken to be used you
4236 might want to install GNU AWK.
4237 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4238 { (exit 1); exit 1; }; }
4241 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4242 set dummy $THE_AWK; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_path_AWK+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4273 if test -n "$AWK"; then
4274 echo "$as_me:$LINENO: result: $AWK" >&5
4275 echo "${ECHO_T}$AWK" >&6
4277 echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4282 test -n "$ARFLAG" || ARFLAGS="cr"
4293 # Make sure we can run config.sub.
4294 $ac_config_sub sun4 >/dev/null 2>&1 ||
4295 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4296 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4297 { (exit 1); exit 1; }; }
4299 echo "$as_me:$LINENO: checking build system type" >&5
4300 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4301 if test "${ac_cv_build+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 ac_cv_build_alias=$build_alias
4305 test -z "$ac_cv_build_alias" &&
4306 ac_cv_build_alias=`$ac_config_guess`
4307 test -z "$ac_cv_build_alias" &&
4308 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4309 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4310 { (exit 1); exit 1; }; }
4311 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4312 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4313 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4314 { (exit 1); exit 1; }; }
4317 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4318 echo "${ECHO_T}$ac_cv_build" >&6
4320 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4321 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4322 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4326 echo "$as_me:$LINENO: checking host system type" >&5
4327 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4328 if test "${ac_cv_host+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 ac_cv_host_alias=$host_alias
4332 test -z "$ac_cv_host_alias" &&
4333 ac_cv_host_alias=$ac_cv_build_alias
4334 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4335 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4336 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4337 { (exit 1); exit 1; }; }
4340 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4341 echo "${ECHO_T}$ac_cv_host" >&6
4343 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4344 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4345 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4349 *cygwin* ) CYGWIN=yes;;
4353 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4359 HAVE_SUN_OS_FALSE='#'
4361 HAVE_SUN_OS_TRUE='#'
4364 cat >>confdefs.h <<\_ACEOF
4365 #define HAVE_SUN_OS 1
4373 HAVE_SUN_OS_FALSE='#'
4375 HAVE_SUN_OS_TRUE='#'
4380 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4386 HAVE_OSF1_OS_FALSE='#'
4388 HAVE_OSF1_OS_TRUE='#'
4391 cat >>confdefs.h <<\_ACEOF
4392 #define HAVE_OSF1_OS 1
4400 HAVE_OSF1_OS_FALSE='#'
4402 HAVE_OSF1_OS_TRUE='#'
4407 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4413 HAVE_AIX_OS_FALSE='#'
4415 HAVE_AIX_OS_TRUE='#'
4418 cat >>confdefs.h <<\_ACEOF
4419 #define HAVE_AIX_OS 1
4427 HAVE_AIX_OS_FALSE='#'
4429 HAVE_AIX_OS_TRUE='#'
4434 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4440 HAVE_HPUX_OS_FALSE='#'
4442 HAVE_HPUX_OS_TRUE='#'
4445 cat >>confdefs.h <<\_ACEOF
4446 #define HAVE_HPUX_OS 1
4454 HAVE_HPUX_OS_FALSE='#'
4456 HAVE_HPUX_OS_TRUE='#'
4461 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4467 HAVE_LINUX_OS_FALSE='#'
4469 HAVE_LINUX_OS_TRUE='#'
4470 HAVE_LINUX_OS_FALSE=
4472 cat >>confdefs.h <<\_ACEOF
4473 #define HAVE_LINUX_OS 1
4481 HAVE_LINUX_OS_FALSE='#'
4483 HAVE_LINUX_OS_TRUE='#'
4484 HAVE_LINUX_OS_FALSE=
4488 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4493 HAVE_FREEBSD_OS_TRUE=
4494 HAVE_FREEBSD_OS_FALSE='#'
4496 HAVE_FREEBSD_OS_TRUE='#'
4497 HAVE_FREEBSD_OS_FALSE=
4499 cat >>confdefs.h <<\_ACEOF
4500 #define HAVE_FREEBSD_OS 1
4507 HAVE_FREEBSD_OS_TRUE=
4508 HAVE_FREEBSD_OS_FALSE='#'
4510 HAVE_FREEBSD_OS_TRUE='#'
4511 HAVE_FREEBSD_OS_FALSE=
4515 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4520 HAVE_NETBSD_OS_TRUE=
4521 HAVE_NETBSD_OS_FALSE='#'
4523 HAVE_NETBSD_OS_TRUE='#'
4524 HAVE_NETBSD_OS_FALSE=
4526 cat >>confdefs.h <<\_ACEOF
4527 #define HAVE_NETBSD_OS 1
4534 HAVE_NETBSD_OS_TRUE=
4535 HAVE_NETBSD_OS_FALSE='#'
4537 HAVE_NETBSD_OS_TRUE='#'
4538 HAVE_NETBSD_OS_FALSE=
4542 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4547 HAVE_OPENBSD_OS_TRUE=
4548 HAVE_OPENBSD_OS_FALSE='#'
4550 HAVE_OPENBSD_OS_TRUE='#'
4551 HAVE_OPENBSD_OS_FALSE=
4553 cat >>confdefs.h <<\_ACEOF
4554 #define HAVE_OPENBSD_OS 1
4561 HAVE_OPENBSD_OS_TRUE=
4562 HAVE_OPENBSD_OS_FALSE='#'
4564 HAVE_OPENBSD_OS_TRUE='#'
4565 HAVE_OPENBSD_OS_FALSE=
4569 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4575 HAVE_BSDI_OS_FALSE='#'
4577 HAVE_BSDI_OS_TRUE='#'
4580 cat >>confdefs.h <<\_ACEOF
4581 #define HAVE_BSDI_OS 1
4589 HAVE_BSDI_OS_FALSE='#'
4591 HAVE_BSDI_OS_TRUE='#'
4596 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4602 HAVE_SGI_OS_FALSE='#'
4604 HAVE_SGI_OS_TRUE='#'
4607 cat >>confdefs.h <<\_ACEOF
4608 #define HAVE_SGI_OS 1
4616 HAVE_SGI_OS_FALSE='#'
4618 HAVE_SGI_OS_TRUE='#'
4623 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4629 HAVE_IRIX_OS_FALSE='#'
4631 HAVE_IRIX_OS_TRUE='#'
4634 cat >>confdefs.h <<\_ACEOF
4635 #define HAVE_IRIX_OS 1
4643 HAVE_IRIX_OS_FALSE='#'
4645 HAVE_IRIX_OS_TRUE='#'
4650 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4655 HAVE_DARWIN_OS_TRUE=
4656 HAVE_DARWIN_OS_FALSE='#'
4658 HAVE_DARWIN_OS_TRUE='#'
4659 HAVE_DARWIN_OS_FALSE=
4661 cat >>confdefs.h <<\_ACEOF
4662 #define HAVE_DARWIN_OS 1
4669 HAVE_DARWIN_OS_TRUE=
4670 HAVE_DARWIN_OS_FALSE='#'
4672 HAVE_DARWIN_OS_TRUE='#'
4673 HAVE_DARWIN_OS_FALSE=
4678 # -----------------------------------------------------------
4679 # ----------------------------------------------------------
4680 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4681 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4682 if test "x$DISTNAME" != "x"
4684 echo "distname set to $DISTNAME"
4685 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4688 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4691 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4694 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4697 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4700 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4703 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4706 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4709 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4712 elif test -f /etc/SuSE-release
4715 elif test -d /etc/SuSEconfig
4718 elif test -f /etc/mandrake-release
4721 elif test -f /etc/whitebox-release
4724 elif test -f /etc/redhat-release
4727 elif test -f /etc/gentoo-release
4730 elif test -f /etc/debian_version
4733 elif test -f /etc/slackware-version
4736 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4739 elif test -f /etc/engarde-version
4742 elif test "$CYGWIN" = yes
4745 cat >>confdefs.h <<\_ACEOF
4746 #define HAVE_CYGWIN 1
4752 echo "$as_me:$LINENO: result: done" >&5
4753 echo "${ECHO_T}done" >&6
4756 # --------------------------------------------------
4757 # Suppport for gettext (translations)
4758 # By default, $datadir is ${prefix}/share
4759 # --------------------------------------------------
4760 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4761 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4762 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4763 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 cat >conftest.make <<\_ACEOF
4768 @echo 'ac_maketemp="$(MAKE)"'
4770 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4771 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4772 if test -n "$ac_maketemp"; then
4773 eval ac_cv_prog_make_${ac_make}_set=yes
4775 eval ac_cv_prog_make_${ac_make}_set=no
4779 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4780 echo "$as_me:$LINENO: result: yes" >&5
4781 echo "${ECHO_T}yes" >&6
4784 echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6
4786 SET_MAKE="MAKE=${MAKE-make}"
4792 if test -n "$ac_aux_dir"; then
4793 case "$ac_aux_dir" in
4794 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4795 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4798 if test -z "$MKINSTALLDIRS"; then
4799 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4804 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4805 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4806 # Check whether --enable-nls or --disable-nls was given.
4807 if test "${enable_nls+set}" = set; then
4808 enableval="$enable_nls"
4813 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4814 echo "${ECHO_T}$USE_NLS" >&6
4821 # Prepare PATH_SEPARATOR.
4822 # The user is always right.
4823 if test "${PATH_SEPARATOR+set}" != set; then
4824 echo "#! /bin/sh" >conf$$.sh
4825 echo "exit 0" >>conf$$.sh
4827 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4835 # Find out how to test for executable files. Don't use a zero-byte file,
4836 # as systems may use methods other than mode bits to determine executability.
4837 cat >conf$$.file <<_ASEOF
4841 chmod +x conf$$.file
4842 if test -x conf$$.file >/dev/null 2>&1; then
4843 ac_executable_p="test -x"
4845 ac_executable_p="test -f"
4849 # Extract the first word of "msgfmt", so it can be a program name with args.
4850 set dummy msgfmt; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MSGFMT+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4861 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4862 for ac_dir in $PATH; do
4864 test -z "$ac_dir" && ac_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4867 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4868 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4869 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4870 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4877 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4881 MSGFMT="$ac_cv_path_MSGFMT"
4882 if test "$MSGFMT" != ":"; then
4883 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4884 echo "${ECHO_T}$MSGFMT" >&6
4886 echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4890 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4891 set dummy gmsgfmt; ac_word=$2
4892 echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4920 GMSGFMT=$ac_cv_path_GMSGFMT
4922 if test -n "$GMSGFMT"; then
4923 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4924 echo "${ECHO_T}$GMSGFMT" >&6
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4932 # Prepare PATH_SEPARATOR.
4933 # The user is always right.
4934 if test "${PATH_SEPARATOR+set}" != set; then
4935 echo "#! /bin/sh" >conf$$.sh
4936 echo "exit 0" >>conf$$.sh
4938 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4946 # Find out how to test for executable files. Don't use a zero-byte file,
4947 # as systems may use methods other than mode bits to determine executability.
4948 cat >conf$$.file <<_ASEOF
4952 chmod +x conf$$.file
4953 if test -x conf$$.file >/dev/null 2>&1; then
4954 ac_executable_p="test -x"
4956 ac_executable_p="test -f"
4960 # Extract the first word of "xgettext", so it can be a program name with args.
4961 set dummy xgettext; ac_word=$2
4962 echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4972 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4973 for ac_dir in $PATH; do
4975 test -z "$ac_dir" && ac_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4978 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4979 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4980 (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
4981 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4988 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4992 XGETTEXT="$ac_cv_path_XGETTEXT"
4993 if test "$XGETTEXT" != ":"; then
4994 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4995 echo "${ECHO_T}$XGETTEXT" >&6
4997 echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
5004 # Prepare PATH_SEPARATOR.
5005 # The user is always right.
5006 if test "${PATH_SEPARATOR+set}" != set; then
5007 echo "#! /bin/sh" >conf$$.sh
5008 echo "exit 0" >>conf$$.sh
5010 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5018 # Find out how to test for executable files. Don't use a zero-byte file,
5019 # as systems may use methods other than mode bits to determine executability.
5020 cat >conf$$.file <<_ASEOF
5024 chmod +x conf$$.file
5025 if test -x conf$$.file >/dev/null 2>&1; then
5026 ac_executable_p="test -x"
5028 ac_executable_p="test -f"
5032 # Extract the first word of "msgmerge", so it can be a program name with args.
5033 set dummy msgmerge; ac_word=$2
5034 echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5036 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5044 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5045 for ac_dir in $PATH; do
5047 test -z "$ac_dir" && ac_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5050 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5051 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5052 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5059 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5063 MSGMERGE="$ac_cv_path_MSGMERGE"
5064 if test "$MSGMERGE" != ":"; then
5065 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5066 echo "${ECHO_T}$MSGMERGE" >&6
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5073 if test "$GMSGFMT" != ":"; then
5074 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5075 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5078 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5079 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5080 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5085 if test "$XGETTEXT" != ":"; then
5086 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5087 (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
5090 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5091 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5097 ac_config_commands="$ac_config_commands default-1"
5101 if test "X$prefix" = "XNONE"; then
5102 acl_final_prefix="$ac_default_prefix"
5104 acl_final_prefix="$prefix"
5106 if test "X$exec_prefix" = "XNONE"; then
5107 acl_final_exec_prefix='${prefix}'
5109 acl_final_exec_prefix="$exec_prefix"
5111 acl_save_prefix="$prefix"
5112 prefix="$acl_final_prefix"
5113 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5114 prefix="$acl_save_prefix"
5117 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5118 if test "${with_gnu_ld+set}" = set; then
5119 withval="$with_gnu_ld"
5120 test "$withval" = no || with_gnu_ld=yes
5124 # Prepare PATH_SEPARATOR.
5125 # The user is always right.
5126 if test "${PATH_SEPARATOR+set}" != set; then
5127 echo "#! /bin/sh" >conf$$.sh
5128 echo "exit 0" >>conf$$.sh
5130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5138 if test "$GCC" = yes; then
5139 # Check if gcc -print-prog-name=ld gives a path.
5140 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5141 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5144 # gcc leaves a trailing carriage return which upsets mingw
5145 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5147 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5150 # Accept absolute paths.
5151 [\\/]* | [A-Za-z]:[\\/]*)
5152 re_direlt='/[^/][^/]*/\.\./'
5153 # Canonicalize the path of ld
5154 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5155 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5156 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5158 test -z "$LD" && LD="$ac_prog"
5161 # If it fails, then pretend we aren't using GCC.
5165 # If it is relative, then search for the first ld in PATH.
5169 elif test "$with_gnu_ld" = yes; then
5170 echo "$as_me:$LINENO: checking for GNU ld" >&5
5171 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5173 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5174 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5176 if test "${acl_cv_path_LD+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 if test -z "$LD"; then
5180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5181 for ac_dir in $PATH; do
5182 test -z "$ac_dir" && ac_dir=.
5183 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5184 acl_cv_path_LD="$ac_dir/$ac_prog"
5185 # Check to see if the program is GNU ld. I'd rather use --version,
5186 # but apparently some GNU ld's only accept -v.
5187 # Break only if it was the GNU/non-GNU ld that we prefer.
5188 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5189 *GNU* | *'with BFD'*)
5190 test "$with_gnu_ld" != no && break ;;
5192 test "$with_gnu_ld" != yes && break ;;
5198 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5202 LD="$acl_cv_path_LD"
5203 if test -n "$LD"; then
5204 echo "$as_me:$LINENO: result: $LD" >&5
5205 echo "${ECHO_T}$LD" >&6
5207 echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6
5210 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5211 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5212 { (exit 1); exit 1; }; }
5213 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5214 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5215 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5219 case `$LD -v 2>&1 </dev/null` in
5220 *GNU* | *'with BFD'*)
5221 acl_cv_prog_gnu_ld=yes ;;
5223 acl_cv_prog_gnu_ld=no ;;
5226 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5227 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5228 with_gnu_ld=$acl_cv_prog_gnu_ld
5233 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5234 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5235 if test "${acl_cv_rpath+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5240 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5246 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5247 echo "${ECHO_T}$acl_cv_rpath" >&6
5249 libext="$acl_cv_libext"
5250 shlibext="$acl_cv_shlibext"
5251 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5252 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5253 hardcode_direct="$acl_cv_hardcode_direct"
5254 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5255 # Check whether --enable-rpath or --disable-rpath was given.
5256 if test "${enable_rpath+set}" = set; then
5257 enableval="$enable_rpath"
5271 acl_save_prefix="$prefix"
5272 prefix="$acl_final_prefix"
5273 acl_save_exec_prefix="$exec_prefix"
5274 exec_prefix="$acl_final_exec_prefix"
5276 eval additional_includedir=\"$includedir\"
5277 eval additional_libdir=\"$libdir\"
5279 exec_prefix="$acl_save_exec_prefix"
5280 prefix="$acl_save_prefix"
5283 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5284 if test "${with_libiconv_prefix+set}" = set; then
5285 withval="$with_libiconv_prefix"
5287 if test "X$withval" = "Xno"; then
5290 if test "X$withval" = "X"; then
5292 acl_save_prefix="$prefix"
5293 prefix="$acl_final_prefix"
5294 acl_save_exec_prefix="$exec_prefix"
5295 exec_prefix="$acl_final_exec_prefix"
5297 eval additional_includedir=\"$includedir\"
5298 eval additional_libdir=\"$libdir\"
5300 exec_prefix="$acl_save_exec_prefix"
5301 prefix="$acl_save_prefix"
5304 additional_includedir="$withval/include"
5305 additional_libdir="$withval/lib"
5315 names_already_handled=
5316 names_next_round='iconv '
5317 while test -n "$names_next_round"; do
5318 names_this_round="$names_next_round"
5320 for name in $names_this_round; do
5322 for n in $names_already_handled; do
5323 if test "$n" = "$name"; then
5328 if test -z "$already_handled"; then
5329 names_already_handled="$names_already_handled $name"
5330 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5331 eval value=\"\$HAVE_LIB$uppername\"
5332 if test -n "$value"; then
5333 if test "$value" = yes; then
5334 eval value=\"\$LIB$uppername\"
5335 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5336 eval value=\"\$LTLIB$uppername\"
5337 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5346 if test $use_additional = yes; then
5347 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5348 found_dir="$additional_libdir"
5349 found_so="$additional_libdir/lib$name.$shlibext"
5350 if test -f "$additional_libdir/lib$name.la"; then
5351 found_la="$additional_libdir/lib$name.la"
5354 if test -f "$additional_libdir/lib$name.$libext"; then
5355 found_dir="$additional_libdir"
5356 found_a="$additional_libdir/lib$name.$libext"
5357 if test -f "$additional_libdir/lib$name.la"; then
5358 found_la="$additional_libdir/lib$name.la"
5363 if test "X$found_dir" = "X"; then
5364 for x in $LDFLAGS $LTLIBICONV; do
5366 acl_save_prefix="$prefix"
5367 prefix="$acl_final_prefix"
5368 acl_save_exec_prefix="$exec_prefix"
5369 exec_prefix="$acl_final_exec_prefix"
5371 exec_prefix="$acl_save_exec_prefix"
5372 prefix="$acl_save_prefix"
5376 dir=`echo "X$x" | sed -e 's/^X-L//'`
5377 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5379 found_so="$dir/lib$name.$shlibext"
5380 if test -f "$dir/lib$name.la"; then
5381 found_la="$dir/lib$name.la"
5384 if test -f "$dir/lib$name.$libext"; then
5386 found_a="$dir/lib$name.$libext"
5387 if test -f "$dir/lib$name.la"; then
5388 found_la="$dir/lib$name.la"
5394 if test "X$found_dir" != "X"; then
5399 if test "X$found_dir" != "X"; then
5400 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5401 if test "X$found_so" != "X"; then
5402 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5403 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5406 for x in $ltrpathdirs; do
5407 if test "X$x" = "X$found_dir"; then
5412 if test -z "$haveit"; then
5413 ltrpathdirs="$ltrpathdirs $found_dir"
5415 if test "$hardcode_direct" = yes; then
5416 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5418 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5419 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5421 for x in $rpathdirs; do
5422 if test "X$x" = "X$found_dir"; then
5427 if test -z "$haveit"; then
5428 rpathdirs="$rpathdirs $found_dir"
5432 for x in $LDFLAGS $LIBICONV; do
5434 acl_save_prefix="$prefix"
5435 prefix="$acl_final_prefix"
5436 acl_save_exec_prefix="$exec_prefix"
5437 exec_prefix="$acl_final_exec_prefix"
5439 exec_prefix="$acl_save_exec_prefix"
5440 prefix="$acl_save_prefix"
5442 if test "X$x" = "X-L$found_dir"; then
5447 if test -z "$haveit"; then
5448 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5450 if test "$hardcode_minus_L" != no; then
5451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5453 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5459 if test "X$found_a" != "X"; then
5460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5462 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5465 additional_includedir=
5466 case "$found_dir" in
5468 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5469 additional_includedir="$basedir/include"
5472 if test "X$additional_includedir" != "X"; then
5473 if test "X$additional_includedir" != "X/usr/include"; then
5475 if test "X$additional_includedir" = "X/usr/local/include"; then
5476 if test -n "$GCC"; then
5478 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5482 if test -z "$haveit"; then
5483 for x in $CPPFLAGS $INCICONV; do
5485 acl_save_prefix="$prefix"
5486 prefix="$acl_final_prefix"
5487 acl_save_exec_prefix="$exec_prefix"
5488 exec_prefix="$acl_final_exec_prefix"
5490 exec_prefix="$acl_save_exec_prefix"
5491 prefix="$acl_save_prefix"
5493 if test "X$x" = "X-I$additional_includedir"; then
5498 if test -z "$haveit"; then
5499 if test -d "$additional_includedir"; then
5500 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5506 if test -n "$found_la"; then
5507 save_libdir="$libdir"
5509 */* | *\\*) . "$found_la" ;;
5510 *) . "./$found_la" ;;
5512 libdir="$save_libdir"
5513 for dep in $dependency_libs; do
5516 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5517 if test "X$additional_libdir" != "X/usr/lib"; then
5519 if test "X$additional_libdir" = "X/usr/local/lib"; then
5520 if test -n "$GCC"; then
5522 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5526 if test -z "$haveit"; then
5528 for x in $LDFLAGS $LIBICONV; do
5530 acl_save_prefix="$prefix"
5531 prefix="$acl_final_prefix"
5532 acl_save_exec_prefix="$exec_prefix"
5533 exec_prefix="$acl_final_exec_prefix"
5535 exec_prefix="$acl_save_exec_prefix"
5536 prefix="$acl_save_prefix"
5538 if test "X$x" = "X-L$additional_libdir"; then
5543 if test -z "$haveit"; then
5544 if test -d "$additional_libdir"; then
5545 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5549 for x in $LDFLAGS $LTLIBICONV; do
5551 acl_save_prefix="$prefix"
5552 prefix="$acl_final_prefix"
5553 acl_save_exec_prefix="$exec_prefix"
5554 exec_prefix="$acl_final_exec_prefix"
5556 exec_prefix="$acl_save_exec_prefix"
5557 prefix="$acl_save_prefix"
5559 if test "X$x" = "X-L$additional_libdir"; then
5564 if test -z "$haveit"; then
5565 if test -d "$additional_libdir"; then
5566 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5573 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5574 if test "$enable_rpath" != no; then
5576 for x in $rpathdirs; do
5577 if test "X$x" = "X$dir"; then
5582 if test -z "$haveit"; then
5583 rpathdirs="$rpathdirs $dir"
5586 for x in $ltrpathdirs; do
5587 if test "X$x" = "X$dir"; then
5592 if test -z "$haveit"; then
5593 ltrpathdirs="$ltrpathdirs $dir"
5598 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5601 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5604 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5605 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5611 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5612 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5618 if test "X$rpathdirs" != "X"; then
5619 if test -n "$hardcode_libdir_separator"; then
5621 for found_dir in $rpathdirs; do
5622 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5624 acl_save_libdir="$libdir"
5626 eval flag=\"$hardcode_libdir_flag_spec\"
5627 libdir="$acl_save_libdir"
5628 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5630 for found_dir in $rpathdirs; do
5631 acl_save_libdir="$libdir"
5633 eval flag=\"$hardcode_libdir_flag_spec\"
5634 libdir="$acl_save_libdir"
5635 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5639 if test "X$ltrpathdirs" != "X"; then
5640 for found_dir in $ltrpathdirs; do
5641 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5662 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5663 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5664 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 gt_save_CPPFLAGS="$CPPFLAGS"
5668 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5669 gt_save_LIBS="$LIBS"
5670 LIBS="$LIBS -framework CoreFoundation"
5671 cat >conftest.$ac_ext <<_ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 #include <CFPreferences.h>
5681 CFPreferencesCopyAppValue(NULL, NULL)
5686 rm -f conftest.$ac_objext conftest$ac_exeext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688 (eval $ac_link) 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -z "$ac_c_werror_flag"
5696 || test ! -s conftest.err'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest$ac_exeext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 gt_cv_func_CFPreferencesCopyAppValue=yes
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 gt_cv_func_CFPreferencesCopyAppValue=no
5715 rm -f conftest.err conftest.$ac_objext \
5716 conftest$ac_exeext conftest.$ac_ext
5717 CPPFLAGS="$gt_save_CPPFLAGS"
5718 LIBS="$gt_save_LIBS"
5720 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5721 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5722 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5724 cat >>confdefs.h <<\_ACEOF
5725 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5729 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5730 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5731 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 gt_save_CPPFLAGS="$CPPFLAGS"
5735 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5736 gt_save_LIBS="$LIBS"
5737 LIBS="$LIBS -framework CoreFoundation"
5738 cat >conftest.$ac_ext <<_ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5744 #include <CFLocale.h>
5748 CFLocaleCopyCurrent();
5753 rm -f conftest.$ac_objext conftest$ac_exeext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5755 (eval $ac_link) 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest$ac_exeext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 gt_cv_func_CFLocaleCopyCurrent=yes
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 gt_cv_func_CFLocaleCopyCurrent=no
5782 rm -f conftest.err conftest.$ac_objext \
5783 conftest$ac_exeext conftest.$ac_ext
5784 CPPFLAGS="$gt_save_CPPFLAGS"
5785 LIBS="$gt_save_LIBS"
5787 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5788 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5789 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5791 cat >>confdefs.h <<\_ACEOF
5792 #define HAVE_CFLOCALECOPYCURRENT 1
5797 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5798 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5804 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5805 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5806 # Check whether --enable-nls or --disable-nls was given.
5807 if test "${enable_nls+set}" = set; then
5808 enableval="$enable_nls"
5813 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5814 echo "${ECHO_T}$USE_NLS" >&6
5823 if test "$USE_NLS" = "yes"; then
5824 gt_use_preinstalled_gnugettext=no
5831 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5832 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5833 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 #include <libintl.h>
5843 extern int _nl_msg_cat_cntr;
5844 extern int *_nl_domain_bindings;
5848 bindtextdomain ("", "");
5849 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5854 rm -f conftest.$ac_objext conftest$ac_exeext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856 (eval $ac_link) 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest$ac_exeext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 gt_cv_func_gnugettext1_libc=yes
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 gt_cv_func_gnugettext1_libc=no
5883 rm -f conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5886 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5887 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5889 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5895 am_save_CPPFLAGS="$CPPFLAGS"
5897 for element in $INCICONV; do
5899 for x in $CPPFLAGS; do
5901 acl_save_prefix="$prefix"
5902 prefix="$acl_final_prefix"
5903 acl_save_exec_prefix="$exec_prefix"
5904 exec_prefix="$acl_final_exec_prefix"
5906 exec_prefix="$acl_save_exec_prefix"
5907 prefix="$acl_save_prefix"
5909 if test "X$x" = "X$element"; then
5914 if test -z "$haveit"; then
5915 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5920 echo "$as_me:$LINENO: checking for iconv" >&5
5921 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5922 if test "${am_cv_func_iconv+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 am_cv_func_iconv="no, consider installing GNU libiconv"
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5939 iconv_t cd = iconv_open("","");
5940 iconv(cd,NULL,NULL,NULL,NULL);
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948 (eval $ac_link) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest$ac_exeext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 am_cv_func_iconv=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5974 rm -f conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 if test "$am_cv_func_iconv" != yes; then
5977 am_save_LIBS="$LIBS"
5978 LIBS="$LIBS $LIBICONV"
5979 cat >conftest.$ac_ext <<_ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5990 iconv_t cd = iconv_open("","");
5991 iconv(cd,NULL,NULL,NULL,NULL);
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6020 am_cv_func_iconv=yes
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6026 rm -f conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028 LIBS="$am_save_LIBS"
6032 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6033 echo "${ECHO_T}$am_cv_func_iconv" >&6
6034 if test "$am_cv_func_iconv" = yes; then
6036 cat >>confdefs.h <<\_ACEOF
6037 #define HAVE_ICONV 1
6041 if test "$am_cv_lib_iconv" = yes; then
6042 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6043 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6044 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6045 echo "${ECHO_T}$LIBICONV" >&6
6047 CPPFLAGS="$am_save_CPPFLAGS"
6059 acl_save_prefix="$prefix"
6060 prefix="$acl_final_prefix"
6061 acl_save_exec_prefix="$exec_prefix"
6062 exec_prefix="$acl_final_exec_prefix"
6064 eval additional_includedir=\"$includedir\"
6065 eval additional_libdir=\"$libdir\"
6067 exec_prefix="$acl_save_exec_prefix"
6068 prefix="$acl_save_prefix"
6071 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6072 if test "${with_libintl_prefix+set}" = set; then
6073 withval="$with_libintl_prefix"
6075 if test "X$withval" = "Xno"; then
6078 if test "X$withval" = "X"; then
6080 acl_save_prefix="$prefix"
6081 prefix="$acl_final_prefix"
6082 acl_save_exec_prefix="$exec_prefix"
6083 exec_prefix="$acl_final_exec_prefix"
6085 eval additional_includedir=\"$includedir\"
6086 eval additional_libdir=\"$libdir\"
6088 exec_prefix="$acl_save_exec_prefix"
6089 prefix="$acl_save_prefix"
6092 additional_includedir="$withval/include"
6093 additional_libdir="$withval/lib"
6103 names_already_handled=
6104 names_next_round='intl '
6105 while test -n "$names_next_round"; do
6106 names_this_round="$names_next_round"
6108 for name in $names_this_round; do
6110 for n in $names_already_handled; do
6111 if test "$n" = "$name"; then
6116 if test -z "$already_handled"; then
6117 names_already_handled="$names_already_handled $name"
6118 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6119 eval value=\"\$HAVE_LIB$uppername\"
6120 if test -n "$value"; then
6121 if test "$value" = yes; then
6122 eval value=\"\$LIB$uppername\"
6123 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6124 eval value=\"\$LTLIB$uppername\"
6125 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6134 if test $use_additional = yes; then
6135 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6136 found_dir="$additional_libdir"
6137 found_so="$additional_libdir/lib$name.$shlibext"
6138 if test -f "$additional_libdir/lib$name.la"; then
6139 found_la="$additional_libdir/lib$name.la"
6142 if test -f "$additional_libdir/lib$name.$libext"; then
6143 found_dir="$additional_libdir"
6144 found_a="$additional_libdir/lib$name.$libext"
6145 if test -f "$additional_libdir/lib$name.la"; then
6146 found_la="$additional_libdir/lib$name.la"
6151 if test "X$found_dir" = "X"; then
6152 for x in $LDFLAGS $LTLIBINTL; do
6154 acl_save_prefix="$prefix"
6155 prefix="$acl_final_prefix"
6156 acl_save_exec_prefix="$exec_prefix"
6157 exec_prefix="$acl_final_exec_prefix"
6159 exec_prefix="$acl_save_exec_prefix"
6160 prefix="$acl_save_prefix"
6164 dir=`echo "X$x" | sed -e 's/^X-L//'`
6165 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6167 found_so="$dir/lib$name.$shlibext"
6168 if test -f "$dir/lib$name.la"; then
6169 found_la="$dir/lib$name.la"
6172 if test -f "$dir/lib$name.$libext"; then
6174 found_a="$dir/lib$name.$libext"
6175 if test -f "$dir/lib$name.la"; then
6176 found_la="$dir/lib$name.la"
6182 if test "X$found_dir" != "X"; then
6187 if test "X$found_dir" != "X"; then
6188 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6189 if test "X$found_so" != "X"; then
6190 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6191 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6194 for x in $ltrpathdirs; do
6195 if test "X$x" = "X$found_dir"; then
6200 if test -z "$haveit"; then
6201 ltrpathdirs="$ltrpathdirs $found_dir"
6203 if test "$hardcode_direct" = yes; then
6204 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6206 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6207 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6209 for x in $rpathdirs; do
6210 if test "X$x" = "X$found_dir"; then
6215 if test -z "$haveit"; then
6216 rpathdirs="$rpathdirs $found_dir"
6220 for x in $LDFLAGS $LIBINTL; do
6222 acl_save_prefix="$prefix"
6223 prefix="$acl_final_prefix"
6224 acl_save_exec_prefix="$exec_prefix"
6225 exec_prefix="$acl_final_exec_prefix"
6227 exec_prefix="$acl_save_exec_prefix"
6228 prefix="$acl_save_prefix"
6230 if test "X$x" = "X-L$found_dir"; then
6235 if test -z "$haveit"; then
6236 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6238 if test "$hardcode_minus_L" != no; then
6239 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6241 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6247 if test "X$found_a" != "X"; then
6248 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6250 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6253 additional_includedir=
6254 case "$found_dir" in
6256 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6257 additional_includedir="$basedir/include"
6260 if test "X$additional_includedir" != "X"; then
6261 if test "X$additional_includedir" != "X/usr/include"; then
6263 if test "X$additional_includedir" = "X/usr/local/include"; then
6264 if test -n "$GCC"; then
6266 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6270 if test -z "$haveit"; then
6271 for x in $CPPFLAGS $INCINTL; do
6273 acl_save_prefix="$prefix"
6274 prefix="$acl_final_prefix"
6275 acl_save_exec_prefix="$exec_prefix"
6276 exec_prefix="$acl_final_exec_prefix"
6278 exec_prefix="$acl_save_exec_prefix"
6279 prefix="$acl_save_prefix"
6281 if test "X$x" = "X-I$additional_includedir"; then
6286 if test -z "$haveit"; then
6287 if test -d "$additional_includedir"; then
6288 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6294 if test -n "$found_la"; then
6295 save_libdir="$libdir"
6297 */* | *\\*) . "$found_la" ;;
6298 *) . "./$found_la" ;;
6300 libdir="$save_libdir"
6301 for dep in $dependency_libs; do
6304 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6305 if test "X$additional_libdir" != "X/usr/lib"; then
6307 if test "X$additional_libdir" = "X/usr/local/lib"; then
6308 if test -n "$GCC"; then
6310 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6314 if test -z "$haveit"; then
6316 for x in $LDFLAGS $LIBINTL; do
6318 acl_save_prefix="$prefix"
6319 prefix="$acl_final_prefix"
6320 acl_save_exec_prefix="$exec_prefix"
6321 exec_prefix="$acl_final_exec_prefix"
6323 exec_prefix="$acl_save_exec_prefix"
6324 prefix="$acl_save_prefix"
6326 if test "X$x" = "X-L$additional_libdir"; then
6331 if test -z "$haveit"; then
6332 if test -d "$additional_libdir"; then
6333 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6337 for x in $LDFLAGS $LTLIBINTL; do
6339 acl_save_prefix="$prefix"
6340 prefix="$acl_final_prefix"
6341 acl_save_exec_prefix="$exec_prefix"
6342 exec_prefix="$acl_final_exec_prefix"
6344 exec_prefix="$acl_save_exec_prefix"
6345 prefix="$acl_save_prefix"
6347 if test "X$x" = "X-L$additional_libdir"; then
6352 if test -z "$haveit"; then
6353 if test -d "$additional_libdir"; then
6354 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6361 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6362 if test "$enable_rpath" != no; then
6364 for x in $rpathdirs; do
6365 if test "X$x" = "X$dir"; then
6370 if test -z "$haveit"; then
6371 rpathdirs="$rpathdirs $dir"
6374 for x in $ltrpathdirs; do
6375 if test "X$x" = "X$dir"; then
6380 if test -z "$haveit"; then
6381 ltrpathdirs="$ltrpathdirs $dir"
6386 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6389 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6392 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6393 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6399 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6400 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6406 if test "X$rpathdirs" != "X"; then
6407 if test -n "$hardcode_libdir_separator"; then
6409 for found_dir in $rpathdirs; do
6410 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6412 acl_save_libdir="$libdir"
6414 eval flag=\"$hardcode_libdir_flag_spec\"
6415 libdir="$acl_save_libdir"
6416 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6418 for found_dir in $rpathdirs; do
6419 acl_save_libdir="$libdir"
6421 eval flag=\"$hardcode_libdir_flag_spec\"
6422 libdir="$acl_save_libdir"
6423 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6427 if test "X$ltrpathdirs" != "X"; then
6428 for found_dir in $ltrpathdirs; do
6429 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6433 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6434 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6435 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 gt_save_CPPFLAGS="$CPPFLAGS"
6439 CPPFLAGS="$CPPFLAGS $INCINTL"
6440 gt_save_LIBS="$LIBS"
6441 LIBS="$LIBS $LIBINTL"
6442 cat >conftest.$ac_ext <<_ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6448 #include <libintl.h>
6449 extern int _nl_msg_cat_cntr;
6454 const char *_nl_expand_alias (const char *);
6458 bindtextdomain ("", "");
6459 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6466 (eval $ac_link) 2>conftest.er1
6468 grep -v '^ *+' conftest.er1 >conftest.err
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -z "$ac_c_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try='test -s conftest$ac_exeext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 gt_cv_func_gnugettext1_libintl=yes
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 gt_cv_func_gnugettext1_libintl=no
6493 rm -f conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6496 LIBS="$LIBS $LIBICONV"
6497 cat >conftest.$ac_ext <<_ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6503 #include <libintl.h>
6504 extern int _nl_msg_cat_cntr;
6509 const char *_nl_expand_alias (const char *);
6513 bindtextdomain ("", "");
6514 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>conftest.er1
6523 grep -v '^ *+' conftest.er1 >conftest.err
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest$ac_exeext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 LIBINTL="$LIBINTL $LIBICONV"
6542 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6543 gt_cv_func_gnugettext1_libintl=yes
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6550 rm -f conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6553 CPPFLAGS="$gt_save_CPPFLAGS"
6554 LIBS="$gt_save_LIBS"
6556 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6557 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6560 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6561 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6562 && test "$PACKAGE" != gettext-runtime \
6563 && test "$PACKAGE" != gettext-tools; }; then
6564 gt_use_preinstalled_gnugettext=yes
6573 if test -n "$INTL_MACOSX_LIBS"; then
6574 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6575 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6576 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6577 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6581 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6582 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6584 cat >>confdefs.h <<\_ACEOF
6585 #define ENABLE_NLS 1
6593 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6594 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6595 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6596 echo "${ECHO_T}$USE_NLS" >&6
6597 if test "$USE_NLS" = "yes"; then
6598 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6599 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6600 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6601 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6602 gt_source="external libintl"
6607 gt_source="included intl directory"
6609 echo "$as_me:$LINENO: result: $gt_source" >&5
6610 echo "${ECHO_T}$gt_source" >&6
6613 if test "$USE_NLS" = "yes"; then
6615 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6616 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6617 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6618 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6619 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6620 echo "${ECHO_T}$LIBINTL" >&6
6622 for element in $INCINTL; do
6624 for x in $CPPFLAGS; do
6626 acl_save_prefix="$prefix"
6627 prefix="$acl_final_prefix"
6628 acl_save_exec_prefix="$exec_prefix"
6629 exec_prefix="$acl_final_exec_prefix"
6631 exec_prefix="$acl_save_exec_prefix"
6632 prefix="$acl_save_prefix"
6634 if test "X$x" = "X$element"; then
6639 if test -z "$haveit"; then
6640 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_GETTEXT 1
6652 cat >>confdefs.h <<\_ACEOF
6653 #define HAVE_DCGETTEXT 1
6670 if test x${prefix} = xNONE ; then
6671 if test `eval echo ${datadir}` = NONE/share ; then
6676 # ------------------------------------------------------------------
6677 # If the user has not set --prefix, we set our default to nothing.
6678 # In this case, if the user has not set --sysconfdir, we set it
6679 # to the package default of /etc/bacula. If either --prefix or
6680 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6681 # ------------------------------------------------------------------
6682 if test x${prefix} = xNONE ; then
6683 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6684 sysconfdir=/etc/bacula
6688 sysconfdir=`eval echo ${sysconfdir}`
6689 datadir=`eval echo ${datadir}`
6690 localedir=`eval echo ${datadir}/locale`
6691 cat >>confdefs.h <<_ACEOF
6692 #define LOCALEDIR "$localedir"
6696 # -------------------------------------------------------------------------
6697 # If the user has not set --exec-prefix, we default to ${prefix}
6698 # -------------------------------------------------------------------------
6699 if test x${exec_prefix} = xNONE ; then
6700 exec_prefix=${prefix}
6703 # ------------------------------------------------------------------
6704 # If the user has not set --sbindir, we set our default as /sbin
6705 # ------------------------------------------------------------------
6706 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6707 sbindir=${exec_prefix}/sbin
6709 sbindir=`eval echo ${sbindir}`
6711 # -------------------------------------------------------------------------
6712 # If the user has not set --mandir, we default to /usr/share/man
6713 # -------------------------------------------------------------------------
6714 if test x$mandir = x'${prefix}/man' ; then
6715 mandir=/usr/share/man
6719 # ------------------------------------------------------------------
6720 # All list of languages for which a translation exist. Each
6721 # language is separated by a space.
6722 # ------------------------------------------------------------------
6725 for ac_prog in msgfmt
6727 # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6731 if test "${ac_cv_path_MSGFMT+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 MSGFMT=$ac_cv_path_MSGFMT
6758 if test -n "$MSGFMT"; then
6759 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6760 echo "${ECHO_T}$MSGFMT" >&6
6762 echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6
6766 test -n "$MSGFMT" && break
6768 test -n "$MSGFMT" || MSGFMT="no"
6770 if test "$MSGFMT" = "no"
6772 echo 'msgfmt program not found, disabling NLS !'
6774 USE_INCLUDED_LIBINTL=no
6777 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6778 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6779 if test "${ac_cv_gnu_library_2+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 cat >conftest.$ac_ext <<_ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6789 #include <features.h>
6790 #ifdef __GNU_LIBRARY__
6791 #if (__GLIBC__ >= 2)
6797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6798 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6799 ac_cv_gnu_library_2=yes
6801 ac_cv_gnu_library_2=no
6808 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6809 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6811 GLIBC2="$ac_cv_gnu_library_2"
6814 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6815 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6816 if test "${ac_cv_search_strerror+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 ac_func_search_save_LIBS=$LIBS
6820 ac_cv_search_strerror=no
6821 cat >conftest.$ac_ext <<_ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6828 /* Override any gcc2 internal prototype to avoid an error. */
6832 /* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845 (eval $ac_link) 2>conftest.er1
6847 grep -v '^ *+' conftest.er1 >conftest.err
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -z "$ac_c_werror_flag"
6853 || test ! -s conftest.err'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
6859 { ac_try='test -s conftest$ac_exeext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 ac_cv_search_strerror="none required"
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6871 rm -f conftest.err conftest.$ac_objext \
6872 conftest$ac_exeext conftest.$ac_ext
6873 if test "$ac_cv_search_strerror" = no; then
6874 for ac_lib in cposix; do
6875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6883 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>conftest.er1
6902 grep -v '^ *+' conftest.er1 >conftest.err
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try='test -z "$ac_c_werror_flag"
6908 || test ! -s conftest.err'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; } &&
6914 { ac_try='test -s conftest$ac_exeext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6920 ac_cv_search_strerror="-l$ac_lib"
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6927 rm -f conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6931 LIBS=$ac_func_search_save_LIBS
6933 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6934 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6935 if test "$ac_cv_search_strerror" != no; then
6936 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6940 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6941 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6942 if test "${ac_cv_header_stdc+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966 (eval $ac_compile) 2>conftest.er1
6968 grep -v '^ *+' conftest.er1 >conftest.err
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } &&
6973 { ac_try='test -z "$ac_c_werror_flag"
6974 || test ! -s conftest.err'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest.$ac_objext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 ac_cv_header_stdc=yes
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6991 ac_cv_header_stdc=no
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 if test $ac_cv_header_stdc = yes; then
6996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "memchr" >/dev/null 2>&1; then
7010 ac_cv_header_stdc=no
7016 if test $ac_cv_header_stdc = yes; then
7017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028 $EGREP "free" >/dev/null 2>&1; then
7031 ac_cv_header_stdc=no
7037 if test $ac_cv_header_stdc = yes; then
7038 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7039 if test "$cross_compiling" = yes; then
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7049 #if ((' ' & 0x0FF) == 0x020)
7050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7053 # define ISLOWER(c) \
7054 (('a' <= (c) && (c) <= 'i') \
7055 || ('j' <= (c) && (c) <= 'r') \
7056 || ('s' <= (c) && (c) <= 'z'))
7057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7065 for (i = 0; i < 256; i++)
7066 if (XOR (islower (i), ISLOWER (i))
7067 || toupper (i) != TOUPPER (i))
7072 rm -f conftest$ac_exeext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074 (eval $ac_link) 2>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7085 echo "$as_me: program exited with status $ac_status" >&5
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_header_stdc=no
7092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7096 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7098 if test $ac_cv_header_stdc = yes; then
7100 cat >>confdefs.h <<\_ACEOF
7101 #define STDC_HEADERS 1
7106 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7107 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7108 if test "${ac_cv_c_const+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 cat >conftest.$ac_ext <<_ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7121 /* FIXME: Include the comments suggested by Paul. */
7123 /* Ultrix mips cc rejects this. */
7124 typedef int charset[2];
7126 /* SunOS 4.1.1 cc rejects this. */
7127 char const *const *ccp;
7129 /* NEC SVR4.0.2 mips cc rejects this. */
7130 struct point {int x, y;};
7131 static struct point const zero = {0,0};
7132 /* AIX XL C 1.02.0.0 rejects this.
7133 It does not let you subtract one const X* pointer from another in
7134 an arm of an if-expression whose if-part is not a constant
7136 const char *g = "string";
7137 ccp = &g + (g ? g-g : 0);
7138 /* HPUX 7.0 cc rejects these. */
7141 ccp = (char const *const *) p;
7142 { /* SCO 3.2v4 cc rejects this. */
7144 char const *s = 0 ? (char *) 0 : (char const *) 0;
7148 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7150 const int *foo = &x[0];
7153 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7154 typedef const int *iptr;
7158 { /* AIX XL C 1.02.0.0 rejects this saying
7159 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7160 struct s { int j; const int *ap[3]; };
7161 struct s *b; b->j = 5;
7163 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7172 rm -f conftest.$ac_objext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174 (eval $ac_compile) 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest.$ac_objext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7203 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7204 echo "${ECHO_T}$ac_cv_c_const" >&6
7205 if test $ac_cv_c_const = no; then
7207 cat >>confdefs.h <<\_ACEOF
7214 echo "$as_me:$LINENO: checking for signed" >&5
7215 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7216 if test "${bh_cv_c_signed+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7234 rm -f conftest.$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236 (eval $ac_compile) 2>conftest.er1
7238 grep -v '^ *+' conftest.er1 >conftest.err
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag"
7244 || test ! -s conftest.err'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try='test -s conftest.$ac_objext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7265 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7266 echo "${ECHO_T}$bh_cv_c_signed" >&6
7267 if test $bh_cv_c_signed = no; then
7269 cat >>confdefs.h <<\_ACEOF
7275 echo "$as_me:$LINENO: checking for inline" >&5
7276 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7277 if test "${ac_cv_c_inline+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 for ac_kw in inline __inline__ __inline; do
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7290 static $ac_kw foo_t static_foo () {return 0; }
7291 $ac_kw foo_t foo () {return 0; }
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 ac_cv_c_inline=$ac_kw; break
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7328 echo "${ECHO_T}$ac_cv_c_inline" >&6
7331 case $ac_cv_c_inline in
7334 case $ac_cv_c_inline in
7336 *) ac_val=$ac_cv_c_inline;;
7338 cat >>confdefs.h <<_ACEOF
7340 #define inline $ac_val
7346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7357 inttypes.h stdint.h unistd.h
7359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360 echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7373 #include <$ac_header>
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7379 grep -v '^ *+' conftest.er1 >conftest.err
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 eval "$as_ac_Header=yes"
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 eval "$as_ac_Header=no"
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7409 cat >>confdefs.h <<_ACEOF
7410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7418 echo "$as_me:$LINENO: checking for off_t" >&5
7419 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7420 if test "${ac_cv_type_off_t+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>conftest.er1
7445 grep -v '^ *+' conftest.er1 >conftest.err
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag"
7451 || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_type_off_t=yes
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7473 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7474 if test $ac_cv_type_off_t = yes; then
7478 cat >>confdefs.h <<_ACEOF
7484 echo "$as_me:$LINENO: checking for size_t" >&5
7485 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7486 if test "${ac_cv_type_size_t+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 cat >conftest.$ac_ext <<_ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7501 if (sizeof (size_t))
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest.$ac_objext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_type_size_t=yes
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_type_size_t=no
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7539 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7540 if test $ac_cv_type_size_t = yes; then
7544 cat >>confdefs.h <<_ACEOF
7545 #define size_t unsigned
7551 echo "$as_me:$LINENO: checking for long long" >&5
7552 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7553 if test "${ac_cv_type_long_long+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 long long ll = 1LL; int i = 63;
7566 long long llmax = (long long) -1;
7567 return ll << i | ll >> i | llmax / ll | llmax % ll;
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_cv_type_long_long=yes
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 ac_cv_type_long_long=no
7601 rm -f conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7604 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7605 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7606 if test $ac_cv_type_long_long = yes; then
7608 cat >>confdefs.h <<\_ACEOF
7609 #define HAVE_LONG_LONG 1
7615 echo "$as_me:$LINENO: checking for long double" >&5
7616 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7617 if test "${gt_cv_c_long_double+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 if test "$GCC" = yes; then
7621 gt_cv_c_long_double=yes
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7630 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7631 long double foo = 0.0;
7632 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7633 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>conftest.er1
7647 grep -v '^ *+' conftest.er1 >conftest.err
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 gt_cv_c_long_double=yes
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 gt_cv_c_long_double=no
7672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7675 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7676 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7677 if test $gt_cv_c_long_double = yes; then
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_LONG_DOUBLE 1
7686 echo "$as_me:$LINENO: checking for wchar_t" >&5
7687 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7688 if test "${gt_cv_c_wchar_t+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7698 wchar_t foo = (wchar_t)'\0';
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7711 grep -v '^ *+' conftest.er1 >conftest.err
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7738 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7739 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7740 if test $gt_cv_c_wchar_t = yes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_WCHAR_T 1
7749 echo "$as_me:$LINENO: checking for wint_t" >&5
7750 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7751 if test "${gt_cv_c_wint_t+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7761 wint_t foo = (wchar_t)'\0';
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7802 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7803 if test $gt_cv_c_wint_t = yes; then
7805 cat >>confdefs.h <<\_ACEOF
7806 #define HAVE_WINT_T 1
7812 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7813 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7814 if test "${gl_cv_header_inttypes_h+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 cat >conftest.$ac_ext <<_ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7823 #include <sys/types.h>
7824 #include <inttypes.h>
7828 uintmax_t i = (uintmax_t) -1;
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835 (eval $ac_compile) 2>conftest.er1
7837 grep -v '^ *+' conftest.er1 >conftest.err
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -z "$ac_c_werror_flag"
7843 || test ! -s conftest.err'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 gl_cv_header_inttypes_h=yes
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 gl_cv_header_inttypes_h=no
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7865 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7866 if test $gl_cv_header_inttypes_h = yes; then
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7875 echo "$as_me:$LINENO: checking for stdint.h" >&5
7876 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7877 if test "${gl_cv_header_stdint_h+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <sys/types.h>
7891 uintmax_t i = (uintmax_t) -1;
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 gl_cv_header_stdint_h=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 gl_cv_header_stdint_h=no
7925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7928 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7929 if test $gl_cv_header_stdint_h = yes; then
7931 cat >>confdefs.h <<_ACEOF
7932 #define HAVE_STDINT_H_WITH_UINTMAX 1
7940 echo "$as_me:$LINENO: checking for intmax_t" >&5
7941 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7942 if test "${gt_cv_c_intmax_t+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 cat >conftest.$ac_ext <<_ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7954 #if HAVE_STDINT_H_WITH_UINTMAX
7957 #if HAVE_INTTYPES_H_WITH_UINTMAX
7958 #include <inttypes.h>
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 gt_cv_c_intmax_t=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8001 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8002 if test $gt_cv_c_intmax_t = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_INTMAX_T 1
8012 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8013 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8014 if test "${gt_cv_func_printf_posix+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 if test "$cross_compiling" = yes; then
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8027 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033 $EGREP "notposix" >/dev/null 2>&1; then
8034 gt_cv_func_printf_posix="guessing no"
8036 gt_cv_func_printf_posix="guessing yes"
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8051 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8052 dollar expansion (possibly an autoconf bug). */
8053 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8054 static char buf[100];
8057 sprintf (buf, format, 33, 55);
8058 return (strcmp (buf, "55 33") != 0);
8061 rm -f conftest$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 gt_cv_func_printf_posix=yes
8074 echo "$as_me: program exited with status $ac_status" >&5
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8079 gt_cv_func_printf_posix=no
8081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8086 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8087 case $gt_cv_func_printf_posix in
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_POSIX_PRINTF 1
8097 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8098 # for constant arguments. Useless!
8099 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8100 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8101 if test "${ac_cv_working_alloca_h+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8114 char *p = (char *) alloca (2 * sizeof (int));
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag"
8129 || test ! -s conftest.err'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 ac_cv_working_alloca_h=yes
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 ac_cv_working_alloca_h=no
8148 rm -f conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8151 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8152 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8153 if test $ac_cv_working_alloca_h = yes; then
8155 cat >>confdefs.h <<\_ACEOF
8156 #define HAVE_ALLOCA_H 1
8161 echo "$as_me:$LINENO: checking for alloca" >&5
8162 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8163 if test "${ac_cv_func_alloca_works+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 # define alloca __builtin_alloca
8176 # include <malloc.h>
8177 # define alloca _alloca
8180 # include <alloca.h>
8185 # ifndef alloca /* predefined by HP cc +Olibcalls */
8196 char *p = (char *) alloca (1);
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_cv_func_alloca_works=yes
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_func_alloca_works=no
8230 rm -f conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8233 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8234 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8236 if test $ac_cv_func_alloca_works = yes; then
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_ALLOCA 1
8243 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8244 # that cause trouble. Some versions do not even contain alloca or
8245 # contain a buggy version. If you still want to use their alloca,
8246 # use ar to extract alloca.o from them instead of compiling alloca.c.
8248 ALLOCA=alloca.$ac_objext
8250 cat >>confdefs.h <<\_ACEOF
8255 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8256 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8257 if test "${ac_cv_os_cray+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 #if defined(CRAY) && ! defined(CRAY2)
8273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8274 $EGREP "webecray" >/dev/null 2>&1; then
8282 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8283 echo "${ECHO_T}$ac_cv_os_cray" >&6
8284 if test $ac_cv_os_cray = yes; then
8285 for ac_func in _getb67 GETB67 getb67; do
8286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8287 echo "$as_me:$LINENO: checking for $ac_func" >&5
8288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8289 if eval "test \"\${$as_ac_var+set}\" = set"; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8300 #define $ac_func innocuous_$ac_func
8302 /* System header to define __stub macros and hopefully few prototypes,
8303 which can conflict with char $ac_func (); below.
8304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305 <limits.h> exists even on freestanding compilers. */
8308 # include <limits.h>
8310 # include <assert.h>
8315 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8323 /* The GNU C library defines this for functions which it implements
8324 to always fail with ENOSYS. Some functions are actually named
8325 something starting with __ and the normal name is an alias. */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8329 char (*f) () = $ac_func;
8338 return f != $ac_func;
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 eval "$as_ac_var=yes"
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 eval "$as_ac_var=no"
8372 rm -f conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8377 if test `eval echo '${'$as_ac_var'}'` = yes; then
8379 cat >>confdefs.h <<_ACEOF
8380 #define CRAY_STACKSEG_END $ac_func
8389 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8390 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8391 if test "${ac_cv_c_stack_direction+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 if test "$cross_compiling" = yes; then
8395 ac_cv_c_stack_direction=0
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8404 find_stack_direction ()
8406 static char *addr = 0;
8411 return find_stack_direction ();
8414 return (&dummy > addr) ? 1 : -1;
8420 exit (find_stack_direction () < 0);
8423 rm -f conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_c_stack_direction=1
8436 echo "$as_me: program exited with status $ac_status" >&5
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_c_stack_direction=-1
8443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8446 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8447 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8449 cat >>confdefs.h <<_ACEOF
8450 #define STACK_DIRECTION $ac_cv_c_stack_direction
8458 for ac_header in stdlib.h unistd.h
8460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8462 echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8470 # Is the header compilable?
8471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 $ac_includes_default
8480 #include <$ac_header>
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_header_compiler=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_header_compiler=no
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6
8515 # Is the header present?
8516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <$ac_header>
8526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } >/dev/null; then
8534 if test -s conftest.err; then
8535 ac_cpp_err=$ac_c_preproc_warn_flag
8536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8543 if test -z "$ac_cpp_err"; then
8544 ac_header_preproc=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 ac_header_preproc=no
8551 rm -f conftest.err conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8553 echo "${ECHO_T}$ac_header_preproc" >&6
8555 # So? What about this header?
8556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8562 ac_header_preproc=yes
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8579 ## ------------------------------------------ ##
8580 ## Report this to the AC_PACKAGE_NAME lists. ##
8581 ## ------------------------------------------ ##
8584 sed "s/^/$as_me: WARNING: /" >&2
8587 echo "$as_me:$LINENO: checking for $ac_header" >&5
8588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 eval "$as_ac_Header=\$ac_header_preproc"
8594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8599 cat >>confdefs.h <<_ACEOF
8600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8608 for ac_func in getpagesize
8610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8611 echo "$as_me:$LINENO: checking for $ac_func" >&5
8612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_var+set}\" = set"; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 cat >conftest.$ac_ext <<_ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8624 #define $ac_func innocuous_$ac_func
8626 /* System header to define __stub macros and hopefully few prototypes,
8627 which can conflict with char $ac_func (); below.
8628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 <limits.h> exists even on freestanding compilers. */
8632 # include <limits.h>
8634 # include <assert.h>
8639 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8647 /* The GNU C library defines this for functions which it implements
8648 to always fail with ENOSYS. Some functions are actually named
8649 something starting with __ and the normal name is an alias. */
8650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8653 char (*f) () = $ac_func;
8662 return f != $ac_func;
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669 (eval $ac_link) 2>conftest.er1
8671 grep -v '^ *+' conftest.er1 >conftest.err
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -z "$ac_c_werror_flag"
8677 || test ! -s conftest.err'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest$ac_exeext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 eval "$as_ac_var=yes"
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 eval "$as_ac_var=no"
8696 rm -f conftest.err conftest.$ac_objext \
8697 conftest$ac_exeext conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8701 if test `eval echo '${'$as_ac_var'}'` = yes; then
8702 cat >>confdefs.h <<_ACEOF
8703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8709 echo "$as_me:$LINENO: checking for working mmap" >&5
8710 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8711 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 if test "$cross_compiling" = yes; then
8715 ac_cv_func_mmap_fixed_mapped=no
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $ac_includes_default
8724 /* malloc might have been renamed as rpl_malloc. */
8727 /* Thanks to Mike Haertel and Jim Avera for this test.
8728 Here is a matrix of mmap possibilities:
8729 mmap private not fixed
8730 mmap private fixed at somewhere currently unmapped
8731 mmap private fixed at somewhere already mapped
8732 mmap shared not fixed
8733 mmap shared fixed at somewhere currently unmapped
8734 mmap shared fixed at somewhere already mapped
8735 For private mappings, we should verify that changes cannot be read()
8736 back from the file, nor mmap's back from the file at a different
8737 address. (There have been systems where private was not correctly
8738 implemented like the infamous i386 svr4.0, and systems where the
8739 VM page cache was not coherent with the file system buffer cache
8740 like early versions of FreeBSD and possibly contemporary NetBSD.)
8741 For shared mappings, we should conversely verify that changes get
8742 propagated back to all the places they're supposed to be.
8744 Grep wants private fixed already mapped.
8745 The main things grep needs to know about mmap are:
8746 * does it exist and is it safe to write into the mmap'd area
8747 * how to use it (BSD variants) */
8750 #include <sys/mman.h>
8752 #if !STDC_HEADERS && !HAVE_STDLIB_H
8756 /* This mess was copied from the GNU getpagesize.h. */
8757 #if !HAVE_GETPAGESIZE
8758 /* Assume that all systems that can run configure have sys/param.h. */
8759 # if !HAVE_SYS_PARAM_H
8760 # define HAVE_SYS_PARAM_H 1
8763 # ifdef _SC_PAGESIZE
8764 # define getpagesize() sysconf(_SC_PAGESIZE)
8765 # else /* no _SC_PAGESIZE */
8766 # if HAVE_SYS_PARAM_H
8767 # include <sys/param.h>
8768 # ifdef EXEC_PAGESIZE
8769 # define getpagesize() EXEC_PAGESIZE
8770 # else /* no EXEC_PAGESIZE */
8772 # define getpagesize() NBPG * CLSIZE
8775 # endif /* no CLSIZE */
8776 # else /* no NBPG */
8778 # define getpagesize() NBPC
8779 # else /* no NBPC */
8781 # define getpagesize() PAGESIZE
8782 # endif /* PAGESIZE */
8783 # endif /* no NBPC */
8784 # endif /* no NBPG */
8785 # endif /* no EXEC_PAGESIZE */
8786 # else /* no HAVE_SYS_PARAM_H */
8787 # define getpagesize() 8192 /* punt totally */
8788 # endif /* no HAVE_SYS_PARAM_H */
8789 # endif /* no _SC_PAGESIZE */
8791 #endif /* no HAVE_GETPAGESIZE */
8796 char *data, *data2, *data3;
8800 pagesize = getpagesize ();
8802 /* First, make a file with some known garbage in it. */
8803 data = (char *) malloc (pagesize);
8806 for (i = 0; i < pagesize; ++i)
8807 *(data + i) = rand ();
8809 fd = creat ("conftest.mmap", 0600);
8812 if (write (fd, data, pagesize) != pagesize)
8816 /* Next, try to mmap the file at a fixed address which already has
8817 something else allocated at it. If we can, also make sure that
8818 we see the same garbage. */
8819 fd = open ("conftest.mmap", O_RDWR);
8822 data2 = (char *) malloc (2 * pagesize);
8825 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8826 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8827 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8829 for (i = 0; i < pagesize; ++i)
8830 if (*(data + i) != *(data2 + i))
8833 /* Finally, make sure that changes to the mapped area do not
8834 percolate back to the file as seen by read(). (This is a bug on
8835 some variants of i386 svr4.0.) */
8836 for (i = 0; i < pagesize; ++i)
8837 *(data2 + i) = *(data2 + i) + 1;
8838 data3 = (char *) malloc (pagesize);
8841 if (read (fd, data3, pagesize) != pagesize)
8843 for (i = 0; i < pagesize; ++i)
8844 if (*(data + i) != *(data3 + i))
8850 rm -f conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ac_cv_func_mmap_fixed_mapped=yes
8863 echo "$as_me: program exited with status $ac_status" >&5
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_cv_func_mmap_fixed_mapped=no
8870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8873 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8874 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8875 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8877 cat >>confdefs.h <<\_ACEOF
8885 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8886 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8887 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8897 #include <features.h>
8898 #ifdef __GNU_LIBRARY__
8899 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8906 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8907 ac_cv_gnu_library_2_1=yes
8909 ac_cv_gnu_library_2_1=no
8916 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8917 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8919 GLIBC21="$ac_cv_gnu_library_2_1"
8924 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8925 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8926 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 if test "$cross_compiling" = yes; then
8932 # Guess based on the CPU.
8934 alpha* | i3456786 | m68k | s390*)
8935 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8937 gt_cv_int_divbyzero_sigfpe="guessing no";;
8941 cat >conftest.$ac_ext <<_ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8953 sigfpe_handler (int sig)
8955 sigfpe_handler (sig) int sig;
8958 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8959 exit (sig != SIGFPE);
8969 signal (SIGFPE, sigfpe_handler);
8970 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8971 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8972 signal (SIGTRAP, sigfpe_handler);
8974 /* Linux/SPARC yields signal SIGILL. */
8975 #if defined (__sparc__) && defined (__linux__)
8976 signal (SIGILL, sigfpe_handler);
8985 rm -f conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 gt_cv_int_divbyzero_sigfpe=yes
8998 echo "$as_me: program exited with status $ac_status" >&5
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9003 gt_cv_int_divbyzero_sigfpe=no
9005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9009 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9010 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9011 case "$gt_cv_int_divbyzero_sigfpe" in
9016 cat >>confdefs.h <<_ACEOF
9017 #define INTDIV0_RAISES_SIGFPE $value
9022 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9023 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9024 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 unsigned long long ull = 1ULL; int i = 63;
9037 unsigned long long ullmax = (unsigned long long) -1;
9038 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag"
9053 || test ! -s conftest.err'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 ac_cv_type_unsigned_long_long=yes
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9070 ac_cv_type_unsigned_long_long=no
9072 rm -f conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9076 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9077 if test $ac_cv_type_unsigned_long_long = yes; then
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_UNSIGNED_LONG_LONG 1
9088 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9090 test $ac_cv_type_unsigned_long_long = yes \
9091 && ac_type='unsigned long long' \
9092 || ac_type='unsigned long'
9094 cat >>confdefs.h <<_ACEOF
9095 #define uintmax_t $ac_type
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_UINTMAX_T 1
9107 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9108 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9109 if test "${gt_cv_header_inttypes_h+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 cat >conftest.$ac_ext <<_ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9119 #include <sys/types.h>
9120 #include <inttypes.h>
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>conftest.er1
9133 grep -v '^ *+' conftest.er1 >conftest.err
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } &&
9138 { ac_try='test -z "$ac_c_werror_flag"
9139 || test ! -s conftest.err'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; } &&
9145 { ac_try='test -s conftest.$ac_objext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 gt_cv_header_inttypes_h=yes
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 gt_cv_header_inttypes_h=no
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9162 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9163 if test $gt_cv_header_inttypes_h = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_INTTYPES_H 1
9173 if test $gt_cv_header_inttypes_h = yes; then
9174 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9175 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9176 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 #include <inttypes.h>
9199 rm -f conftest.$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201 (eval $ac_compile) 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -z "$ac_c_werror_flag"
9209 || test ! -s conftest.err'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try='test -s conftest.$ac_objext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 gt_cv_inttypes_pri_broken=no
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 gt_cv_inttypes_pri_broken=yes
9228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9232 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9234 if test "$gt_cv_inttypes_pri_broken" = yes; then
9236 cat >>confdefs.h <<_ACEOF
9237 #define PRI_MACROS_BROKEN 1
9244 for ac_header in stdint.h
9246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248 echo "$as_me:$LINENO: checking for $ac_header" >&5
9249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9256 # Is the header compilable?
9257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9259 cat >conftest.$ac_ext <<_ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9265 $ac_includes_default
9266 #include <$ac_header>
9268 rm -f conftest.$ac_objext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270 (eval $ac_compile) 2>conftest.er1
9272 grep -v '^ *+' conftest.er1 >conftest.err
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -z "$ac_c_werror_flag"
9278 || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_header_compiler=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_header_compiler=no
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9299 echo "${ECHO_T}$ac_header_compiler" >&6
9301 # Is the header present?
9302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 #include <$ac_header>
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9315 grep -v '^ *+' conftest.er1 >conftest.err
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } >/dev/null; then
9320 if test -s conftest.err; then
9321 ac_cpp_err=$ac_c_preproc_warn_flag
9322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9329 if test -z "$ac_cpp_err"; then
9330 ac_header_preproc=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_header_preproc=no
9337 rm -f conftest.err conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9339 echo "${ECHO_T}$ac_header_preproc" >&6
9341 # So? What about this header?
9342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9348 ac_header_preproc=yes
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9365 ## ------------------------------------------ ##
9366 ## Report this to the AC_PACKAGE_NAME lists. ##
9367 ## ------------------------------------------ ##
9370 sed "s/^/$as_me: WARNING: /" >&2
9373 echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 eval "$as_ac_Header=\$ac_header_preproc"
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9394 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9396 cat >conftest.$ac_ext <<_ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 $EGREP "Found it" >/dev/null 2>&1; then
9418 if test -z "$result"; then
9419 if test "$cross_compiling" = yes; then
9420 # Depending upon the size, compute the lo and hi bounds.
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9431 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440 (eval $ac_compile) 2>conftest.er1
9442 grep -v '^ *+' conftest.er1 >conftest.err
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag"
9448 || test ! -s conftest.err'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; } &&
9454 { ac_try='test -s conftest.$ac_objext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9472 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481 (eval $ac_compile) 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_hi=$ac_mid; break
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9506 ac_lo=`expr $ac_mid + 1`
9507 if test $ac_lo -le $ac_mid; then
9511 ac_mid=`expr 2 '*' $ac_mid + 1`
9513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 cat >conftest.$ac_ext <<_ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9529 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9540 grep -v '^ *+' conftest.er1 >conftest.err
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9570 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest.$ac_objext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_lo=$ac_mid; break
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9604 ac_hi=`expr '(' $ac_mid ')' - 1`
9605 if test $ac_mid -le $ac_hi; then
9609 ac_mid=`expr 2 '*' $ac_mid`
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9622 # Binary search between lo and hi bounds.
9623 while test "x$ac_lo" != "x$ac_hi"; do
9624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9635 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644 (eval $ac_compile) 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag"
9652 || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest.$ac_objext'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_lo=`expr '(' $ac_mid ')' + 1`
9671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9678 if test "$cross_compiling" = yes; then
9679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9680 See \`config.log' for more details." >&5
9681 echo "$as_me: error: cannot run test program while cross compiling
9682 See \`config.log' for more details." >&2;}
9683 { (exit 1); exit 1; }; }
9685 cat >conftest.$ac_ext <<_ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9692 long longval () { return ~(size_t)0 / 10; }
9693 unsigned long ulongval () { return ~(size_t)0 / 10; }
9700 FILE *f = fopen ("conftest.val", "w");
9703 if ((~(size_t)0 / 10) < 0)
9705 long i = longval ();
9706 if (i != (~(size_t)0 / 10))
9708 fprintf (f, "%ld\n", i);
9712 unsigned long i = ulongval ();
9713 if (i != (~(size_t)0 / 10))
9715 fprintf (f, "%lu\n", i);
9717 exit (ferror (f) || fclose (f) != 0);
9723 rm -f conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 res_hi=`cat conftest.val`
9736 echo "$as_me: program exited with status $ac_status" >&5
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9747 if test "$cross_compiling" = yes; then
9748 # Depending upon the size, compute the lo and hi bounds.
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9759 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768 (eval $ac_compile) 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag"
9776 || test ! -s conftest.err'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest.$ac_objext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9800 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_hi=$ac_mid; break
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_lo=`expr $ac_mid + 1`
9835 if test $ac_lo -le $ac_mid; then
9839 ac_mid=`expr 2 '*' $ac_mid + 1`
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 cat >conftest.$ac_ext <<_ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9857 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9888 cat >conftest.$ac_ext <<_ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9898 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907 (eval $ac_compile) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest.$ac_objext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_lo=$ac_mid; break
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_hi=`expr '(' $ac_mid ')' - 1`
9933 if test $ac_mid -le $ac_hi; then
9937 ac_mid=`expr 2 '*' $ac_mid`
9939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9950 # Binary search between lo and hi bounds.
9951 while test "x$ac_lo" != "x$ac_hi"; do
9952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9963 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972 (eval $ac_compile) 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag"
9980 || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_lo=`expr '(' $ac_mid ')' + 1`
9999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10002 ?*) res_lo=$ac_lo;;
10006 if test "$cross_compiling" = yes; then
10007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10008 See \`config.log' for more details." >&5
10009 echo "$as_me: error: cannot run test program while cross compiling
10010 See \`config.log' for more details." >&2;}
10011 { (exit 1); exit 1; }; }
10013 cat >conftest.$ac_ext <<_ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019 #include <stddef.h>
10020 long longval () { return ~(size_t)0 % 10; }
10021 unsigned long ulongval () { return ~(size_t)0 % 10; }
10023 #include <stdlib.h>
10028 FILE *f = fopen ("conftest.val", "w");
10031 if ((~(size_t)0 % 10) < 0)
10033 long i = longval ();
10034 if (i != (~(size_t)0 % 10))
10036 fprintf (f, "%ld\n", i);
10040 unsigned long i = ulongval ();
10041 if (i != (~(size_t)0 % 10))
10043 fprintf (f, "%lu\n", i);
10045 exit (ferror (f) || fclose (f) != 0);
10051 rm -f conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 res_lo=`cat conftest.val`
10064 echo "$as_me: program exited with status $ac_status" >&5
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ( exit $ac_status )
10071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10075 if test "$cross_compiling" = yes; then
10076 # Depending upon the size, compute the lo and hi bounds.
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #include <stddef.h>
10087 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10094 rm -f conftest.$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>conftest.er1
10098 grep -v '^ *+' conftest.er1 >conftest.err
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag"
10104 || test ! -s conftest.err'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <stddef.h>
10128 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_hi=$ac_mid; break
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_lo=`expr $ac_mid + 1`
10163 if test $ac_lo -le $ac_mid; then
10167 ac_mid=`expr 2 '*' $ac_mid + 1`
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 cat >conftest.$ac_ext <<_ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 #include <stddef.h>
10185 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <stddef.h>
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_lo=$ac_mid; break
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_hi=`expr '(' $ac_mid ')' - 1`
10261 if test $ac_mid -le $ac_hi; then
10265 ac_mid=`expr 2 '*' $ac_mid`
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 # Binary search between lo and hi bounds.
10279 while test "x$ac_lo" != "x$ac_hi"; do
10280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10281 cat >conftest.$ac_ext <<_ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 #include <stddef.h>
10291 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10302 grep -v '^ *+' conftest.er1 >conftest.err
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_lo=`expr '(' $ac_mid ')' + 1`
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10330 ?*) fits_in_uint=$ac_lo;;
10334 if test "$cross_compiling" = yes; then
10335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10336 See \`config.log' for more details." >&5
10337 echo "$as_me: error: cannot run test program while cross compiling
10338 See \`config.log' for more details." >&2;}
10339 { (exit 1); exit 1; }; }
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <stddef.h>
10348 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10349 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10351 #include <stdlib.h>
10356 FILE *f = fopen ("conftest.val", "w");
10359 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10361 long i = longval ();
10362 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10364 fprintf (f, "%ld\n", i);
10368 unsigned long i = ulongval ();
10369 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10371 fprintf (f, "%lu\n", i);
10373 exit (ferror (f) || fclose (f) != 0);
10379 rm -f conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 fits_in_uint=`cat conftest.val`
10392 echo "$as_me: program exited with status $ac_status" >&5
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ( exit $ac_status )
10399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10403 if test "$fits_in_uint" = 1; then
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <stddef.h>
10412 extern unsigned long foo;
10422 rm -f conftest.$ac_objext
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424 (eval $ac_compile) 2>conftest.er1
10426 grep -v '^ *+' conftest.er1 >conftest.err
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } &&
10431 { ac_try='test -z "$ac_c_werror_flag"
10432 || test ! -s conftest.err'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10452 if test -z "$result"; then
10453 if test "$fits_in_uint" = 1; then
10454 result="$res_hi$res_lo"U
10456 result="$res_hi$res_lo"UL
10459 result='~(size_t)0'
10462 echo "$as_me:$LINENO: result: $result" >&5
10463 echo "${ECHO_T}$result" >&6
10464 if test "$result" != yes; then
10466 cat >>confdefs.h <<_ACEOF
10467 #define SIZE_MAX $result
10476 for ac_header in stdint.h
10478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10480 echo "$as_me:$LINENO: checking for $ac_header" >&5
10481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10488 # Is the header compilable?
10489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 $ac_includes_default
10498 #include <$ac_header>
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>conftest.er1
10504 grep -v '^ *+' conftest.er1 >conftest.err
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_header_compiler=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_header_compiler=no
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531 echo "${ECHO_T}$ac_header_compiler" >&6
10533 # Is the header present?
10534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 #include <$ac_header>
10544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } >/dev/null; then
10552 if test -s conftest.err; then
10553 ac_cpp_err=$ac_c_preproc_warn_flag
10554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10561 if test -z "$ac_cpp_err"; then
10562 ac_header_preproc=yes
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ac_header_preproc=no
10569 rm -f conftest.err conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10571 echo "${ECHO_T}$ac_header_preproc" >&6
10573 # So? What about this header?
10574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10580 ac_header_preproc=yes
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10597 ## ------------------------------------------ ##
10598 ## Report this to the AC_PACKAGE_NAME lists. ##
10599 ## ------------------------------------------ ##
10602 sed "s/^/$as_me: WARNING: /" >&2
10605 echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 eval "$as_ac_Header=\$ac_header_preproc"
10612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10617 cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10632 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10633 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10634 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 $ac_includes_default
10647 if ((ptrdiff_t *) 0)
10649 if (sizeof (ptrdiff_t))
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657 (eval $ac_compile) 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_type_ptrdiff_t=yes
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_cv_type_ptrdiff_t=no
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10686 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10687 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10688 if test $ac_cv_type_ptrdiff_t = yes; then
10692 cat >>confdefs.h <<\_ACEOF
10693 #define ptrdiff_t long
10709 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10710 stdlib.h string.h unistd.h sys/param.h
10712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714 echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10722 # Is the header compilable?
10723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 $ac_includes_default
10732 #include <$ac_header>
10734 rm -f conftest.$ac_objext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736 (eval $ac_compile) 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -z "$ac_c_werror_flag"
10744 || test ! -s conftest.err'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; } &&
10750 { ac_try='test -s conftest.$ac_objext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_header_compiler=yes
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 ac_header_compiler=no
10763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6
10767 # Is the header present?
10768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <$ac_header>
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_c_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10795 if test -z "$ac_cpp_err"; then
10796 ac_header_preproc=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_header_preproc=no
10803 rm -f conftest.err conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 echo "${ECHO_T}$ac_header_preproc" >&6
10807 # So? What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814 ac_header_preproc=yes
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10831 ## ------------------------------------------ ##
10832 ## Report this to the AC_PACKAGE_NAME lists. ##
10833 ## ------------------------------------------ ##
10836 sed "s/^/$as_me: WARNING: /" >&2
10839 echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 eval "$as_ac_Header=\$ac_header_preproc"
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10883 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10884 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888 echo "$as_me:$LINENO: checking for $ac_func" >&5
10889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10890 if eval "test \"\${$as_ac_var+set}\" = set"; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 cat >conftest.$ac_ext <<_ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10901 #define $ac_func innocuous_$ac_func
10903 /* System header to define __stub macros and hopefully few prototypes,
10904 which can conflict with char $ac_func (); below.
10905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906 <limits.h> exists even on freestanding compilers. */
10909 # include <limits.h>
10911 # include <assert.h>
10916 /* Override any gcc2 internal prototype to avoid an error. */
10921 /* We use char because int might match the return type of a gcc2
10922 builtin and then its argument prototype would still apply. */
10924 /* The GNU C library defines this for functions which it implements
10925 to always fail with ENOSYS. Some functions are actually named
10926 something starting with __ and the normal name is an alias. */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10930 char (*f) () = $ac_func;
10939 return f != $ac_func;
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946 (eval $ac_link) 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -z "$ac_c_werror_flag"
10954 || test ! -s conftest.err'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 eval "$as_ac_var=yes"
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 eval "$as_ac_var=no"
10973 rm -f conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10978 if test `eval echo '${'$as_ac_var'}'` = yes; then
10979 cat >>confdefs.h <<_ACEOF
10980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10988 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10989 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10990 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11005 char *p = (char *) _snprintf;
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag"
11022 || test ! -s conftest.err'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest.$ac_objext'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_have_decl__snprintf=yes
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_cv_have_decl__snprintf=no
11041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11043 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11044 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11045 if test $ac_cv_have_decl__snprintf = yes; then
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_DECL__SNPRINTF $gt_value
11057 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11058 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11059 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 cat >conftest.$ac_ext <<_ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11074 char *p = (char *) _snwprintf;
11081 rm -f conftest.$ac_objext
11082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083 (eval $ac_compile) 2>conftest.er1
11085 grep -v '^ *+' conftest.er1 >conftest.err
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } &&
11090 { ac_try='test -z "$ac_c_werror_flag"
11091 || test ! -s conftest.err'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; } &&
11097 { ac_try='test -s conftest.$ac_objext'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103 ac_cv_have_decl__snwprintf=yes
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_cv_have_decl__snwprintf=no
11110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11112 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11113 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11114 if test $ac_cv_have_decl__snwprintf = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_DECL__SNWPRINTF $gt_value
11127 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11128 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11129 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11143 #ifndef feof_unlocked
11144 char *p = (char *) feof_unlocked;
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153 (eval $ac_compile) 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag"
11161 || test ! -s conftest.err'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest.$ac_objext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_have_decl_feof_unlocked=yes
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_cv_have_decl_feof_unlocked=no
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11183 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11184 if test $ac_cv_have_decl_feof_unlocked = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11196 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11197 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11198 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11212 #ifndef fgets_unlocked
11213 char *p = (char *) fgets_unlocked;
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>conftest.er1
11224 grep -v '^ *+' conftest.er1 >conftest.err
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag"
11230 || test ! -s conftest.err'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; } &&
11236 { ac_try='test -s conftest.$ac_objext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 ac_cv_have_decl_fgets_unlocked=yes
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 ac_cv_have_decl_fgets_unlocked=no
11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11252 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11253 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11265 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11266 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11267 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 cat >conftest.$ac_ext <<_ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11281 #ifndef getc_unlocked
11282 char *p = (char *) getc_unlocked;
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291 (eval $ac_compile) 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_c_werror_flag"
11299 || test ! -s conftest.err'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try='test -s conftest.$ac_objext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_cv_have_decl_getc_unlocked=yes
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_cv_have_decl_getc_unlocked=no
11318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11320 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11321 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11322 if test $ac_cv_have_decl_getc_unlocked = yes; then
11328 cat >>confdefs.h <<_ACEOF
11329 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11334 case $gt_cv_func_printf_posix in
11335 *yes) HAVE_POSIX_PRINTF=1 ;;
11336 *) HAVE_POSIX_PRINTF=0 ;;
11339 if test "$ac_cv_func_asprintf" = yes; then
11345 if test "$ac_cv_func_snprintf" = yes; then
11351 if test "$ac_cv_func_wprintf" = yes; then
11363 am_save_CPPFLAGS="$CPPFLAGS"
11365 for element in $INCICONV; do
11367 for x in $CPPFLAGS; do
11369 acl_save_prefix="$prefix"
11370 prefix="$acl_final_prefix"
11371 acl_save_exec_prefix="$exec_prefix"
11372 exec_prefix="$acl_final_exec_prefix"
11374 exec_prefix="$acl_save_exec_prefix"
11375 prefix="$acl_save_prefix"
11377 if test "X$x" = "X$element"; then
11382 if test -z "$haveit"; then
11383 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11388 echo "$as_me:$LINENO: checking for iconv" >&5
11389 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11390 if test "${am_cv_func_iconv+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 am_cv_func_iconv="no, consider installing GNU libiconv"
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <stdlib.h>
11407 iconv_t cd = iconv_open("","");
11408 iconv(cd,NULL,NULL,NULL,NULL);
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>conftest.er1
11418 grep -v '^ *+' conftest.er1 >conftest.err
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag"
11424 || test ! -s conftest.err'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 am_cv_func_iconv=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11442 rm -f conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11444 if test "$am_cv_func_iconv" != yes; then
11445 am_save_LIBS="$LIBS"
11446 LIBS="$LIBS $LIBICONV"
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <stdlib.h>
11458 iconv_t cd = iconv_open("","");
11459 iconv(cd,NULL,NULL,NULL,NULL);
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11467 (eval $ac_link) 2>conftest.er1
11469 grep -v '^ *+' conftest.er1 >conftest.err
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag"
11475 || test ! -s conftest.err'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 am_cv_lib_iconv=yes
11488 am_cv_func_iconv=yes
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11494 rm -f conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS="$am_save_LIBS"
11500 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11501 echo "${ECHO_T}$am_cv_func_iconv" >&6
11502 if test "$am_cv_func_iconv" = yes; then
11504 cat >>confdefs.h <<\_ACEOF
11505 #define HAVE_ICONV 1
11509 if test "$am_cv_lib_iconv" = yes; then
11510 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11511 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11512 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11513 echo "${ECHO_T}$LIBICONV" >&6
11515 CPPFLAGS="$am_save_CPPFLAGS"
11522 if test "$am_cv_func_iconv" = yes; then
11523 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11524 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11525 if test "${am_cv_proto_iconv+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11536 #include <stdlib.h>
11542 #if defined(__STDC__) || defined(__cplusplus)
11543 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11560 grep -v '^ *+' conftest.er1 >conftest.err
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -z "$ac_c_werror_flag"
11566 || test ! -s conftest.err'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 am_cv_proto_iconv_arg1=""
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 am_cv_proto_iconv_arg1="const"
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11589 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11590 echo "$as_me:$LINENO: result: ${ac_t:-
11591 }$am_cv_proto_iconv" >&5
11592 echo "${ECHO_T}${ac_t:-
11593 }$am_cv_proto_iconv" >&6
11595 cat >>confdefs.h <<_ACEOF
11596 #define ICONV_CONST $am_cv_proto_iconv_arg1
11602 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11603 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11604 if test "${am_cv_langinfo_codeset+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #include <langinfo.h>
11617 char* cs = nl_langinfo(CODESET);
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624 (eval $ac_link) 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -z "$ac_c_werror_flag"
11632 || test ! -s conftest.err'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 am_cv_langinfo_codeset=yes
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 am_cv_langinfo_codeset=no
11651 rm -f conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11655 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11656 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11657 if test $am_cv_langinfo_codeset = yes; then
11659 cat >>confdefs.h <<\_ACEOF
11660 #define HAVE_LANGINFO_CODESET 1
11665 if test $ac_cv_header_locale_h = yes; then
11667 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11668 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11669 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 #include <locale.h>
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689 (eval $ac_link) 2>conftest.er1
11691 grep -v '^ *+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag"
11697 || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest$ac_exeext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 gt_cv_val_LC_MESSAGES=yes
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 gt_cv_val_LC_MESSAGES=no
11716 rm -f conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11719 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11720 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11721 if test $gt_cv_val_LC_MESSAGES = yes; then
11723 cat >>confdefs.h <<\_ACEOF
11724 #define HAVE_LC_MESSAGES 1
11731 if test -n "$INTL_MACOSX_LIBS"; then
11732 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11735 for ac_prog in bison
11737 # Extract the first word of "$ac_prog", so it can be a program name with args.
11738 set dummy $ac_prog; ac_word=$2
11739 echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 if test -n "$INTLBISON"; then
11745 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_INTLBISON="$ac_prog"
11755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 INTLBISON=$ac_cv_prog_INTLBISON
11764 if test -n "$INTLBISON"; then
11765 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11766 echo "${ECHO_T}$INTLBISON" >&6
11768 echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11772 test -n "$INTLBISON" && break
11775 if test -z "$INTLBISON"; then
11778 echo "$as_me:$LINENO: checking version of bison" >&5
11779 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11780 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11781 case $ac_prog_version in
11782 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11783 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11784 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11785 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11787 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11788 echo "${ECHO_T}$ac_prog_version" >&6
11790 if test $ac_verc_fail = yes; then
11809 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11810 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11811 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 gt_save_CPPFLAGS="$CPPFLAGS"
11815 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11816 gt_save_LIBS="$LIBS"
11817 LIBS="$LIBS -framework CoreFoundation"
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 #include <CFPreferences.h>
11828 CFPreferencesCopyAppValue(NULL, NULL)
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835 (eval $ac_link) 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag"
11843 || test ! -s conftest.err'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest$ac_exeext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 gt_cv_func_CFPreferencesCopyAppValue=yes
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 gt_cv_func_CFPreferencesCopyAppValue=no
11862 rm -f conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11864 CPPFLAGS="$gt_save_CPPFLAGS"
11865 LIBS="$gt_save_LIBS"
11867 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11868 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11869 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11876 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11877 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11878 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 gt_save_CPPFLAGS="$CPPFLAGS"
11882 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11883 gt_save_LIBS="$LIBS"
11884 LIBS="$LIBS -framework CoreFoundation"
11885 cat >conftest.$ac_ext <<_ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 #include <CFLocale.h>
11895 CFLocaleCopyCurrent();
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>conftest.er1
11904 grep -v '^ *+' conftest.er1 >conftest.err
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 gt_cv_func_CFLocaleCopyCurrent=yes
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 gt_cv_func_CFLocaleCopyCurrent=no
11929 rm -f conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931 CPPFLAGS="$gt_save_CPPFLAGS"
11932 LIBS="$gt_save_LIBS"
11934 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11935 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11936 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_CFLOCALECOPYCURRENT 1
11944 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11945 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11951 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11952 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11953 # Check whether --enable-nls or --disable-nls was given.
11954 if test "${enable_nls+set}" = set; then
11955 enableval="$enable_nls"
11960 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11961 echo "${ECHO_T}$USE_NLS" >&6
11966 BUILD_INCLUDED_LIBINTL=no
11967 USE_INCLUDED_LIBINTL=no
11973 if test "$USE_NLS" = "yes"; then
11974 gt_use_preinstalled_gnugettext=no
11976 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11977 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11979 # Check whether --with-included-gettext or --without-included-gettext was given.
11980 if test "${with_included_gettext+set}" = set; then
11981 withval="$with_included_gettext"
11982 nls_cv_force_use_gnu_gettext=$withval
11984 nls_cv_force_use_gnu_gettext=no
11986 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11987 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11989 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11990 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11997 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11998 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11999 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 cat >conftest.$ac_ext <<_ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 #include <libintl.h>
12009 extern int _nl_msg_cat_cntr;
12010 extern int *_nl_domain_bindings;
12014 bindtextdomain ("", "");
12015 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022 (eval $ac_link) 2>conftest.er1
12024 grep -v '^ *+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag"
12030 || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 gt_cv_func_gnugettext1_libc=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 gt_cv_func_gnugettext1_libc=no
12049 rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12052 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12053 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12055 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12061 acl_save_prefix="$prefix"
12062 prefix="$acl_final_prefix"
12063 acl_save_exec_prefix="$exec_prefix"
12064 exec_prefix="$acl_final_exec_prefix"
12066 eval additional_includedir=\"$includedir\"
12067 eval additional_libdir=\"$libdir\"
12069 exec_prefix="$acl_save_exec_prefix"
12070 prefix="$acl_save_prefix"
12073 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12074 if test "${with_libintl_prefix+set}" = set; then
12075 withval="$with_libintl_prefix"
12077 if test "X$withval" = "Xno"; then
12080 if test "X$withval" = "X"; then
12082 acl_save_prefix="$prefix"
12083 prefix="$acl_final_prefix"
12084 acl_save_exec_prefix="$exec_prefix"
12085 exec_prefix="$acl_final_exec_prefix"
12087 eval additional_includedir=\"$includedir\"
12088 eval additional_libdir=\"$libdir\"
12090 exec_prefix="$acl_save_exec_prefix"
12091 prefix="$acl_save_prefix"
12094 additional_includedir="$withval/include"
12095 additional_libdir="$withval/lib"
12105 names_already_handled=
12106 names_next_round='intl '
12107 while test -n "$names_next_round"; do
12108 names_this_round="$names_next_round"
12110 for name in $names_this_round; do
12112 for n in $names_already_handled; do
12113 if test "$n" = "$name"; then
12114 already_handled=yes
12118 if test -z "$already_handled"; then
12119 names_already_handled="$names_already_handled $name"
12120 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12121 eval value=\"\$HAVE_LIB$uppername\"
12122 if test -n "$value"; then
12123 if test "$value" = yes; then
12124 eval value=\"\$LIB$uppername\"
12125 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12126 eval value=\"\$LTLIB$uppername\"
12127 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12136 if test $use_additional = yes; then
12137 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12138 found_dir="$additional_libdir"
12139 found_so="$additional_libdir/lib$name.$shlibext"
12140 if test -f "$additional_libdir/lib$name.la"; then
12141 found_la="$additional_libdir/lib$name.la"
12144 if test -f "$additional_libdir/lib$name.$libext"; then
12145 found_dir="$additional_libdir"
12146 found_a="$additional_libdir/lib$name.$libext"
12147 if test -f "$additional_libdir/lib$name.la"; then
12148 found_la="$additional_libdir/lib$name.la"
12153 if test "X$found_dir" = "X"; then
12154 for x in $LDFLAGS $LTLIBINTL; do
12156 acl_save_prefix="$prefix"
12157 prefix="$acl_final_prefix"
12158 acl_save_exec_prefix="$exec_prefix"
12159 exec_prefix="$acl_final_exec_prefix"
12161 exec_prefix="$acl_save_exec_prefix"
12162 prefix="$acl_save_prefix"
12166 dir=`echo "X$x" | sed -e 's/^X-L//'`
12167 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12169 found_so="$dir/lib$name.$shlibext"
12170 if test -f "$dir/lib$name.la"; then
12171 found_la="$dir/lib$name.la"
12174 if test -f "$dir/lib$name.$libext"; then
12176 found_a="$dir/lib$name.$libext"
12177 if test -f "$dir/lib$name.la"; then
12178 found_la="$dir/lib$name.la"
12184 if test "X$found_dir" != "X"; then
12189 if test "X$found_dir" != "X"; then
12190 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12191 if test "X$found_so" != "X"; then
12192 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12193 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12196 for x in $ltrpathdirs; do
12197 if test "X$x" = "X$found_dir"; then
12202 if test -z "$haveit"; then
12203 ltrpathdirs="$ltrpathdirs $found_dir"
12205 if test "$hardcode_direct" = yes; then
12206 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12208 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12209 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12211 for x in $rpathdirs; do
12212 if test "X$x" = "X$found_dir"; then
12217 if test -z "$haveit"; then
12218 rpathdirs="$rpathdirs $found_dir"
12222 for x in $LDFLAGS $LIBINTL; do
12224 acl_save_prefix="$prefix"
12225 prefix="$acl_final_prefix"
12226 acl_save_exec_prefix="$exec_prefix"
12227 exec_prefix="$acl_final_exec_prefix"
12229 exec_prefix="$acl_save_exec_prefix"
12230 prefix="$acl_save_prefix"
12232 if test "X$x" = "X-L$found_dir"; then
12237 if test -z "$haveit"; then
12238 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12240 if test "$hardcode_minus_L" != no; then
12241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12243 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12249 if test "X$found_a" != "X"; then
12250 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12252 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12255 additional_includedir=
12256 case "$found_dir" in
12258 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12259 additional_includedir="$basedir/include"
12262 if test "X$additional_includedir" != "X"; then
12263 if test "X$additional_includedir" != "X/usr/include"; then
12265 if test "X$additional_includedir" = "X/usr/local/include"; then
12266 if test -n "$GCC"; then
12268 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12272 if test -z "$haveit"; then
12273 for x in $CPPFLAGS $INCINTL; do
12275 acl_save_prefix="$prefix"
12276 prefix="$acl_final_prefix"
12277 acl_save_exec_prefix="$exec_prefix"
12278 exec_prefix="$acl_final_exec_prefix"
12280 exec_prefix="$acl_save_exec_prefix"
12281 prefix="$acl_save_prefix"
12283 if test "X$x" = "X-I$additional_includedir"; then
12288 if test -z "$haveit"; then
12289 if test -d "$additional_includedir"; then
12290 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12296 if test -n "$found_la"; then
12297 save_libdir="$libdir"
12298 case "$found_la" in
12299 */* | *\\*) . "$found_la" ;;
12300 *) . "./$found_la" ;;
12302 libdir="$save_libdir"
12303 for dep in $dependency_libs; do
12306 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12307 if test "X$additional_libdir" != "X/usr/lib"; then
12309 if test "X$additional_libdir" = "X/usr/local/lib"; then
12310 if test -n "$GCC"; then
12312 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12316 if test -z "$haveit"; then
12318 for x in $LDFLAGS $LIBINTL; do
12320 acl_save_prefix="$prefix"
12321 prefix="$acl_final_prefix"
12322 acl_save_exec_prefix="$exec_prefix"
12323 exec_prefix="$acl_final_exec_prefix"
12325 exec_prefix="$acl_save_exec_prefix"
12326 prefix="$acl_save_prefix"
12328 if test "X$x" = "X-L$additional_libdir"; then
12333 if test -z "$haveit"; then
12334 if test -d "$additional_libdir"; then
12335 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12339 for x in $LDFLAGS $LTLIBINTL; do
12341 acl_save_prefix="$prefix"
12342 prefix="$acl_final_prefix"
12343 acl_save_exec_prefix="$exec_prefix"
12344 exec_prefix="$acl_final_exec_prefix"
12346 exec_prefix="$acl_save_exec_prefix"
12347 prefix="$acl_save_prefix"
12349 if test "X$x" = "X-L$additional_libdir"; then
12354 if test -z "$haveit"; then
12355 if test -d "$additional_libdir"; then
12356 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12363 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12364 if test "$enable_rpath" != no; then
12366 for x in $rpathdirs; do
12367 if test "X$x" = "X$dir"; then
12372 if test -z "$haveit"; then
12373 rpathdirs="$rpathdirs $dir"
12376 for x in $ltrpathdirs; do
12377 if test "X$x" = "X$dir"; then
12382 if test -z "$haveit"; then
12383 ltrpathdirs="$ltrpathdirs $dir"
12388 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12391 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12394 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12395 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12401 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12402 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12408 if test "X$rpathdirs" != "X"; then
12409 if test -n "$hardcode_libdir_separator"; then
12411 for found_dir in $rpathdirs; do
12412 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12414 acl_save_libdir="$libdir"
12416 eval flag=\"$hardcode_libdir_flag_spec\"
12417 libdir="$acl_save_libdir"
12418 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12420 for found_dir in $rpathdirs; do
12421 acl_save_libdir="$libdir"
12422 libdir="$found_dir"
12423 eval flag=\"$hardcode_libdir_flag_spec\"
12424 libdir="$acl_save_libdir"
12425 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12429 if test "X$ltrpathdirs" != "X"; then
12430 for found_dir in $ltrpathdirs; do
12431 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12435 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12436 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12437 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 gt_save_CPPFLAGS="$CPPFLAGS"
12441 CPPFLAGS="$CPPFLAGS $INCINTL"
12442 gt_save_LIBS="$LIBS"
12443 LIBS="$LIBS $LIBINTL"
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <libintl.h>
12451 extern int _nl_msg_cat_cntr;
12456 const char *_nl_expand_alias (const char *);
12460 bindtextdomain ("", "");
12461 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 gt_cv_func_gnugettext1_libintl=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 gt_cv_func_gnugettext1_libintl=no
12495 rm -f conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12498 LIBS="$LIBS $LIBICONV"
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #include <libintl.h>
12506 extern int _nl_msg_cat_cntr;
12511 const char *_nl_expand_alias (const char *);
12515 bindtextdomain ("", "");
12516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag"
12531 || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 LIBINTL="$LIBINTL $LIBICONV"
12544 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12545 gt_cv_func_gnugettext1_libintl=yes
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 CPPFLAGS="$gt_save_CPPFLAGS"
12556 LIBS="$gt_save_LIBS"
12558 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12559 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12562 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12563 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12564 && test "$PACKAGE" != gettext-runtime \
12565 && test "$PACKAGE" != gettext-tools; }; then
12566 gt_use_preinstalled_gnugettext=yes
12574 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12575 nls_cv_use_gnu_gettext=yes
12579 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12580 BUILD_INCLUDED_LIBINTL=yes
12581 USE_INCLUDED_LIBINTL=yes
12582 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12583 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12584 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12588 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12589 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12594 if test -n "$INTL_MACOSX_LIBS"; then
12595 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12596 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12597 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12598 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12602 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12603 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12605 cat >>confdefs.h <<\_ACEOF
12606 #define ENABLE_NLS 1
12614 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12615 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12616 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12617 echo "${ECHO_T}$USE_NLS" >&6
12618 if test "$USE_NLS" = "yes"; then
12619 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12620 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12621 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12622 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12623 gt_source="external libintl"
12628 gt_source="included intl directory"
12630 echo "$as_me:$LINENO: result: $gt_source" >&5
12631 echo "${ECHO_T}$gt_source" >&6
12634 if test "$USE_NLS" = "yes"; then
12636 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12637 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12638 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12639 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12640 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12641 echo "${ECHO_T}$LIBINTL" >&6
12643 for element in $INCINTL; do
12645 for x in $CPPFLAGS; do
12647 acl_save_prefix="$prefix"
12648 prefix="$acl_final_prefix"
12649 acl_save_exec_prefix="$exec_prefix"
12650 exec_prefix="$acl_final_exec_prefix"
12652 exec_prefix="$acl_save_exec_prefix"
12653 prefix="$acl_save_prefix"
12655 if test "X$x" = "X$element"; then
12660 if test -z "$haveit"; then
12661 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_GETTEXT 1
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_DCGETTEXT 1
12683 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12684 BUILD_INCLUDED_LIBINTL=yes
12691 nls_cv_header_intl=
12692 nls_cv_header_libgt=
12704 if test "$USE_INCLUDED_LIBINTL" = yes; then
12705 INTLOBJS="\$(GETTOBJS)"
12709 INTL_LIBTOOL_SUFFIX_PREFIX=
12713 INTLLIBS="$LIBINTL"
12726 support_postgresql=no
12727 support_smartalloc=yes
12728 support_readline=yes
12731 support_wx_console=no
12735 support_static_tools=no
12736 support_static_fd=no
12737 support_static_sd=no
12738 support_static_dir=no
12739 support_static_cons=no
12741 build_client_only=no
12749 # -------------------------------------------
12750 # gnome (default off)
12751 # -------------------------------------------
12752 # Check whether --enable-gnome or --disable-gnome was given.
12753 if test "${enable_gnome+set}" = set; then
12754 enableval="$enable_gnome"
12755 if test x$enableval = xyes; then
12761 if test x$support_gnome = xyes; then
12762 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12764 if test $pkg = 0; then
12765 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12766 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12767 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12768 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12773 GNOME_DIR=src/gnome2-console
12774 gnome_version="Version 2.x"
12776 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12777 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12778 { (exit 1); exit 1; }; }
12784 # -------------------------------------------
12785 # wx-console (default off)
12786 # -------------------------------------------
12787 # Check whether --enable-wx-console or --disable-wx-console was given.
12788 if test "${enable_wx_console+set}" = set; then
12789 enableval="$enable_wx_console"
12790 if test x$enableval = xyes; then
12791 support_wx_console=yes
12796 if test x$support_wx_console = xyes; then
12797 abc=`$WXCONFIG $WXFLAGS --cppflags`
12799 if test $pkg = 0; then
12800 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12801 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12802 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12806 WX_DIR=src/wx-console
12809 echo "wx-config program not found. wx-console disabled."
12811 support_wx_console=no
12817 # -------------------------------------------
12818 # tray-monitor (default off)
12819 # -------------------------------------------
12820 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12821 if test "${enable_tray_monitor+set}" = set; then
12822 enableval="$enable_tray_monitor"
12823 if test x$enableval = xyes; then
12824 support_tray_monitor=yes
12829 if test x$support_tray_monitor = xyes; then
12830 abc=`$PKGCONFIG --exists gtk+-2.0`
12832 if test $pkg = 0; then
12833 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12834 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12837 TRAY_MONITOR_DIR=src/tray-monitor
12838 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12840 if test $pkg = 0; then
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_GTK_2_4 1
12850 # -------------------------------------------
12851 # smartalloc (default off)
12852 # -------------------------------------------
12853 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12854 if test "${enable_smartalloc+set}" = set; then
12855 enableval="$enable_smartalloc"
12856 if test x$enableval = xno; then
12857 support_smartalloc=no
12861 if test x$support_smartalloc = xyes; then
12862 cat >>confdefs.h <<\_ACEOF
12863 #define SMARTALLOC 1
12868 # -------------------------------------------
12869 # static-tools (default off)
12870 # -------------------------------------------
12871 # Check whether --enable-static-tools or --disable-static-tools was given.
12872 if test "${enable_static_tools+set}" = set; then
12873 enableval="$enable_static_tools"
12874 if test x$enableval = xyes; then
12875 support_static_tools=yes
12880 if test x$support_static_tools = xyes; then
12881 TTOOL_LDFLAGS="-static"
12885 # -------------------------------------------
12886 # static-fd (default off)
12887 # -------------------------------------------
12888 # Check whether --enable-static-fd or --disable-static-fd was given.
12889 if test "${enable_static_fd+set}" = set; then
12890 enableval="$enable_static_fd"
12891 if test x$enableval = xyes; then
12892 support_static_fd=yes
12897 if test x$support_static_fd = xyes; then
12898 STATIC_FD="static-bacula-fd"
12902 # -------------------------------------------
12903 # static-sd (default off)
12904 # -------------------------------------------
12905 # Check whether --enable-static-sd or --disable-static-sd was given.
12906 if test "${enable_static_sd+set}" = set; then
12907 enableval="$enable_static_sd"
12908 if test x$enableval = xyes; then
12909 support_static_sd=yes
12914 if test x$support_static_sd = xyes; then
12915 STATIC_SD="static-bacula-sd"
12919 # -------------------------------------------
12920 # static-dir (default off)
12921 # -------------------------------------------
12922 # Check whether --enable-static-dir or --disable-static-dir was given.
12923 if test "${enable_static_dir+set}" = set; then
12924 enableval="$enable_static_dir"
12925 if test x$enableval = xyes; then
12926 support_static_dir=yes
12931 if test x$support_static_dir = xyes; then
12932 STATIC_DIR="static-bacula-dir"
12936 # -------------------------------------------
12937 # static-cons (default off)
12938 # -------------------------------------------
12939 # Check whether --enable-static-cons or --disable-static-cons was given.
12940 if test "${enable_static_cons+set}" = set; then
12941 enableval="$enable_static_cons"
12942 if test x$enableval = xyes; then
12943 support_static_cons=yes
12950 if test x$support_static_cons = xyes; then
12951 STATIC_CONS="static-bconsole"
12952 STATIC_GNOME_CONS="static-gnome-console"
12953 STATIC_WX_CONS="static-wx-console"
12959 # -------------------------------------------
12960 # client_only (default off)
12961 # -------------------------------------------
12962 # Check whether --enable-client-only or --disable-client-only was given.
12963 if test "${enable_client_only+set}" = set; then
12964 enableval="$enable_client_only"
12965 if test x$enableval = xyes; then
12966 build_client_only=yes
12971 if test x$build_client_only = xno; then
12978 # -------------------------------------------
12979 # director (default on)
12980 # -------------------------------------------
12981 # Check whether --enable-build-dird or --disable-build-dird was given.
12982 if test "${enable_build_dird+set}" = set; then
12983 enableval="$enable_build_dird"
12984 if test x$enableval = xno; then
12988 if test x$build_dird = xyes; then
12989 DIRD_DIR="src/dird"
12990 DIR_TOOLS="DIRTOOLS"
12993 DIR_TOOLS="NODIRTOOLS"
12998 # -------------------------------------------
12999 # stored (default on)
13000 # -------------------------------------------
13001 # Check whether --enable-build-stored or --disable-build-stored was given.
13002 if test "${enable_build_stored+set}" = set; then
13003 enableval="$enable_build_stored"
13004 if test x$enableval = xno; then
13008 if test x$build_stored = xyes; then
13009 STORED_DIR="src/stored"
13015 # ---------------------------------------------------
13016 # Check for conio (Bacula readline substitute)(
13017 # ---------------------------------------------------
13018 # this allows you to turn it completely off
13019 # Check whether --enable-conio or --disable-conio was given.
13020 if test "${enable_conio+set}" = set; then
13021 enableval="$enable_conio"
13022 if test x$enableval = xno; then
13028 if test x$support_conio = xyes; then
13029 if test "${ac_cv_header_termcap_h+set}" = set; then
13030 echo "$as_me:$LINENO: checking for termcap.h" >&5
13031 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13032 if test "${ac_cv_header_termcap_h+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13036 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13038 # Is the header compilable?
13039 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13040 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13041 cat >conftest.$ac_ext <<_ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 $ac_includes_default
13048 #include <termcap.h>
13050 rm -f conftest.$ac_objext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>conftest.er1
13054 grep -v '^ *+' conftest.er1 >conftest.err
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_c_werror_flag"
13060 || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_header_compiler=yes
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13077 ac_header_compiler=no
13079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13081 echo "${ECHO_T}$ac_header_compiler" >&6
13083 # Is the header present?
13084 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13085 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13086 cat >conftest.$ac_ext <<_ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 #include <termcap.h>
13094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } >/dev/null; then
13102 if test -s conftest.err; then
13103 ac_cpp_err=$ac_c_preproc_warn_flag
13104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13111 if test -z "$ac_cpp_err"; then
13112 ac_header_preproc=yes
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13117 ac_header_preproc=no
13119 rm -f conftest.err conftest.$ac_ext
13120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13121 echo "${ECHO_T}$ac_header_preproc" >&6
13123 # So? What about this header?
13124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13126 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13127 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13129 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13130 ac_header_preproc=yes
13133 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13134 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13136 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13138 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13140 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13142 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13144 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13147 ## ------------------------------------------ ##
13148 ## Report this to the AC_PACKAGE_NAME lists. ##
13149 ## ------------------------------------------ ##
13152 sed "s/^/$as_me: WARNING: /" >&2
13155 echo "$as_me:$LINENO: checking for termcap.h" >&5
13156 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13157 if test "${ac_cv_header_termcap_h+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 ac_cv_header_termcap_h=$ac_header_preproc
13162 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13163 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13166 if test $ac_cv_header_termcap_h = yes; then
13167 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13168 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13169 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-ltermcap $LIBS"
13174 cat >conftest.$ac_ext <<_ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13181 /* Override any gcc2 internal prototype to avoid an error. */
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_c_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_lib_termcap_tgetent=yes
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 ac_cv_lib_termcap_tgetent=no
13225 rm -f conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13230 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13231 if test $ac_cv_lib_termcap_tgetent = yes; then
13232 CONS_LIBS="-ltermcap"
13236 support_readline=no
13238 cat >>confdefs.h <<\_ACEOF
13239 #define HAVE_CONIO 1
13244 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13245 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13246 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lncurses $LIBS"
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13258 /* Override any gcc2 internal prototype to avoid an error. */
13262 /* We use char because int might match the return type of a gcc2
13263 builtin and then its argument prototype would still apply. */
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13275 (eval $ac_link) 2>conftest.er1
13277 grep -v '^ *+' conftest.er1 >conftest.err
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag"
13283 || test ! -s conftest.err'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest$ac_exeext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 ac_cv_lib_ncurses_tgetent=yes
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13300 ac_cv_lib_ncurses_tgetent=no
13302 rm -f conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 LIBS=$ac_check_lib_save_LIBS
13306 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13307 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13308 if test $ac_cv_lib_ncurses_tgetent = yes; then
13309 CONS_LIBS="-lncurses"
13313 support_readline=no
13315 cat >>confdefs.h <<\_ACEOF
13316 #define HAVE_CONIO 1
13329 for ac_header in curses.h
13331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13333 echo "$as_me:$LINENO: checking for $ac_header" >&5
13334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13341 # Is the header compilable?
13342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13344 cat >conftest.$ac_ext <<_ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 $ac_includes_default
13351 #include <$ac_header>
13353 rm -f conftest.$ac_objext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355 (eval $ac_compile) 2>conftest.er1
13357 grep -v '^ *+' conftest.er1 >conftest.err
13359 cat conftest.err >&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } &&
13362 { ac_try='test -z "$ac_c_werror_flag"
13363 || test ! -s conftest.err'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } &&
13369 { ac_try='test -s conftest.$ac_objext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 ac_header_compiler=yes
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 ac_header_compiler=no
13382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13384 echo "${ECHO_T}$ac_header_compiler" >&6
13386 # Is the header present?
13387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13389 cat >conftest.$ac_ext <<_ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13395 #include <$ac_header>
13397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13400 grep -v '^ *+' conftest.er1 >conftest.err
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } >/dev/null; then
13405 if test -s conftest.err; then
13406 ac_cpp_err=$ac_c_preproc_warn_flag
13407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13414 if test -z "$ac_cpp_err"; then
13415 ac_header_preproc=yes
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 ac_header_preproc=no
13422 rm -f conftest.err conftest.$ac_ext
13423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13424 echo "${ECHO_T}$ac_header_preproc" >&6
13426 # So? What about this header?
13427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13433 ac_header_preproc=yes
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13450 ## ------------------------------------------ ##
13451 ## Report this to the AC_PACKAGE_NAME lists. ##
13452 ## ------------------------------------------ ##
13455 sed "s/^/$as_me: WARNING: /" >&2
13458 echo "$as_me:$LINENO: checking for $ac_header" >&5
13459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 eval "$as_ac_Header=\$ac_header_preproc"
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13470 cat >>confdefs.h <<_ACEOF
13471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13478 echo "$as_me:$LINENO: checking for term.h" >&5
13479 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13480 if test "${ac_cv_header_term_h+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 cat >conftest.$ac_ext <<_ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13490 #include <curses.h>
13496 rm -f conftest.$ac_objext
13497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13498 (eval $ac_compile) 2>conftest.er1
13500 grep -v '^ *+' conftest.er1 >conftest.err
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -z "$ac_c_werror_flag"
13506 || test ! -s conftest.err'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; } &&
13512 { ac_try='test -s conftest.$ac_objext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 ac_cv_header_term_h=yes
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13523 ac_cv_header_term_h=no
13525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13527 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13528 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13529 if test $ac_cv_header_term_h = yes; then
13530 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13531 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13532 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 ac_check_lib_save_LIBS=$LIBS
13536 LIBS="-lcurses $LIBS"
13537 cat >conftest.$ac_ext <<_ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13544 /* Override any gcc2 internal prototype to avoid an error. */
13548 /* We use char because int might match the return type of a gcc2
13549 builtin and then its argument prototype would still apply. */
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561 (eval $ac_link) 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -z "$ac_c_werror_flag"
13569 || test ! -s conftest.err'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; } &&
13575 { ac_try='test -s conftest$ac_exeext'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13581 ac_cv_lib_curses_tgetent=yes
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 ac_cv_lib_curses_tgetent=no
13588 rm -f conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590 LIBS=$ac_check_lib_save_LIBS
13592 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13593 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13594 if test $ac_cv_lib_curses_tgetent = yes; then
13595 CONS_LIBS="-lcurses"
13599 support_readline=no
13601 cat >>confdefs.h <<\_ACEOF
13602 #define HAVE_CONIO 1
13610 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13621 # ---------------------------------------------------
13622 # Check for readline support/directory (default off)
13623 # ---------------------------------------------------
13624 # this allows you to turn it completely off
13625 # Check whether --enable-readline or --disable-readline was given.
13626 if test "${enable_readline+set}" = set; then
13627 enableval="$enable_readline"
13628 if test x$enableval = xno; then
13629 support_readline=no
13635 if test x$support_readline = xyes; then
13637 # Check whether --with-readline or --without-readline was given.
13638 if test "${with_readline+set}" = set; then
13639 withval="$with_readline"
13641 case "$with_readline" in
13644 if test -f ${with_readline}/readline.h; then
13645 CONS_INC="-I${with_readline}"
13646 CONS_LDFLAGS="-L$with_readline"
13647 elif test -f ${with_readline}/include/readline/readline.h; then
13648 CONS_INC="-I${with_readline}/include/readline"
13649 CONS_LDFLAGS="-L${with_readline}/lib"
13650 with_readline="${with_readline}/include/readline"
13652 with_readline="/usr/include/readline"
13654 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13656 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13657 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13664 # Is the header compilable?
13665 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13666 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 $ac_includes_default
13674 #include <${with_readline}/readline.h>
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>conftest.er1
13680 grep -v '^ *+' conftest.er1 >conftest.err
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -z "$ac_c_werror_flag"
13686 || test ! -s conftest.err'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; } &&
13692 { ac_try='test -s conftest.$ac_objext'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_header_compiler=yes
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13703 ac_header_compiler=no
13705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13707 echo "${ECHO_T}$ac_header_compiler" >&6
13709 # Is the header present?
13710 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13711 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 #include <${with_readline}/readline.h>
13720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13723 grep -v '^ *+' conftest.er1 >conftest.err
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } >/dev/null; then
13728 if test -s conftest.err; then
13729 ac_cpp_err=$ac_c_preproc_warn_flag
13730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13737 if test -z "$ac_cpp_err"; then
13738 ac_header_preproc=yes
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 ac_header_preproc=no
13745 rm -f conftest.err conftest.$ac_ext
13746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13747 echo "${ECHO_T}$ac_header_preproc" >&6
13749 # So? What about this header?
13750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13752 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13753 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13754 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13755 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13756 ac_header_preproc=yes
13759 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13760 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13762 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13764 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13765 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13766 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13768 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13770 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13773 ## ------------------------------------------ ##
13774 ## Report this to the AC_PACKAGE_NAME lists. ##
13775 ## ------------------------------------------ ##
13778 sed "s/^/$as_me: WARNING: /" >&2
13781 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13782 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 eval "$as_ac_Header=\$ac_header_preproc"
13788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13793 cat >>confdefs.h <<\_ACEOF
13794 #define HAVE_READLINE 1
13797 CONS_LIBS="-lreadline -lhistory -ltermcap"
13802 echo "readline.h not found. readline turned off ..."
13814 # check for standard readline library
13815 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13816 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13817 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13818 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13822 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13824 # Is the header compilable?
13825 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13826 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 $ac_includes_default
13834 #include </usr/include/readline/readline.h>
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838 (eval $ac_compile) 2>conftest.er1
13840 grep -v '^ *+' conftest.er1 >conftest.err
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -z "$ac_c_werror_flag"
13846 || test ! -s conftest.err'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest.$ac_objext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858 ac_header_compiler=yes
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13863 ac_header_compiler=no
13865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13867 echo "${ECHO_T}$ac_header_compiler" >&6
13869 # Is the header present?
13870 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13871 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13872 cat >conftest.$ac_ext <<_ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 #include </usr/include/readline/readline.h>
13880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13883 grep -v '^ *+' conftest.er1 >conftest.err
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } >/dev/null; then
13888 if test -s conftest.err; then
13889 ac_cpp_err=$ac_c_preproc_warn_flag
13890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13897 if test -z "$ac_cpp_err"; then
13898 ac_header_preproc=yes
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13903 ac_header_preproc=no
13905 rm -f conftest.err conftest.$ac_ext
13906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13907 echo "${ECHO_T}$ac_header_preproc" >&6
13909 # So? What about this header?
13910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13912 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13913 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13914 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13915 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13916 ac_header_preproc=yes
13919 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13920 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
13922 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13924 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13926 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13928 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13930 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13933 ## ------------------------------------------ ##
13934 ## Report this to the AC_PACKAGE_NAME lists. ##
13935 ## ------------------------------------------ ##
13938 sed "s/^/$as_me: WARNING: /" >&2
13941 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13942 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13943 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13948 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13949 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13952 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13953 cat >>confdefs.h <<\_ACEOF
13954 #define HAVE_READLINE 1
13958 CONS_INC="-I/usr/include/readline"
13959 CONS_LIBS="-lreadline -ltermcap"
13963 # Did not find standard library, so try Bacula's default
13964 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
13967 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
13968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13974 # Is the header compilable?
13975 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
13976 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 $ac_includes_default
13984 #include <${TOP_DIR}/depkgs/readline/readline.h>
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988 (eval $ac_compile) 2>conftest.er1
13990 grep -v '^ *+' conftest.er1 >conftest.err
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag"
13996 || test ! -s conftest.err'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; } &&
14002 { ac_try='test -s conftest.$ac_objext'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14008 ac_header_compiler=yes
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_header_compiler=no
14015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14017 echo "${ECHO_T}$ac_header_compiler" >&6
14019 # Is the header present?
14020 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14021 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 #include <${TOP_DIR}/depkgs/readline/readline.h>
14030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } >/dev/null; then
14038 if test -s conftest.err; then
14039 ac_cpp_err=$ac_c_preproc_warn_flag
14040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14047 if test -z "$ac_cpp_err"; then
14048 ac_header_preproc=yes
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_header_preproc=no
14055 rm -f conftest.err conftest.$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14057 echo "${ECHO_T}$ac_header_preproc" >&6
14059 # So? What about this header?
14060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14062 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14063 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14065 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14066 ac_header_preproc=yes
14069 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14070 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14072 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14074 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14076 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14078 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14080 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14083 ## ------------------------------------------ ##
14084 ## Report this to the AC_PACKAGE_NAME lists. ##
14085 ## ------------------------------------------ ##
14088 sed "s/^/$as_me: WARNING: /" >&2
14091 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14092 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 eval "$as_ac_Header=\$ac_header_preproc"
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14103 cat >>confdefs.h <<\_ACEOF
14104 #define HAVE_READLINE 1
14108 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14109 CONS_LIBS="-lreadline -lhistory -ltermcap"
14110 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14111 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14115 echo "readline.h not found. readline turned off ..."
14141 # Minimal stuff for readline Makefile configuration
14144 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14145 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14146 if test "${ac_cv_header_stat_broken+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 cat >conftest.$ac_ext <<_ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 #include <sys/types.h>
14156 #include <sys/stat.h>
14158 #if defined(S_ISBLK) && defined(S_IFDIR)
14159 # if S_ISBLK (S_IFDIR)
14164 #if defined(S_ISBLK) && defined(S_IFCHR)
14165 # if S_ISBLK (S_IFCHR)
14170 #if defined(S_ISLNK) && defined(S_IFREG)
14171 # if S_ISLNK (S_IFREG)
14176 #if defined(S_ISSOCK) && defined(S_IFREG)
14177 # if S_ISSOCK (S_IFREG)
14183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14184 $EGREP "You lose" >/dev/null 2>&1; then
14185 ac_cv_header_stat_broken=yes
14187 ac_cv_header_stat_broken=no
14192 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14193 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14194 if test $ac_cv_header_stat_broken = yes; then
14196 cat >>confdefs.h <<\_ACEOF
14197 #define STAT_MACROS_BROKEN 1
14207 ac_header_dirent=no
14208 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14209 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14210 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14211 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 cat >conftest.$ac_ext <<_ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 #include <sys/types.h>
14233 rm -f conftest.$ac_objext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235 (eval $ac_compile) 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag"
14243 || test ! -s conftest.err'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 eval "$as_ac_Header=yes"
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 eval "$as_ac_Header=no"
14262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14267 cat >>confdefs.h <<_ACEOF
14268 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14271 ac_header_dirent=$ac_hdr; break
14275 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14276 if test $ac_header_dirent = dirent.h; then
14277 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14278 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14279 if test "${ac_cv_search_opendir+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 ac_func_search_save_LIBS=$LIBS
14283 ac_cv_search_opendir=no
14284 cat >conftest.$ac_ext <<_ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14291 /* Override any gcc2 internal prototype to avoid an error. */
14295 /* We use char because int might match the return type of a gcc2
14296 builtin and then its argument prototype would still apply. */
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14308 (eval $ac_link) 2>conftest.er1
14310 grep -v '^ *+' conftest.er1 >conftest.err
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_c_werror_flag"
14316 || test ! -s conftest.err'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest$ac_exeext'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14328 ac_cv_search_opendir="none required"
14330 echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14334 rm -f conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14336 if test "$ac_cv_search_opendir" = no; then
14337 for ac_lib in dir; do
14338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14346 /* Override any gcc2 internal prototype to avoid an error. */
14350 /* We use char because int might match the return type of a gcc2
14351 builtin and then its argument prototype would still apply. */
14361 rm -f conftest.$ac_objext conftest$ac_exeext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14363 (eval $ac_link) 2>conftest.er1
14365 grep -v '^ *+' conftest.er1 >conftest.err
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag"
14371 || test ! -s conftest.err'
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); }; } &&
14377 { ac_try='test -s conftest$ac_exeext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383 ac_cv_search_opendir="-l$ac_lib"
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14390 rm -f conftest.err conftest.$ac_objext \
14391 conftest$ac_exeext conftest.$ac_ext
14394 LIBS=$ac_func_search_save_LIBS
14396 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14397 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14398 if test "$ac_cv_search_opendir" != no; then
14399 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14404 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14405 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14406 if test "${ac_cv_search_opendir+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 ac_func_search_save_LIBS=$LIBS
14410 ac_cv_search_opendir=no
14411 cat >conftest.$ac_ext <<_ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h. */
14418 /* Override any gcc2 internal prototype to avoid an error. */
14422 /* We use char because int might match the return type of a gcc2
14423 builtin and then its argument prototype would still apply. */
14433 rm -f conftest.$ac_objext conftest$ac_exeext
14434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14435 (eval $ac_link) 2>conftest.er1
14437 grep -v '^ *+' conftest.er1 >conftest.err
14439 cat conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } &&
14442 { ac_try='test -z "$ac_c_werror_flag"
14443 || test ! -s conftest.err'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; } &&
14449 { ac_try='test -s conftest$ac_exeext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_cv_search_opendir="none required"
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14461 rm -f conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14463 if test "$ac_cv_search_opendir" = no; then
14464 for ac_lib in x; do
14465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14466 cat >conftest.$ac_ext <<_ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14473 /* Override any gcc2 internal prototype to avoid an error. */
14477 /* We use char because int might match the return type of a gcc2
14478 builtin and then its argument prototype would still apply. */
14488 rm -f conftest.$ac_objext conftest$ac_exeext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14490 (eval $ac_link) 2>conftest.er1
14492 grep -v '^ *+' conftest.er1 >conftest.err
14494 cat conftest.err >&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } &&
14497 { ac_try='test -z "$ac_c_werror_flag"
14498 || test ! -s conftest.err'
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); }; } &&
14504 { ac_try='test -s conftest$ac_exeext'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 ac_cv_search_opendir="-l$ac_lib"
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14517 rm -f conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
14521 LIBS=$ac_func_search_save_LIBS
14523 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14524 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14525 if test "$ac_cv_search_opendir" != no; then
14526 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14539 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14542 echo "$as_me:$LINENO: checking for $ac_func" >&5
14543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14544 if eval "test \"\${$as_ac_var+set}\" = set"; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 cat >conftest.$ac_ext <<_ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14555 #define $ac_func innocuous_$ac_func
14557 /* System header to define __stub macros and hopefully few prototypes,
14558 which can conflict with char $ac_func (); below.
14559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14560 <limits.h> exists even on freestanding compilers. */
14563 # include <limits.h>
14565 # include <assert.h>
14570 /* Override any gcc2 internal prototype to avoid an error. */
14575 /* We use char because int might match the return type of a gcc2
14576 builtin and then its argument prototype would still apply. */
14578 /* The GNU C library defines this for functions which it implements
14579 to always fail with ENOSYS. Some functions are actually named
14580 something starting with __ and the normal name is an alias. */
14581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14584 char (*f) () = $ac_func;
14593 return f != $ac_func;
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>conftest.er1
14602 grep -v '^ *+' conftest.er1 >conftest.err
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag"
14608 || test ! -s conftest.err'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } &&
14614 { ac_try='test -s conftest$ac_exeext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 eval "$as_ac_var=yes"
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 eval "$as_ac_var=no"
14627 rm -f conftest.err conftest.$ac_objext \
14628 conftest$ac_exeext conftest.$ac_ext
14630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14632 if test `eval echo '${'$as_ac_var'}'` = yes; then
14633 cat >>confdefs.h <<_ACEOF
14634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14642 for ac_func in nanosleep nl_langinfo
14644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14645 echo "$as_me:$LINENO: checking for $ac_func" >&5
14646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14647 if eval "test \"\${$as_ac_var+set}\" = set"; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 cat >conftest.$ac_ext <<_ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14658 #define $ac_func innocuous_$ac_func
14660 /* System header to define __stub macros and hopefully few prototypes,
14661 which can conflict with char $ac_func (); below.
14662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14663 <limits.h> exists even on freestanding compilers. */
14666 # include <limits.h>
14668 # include <assert.h>
14673 /* Override any gcc2 internal prototype to avoid an error. */
14678 /* We use char because int might match the return type of a gcc2
14679 builtin and then its argument prototype would still apply. */
14681 /* The GNU C library defines this for functions which it implements
14682 to always fail with ENOSYS. Some functions are actually named
14683 something starting with __ and the normal name is an alias. */
14684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14687 char (*f) () = $ac_func;
14696 return f != $ac_func;
14701 rm -f conftest.$ac_objext conftest$ac_exeext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14703 (eval $ac_link) 2>conftest.er1
14705 grep -v '^ *+' conftest.er1 >conftest.err
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest$ac_exeext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 eval "$as_ac_var=yes"
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 eval "$as_ac_var=no"
14730 rm -f conftest.err conftest.$ac_objext \
14731 conftest$ac_exeext conftest.$ac_ext
14733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14735 if test `eval echo '${'$as_ac_var'}'` = yes; then
14736 cat >>confdefs.h <<_ACEOF
14737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14744 for ac_header in varargs.h
14746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14748 echo "$as_me:$LINENO: checking for $ac_header" >&5
14749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14756 # Is the header compilable?
14757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14759 cat >conftest.$ac_ext <<_ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14765 $ac_includes_default
14766 #include <$ac_header>
14768 rm -f conftest.$ac_objext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14770 (eval $ac_compile) 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag"
14778 || test ! -s conftest.err'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest.$ac_objext'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
14790 ac_header_compiler=yes
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_header_compiler=no
14797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14799 echo "${ECHO_T}$ac_header_compiler" >&6
14801 # Is the header present?
14802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14804 cat >conftest.$ac_ext <<_ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 #include <$ac_header>
14812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14815 grep -v '^ *+' conftest.er1 >conftest.err
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } >/dev/null; then
14820 if test -s conftest.err; then
14821 ac_cpp_err=$ac_c_preproc_warn_flag
14822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14829 if test -z "$ac_cpp_err"; then
14830 ac_header_preproc=yes
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 ac_header_preproc=no
14837 rm -f conftest.err conftest.$ac_ext
14838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14839 echo "${ECHO_T}$ac_header_preproc" >&6
14841 # So? What about this header?
14842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14848 ac_header_preproc=yes
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14865 ## ------------------------------------------ ##
14866 ## Report this to the AC_PACKAGE_NAME lists. ##
14867 ## ------------------------------------------ ##
14870 sed "s/^/$as_me: WARNING: /" >&2
14873 echo "$as_me:$LINENO: checking for $ac_header" >&5
14874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 eval "$as_ac_Header=\$ac_header_preproc"
14880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14885 cat >>confdefs.h <<_ACEOF
14886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14894 # End of readline/conio stuff
14895 # -----------------------------------------------------------------------
14897 # -----------------------------------------------------------------------
14898 # Check for Python support
14900 echo "$as_me:$LINENO: checking for Python support" >&5
14901 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14903 # Check whether --with-python or --without-python was given.
14904 if test "${with_python+set}" = set; then
14905 withval="$with_python"
14909 if test "$withval" != "no"; then
14910 if test "$withval" = "yes"; then
14911 for python_root in /usr /usr/local; do
14912 if test -f $python_root/include/python2.2/Python.h; then
14913 PYTHON_INCDIR=-I$python_root/include/python2.2
14914 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14916 elif test -f $python_root/include/python2.3/Python.h; then
14917 PYTHON_INCDIR=-I$python_root/include/python2.3
14918 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14920 elif test -f $python_root/include/python2.4/Python.h; then
14921 PYTHON_INCDIR=-I$python_root/include/python2.4
14922 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14926 if test x$PYTHON_INCDIR = x; then
14927 if test -f $prefix/include/Python.h; then
14928 PYTHON_INCDIR=-I$prefix/include
14929 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14931 echo "$as_me:$LINENO: result: no" >&5
14932 echo "${ECHO_T}no" >&6
14933 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14934 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14935 { (exit 1); exit 1; }; }
14939 if test -f $withval/Python.h; then
14940 PYTHON_INCDIR=-I$withval
14941 PYTHON_LIBS="-L$withval/config -lpython"
14942 elif test -f $withval/include/Python.h; then
14943 PYTHON_INCDIR=-I$withval/include
14944 PYTHON_LIBS="-L$withval/lib/config -lpython"
14945 elif test -f $withval/include/python/Python.h; then
14946 PYTHON_INCDIR=-I$withval/include/python
14947 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
14949 echo "$as_me:$LINENO: result: no" >&5
14950 echo "${ECHO_T}no" >&6
14951 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
14952 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
14953 { (exit 1); exit 1; }; }
14956 cat >>confdefs.h <<\_ACEOF
14957 #define HAVE_PYTHON 1
14960 echo "$as_me:$LINENO: result: yes" >&5
14961 echo "${ECHO_T}yes" >&6
14963 { echo "$as_me:$LINENO: checking for more Python libs" >&5
14964 echo "$as_me: checking for more Python libs" >&6;}
14965 saved_LIBS="$LIBS"; LIBS=
14966 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
14967 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
14968 if test "${ac_cv_search_shm_open+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 ac_func_search_save_LIBS=$LIBS
14972 ac_cv_search_shm_open=no
14973 cat >conftest.$ac_ext <<_ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14980 /* Override any gcc2 internal prototype to avoid an error. */
14984 /* We use char because int might match the return type of a gcc2
14985 builtin and then its argument prototype would still apply. */
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14997 (eval $ac_link) 2>conftest.er1
14999 grep -v '^ *+' conftest.er1 >conftest.err
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest$ac_exeext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_cv_search_shm_open="none required"
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15023 rm -f conftest.err conftest.$ac_objext \
15024 conftest$ac_exeext conftest.$ac_ext
15025 if test "$ac_cv_search_shm_open" = no; then
15026 for ac_lib in rt; do
15027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15035 /* Override any gcc2 internal prototype to avoid an error. */
15039 /* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15052 (eval $ac_link) 2>conftest.er1
15054 grep -v '^ *+' conftest.er1 >conftest.err
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try='test -z "$ac_c_werror_flag"
15060 || test ! -s conftest.err'
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; } &&
15066 { ac_try='test -s conftest$ac_exeext'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072 ac_cv_search_shm_open="-l$ac_lib"
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15079 rm -f conftest.err conftest.$ac_objext \
15080 conftest$ac_exeext conftest.$ac_ext
15083 LIBS=$ac_func_search_save_LIBS
15085 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15086 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15087 if test "$ac_cv_search_shm_open" != no; then
15088 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15093 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15094 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15095 if test "${ac_cv_lib_util_openpty+set}" = set; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 ac_check_lib_save_LIBS=$LIBS
15099 LIBS="-lutil $LIBS"
15100 cat >conftest.$ac_ext <<_ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15107 /* Override any gcc2 internal prototype to avoid an error. */
15111 /* We use char because int might match the return type of a gcc2
15112 builtin and then its argument prototype would still apply. */
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15124 (eval $ac_link) 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -z "$ac_c_werror_flag"
15132 || test ! -s conftest.err'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try='test -s conftest$ac_exeext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15144 ac_cv_lib_util_openpty=yes
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15149 ac_cv_lib_util_openpty=no
15151 rm -f conftest.err conftest.$ac_objext \
15152 conftest$ac_exeext conftest.$ac_ext
15153 LIBS=$ac_check_lib_save_LIBS
15155 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15156 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15157 if test $ac_cv_lib_util_openpty = yes; then
15158 cat >>confdefs.h <<_ACEOF
15159 #define HAVE_LIBUTIL 1
15162 LIBS="-lutil $LIBS"
15166 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15169 echo "$as_me:$LINENO: result: no" >&5
15170 echo "${ECHO_T}no" >&6
15175 echo "$as_me:$LINENO: result: no" >&5
15176 echo "${ECHO_T}no" >&6
15184 # Find where sockets are (especially for Solaris)
15185 # Do this before the TCP Wrappers test since tcp wrappers
15186 # uses the socket library and some linkers are stupid.
15188 echo "$as_me:$LINENO: checking for socket" >&5
15189 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15190 if test "${ac_cv_func_socket+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 cat >conftest.$ac_ext <<_ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15201 #define socket innocuous_socket
15203 /* System header to define __stub macros and hopefully few prototypes,
15204 which can conflict with char socket (); below.
15205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15206 <limits.h> exists even on freestanding compilers. */
15209 # include <limits.h>
15211 # include <assert.h>
15216 /* Override any gcc2 internal prototype to avoid an error. */
15221 /* We use char because int might match the return type of a gcc2
15222 builtin and then its argument prototype would still apply. */
15224 /* The GNU C library defines this for functions which it implements
15225 to always fail with ENOSYS. Some functions are actually named
15226 something starting with __ and the normal name is an alias. */
15227 #if defined (__stub_socket) || defined (__stub___socket)
15230 char (*f) () = socket;
15239 return f != socket;
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15246 (eval $ac_link) 2>conftest.er1
15248 grep -v '^ *+' conftest.er1 >conftest.err
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try='test -z "$ac_c_werror_flag"
15254 || test ! -s conftest.err'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try='test -s conftest$ac_exeext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_cv_func_socket=yes
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15271 ac_cv_func_socket=no
15273 rm -f conftest.err conftest.$ac_objext \
15274 conftest$ac_exeext conftest.$ac_ext
15276 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15277 echo "${ECHO_T}$ac_cv_func_socket" >&6
15278 if test $ac_cv_func_socket = yes; then
15279 echo "$as_me:$LINENO: result: using libc's socket" >&5
15280 echo "${ECHO_T}using libc's socket" >&6
15283 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15284 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15285 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 ac_check_lib_save_LIBS=$LIBS
15289 LIBS="-lxnet $LIBS"
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15297 /* Override any gcc2 internal prototype to avoid an error. */
15301 /* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest$ac_exeext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_lib_xnet_socket=yes
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_cv_lib_xnet_socket=no
15341 rm -f conftest.err conftest.$ac_objext \
15342 conftest$ac_exeext conftest.$ac_ext
15343 LIBS=$ac_check_lib_save_LIBS
15345 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15346 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15347 if test $ac_cv_lib_xnet_socket = yes; then
15348 cat >>confdefs.h <<_ACEOF
15349 #define HAVE_LIBXNET 1
15352 LIBS="-lxnet $LIBS"
15357 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15358 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15359 if test "${ac_cv_lib_socket_socket+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 ac_check_lib_save_LIBS=$LIBS
15363 LIBS="-lsocket $LIBS"
15364 cat >conftest.$ac_ext <<_ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15371 /* Override any gcc2 internal prototype to avoid an error. */
15375 /* We use char because int might match the return type of a gcc2
15376 builtin and then its argument prototype would still apply. */
15386 rm -f conftest.$ac_objext conftest$ac_exeext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388 (eval $ac_link) 2>conftest.er1
15390 grep -v '^ *+' conftest.er1 >conftest.err
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try='test -z "$ac_c_werror_flag"
15396 || test ! -s conftest.err'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest$ac_exeext'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_cv_lib_socket_socket=yes
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_cv_lib_socket_socket=no
15415 rm -f conftest.err conftest.$ac_objext \
15416 conftest$ac_exeext conftest.$ac_ext
15417 LIBS=$ac_check_lib_save_LIBS
15419 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15420 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15421 if test $ac_cv_lib_socket_socket = yes; then
15422 cat >>confdefs.h <<_ACEOF
15423 #define HAVE_LIBSOCKET 1
15426 LIBS="-lsocket $LIBS"
15431 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15432 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15433 if test "${ac_cv_lib_inet_socket+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 ac_check_lib_save_LIBS=$LIBS
15437 LIBS="-linet $LIBS"
15438 cat >conftest.$ac_ext <<_ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15445 /* Override any gcc2 internal prototype to avoid an error. */
15449 /* We use char because int might match the return type of a gcc2
15450 builtin and then its argument prototype would still apply. */
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462 (eval $ac_link) 2>conftest.er1
15464 grep -v '^ *+' conftest.er1 >conftest.err
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } &&
15469 { ac_try='test -z "$ac_c_werror_flag"
15470 || test ! -s conftest.err'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; } &&
15476 { ac_try='test -s conftest$ac_exeext'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 ac_cv_lib_inet_socket=yes
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_cv_lib_inet_socket=no
15489 rm -f conftest.err conftest.$ac_objext \
15490 conftest$ac_exeext conftest.$ac_ext
15491 LIBS=$ac_check_lib_save_LIBS
15493 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15494 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15495 if test $ac_cv_lib_inet_socket = yes; then
15496 cat >>confdefs.h <<_ACEOF
15497 #define HAVE_LIBINET 1
15500 LIBS="-linet $LIBS"
15508 # -----------------------------------------------------------
15509 # Check whether user wants TCP wrappers support (default off)
15510 # -----------------------------------------------------------
15514 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15515 if test "${with_tcp_wrappers+set}" = set; then
15516 withval="$with_tcp_wrappers"
15518 if test "x$withval" != "xno" ; then
15520 LIBS="$saved_LIBS -lwrap"
15521 echo "$as_me:$LINENO: checking for libwrap" >&5
15522 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15523 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15524 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15525 if test "${ac_cv_search_nanosleep+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 ac_func_search_save_LIBS=$LIBS
15529 ac_cv_search_nanosleep=no
15530 cat >conftest.$ac_ext <<_ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15537 /* Override any gcc2 internal prototype to avoid an error. */
15541 /* We use char because int might match the return type of a gcc2
15542 builtin and then its argument prototype would still apply. */
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15554 (eval $ac_link) 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag"
15562 || test ! -s conftest.err'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest$ac_exeext'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_cv_search_nanosleep="none required"
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15580 rm -f conftest.err conftest.$ac_objext \
15581 conftest$ac_exeext conftest.$ac_ext
15582 if test "$ac_cv_search_nanosleep" = no; then
15583 for ac_lib in rt; do
15584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15585 cat >conftest.$ac_ext <<_ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15592 /* Override any gcc2 internal prototype to avoid an error. */
15596 /* We use char because int might match the return type of a gcc2
15597 builtin and then its argument prototype would still apply. */
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609 (eval $ac_link) 2>conftest.er1
15611 grep -v '^ *+' conftest.er1 >conftest.err
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -z "$ac_c_werror_flag"
15617 || test ! -s conftest.err'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; } &&
15623 { ac_try='test -s conftest$ac_exeext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_search_nanosleep="-l$ac_lib"
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15636 rm -f conftest.err conftest.$ac_objext \
15637 conftest$ac_exeext conftest.$ac_ext
15640 LIBS=$ac_func_search_save_LIBS
15642 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15643 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15644 if test "$ac_cv_search_nanosleep" != no; then
15645 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15649 cat >conftest.$ac_ext <<_ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 #include <sys/types.h>
15657 int deny_severity = 0;
15658 int allow_severity = 0;
15659 struct request_info *req;
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15670 (eval $ac_link) 2>conftest.er1
15672 grep -v '^ *+' conftest.er1 >conftest.err
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag"
15678 || test ! -s conftest.err'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest$ac_exeext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15691 echo "$as_me:$LINENO: result: yes" >&5
15692 echo "${ECHO_T}yes" >&6
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_LIBWRAP 1
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15706 LIBS="$saved_LIBS -lwrap -lnsl"
15707 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
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
15764 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15765 echo "$as_me: error: *** libwrap missing" >&2;}
15766 { (exit 1); exit 1; }; }
15769 rm -f conftest.err conftest.$ac_objext \
15770 conftest$ac_exeext conftest.$ac_ext
15773 rm -f conftest.err conftest.$ac_objext \
15774 conftest$ac_exeext conftest.$ac_ext
15780 # -----------------------------------------------------------
15781 # Check whether OpenSSL is available
15782 # -----------------------------------------------------------
15783 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15784 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15786 # Check whether --with-openssl or --without-openssl was given.
15787 if test "${with_openssl+set}" = set; then
15788 withval="$with_openssl"
15789 with_openssl_directory=${withval}
15792 if test "x$with_openssl_directory" != "x"; then
15793 OPENSSL_LIBS="-lssl -lcrypto"
15796 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15797 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15798 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15802 saved_CFLAGS="$CFLAGS"
15803 LIBS="$saved_LIBS $OPENSSL_LIBS"
15804 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15806 cat >conftest.$ac_ext <<_ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 #include <openssl/ssl.h>
15816 CRYPTO_set_id_callback(NULL);
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>conftest.er1
15825 grep -v '^ *+' conftest.er1 >conftest.err
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_c_werror_flag"
15831 || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest$ac_exeext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15851 rm -f conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
15855 CFLAGS="$saved_CFLAGS"
15857 if test "$support_tls" = "yes"; then
15859 cat >>confdefs.h <<\_ACEOF
15860 #define HAVE_OPENSSL 1
15864 cat >>confdefs.h <<\_ACEOF
15875 echo "$as_me:$LINENO: result: $support_tls" >&5
15876 echo "${ECHO_T}$support_tls" >&6
15881 # -----------------------------------------------------------
15882 # Python and OpenSSL are using dlopen
15883 # -----------------------------------------------------------
15885 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
15886 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15887 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15888 if test "${ac_cv_search_dlopen+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 ac_func_search_save_LIBS=$LIBS
15892 ac_cv_search_dlopen=no
15893 cat >conftest.$ac_ext <<_ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15900 /* Override any gcc2 internal prototype to avoid an error. */
15904 /* We use char because int might match the return type of a gcc2
15905 builtin and then its argument prototype would still apply. */
15915 rm -f conftest.$ac_objext conftest$ac_exeext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15917 (eval $ac_link) 2>conftest.er1
15919 grep -v '^ *+' conftest.er1 >conftest.err
15921 cat conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } &&
15924 { ac_try='test -z "$ac_c_werror_flag"
15925 || test ! -s conftest.err'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; } &&
15931 { ac_try='test -s conftest$ac_exeext'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15937 ac_cv_search_dlopen="none required"
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15943 rm -f conftest.err conftest.$ac_objext \
15944 conftest$ac_exeext conftest.$ac_ext
15945 if test "$ac_cv_search_dlopen" = no; then
15946 for ac_lib in dl; do
15947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15948 cat >conftest.$ac_ext <<_ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15955 /* Override any gcc2 internal prototype to avoid an error. */
15959 /* We use char because int might match the return type of a gcc2
15960 builtin and then its argument prototype would still apply. */
15970 rm -f conftest.$ac_objext conftest$ac_exeext
15971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15972 (eval $ac_link) 2>conftest.er1
15974 grep -v '^ *+' conftest.er1 >conftest.err
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
15979 { ac_try='test -z "$ac_c_werror_flag"
15980 || test ! -s conftest.err'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; } &&
15986 { ac_try='test -s conftest$ac_exeext'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15992 ac_cv_search_dlopen="-l$ac_lib"
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15999 rm -f conftest.err conftest.$ac_objext \
16000 conftest$ac_exeext conftest.$ac_ext
16003 LIBS=$ac_func_search_save_LIBS
16005 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16006 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16007 if test "$ac_cv_search_dlopen" != no; then
16008 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16014 # ------------------------------------------
16015 # Where to place working dir
16016 # ------------------------------------------
16017 working_dir=`eval echo ${prefix}/var/bacula/working`
16019 # Check whether --with-working-dir or --without-working-dir was given.
16020 if test "${with_working_dir+set}" = set; then
16021 withval="$with_working_dir"
16023 if test "x$withval" != "xno" ; then
16024 working_dir=$withval
16033 # ------------------------------------------
16034 # Where to place scriptdir (script files)
16035 # ------------------------------------------
16036 scriptdir=`eval echo ${sysconfdir}`
16038 # Check whether --with-scriptdir or --without-scriptdir was given.
16039 if test "${with_scriptdir+set}" = set; then
16040 withval="$with_scriptdir"
16042 if test "x$withval" != "xno" ; then
16052 # ------------------------------------------
16053 # Where to send dump email
16054 # ------------------------------------------
16055 dump_email=root@localhost
16057 # Check whether --with-dump-email or --without-dump-email was given.
16058 if test "${with_dump_email+set}" = set; then
16059 withval="$with_dump_email"
16061 if test "x$withval" != "xno" ; then
16062 dump_email=$withval
16070 # ------------------------------------------
16071 # Where to send job email
16072 # ------------------------------------------
16073 job_email=root@localhost
16075 # Check whether --with-job-email or --without-job-email was given.
16076 if test "${with_job_email+set}" = set; then
16077 withval="$with_job_email"
16079 if test "x$withval" != "xno" ; then
16088 # ------------------------------------------
16089 # Where to find smtp host
16090 # ------------------------------------------
16091 smtp_host=localhost
16093 # Check whether --with-smtp_host or --without-smtp_host was given.
16094 if test "${with_smtp_host+set}" = set; then
16095 withval="$with_smtp_host"
16097 if test "x$withval" != "xno" ; then
16107 # ------------------------------------
16108 # Where to place pid files
16109 # ------------------------------------
16112 # Check whether --with-pid-dir or --without-pid-dir was given.
16113 if test "${with_pid_dir+set}" = set; then
16114 withval="$with_pid_dir"
16116 if test "x$withval" != "xno" ; then
16123 cat >>confdefs.h <<_ACEOF
16124 #define _PATH_BACULA_PIDDIR "$piddir"
16130 # ------------------------------------
16131 # Where to place subsys "lock file"
16132 # ------------------------------------
16133 subsysdir=/var/run/subsys
16135 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16136 if test "${with_subsys_dir+set}" = set; then
16137 withval="$with_subsys_dir"
16139 if test "x$withval" != "xno" ; then
16150 # ------------------------------------
16151 # Where to start assigning ports
16152 # ------------------------------------
16155 # Check whether --with-baseport or --without-baseport was given.
16156 if test "${with_baseport+set}" = set; then
16157 withval="$with_baseport"
16159 if test "x$withval" != "xno" ; then
16167 dir_port=`expr $baseport`
16168 fd_port=`expr $baseport + 1`
16169 sd_port=`expr $fd_port + 1`
16176 # ------------------------------------------
16177 # Generate passwords
16178 # ------------------------------------------
16181 # Check whether --with-dir-password or --without-dir-password was given.
16182 if test "${with_dir_password+set}" = set; then
16183 withval="$with_dir_password"
16185 if test "x$withval" != "xno" ; then
16186 dir_password=$withval
16192 if test "x$dir_password" = "x" ; then
16193 if test "x$OPENSSL" = "xnone" ; then
16194 key=`autoconf/randpass 33`
16196 key=`openssl rand -base64 33`
16203 # Check whether --with-fd-password or --without-fd-password was given.
16204 if test "${with_fd_password+set}" = set; then
16205 withval="$with_fd_password"
16207 if test "x$withval" != "xno" ; then
16208 fd_password=$withval
16214 if test "x$fd_password" = "x" ; then
16215 if test "x$OPENSSL" = "xnone" ; then
16216 key=`autoconf/randpass 37`
16218 key=`openssl rand -base64 33`
16225 # Check whether --with-sd-password or --without-sd-password was given.
16226 if test "${with_sd_password+set}" = set; then
16227 withval="$with_sd_password"
16229 if test "x$withval" != "xno" ; then
16230 sd_password=$withval
16236 if test "x$sd_password" = "x" ; then
16237 if test "x$OPENSSL" = "xnone" ; then
16238 key=`autoconf/randpass 41`
16240 key=`openssl rand -base64 33`
16247 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16248 if test "${with_mon_dir_password+set}" = set; then
16249 withval="$with_mon_dir_password"
16251 if test "x$withval" != "xno" ; then
16252 mon_dir_password=$withval
16258 if test "x$mon_dir_password" = "x" ; then
16259 if test "x$OPENSSL" = "xnone" ; then
16260 key=`autoconf/randpass 33`
16262 key=`openssl rand -base64 33`
16264 mon_dir_password=$key
16269 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16270 if test "${with_mon_fd_password+set}" = set; then
16271 withval="$with_mon_fd_password"
16273 if test "x$withval" != "xno" ; then
16274 mon_fd_password=$withval
16280 if test "x$mon_fd_password" = "x" ; then
16281 if test "x$OPENSSL" = "xnone" ; then
16282 key=`autoconf/randpass 37`
16284 key=`openssl rand -base64 33`
16286 mon_fd_password=$key
16291 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16292 if test "${with_mon_sd_password+set}" = set; then
16293 withval="$with_mon_sd_password"
16295 if test "x$withval" != "xno" ; then
16296 mon_sd_password=$withval
16302 if test "x$mon_sd_password" = "x" ; then
16303 if test "x$OPENSSL" = "xnone" ; then
16304 key=`autoconf/randpass 41`
16306 key=`openssl rand -base64 33`
16308 mon_sd_password=$key
16320 # Handle users and groups for each daemon
16324 # Check whether --with-dir_user or --without-dir_user was given.
16325 if test "${with_dir_user+set}" = set; then
16326 withval="$with_dir_user"
16328 if test "x$withval" != "x" ; then
16337 # Check whether --with-dir_group or --without-dir_group was given.
16338 if test "${with_dir_group+set}" = set; then
16339 withval="$with_dir_group"
16341 if test "x$withval" != "x" ; then
16350 # Check whether --with-sd_user or --without-sd_user was given.
16351 if test "${with_sd_user+set}" = set; then
16352 withval="$with_sd_user"
16354 if test "x$withval" != "x" ; then
16363 # Check whether --with-sd_group or --without-sd_group was given.
16364 if test "${with_sd_group+set}" = set; then
16365 withval="$with_sd_group"
16367 if test "x$withval" != "x" ; then
16376 # Check whether --with-fd_user or --without-fd_user was given.
16377 if test "${with_fd_user+set}" = set; then
16378 withval="$with_fd_user"
16380 if test "x$withval" != "x" ; then
16389 # Check whether --with-fd_group or --without-fd_group was given.
16390 if test "${with_fd_group+set}" = set; then
16391 withval="$with_fd_group"
16393 if test "x$withval" != "x" ; then
16411 # allow setting default executable permissions
16415 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16416 if test "${with_sbin_perm+set}" = set; then
16417 withval="$with_sbin_perm"
16419 if test "x$withval" != "x" ; then
16428 # ------------------------------------------------
16429 # Bacula check for various SQL database engines
16430 # ------------------------------------------------
16433 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16434 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16436 # Check whether --with-postgresql or --without-postgresql was given.
16437 if test "${with_postgresql+set}" = set; then
16438 withval="$with_postgresql"
16440 if test "$withval" != "no"; then
16441 if test "$db_found" = "yes"; then
16442 echo "$as_me:$LINENO: result: error" >&5
16443 echo "${ECHO_T}error" >&6
16444 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16445 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16446 { (exit 1); exit 1; }; };
16448 if test "$withval" = "yes"; then
16449 if test -f /usr/local/include/libpq-fe.h; then
16450 POSTGRESQL_INCDIR=/usr/local/include
16451 POSTGRESQL_LIBDIR=/usr/local/lib
16452 POSTGRESQL_BINDIR=/usr/local/bin
16453 elif test -f /usr/include/libpq-fe.h; then
16454 POSTGRESQL_INCDIR=/usr/include
16455 POSTGRESQL_LIBDIR=/usr/lib
16456 POSTGRESQL_BINDIR=/usr/bin
16457 elif test -f /usr/include/pgsql/libpq-fe.h; then
16458 POSTGRESQL_INCDIR=/usr/include/pgsql
16459 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16460 POSTGRESQL_BINDIR=/usr/bin
16461 elif test -f /usr/include/postgresql/libpq-fe.h; then
16462 POSTGRESQL_INCDIR=/usr/include/postgresql
16463 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16464 POSTGRESQL_BINDIR=/usr/bin
16466 echo "$as_me:$LINENO: result: no" >&5
16467 echo "${ECHO_T}no" >&6
16468 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16469 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16470 { (exit 1); exit 1; }; }
16472 elif test -f $withval/include/libpq-fe.h; then
16473 POSTGRESQL_INCDIR=$withval/include
16474 POSTGRESQL_LIBDIR=$withval/lib
16475 POSTGRESQL_BINDIR=$withval/bin
16476 elif test -f $withval/include/postgresql/libpq-fe.h; then
16477 POSTGRESQL_INCDIR=$withval/include/postgresql
16478 POSTGRESQL_LIBDIR=$withval/lib
16479 POSTGRESQL_BINDIR=$withval/bin
16481 echo "$as_me:$LINENO: result: no" >&5
16482 echo "${ECHO_T}no" >&6
16483 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16484 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16485 { (exit 1); exit 1; }; }
16487 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16488 echo "$as_me:$LINENO: checking for crypt" >&5
16489 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16490 if test "${ac_cv_func_crypt+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 cat >conftest.$ac_ext <<_ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16499 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16501 #define crypt innocuous_crypt
16503 /* System header to define __stub macros and hopefully few prototypes,
16504 which can conflict with char crypt (); below.
16505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16506 <limits.h> exists even on freestanding compilers. */
16509 # include <limits.h>
16511 # include <assert.h>
16516 /* Override any gcc2 internal prototype to avoid an error. */
16521 /* We use char because int might match the return type of a gcc2
16522 builtin and then its argument prototype would still apply. */
16524 /* The GNU C library defines this for functions which it implements
16525 to always fail with ENOSYS. Some functions are actually named
16526 something starting with __ and the normal name is an alias. */
16527 #if defined (__stub_crypt) || defined (__stub___crypt)
16530 char (*f) () = crypt;
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16546 (eval $ac_link) 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest$ac_exeext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_func_crypt=yes
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_cv_func_crypt=no
16573 rm -f conftest.err conftest.$ac_objext \
16574 conftest$ac_exeext conftest.$ac_ext
16576 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16577 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16578 if test $ac_cv_func_crypt = yes; then
16581 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16582 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16583 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 ac_check_lib_save_LIBS=$LIBS
16587 LIBS="-lcrypt $LIBS"
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16595 /* Override any gcc2 internal prototype to avoid an error. */
16599 /* We use char because int might match the return type of a gcc2
16600 builtin and then its argument prototype would still apply. */
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16612 (eval $ac_link) 2>conftest.er1
16614 grep -v '^ *+' conftest.er1 >conftest.err
16616 cat conftest.err >&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -z "$ac_c_werror_flag"
16620 || test ! -s conftest.err'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; } &&
16626 { ac_try='test -s conftest$ac_exeext'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16632 ac_cv_lib_crypt_crypt=yes
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16637 ac_cv_lib_crypt_crypt=no
16639 rm -f conftest.err conftest.$ac_objext \
16640 conftest$ac_exeext conftest.$ac_ext
16641 LIBS=$ac_check_lib_save_LIBS
16643 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16644 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16645 if test $ac_cv_lib_crypt_crypt = yes; then
16646 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
16651 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16652 SQL_LFLAGS=$POSTGRESQL_LFLAGS
16653 SQL_BINDIR=$POSTGRESQL_BINDIR
16654 cat >>confdefs.h <<\_ACEOF
16655 #define HAVE_POSTGRESQL 1
16658 echo "$as_me:$LINENO: result: yes" >&5
16659 echo "${ECHO_T}yes" >&6
16661 support_postgresql=yes
16665 echo "$as_me:$LINENO: result: no" >&5
16666 echo "${ECHO_T}no" >&6
16671 echo "$as_me:$LINENO: result: no" >&5
16672 echo "${ECHO_T}no" >&6
16683 echo "$as_me:$LINENO: checking for MySQL support" >&5
16684 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16686 # Check whether --with-mysql or --without-mysql was given.
16687 if test "${with_mysql+set}" = set; then
16688 withval="$with_mysql"
16690 if test "$withval" != "no"; then
16691 if test "$withval" = "yes"; then
16692 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16693 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16694 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16695 MYSQL_BINDIR=/usr/local/mysql/bin
16696 elif test -f /usr/include/mysql/mysql.h; then
16697 MYSQL_INCDIR=/usr/include/mysql
16698 MYSQL_LIBDIR=/usr/lib/mysql
16699 MYSQL_BINDIR=/usr/bin
16700 elif test -f /usr/include/mysql.h; then
16701 MYSQL_INCDIR=/usr/include
16702 MYSQL_LIBDIR=/usr/lib
16703 MYSQL_BINDIR=/usr/bin
16704 elif test -f /usr/local/include/mysql/mysql.h; then
16705 MYSQL_INCDIR=/usr/local/include/mysql
16706 MYSQL_LIBDIR=/usr/local/lib/mysql
16707 MYSQL_BINDIR=/usr/local/bin
16708 elif test -f /usr/local/include/mysql.h; then
16709 MYSQL_INCDIR=/usr/local/include
16710 MYSQL_LIBDIR=/usr/local/lib
16711 MYSQL_BINDIR=/usr/local/bin
16713 echo "$as_me:$LINENO: result: no" >&5
16714 echo "${ECHO_T}no" >&6
16715 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16716 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16717 { (exit 1); exit 1; }; }
16720 if test -f $withval/include/mysql/mysql.h; then
16721 MYSQL_INCDIR=$withval/include/mysql
16722 MYSQL_LIBDIR=$withval/lib/mysql
16723 MYSQL_BINDIR=$withval/bin
16724 elif test -f $withval/include/mysql.h; then
16725 MYSQL_INCDIR=$withval/include
16726 MYSQL_LIBDIR=$withval/lib
16727 MYSQL_BINDIR=$withval/bin
16729 echo "$as_me:$LINENO: result: no" >&5
16730 echo "${ECHO_T}no" >&6
16731 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16732 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16733 { (exit 1); exit 1; }; }
16736 SQL_INCLUDE=-I$MYSQL_INCDIR
16737 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
16738 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16739 cat >>confdefs.h <<\_ACEOF
16740 #define HAVE_THREAD_SAFE_MYSQL 1
16744 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16746 SQL_BINDIR=$MYSQL_BINDIR
16748 cat >>confdefs.h <<\_ACEOF
16749 #define HAVE_MYSQL 1
16752 echo "$as_me:$LINENO: result: yes" >&5
16753 echo "${ECHO_T}yes" >&6
16760 echo "$as_me:$LINENO: result: no" >&5
16761 echo "${ECHO_T}no" >&6
16768 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16769 if test "${with_embedded_mysql+set}" = set; then
16770 withval="$with_embedded_mysql"
16772 if test "$withval" != "no"; then
16773 if test "$withval" = "yes"; then
16774 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16775 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16776 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16777 MYSQL_BINDIR=/usr/local/mysql/bin
16778 elif test -f /usr/include/mysql/mysql.h; then
16779 MYSQL_INCDIR=/usr/include/mysql
16780 MYSQL_LIBDIR=/usr/lib/mysql
16781 MYSQL_BINDIR=/usr/bin
16782 elif test -f /usr/include/mysql.h; then
16783 MYSQL_INCDIR=/usr/include
16784 MYSQL_LIBDIR=/usr/lib
16785 MYSQL_BINDIR=/usr/bin
16786 elif test -f /usr/local/include/mysql/mysql.h; then
16787 MYSQL_INCDIR=/usr/local/include/mysql
16788 MYSQL_LIBDIR=/usr/local/lib/mysql
16789 MYSQL_BINDIR=/usr/local/bin
16790 elif test -f /usr/local/include/mysql.h; then
16791 MYSQL_INCDIR=/usr/local/include
16792 MYSQL_LIBDIR=/usr/local/lib
16793 MYSQL_BINDIR=/usr/local/bin
16795 echo "$as_me:$LINENO: result: no" >&5
16796 echo "${ECHO_T}no" >&6
16797 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16798 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16799 { (exit 1); exit 1; }; }
16802 if test -f $withval/include/mysql/mysql.h; then
16803 MYSQL_INCDIR=$withval/include/mysql
16804 MYSQL_LIBDIR=$withval/lib/mysql
16805 MYSQL_BINDIR=$withval/bin
16806 elif test -f $withval/include/mysql.h; then
16807 MYSQL_INCDIR=$withval/include
16808 MYSQL_LIBDIR=$withval/lib
16809 MYSQL_BINDIR=$withval/bin
16811 echo "$as_me:$LINENO: result: no" >&5
16812 echo "${ECHO_T}no" >&6
16813 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16814 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16815 { (exit 1); exit 1; }; }
16818 SQL_INCLUDE=-I$MYSQL_INCDIR
16819 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
16820 SQL_BINDIR=$MYSQL_BINDIR
16822 cat >>confdefs.h <<\_ACEOF
16823 #define HAVE_MYSQL 1
16826 cat >>confdefs.h <<\_ACEOF
16827 #define HAVE_EMBEDDED_MYSQL 1
16830 echo "$as_me:$LINENO: result: yes" >&5
16831 echo "${ECHO_T}yes" >&6
16838 echo "$as_me:$LINENO: result: no" >&5
16839 echo "${ECHO_T}no" >&6
16854 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
16855 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
16857 # Check whether --with-sqlite3 or --without-sqlite3 was given.
16858 if test "${with_sqlite3+set}" = set; then
16859 withval="$with_sqlite3"
16861 if test "$withval" != "no"; then
16862 if test "$withval" = "yes"; then
16863 if test -f /usr/local/include/sqlite3.h; then
16864 SQLITE_INCDIR=/usr/local/include
16865 SQLITE_LIBDIR=/usr/local/lib
16866 SQLITE_BINDIR=/usr/local/bin
16867 elif test -f /usr/include/sqlite3.h; then
16868 SQLITE_INCDIR=/usr/include
16869 SQLITE_LIBDIR=/usr/lib
16870 SQLITE_BINDIR=/usr/bin
16871 elif test -f $prefix/include/sqlite3.h; then
16872 SQLITE_INCDIR=$prefix/include
16873 SQLITE_LIBDIR=$prefix/lib
16874 SQLITE_BINDIR=$prefix/bin
16876 echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6
16878 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
16879 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
16880 { (exit 1); exit 1; }; }
16883 if test -f $withval/sqlite3.h; then
16884 SQLITE_INCDIR=$withval
16885 SQLITE_LIBDIR=$withval
16886 SQLITE_BINDIR=$withval
16887 elif test -f $withval/include/sqlite3.h; then
16888 SQLITE_INCDIR=$withval/include
16889 SQLITE_LIBDIR=$withval/lib
16890 SQLITE_BINDIR=$withval/bin
16892 echo "$as_me:$LINENO: result: no" >&5
16893 echo "${ECHO_T}no" >&6
16894 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
16895 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
16896 { (exit 1); exit 1; }; }
16899 SQL_INCLUDE=-I$SQLITE_INCDIR
16900 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
16901 SQL_BINDIR=$SQLITE_BINDIR
16903 cat >>confdefs.h <<\_ACEOF
16904 #define HAVE_SQLITE3 1
16907 echo "$as_me:$LINENO: result: yes" >&5
16908 echo "${ECHO_T}yes" >&6
16910 support_sqlite3=yes
16915 echo "$as_me:$LINENO: result: no" >&5
16916 echo "${ECHO_T}no" >&6
16921 echo "$as_me:$LINENO: result: no" >&5
16922 echo "${ECHO_T}no" >&6
16933 echo "$as_me:$LINENO: checking for SQLite support" >&5
16934 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
16936 # Check whether --with-sqlite or --without-sqlite was given.
16937 if test "${with_sqlite+set}" = set; then
16938 withval="$with_sqlite"
16940 if test "$withval" != "no"; then
16941 if test "$withval" = "yes"; then
16942 if test -f /usr/local/include/sqlite.h; then
16943 SQLITE_INCDIR=/usr/local/include
16944 SQLITE_LIBDIR=/usr/local/lib
16945 SQLITE_BINDIR=/usr/local/bin
16946 elif test -f /usr/include/sqlite.h; then
16947 SQLITE_INCDIR=/usr/include
16948 SQLITE_LIBDIR=/usr/lib
16949 SQLITE_BINDIR=/usr/bin
16950 elif test -f $prefix/include/sqlite.h; then
16951 SQLITE_INCDIR=$prefix/include
16952 SQLITE_LIBDIR=$prefix/lib
16953 SQLITE_BINDIR=$prefix/bin
16955 echo "$as_me:$LINENO: result: no" >&5
16956 echo "${ECHO_T}no" >&6
16957 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
16958 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
16959 { (exit 1); exit 1; }; }
16962 if test -f $withval/sqlite.h; then
16963 SQLITE_INCDIR=$withval
16964 SQLITE_LIBDIR=$withval
16965 SQLITE_BINDIR=$withval
16966 elif test -f $withval/include/sqlite.h; then
16967 SQLITE_INCDIR=$withval/include
16968 SQLITE_LIBDIR=$withval/lib
16969 SQLITE_BINDIR=$withval/bin
16971 echo "$as_me:$LINENO: result: no" >&5
16972 echo "${ECHO_T}no" >&6
16973 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
16974 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
16975 { (exit 1); exit 1; }; }
16978 SQL_INCLUDE=-I$SQLITE_INCDIR
16979 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
16980 SQL_BINDIR=$SQLITE_BINDIR
16982 cat >>confdefs.h <<\_ACEOF
16983 #define HAVE_SQLITE 1
16986 echo "$as_me:$LINENO: result: yes" >&5
16987 echo "${ECHO_T}yes" >&6
16994 echo "$as_me:$LINENO: result: no" >&5
16995 echo "${ECHO_T}no" >&6
17000 echo "$as_me:$LINENO: result: no" >&5
17001 echo "${ECHO_T}no" >&6
17013 cat >>confdefs.h <<\_ACEOF
17014 #define PROTOTYPES 1
17018 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17019 if test -z "$CCOPTS"; then
17020 CCOPTS='-g -O2 -Wall'
17028 largefile_support="no"
17030 # Check whether --enable-largefile or --disable-largefile was given.
17031 if test "${enable_largefile+set}" = set; then
17032 enableval="$enable_largefile"
17035 if test "$enable_largefile" != no; then
17036 if test -n "$ac_tool_prefix"; then
17037 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17038 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17039 echo "$as_me:$LINENO: checking for $ac_word" >&5
17040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17041 if test "${ac_cv_prog_GETCONF+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 if test -n "$GETCONF"; then
17045 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17048 for as_dir in $PATH
17051 test -z "$as_dir" && as_dir=.
17052 for ac_exec_ext in '' $ac_executable_extensions; do
17053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17054 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17063 GETCONF=$ac_cv_prog_GETCONF
17064 if test -n "$GETCONF"; then
17065 echo "$as_me:$LINENO: result: $GETCONF" >&5
17066 echo "${ECHO_T}$GETCONF" >&6
17068 echo "$as_me:$LINENO: result: no" >&5
17069 echo "${ECHO_T}no" >&6
17073 if test -z "$ac_cv_prog_GETCONF"; then
17074 ac_ct_GETCONF=$GETCONF
17075 # Extract the first word of "getconf", so it can be a program name with args.
17076 set dummy getconf; ac_word=$2
17077 echo "$as_me:$LINENO: checking for $ac_word" >&5
17078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17079 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 if test -n "$ac_ct_GETCONF"; then
17083 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17086 for as_dir in $PATH
17089 test -z "$as_dir" && as_dir=.
17090 for ac_exec_ext in '' $ac_executable_extensions; do
17091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17092 ac_cv_prog_ac_ct_GETCONF="getconf"
17093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17101 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17102 if test -n "$ac_ct_GETCONF"; then
17103 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17104 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17106 echo "$as_me:$LINENO: result: no" >&5
17107 echo "${ECHO_T}no" >&6
17110 GETCONF=$ac_ct_GETCONF
17112 GETCONF="$ac_cv_prog_GETCONF"
17115 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17116 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17117 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17121 ac_cv_sys_largefile_CFLAGS=no
17123 # IRIX 6.2 and later require cc -n32.
17124 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17125 if test "$GCC" != yes; then
17126 ac_cv_sys_largefile_CFLAGS=-n32
17129 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17130 cat >conftest.$ac_ext <<_ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17145 rm -f conftest.$ac_objext conftest$ac_exeext
17146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147 (eval $ac_link) 2>conftest.er1
17149 grep -v '^ *+' conftest.er1 >conftest.err
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag"
17155 || test ! -s conftest.err'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; } &&
17161 { ac_try='test -s conftest$ac_exeext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 ac_cv_sys_largefile_CFLAGS=no
17174 rm -f conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext conftest.$ac_ext
17180 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17181 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17182 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17183 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17184 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17188 ac_cv_sys_largefile_LDFLAGS=no
17192 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17193 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17194 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17195 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17196 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17200 ac_cv_sys_largefile_LIBS=no
17204 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17205 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17207 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17210 -D_FILE_OFFSET_BITS=*) ;;
17211 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17212 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17217 case "$CPPFLAGS" in
17218 '') CPPFLAGS="$ac_flag" ;;
17219 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17227 '') CFLAGS="$ac_flag" ;;
17228 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17233 case "$ac_cv_sys_largefile_LDFLAGS" in
17237 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17238 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17241 case "$ac_cv_sys_largefile_LIBS" in
17245 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17246 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17249 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17250 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17251 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 ac_cv_sys_file_offset_bits=no
17255 ac_cv_sys_file_offset_bits=64
17256 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17258 -D_FILE_OFFSET_BITS)
17259 ac_cv_sys_file_offset_bits=1 ;;
17260 -D_FILE_OFFSET_BITS=*)
17261 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17266 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17267 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17268 if test "$ac_cv_sys_file_offset_bits" != no; then
17270 cat >>confdefs.h <<_ACEOF
17271 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17275 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17276 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17277 if test "${ac_cv_sys_largefile_source+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 ac_cv_sys_largefile_source=no
17281 ac_cv_sys_largefile_source=1
17282 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17284 -D_LARGEFILE_SOURCE)
17285 ac_cv_sys_largefile_source=1 ;;
17286 -D_LARGEFILE_SOURCE=*)
17287 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17292 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17293 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17294 if test "$ac_cv_sys_largefile_source" != no; then
17296 cat >>confdefs.h <<_ACEOF
17297 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17301 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17302 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17303 if test "${ac_cv_sys_large_files+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 ac_cv_sys_large_files=no
17307 ac_cv_sys_large_files=1
17308 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17311 ac_cv_sys_large_files=1 ;;
17313 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17318 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17319 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17320 if test "$ac_cv_sys_large_files" != no; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define _LARGE_FILES $ac_cv_sys_large_files
17331 echo "$as_me:$LINENO: checking for X" >&5
17332 echo $ECHO_N "checking for X... $ECHO_C" >&6
17335 # Check whether --with-x or --without-x was given.
17336 if test "${with_x+set}" = set; then
17340 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17341 if test "x$with_x" = xno; then
17342 # The user explicitly disabled X.
17345 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17346 # Both variables are already set.
17349 if test "${ac_cv_have_x+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 # One or both of the vars are not set, and there is no cached value.
17353 ac_x_includes=no ac_x_libraries=no
17354 rm -fr conftest.dir
17355 if mkdir conftest.dir; then
17357 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17358 cat >Imakefile <<'_ACEOF'
17360 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17362 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17363 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17364 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17365 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17366 for ac_extension in a so sl; do
17367 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17368 test -f $ac_im_libdir/libX11.$ac_extension; then
17369 ac_im_usrlibdir=$ac_im_libdir; break
17372 # Screen out bogus values from the imake configuration. They are
17373 # bogus both because they are the default anyway, and because
17374 # using them would break gcc on systems where it needs fixed includes.
17375 case $ac_im_incroot in
17377 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17379 case $ac_im_usrlibdir in
17380 /usr/lib | /lib) ;;
17381 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17385 rm -fr conftest.dir
17388 # Standard set of common directories for X headers.
17389 # Check X11 before X11Rn because it is often a symlink to the current release.
17401 /usr/local/X11/include
17402 /usr/local/X11R6/include
17403 /usr/local/X11R5/include
17404 /usr/local/X11R4/include
17406 /usr/local/include/X11
17407 /usr/local/include/X11R6
17408 /usr/local/include/X11R5
17409 /usr/local/include/X11R4
17413 /usr/XFree86/include/X11
17417 /usr/unsupported/include
17418 /usr/athena/include
17419 /usr/local/x11r5/include
17420 /usr/lpp/Xamples/include
17422 /usr/openwin/include
17423 /usr/openwin/share/include'
17425 if test "$ac_x_includes" = no; then
17426 # Guess where to find include files, by looking for Intrinsic.h.
17427 # First, try using that file with no special directory specified.
17428 cat >conftest.$ac_ext <<_ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17434 #include <X11/Intrinsic.h>
17436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17439 grep -v '^ *+' conftest.er1 >conftest.err
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } >/dev/null; then
17444 if test -s conftest.err; then
17445 ac_cpp_err=$ac_c_preproc_warn_flag
17446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17453 if test -z "$ac_cpp_err"; then
17454 # We can compile using X headers with no special include directory.
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 for ac_dir in $ac_x_header_dirs; do
17461 if test -r "$ac_dir/X11/Intrinsic.h"; then
17462 ac_x_includes=$ac_dir
17467 rm -f conftest.err conftest.$ac_ext
17468 fi # $ac_x_includes = no
17470 if test "$ac_x_libraries" = no; then
17471 # Check for the libraries.
17472 # See if we find them without any special options.
17473 # Don't add to $LIBS permanently.
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 #include <X11/Intrinsic.h>
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17493 (eval $ac_link) 2>conftest.er1
17495 grep -v '^ *+' conftest.er1 >conftest.err
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17514 # We can link X programs with no special library path.
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17521 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17523 # Don't even attempt the hair of trying to link an X program!
17524 for ac_extension in a so sl; do
17525 if test -r $ac_dir/libXt.$ac_extension; then
17526 ac_x_libraries=$ac_dir
17532 rm -f conftest.err conftest.$ac_objext \
17533 conftest$ac_exeext conftest.$ac_ext
17534 fi # $ac_x_libraries = no
17536 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17537 # Didn't find X anywhere. Cache the known absence of X.
17538 ac_cv_have_x="have_x=no"
17540 # Record where we found X for the cache.
17541 ac_cv_have_x="have_x=yes \
17542 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17547 eval "$ac_cv_have_x"
17550 if test "$have_x" != yes; then
17551 echo "$as_me:$LINENO: result: $have_x" >&5
17552 echo "${ECHO_T}$have_x" >&6
17555 # If each of the values was on the command line, it overrides each guess.
17556 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17557 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17558 # Update the cache value to reflect the command line values.
17559 ac_cv_have_x="have_x=yes \
17560 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17561 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17562 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17565 if test "$no_x" = yes; then
17566 # Not all programs may use this symbol, but it does not hurt to define it.
17568 cat >>confdefs.h <<\_ACEOF
17569 #define X_DISPLAY_MISSING 1
17572 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17574 if test -n "$x_includes"; then
17575 X_CFLAGS="$X_CFLAGS -I$x_includes"
17578 # It would also be nice to do this for all -L options, not just this one.
17579 if test -n "$x_libraries"; then
17580 X_LIBS="$X_LIBS -L$x_libraries"
17581 # For Solaris; some versions of Sun CC require a space after -R and
17582 # others require no space. Words are not sufficient . . . .
17583 case `(uname -sr) 2>/dev/null` in
17585 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17586 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17587 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17588 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605 (eval $ac_link) 2>conftest.er1
17607 grep -v '^ *+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
17612 { ac_try='test -z "$ac_c_werror_flag"
17613 || test ! -s conftest.err'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest$ac_exeext'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17632 rm -f conftest.err conftest.$ac_objext \
17633 conftest$ac_exeext conftest.$ac_ext
17634 if test $ac_R_nospace = yes; then
17635 echo "$as_me:$LINENO: result: no" >&5
17636 echo "${ECHO_T}no" >&6
17637 X_LIBS="$X_LIBS -R$x_libraries"
17639 LIBS="$ac_xsave_LIBS -R $x_libraries"
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17657 (eval $ac_link) 2>conftest.er1
17659 grep -v '^ *+' conftest.er1 >conftest.err
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_c_werror_flag"
17665 || test ! -s conftest.err'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest$ac_exeext'
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17684 rm -f conftest.err conftest.$ac_objext \
17685 conftest$ac_exeext conftest.$ac_ext
17686 if test $ac_R_space = yes; then
17687 echo "$as_me:$LINENO: result: yes" >&5
17688 echo "${ECHO_T}yes" >&6
17689 X_LIBS="$X_LIBS -R $x_libraries"
17691 echo "$as_me:$LINENO: result: neither works" >&5
17692 echo "${ECHO_T}neither works" >&6
17695 LIBS=$ac_xsave_LIBS
17699 # Check for system-dependent libraries X programs must link with.
17700 # Do this before checking for the system-independent R6 libraries
17701 # (-lICE), since we may need -lsocket or whatever for X linking.
17703 if test "$ISC" = yes; then
17704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17706 # Martyn Johnson says this is needed for Ultrix, if the X
17707 # libraries were built with DECnet support. And Karl Berry says
17708 # the Alpha needs dnet_stub (dnet does not exist).
17709 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17710 cat >conftest.$ac_ext <<_ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17717 /* Override any gcc2 internal prototype to avoid an error. */
17721 /* We use char because int might match the return type of a gcc2
17722 builtin and then its argument prototype would still apply. */
17723 char XOpenDisplay ();
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
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17760 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17761 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 ac_check_lib_save_LIBS=$LIBS
17765 LIBS="-ldnet $LIBS"
17766 cat >conftest.$ac_ext <<_ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17773 /* Override any gcc2 internal prototype to avoid an error. */
17777 /* We use char because int might match the return type of a gcc2
17778 builtin and then its argument prototype would still apply. */
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17790 (eval $ac_link) 2>conftest.er1
17792 grep -v '^ *+' conftest.er1 >conftest.err
17794 cat conftest.err >&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } &&
17797 { ac_try='test -z "$ac_c_werror_flag"
17798 || test ! -s conftest.err'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; } &&
17804 { ac_try='test -s conftest$ac_exeext'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 ac_cv_lib_dnet_dnet_ntoa=yes
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17815 ac_cv_lib_dnet_dnet_ntoa=no
17817 rm -f conftest.err conftest.$ac_objext \
17818 conftest$ac_exeext conftest.$ac_ext
17819 LIBS=$ac_check_lib_save_LIBS
17821 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17822 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17823 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17824 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17827 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17828 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17829 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17830 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 ac_check_lib_save_LIBS=$LIBS
17834 LIBS="-ldnet_stub $LIBS"
17835 cat >conftest.$ac_ext <<_ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17842 /* Override any gcc2 internal prototype to avoid an error. */
17846 /* We use char because int might match the return type of a gcc2
17847 builtin and then its argument prototype would still apply. */
17857 rm -f conftest.$ac_objext conftest$ac_exeext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17859 (eval $ac_link) 2>conftest.er1
17861 grep -v '^ *+' conftest.er1 >conftest.err
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
17866 { ac_try='test -z "$ac_c_werror_flag"
17867 || test ! -s conftest.err'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; } &&
17873 { ac_try='test -s conftest$ac_exeext'
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 ac_cv_lib_dnet_stub_dnet_ntoa=no
17886 rm -f conftest.err conftest.$ac_objext \
17887 conftest$ac_exeext conftest.$ac_ext
17888 LIBS=$ac_check_lib_save_LIBS
17890 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17891 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
17892 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
17893 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
17898 rm -f conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS="$ac_xsave_LIBS"
17902 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
17903 # to get the SysV transport functions.
17904 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
17906 # The nsl library prevents programs from opening the X display
17907 # on Irix 5.2, according to T.E. Dickey.
17908 # The functions gethostbyname, getservbyname, and inet_addr are
17909 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17910 echo "$as_me:$LINENO: checking for gethostbyname" >&5
17911 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
17912 if test "${ac_cv_func_gethostbyname+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 cat >conftest.$ac_ext <<_ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17921 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
17922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17923 #define gethostbyname innocuous_gethostbyname
17925 /* System header to define __stub macros and hopefully few prototypes,
17926 which can conflict with char gethostbyname (); below.
17927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17928 <limits.h> exists even on freestanding compilers. */
17931 # include <limits.h>
17933 # include <assert.h>
17936 #undef gethostbyname
17938 /* Override any gcc2 internal prototype to avoid an error. */
17943 /* We use char because int might match the return type of a gcc2
17944 builtin and then its argument prototype would still apply. */
17945 char gethostbyname ();
17946 /* The GNU C library defines this for functions which it implements
17947 to always fail with ENOSYS. Some functions are actually named
17948 something starting with __ and the normal name is an alias. */
17949 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
17952 char (*f) () = gethostbyname;
17961 return f != gethostbyname;
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17968 (eval $ac_link) 2>conftest.er1
17970 grep -v '^ *+' conftest.er1 >conftest.err
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try='test -z "$ac_c_werror_flag"
17976 || test ! -s conftest.err'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; } &&
17982 { ac_try='test -s conftest$ac_exeext'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17988 ac_cv_func_gethostbyname=yes
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 ac_cv_func_gethostbyname=no
17995 rm -f conftest.err conftest.$ac_objext \
17996 conftest$ac_exeext conftest.$ac_ext
17998 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
17999 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18001 if test $ac_cv_func_gethostbyname = no; then
18002 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18003 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18004 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18005 echo $ECHO_N "(cached) $ECHO_C" >&6
18007 ac_check_lib_save_LIBS=$LIBS
18009 cat >conftest.$ac_ext <<_ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18016 /* Override any gcc2 internal prototype to avoid an error. */
18020 /* We use char because int might match the return type of a gcc2
18021 builtin and then its argument prototype would still apply. */
18022 char gethostbyname ();
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033 (eval $ac_link) 2>conftest.er1
18035 grep -v '^ *+' conftest.er1 >conftest.err
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag"
18041 || test ! -s conftest.err'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest$ac_exeext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_lib_nsl_gethostbyname=yes
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ac_cv_lib_nsl_gethostbyname=no
18060 rm -f conftest.err conftest.$ac_objext \
18061 conftest$ac_exeext conftest.$ac_ext
18062 LIBS=$ac_check_lib_save_LIBS
18064 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18065 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18066 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18067 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18070 if test $ac_cv_lib_nsl_gethostbyname = no; then
18071 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18072 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18073 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 ac_check_lib_save_LIBS=$LIBS
18078 cat >conftest.$ac_ext <<_ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18085 /* Override any gcc2 internal prototype to avoid an error. */
18089 /* We use char because int might match the return type of a gcc2
18090 builtin and then its argument prototype would still apply. */
18091 char gethostbyname ();
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102 (eval $ac_link) 2>conftest.er1
18104 grep -v '^ *+' conftest.er1 >conftest.err
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag"
18110 || test ! -s conftest.err'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest$ac_exeext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 ac_cv_lib_bsd_gethostbyname=yes
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18127 ac_cv_lib_bsd_gethostbyname=no
18129 rm -f conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18133 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18134 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18135 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18142 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18143 # socket/setsockopt and other routines are undefined under SCO ODT
18144 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18145 # on later versions), says Simon Leinen: it contains gethostby*
18146 # variants that don't use the name server (or something). -lsocket
18147 # must be given before -lnsl if both are needed. We assume that
18148 # if connect needs -lnsl, so does gethostbyname.
18149 echo "$as_me:$LINENO: checking for connect" >&5
18150 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18151 if test "${ac_cv_func_connect+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18162 #define connect innocuous_connect
18164 /* System header to define __stub macros and hopefully few prototypes,
18165 which can conflict with char connect (); below.
18166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167 <limits.h> exists even on freestanding compilers. */
18170 # include <limits.h>
18172 # include <assert.h>
18177 /* Override any gcc2 internal prototype to avoid an error. */
18182 /* We use char because int might match the return type of a gcc2
18183 builtin and then its argument prototype would still apply. */
18185 /* The GNU C library defines this for functions which it implements
18186 to always fail with ENOSYS. Some functions are actually named
18187 something starting with __ and the normal name is an alias. */
18188 #if defined (__stub_connect) || defined (__stub___connect)
18191 char (*f) () = connect;
18200 return f != connect;
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207 (eval $ac_link) 2>conftest.er1
18209 grep -v '^ *+' conftest.er1 >conftest.err
18211 cat conftest.err >&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
18214 { ac_try='test -z "$ac_c_werror_flag"
18215 || test ! -s conftest.err'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try='test -s conftest$ac_exeext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 ac_cv_func_connect=yes
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 ac_cv_func_connect=no
18234 rm -f conftest.err conftest.$ac_objext \
18235 conftest$ac_exeext conftest.$ac_ext
18237 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18238 echo "${ECHO_T}$ac_cv_func_connect" >&6
18240 if test $ac_cv_func_connect = no; then
18241 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18242 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18243 if test "${ac_cv_lib_socket_connect+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 ac_check_lib_save_LIBS=$LIBS
18247 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18248 cat >conftest.$ac_ext <<_ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18255 /* Override any gcc2 internal prototype to avoid an error. */
18259 /* We use char because int might match the return type of a gcc2
18260 builtin and then its argument prototype would still apply. */
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>conftest.er1
18274 grep -v '^ *+' conftest.er1 >conftest.err
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest$ac_exeext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_cv_lib_socket_connect=yes
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 ac_cv_lib_socket_connect=no
18299 rm -f conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18303 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18304 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18305 if test $ac_cv_lib_socket_connect = yes; then
18306 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18311 # Guillermo Gomez says -lposix is necessary on A/UX.
18312 echo "$as_me:$LINENO: checking for remove" >&5
18313 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18314 if test "${ac_cv_func_remove+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 cat >conftest.$ac_ext <<_ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18323 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18325 #define remove innocuous_remove
18327 /* System header to define __stub macros and hopefully few prototypes,
18328 which can conflict with char remove (); below.
18329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18330 <limits.h> exists even on freestanding compilers. */
18333 # include <limits.h>
18335 # include <assert.h>
18340 /* Override any gcc2 internal prototype to avoid an error. */
18345 /* We use char because int might match the return type of a gcc2
18346 builtin and then its argument prototype would still apply. */
18348 /* The GNU C library defines this for functions which it implements
18349 to always fail with ENOSYS. Some functions are actually named
18350 something starting with __ and the normal name is an alias. */
18351 #if defined (__stub_remove) || defined (__stub___remove)
18354 char (*f) () = remove;
18363 return f != remove;
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370 (eval $ac_link) 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
18377 { ac_try='test -z "$ac_c_werror_flag"
18378 || test ! -s conftest.err'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_cv_func_remove=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_cv_func_remove=no
18397 rm -f conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18400 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18401 echo "${ECHO_T}$ac_cv_func_remove" >&6
18403 if test $ac_cv_func_remove = no; then
18404 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18405 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18406 if test "${ac_cv_lib_posix_remove+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 ac_check_lib_save_LIBS=$LIBS
18410 LIBS="-lposix $LIBS"
18411 cat >conftest.$ac_ext <<_ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18418 /* Override any gcc2 internal prototype to avoid an error. */
18422 /* We use char because int might match the return type of a gcc2
18423 builtin and then its argument prototype would still apply. */
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435 (eval $ac_link) 2>conftest.er1
18437 grep -v '^ *+' conftest.er1 >conftest.err
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try='test -z "$ac_c_werror_flag"
18443 || test ! -s conftest.err'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_cv_lib_posix_remove=yes
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 ac_cv_lib_posix_remove=no
18462 rm -f conftest.err conftest.$ac_objext \
18463 conftest$ac_exeext conftest.$ac_ext
18464 LIBS=$ac_check_lib_save_LIBS
18466 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18467 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18468 if test $ac_cv_lib_posix_remove = yes; then
18469 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18474 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18475 echo "$as_me:$LINENO: checking for shmat" >&5
18476 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18477 if test "${ac_cv_func_shmat+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 cat >conftest.$ac_ext <<_ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18486 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18488 #define shmat innocuous_shmat
18490 /* System header to define __stub macros and hopefully few prototypes,
18491 which can conflict with char shmat (); below.
18492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18493 <limits.h> exists even on freestanding compilers. */
18496 # include <limits.h>
18498 # include <assert.h>
18503 /* Override any gcc2 internal prototype to avoid an error. */
18508 /* We use char because int might match the return type of a gcc2
18509 builtin and then its argument prototype would still apply. */
18511 /* The GNU C library defines this for functions which it implements
18512 to always fail with ENOSYS. Some functions are actually named
18513 something starting with __ and the normal name is an alias. */
18514 #if defined (__stub_shmat) || defined (__stub___shmat)
18517 char (*f) () = shmat;
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533 (eval $ac_link) 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
18540 { ac_try='test -z "$ac_c_werror_flag"
18541 || test ! -s conftest.err'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_cv_func_shmat=yes
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 ac_cv_func_shmat=no
18560 rm -f conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18563 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18564 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18566 if test $ac_cv_func_shmat = no; then
18567 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18568 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18569 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 ac_check_lib_save_LIBS=$LIBS
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18581 /* Override any gcc2 internal prototype to avoid an error. */
18585 /* We use char because int might match the return type of a gcc2
18586 builtin and then its argument prototype would still apply. */
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>conftest.er1
18600 grep -v '^ *+' conftest.er1 >conftest.err
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_lib_ipc_shmat=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_cv_lib_ipc_shmat=no
18625 rm -f conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18629 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18630 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18631 if test $ac_cv_lib_ipc_shmat = yes; then
18632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18638 # Check for libraries that X11R6 Xt/Xaw programs need.
18639 ac_save_LDFLAGS=$LDFLAGS
18640 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18641 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18642 # check for ICE first), but we must link in the order -lSM -lICE or
18643 # we get undefined symbols. So assume we have SM if we have ICE.
18644 # These have to be linked with before -lX11, unlike the other
18645 # libraries we check for below, so use a different variable.
18646 # John Interrante, Karl Berry
18647 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18648 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18649 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18652 ac_check_lib_save_LIBS=$LIBS
18653 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18654 cat >conftest.$ac_ext <<_ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18661 /* Override any gcc2 internal prototype to avoid an error. */
18665 /* We use char because int might match the return type of a gcc2
18666 builtin and then its argument prototype would still apply. */
18667 char IceConnectionNumber ();
18671 IceConnectionNumber ();
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18678 (eval $ac_link) 2>conftest.er1
18680 grep -v '^ *+' conftest.er1 >conftest.err
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag"
18686 || test ! -s conftest.err'
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest$ac_exeext'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_cv_lib_ICE_IceConnectionNumber=yes
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18703 ac_cv_lib_ICE_IceConnectionNumber=no
18705 rm -f conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18707 LIBS=$ac_check_lib_save_LIBS
18709 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18710 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18711 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18712 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18715 LDFLAGS=$ac_save_LDFLAGS
18777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18779 echo "$as_me:$LINENO: checking for $ac_header" >&5
18780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18787 # Is the header compilable?
18788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18790 cat >conftest.$ac_ext <<_ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 $ac_includes_default
18797 #include <$ac_header>
18799 rm -f conftest.$ac_objext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18801 (eval $ac_compile) 2>conftest.er1
18803 grep -v '^ *+' conftest.er1 >conftest.err
18805 cat conftest.err >&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } &&
18808 { ac_try='test -z "$ac_c_werror_flag"
18809 || test ! -s conftest.err'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; } &&
18815 { ac_try='test -s conftest.$ac_objext'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_header_compiler=yes
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 ac_header_compiler=no
18828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18830 echo "${ECHO_T}$ac_header_compiler" >&6
18832 # Is the header present?
18833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18835 cat >conftest.$ac_ext <<_ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 #include <$ac_header>
18843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } >/dev/null; then
18851 if test -s conftest.err; then
18852 ac_cpp_err=$ac_c_preproc_warn_flag
18853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18860 if test -z "$ac_cpp_err"; then
18861 ac_header_preproc=yes
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18866 ac_header_preproc=no
18868 rm -f conftest.err conftest.$ac_ext
18869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18870 echo "${ECHO_T}$ac_header_preproc" >&6
18872 # So? What about this header?
18873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18879 ac_header_preproc=yes
18882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18896 ## ------------------------------------------ ##
18897 ## Report this to the AC_PACKAGE_NAME lists. ##
18898 ## ------------------------------------------ ##
18901 sed "s/^/$as_me: WARNING: /" >&2
18904 echo "$as_me:$LINENO: checking for $ac_header" >&5
18905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18909 eval "$as_ac_Header=\$ac_header_preproc"
18911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18916 cat >>confdefs.h <<_ACEOF
18917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18924 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18926 if test "${ac_cv_header_stdc+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 #include <stdlib.h>
18936 #include <stdarg.h>
18937 #include <string.h>
18948 rm -f conftest.$ac_objext
18949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950 (eval $ac_compile) 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -z "$ac_c_werror_flag"
18958 || test ! -s conftest.err'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; } &&
18964 { ac_try='test -s conftest.$ac_objext'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 ac_cv_header_stdc=yes
18972 echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_cv_header_stdc=no
18977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18979 if test $ac_cv_header_stdc = yes; then
18980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18981 cat >conftest.$ac_ext <<_ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 #include <string.h>
18990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18991 $EGREP "memchr" >/dev/null 2>&1; then
18994 ac_cv_header_stdc=no
19000 if test $ac_cv_header_stdc = yes; then
19001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 #include <stdlib.h>
19011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19012 $EGREP "free" >/dev/null 2>&1; then
19015 ac_cv_header_stdc=no
19021 if test $ac_cv_header_stdc = yes; then
19022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19023 if test "$cross_compiling" = yes; then
19026 cat >conftest.$ac_ext <<_ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19033 #if ((' ' & 0x0FF) == 0x020)
19034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19037 # define ISLOWER(c) \
19038 (('a' <= (c) && (c) <= 'i') \
19039 || ('j' <= (c) && (c) <= 'r') \
19040 || ('s' <= (c) && (c) <= 'z'))
19041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19049 for (i = 0; i < 256; i++)
19050 if (XOR (islower (i), ISLOWER (i))
19051 || toupper (i) != TOUPPER (i))
19056 rm -f conftest$ac_exeext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058 (eval $ac_link) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19069 echo "$as_me: program exited with status $ac_status" >&5
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ( exit $ac_status )
19074 ac_cv_header_stdc=no
19076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19080 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19081 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19082 if test $ac_cv_header_stdc = yes; then
19084 cat >>confdefs.h <<\_ACEOF
19085 #define STDC_HEADERS 1
19090 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19091 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19092 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 cat >conftest.$ac_ext <<_ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 #include <sys/types.h>
19105 return makedev(0, 0);
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112 (eval $ac_link) 2>conftest.er1
19114 grep -v '^ *+' conftest.er1 >conftest.err
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest$ac_exeext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_cv_header_sys_types_h_makedev=yes
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19137 ac_cv_header_sys_types_h_makedev=no
19139 rm -f conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext conftest.$ac_ext
19143 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19144 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19146 if test $ac_cv_header_sys_types_h_makedev = no; then
19147 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19148 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19149 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19150 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19154 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19156 # Is the header compilable?
19157 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19158 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 $ac_includes_default
19166 #include <sys/mkdev.h>
19168 rm -f conftest.$ac_objext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19170 (eval $ac_compile) 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag"
19178 || test ! -s conftest.err'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest.$ac_objext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_header_compiler=yes
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19195 ac_header_compiler=no
19197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19199 echo "${ECHO_T}$ac_header_compiler" >&6
19201 # Is the header present?
19202 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19203 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 #include <sys/mkdev.h>
19212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19215 grep -v '^ *+' conftest.er1 >conftest.err
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } >/dev/null; then
19220 if test -s conftest.err; then
19221 ac_cpp_err=$ac_c_preproc_warn_flag
19222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19229 if test -z "$ac_cpp_err"; then
19230 ac_header_preproc=yes
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_header_preproc=no
19237 rm -f conftest.err conftest.$ac_ext
19238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19239 echo "${ECHO_T}$ac_header_preproc" >&6
19241 # So? What about this header?
19242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19244 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19245 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19246 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19247 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19248 ac_header_preproc=yes
19251 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19252 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19254 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19256 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19258 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19259 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19260 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19261 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19262 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19265 ## ------------------------------------------ ##
19266 ## Report this to the AC_PACKAGE_NAME lists. ##
19267 ## ------------------------------------------ ##
19270 sed "s/^/$as_me: WARNING: /" >&2
19273 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19274 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19275 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19278 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19281 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19284 if test $ac_cv_header_sys_mkdev_h = yes; then
19286 cat >>confdefs.h <<\_ACEOF
19287 #define MAJOR_IN_MKDEV 1
19294 if test $ac_cv_header_sys_mkdev_h = no; then
19295 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19296 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19297 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19298 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19302 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19304 # Is the header compilable?
19305 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19306 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19307 cat >conftest.$ac_ext <<_ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 $ac_includes_default
19314 #include <sys/sysmacros.h>
19316 rm -f conftest.$ac_objext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19318 (eval $ac_compile) 2>conftest.er1
19320 grep -v '^ *+' conftest.er1 >conftest.err
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -z "$ac_c_werror_flag"
19326 || test ! -s conftest.err'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 ac_header_compiler=yes
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19343 ac_header_compiler=no
19345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19347 echo "${ECHO_T}$ac_header_compiler" >&6
19349 # Is the header present?
19350 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19351 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 #include <sys/sysmacros.h>
19360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } >/dev/null; then
19368 if test -s conftest.err; then
19369 ac_cpp_err=$ac_c_preproc_warn_flag
19370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19377 if test -z "$ac_cpp_err"; then
19378 ac_header_preproc=yes
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19383 ac_header_preproc=no
19385 rm -f conftest.err conftest.$ac_ext
19386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19387 echo "${ECHO_T}$ac_header_preproc" >&6
19389 # So? What about this header?
19390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19392 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19393 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19394 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19395 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19396 ac_header_preproc=yes
19399 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19400 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19401 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19402 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19404 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19406 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19408 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19410 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19413 ## ------------------------------------------ ##
19414 ## Report this to the AC_PACKAGE_NAME lists. ##
19415 ## ------------------------------------------ ##
19418 sed "s/^/$as_me: WARNING: /" >&2
19421 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19422 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19423 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19428 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19429 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19432 if test $ac_cv_header_sys_sysmacros_h = yes; then
19434 cat >>confdefs.h <<\_ACEOF
19435 #define MAJOR_IN_SYSMACROS 1
19449 ac_header_dirent=no
19450 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19451 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19452 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19453 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 cat >conftest.$ac_ext <<_ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 #include <sys/types.h>
19475 rm -f conftest.$ac_objext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477 (eval $ac_compile) 2>conftest.er1
19479 grep -v '^ *+' conftest.er1 >conftest.err
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_c_werror_flag"
19485 || test ! -s conftest.err'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; } &&
19491 { ac_try='test -s conftest.$ac_objext'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19497 eval "$as_ac_Header=yes"
19499 echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 eval "$as_ac_Header=no"
19504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19513 ac_header_dirent=$ac_hdr; break
19517 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19518 if test $ac_header_dirent = dirent.h; then
19519 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19520 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19521 if test "${ac_cv_search_opendir+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 ac_func_search_save_LIBS=$LIBS
19525 ac_cv_search_opendir=no
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 /* Override any gcc2 internal prototype to avoid an error. */
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>conftest.er1
19552 grep -v '^ *+' conftest.er1 >conftest.err
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_search_opendir="none required"
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19576 rm -f conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19578 if test "$ac_cv_search_opendir" = no; then
19579 for ac_lib in dir; do
19580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19588 /* Override any gcc2 internal prototype to avoid an error. */
19592 /* We use char because int might match the return type of a gcc2
19593 builtin and then its argument prototype would still apply. */
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19605 (eval $ac_link) 2>conftest.er1
19607 grep -v '^ *+' conftest.er1 >conftest.err
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -z "$ac_c_werror_flag"
19613 || test ! -s conftest.err'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try='test -s conftest$ac_exeext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_search_opendir="-l$ac_lib"
19628 echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19632 rm -f conftest.err conftest.$ac_objext \
19633 conftest$ac_exeext conftest.$ac_ext
19636 LIBS=$ac_func_search_save_LIBS
19638 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19639 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19640 if test "$ac_cv_search_opendir" != no; then
19641 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19646 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19647 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19648 if test "${ac_cv_search_opendir+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19651 ac_func_search_save_LIBS=$LIBS
19652 ac_cv_search_opendir=no
19653 cat >conftest.$ac_ext <<_ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h. */
19660 /* Override any gcc2 internal prototype to avoid an error. */
19664 /* We use char because int might match the return type of a gcc2
19665 builtin and then its argument prototype would still apply. */
19675 rm -f conftest.$ac_objext conftest$ac_exeext
19676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677 (eval $ac_link) 2>conftest.er1
19679 grep -v '^ *+' conftest.er1 >conftest.err
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
19684 { ac_try='test -z "$ac_c_werror_flag"
19685 || test ! -s conftest.err'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; } &&
19691 { ac_try='test -s conftest$ac_exeext'
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697 ac_cv_search_opendir="none required"
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19703 rm -f conftest.err conftest.$ac_objext \
19704 conftest$ac_exeext conftest.$ac_ext
19705 if test "$ac_cv_search_opendir" = no; then
19706 for ac_lib in x; do
19707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19708 cat >conftest.$ac_ext <<_ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19715 /* Override any gcc2 internal prototype to avoid an error. */
19719 /* We use char because int might match the return type of a gcc2
19720 builtin and then its argument prototype would still apply. */
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19732 (eval $ac_link) 2>conftest.er1
19734 grep -v '^ *+' conftest.er1 >conftest.err
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
19739 { ac_try='test -z "$ac_c_werror_flag"
19740 || test ! -s conftest.err'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest$ac_exeext'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_search_opendir="-l$ac_lib"
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19759 rm -f conftest.err conftest.$ac_objext \
19760 conftest$ac_exeext conftest.$ac_ext
19763 LIBS=$ac_func_search_save_LIBS
19765 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19766 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19767 if test "$ac_cv_search_opendir" != no; then
19768 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19774 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19775 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19776 if test "${ac_cv_header_stat_broken+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 #include <sys/types.h>
19786 #include <sys/stat.h>
19788 #if defined(S_ISBLK) && defined(S_IFDIR)
19789 # if S_ISBLK (S_IFDIR)
19794 #if defined(S_ISBLK) && defined(S_IFCHR)
19795 # if S_ISBLK (S_IFCHR)
19800 #if defined(S_ISLNK) && defined(S_IFREG)
19801 # if S_ISLNK (S_IFREG)
19806 #if defined(S_ISSOCK) && defined(S_IFREG)
19807 # if S_ISSOCK (S_IFREG)
19813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19814 $EGREP "You lose" >/dev/null 2>&1; then
19815 ac_cv_header_stat_broken=yes
19817 ac_cv_header_stat_broken=no
19822 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19823 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19824 if test $ac_cv_header_stat_broken = yes; then
19826 cat >>confdefs.h <<\_ACEOF
19827 #define STAT_MACROS_BROKEN 1
19832 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19833 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19834 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 cat >conftest.$ac_ext <<_ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19843 #include <sys/types.h>
19844 #include <sys/wait.h>
19845 #ifndef WEXITSTATUS
19846 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19849 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19857 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag"
19872 || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_cv_header_sys_wait_h=yes
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_cv_header_sys_wait_h=no
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19893 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19894 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19895 if test $ac_cv_header_sys_wait_h = yes; then
19897 cat >>confdefs.h <<\_ACEOF
19898 #define HAVE_SYS_WAIT_H 1
19903 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19904 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19905 if test "${ac_cv_header_time+set}" = set; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914 #include <sys/types.h>
19915 #include <sys/time.h>
19921 if ((struct tm *) 0)
19927 rm -f conftest.$ac_objext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19929 (eval $ac_compile) 2>conftest.er1
19931 grep -v '^ *+' conftest.er1 >conftest.err
19933 cat conftest.err >&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
19936 { ac_try='test -z "$ac_c_werror_flag"
19937 || test ! -s conftest.err'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest.$ac_objext'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 ac_cv_header_time=yes
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19954 ac_cv_header_time=no
19956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19958 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19959 echo "${ECHO_T}$ac_cv_header_time" >&6
19960 if test $ac_cv_header_time = yes; then
19962 cat >>confdefs.h <<\_ACEOF
19963 #define TIME_WITH_SYS_TIME 1
19969 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19970 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
19971 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 $ac_includes_default
19984 static struct stat ac_aggr;
19985 if (ac_aggr.st_blksize)
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag"
20001 || test ! -s conftest.err'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_cv_member_struct_stat_st_blksize=yes
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 $ac_includes_default
20028 static struct stat ac_aggr;
20029 if (sizeof ac_aggr.st_blksize)
20035 rm -f conftest.$ac_objext
20036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037 (eval $ac_compile) 2>conftest.er1
20039 grep -v '^ *+' conftest.er1 >conftest.err
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } &&
20044 { ac_try='test -z "$ac_c_werror_flag"
20045 || test ! -s conftest.err'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_cv_member_struct_stat_st_blksize=yes
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_cv_member_struct_stat_st_blksize=no
20064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20069 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20070 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20072 cat >>confdefs.h <<_ACEOF
20073 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20077 cat >>confdefs.h <<\_ACEOF
20078 #define HAVE_ST_BLKSIZE 1
20084 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20085 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20086 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 cat >conftest.$ac_ext <<_ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 $ac_includes_default
20099 static struct stat ac_aggr;
20100 if (ac_aggr.st_blocks)
20106 rm -f conftest.$ac_objext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 2>conftest.er1
20110 grep -v '^ *+' conftest.er1 >conftest.err
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } &&
20115 { ac_try='test -z "$ac_c_werror_flag"
20116 || test ! -s conftest.err'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest.$ac_objext'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_cv_member_struct_stat_st_blocks=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 cat >conftest.$ac_ext <<_ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 $ac_includes_default
20143 static struct stat ac_aggr;
20144 if (sizeof ac_aggr.st_blocks)
20150 rm -f conftest.$ac_objext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152 (eval $ac_compile) 2>conftest.er1
20154 grep -v '^ *+' conftest.er1 >conftest.err
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } &&
20159 { ac_try='test -z "$ac_c_werror_flag"
20160 || test ! -s conftest.err'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 ac_cv_member_struct_stat_st_blocks=yes
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 ac_cv_member_struct_stat_st_blocks=no
20179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20184 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20185 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20187 cat >>confdefs.h <<_ACEOF
20188 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20192 cat >>confdefs.h <<\_ACEOF
20193 #define HAVE_ST_BLOCKS 1
20198 "fileblocks.$ac_objext" | \
20199 *" fileblocks.$ac_objext" | \
20200 "fileblocks.$ac_objext "* | \
20201 *" fileblocks.$ac_objext "* ) ;;
20202 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20208 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20209 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20210 if test "${ac_cv_struct_tm+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 cat >conftest.$ac_ext <<_ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 #include <sys/types.h>
20225 struct tm *tp; tp->tm_sec;
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20234 grep -v '^ *+' conftest.er1 >conftest.err
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try='test -z "$ac_c_werror_flag"
20240 || test ! -s conftest.err'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest.$ac_objext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_struct_tm=time.h
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 ac_cv_struct_tm=sys/time.h
20259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20261 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20262 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20263 if test $ac_cv_struct_tm = sys/time.h; then
20265 cat >>confdefs.h <<\_ACEOF
20266 #define TM_IN_SYS_TIME 1
20271 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20272 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20273 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 #include <sys/types.h>
20283 #include <$ac_cv_struct_tm>
20289 static struct tm ac_aggr;
20290 if (ac_aggr.tm_zone)
20296 rm -f conftest.$ac_objext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298 (eval $ac_compile) 2>conftest.er1
20300 grep -v '^ *+' conftest.er1 >conftest.err
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
20305 { ac_try='test -z "$ac_c_werror_flag"
20306 || test ! -s conftest.err'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest.$ac_objext'
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 ac_cv_member_struct_tm_tm_zone=yes
20320 echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <sys/types.h>
20330 #include <$ac_cv_struct_tm>
20336 static struct tm ac_aggr;
20337 if (sizeof ac_aggr.tm_zone)
20343 rm -f conftest.$ac_objext
20344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20345 (eval $ac_compile) 2>conftest.er1
20347 grep -v '^ *+' conftest.er1 >conftest.err
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } &&
20352 { ac_try='test -z "$ac_c_werror_flag"
20353 || test ! -s conftest.err'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; } &&
20359 { ac_try='test -s conftest.$ac_objext'
20360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361 (eval $ac_try) 2>&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; }; then
20365 ac_cv_member_struct_tm_tm_zone=yes
20367 echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20370 ac_cv_member_struct_tm_tm_zone=no
20372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20376 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20377 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20378 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20380 cat >>confdefs.h <<_ACEOF
20381 #define HAVE_STRUCT_TM_TM_ZONE 1
20387 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20389 cat >>confdefs.h <<\_ACEOF
20390 #define HAVE_TM_ZONE 1
20394 echo "$as_me:$LINENO: checking for tzname" >&5
20395 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20396 if test "${ac_cv_var_tzname+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20406 #ifndef tzname /* For SGI. */
20407 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20418 rm -f conftest.$ac_objext conftest$ac_exeext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20420 (eval $ac_link) 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
20427 { ac_try='test -z "$ac_c_werror_flag"
20428 || test ! -s conftest.err'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; } &&
20434 { ac_try='test -s conftest$ac_exeext'
20435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436 (eval $ac_try) 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; }; then
20440 ac_cv_var_tzname=yes
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20445 ac_cv_var_tzname=no
20447 rm -f conftest.err conftest.$ac_objext \
20448 conftest$ac_exeext conftest.$ac_ext
20450 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20451 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20452 if test $ac_cv_var_tzname = yes; then
20454 cat >>confdefs.h <<\_ACEOF
20455 #define HAVE_TZNAME 1
20462 echo "$as_me:$LINENO: checking for utime.h" >&5
20463 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20464 if test "${ba_cv_header_utime_h+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 cat >conftest.$ac_ext <<_ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20474 #include <sys/types.h>
20484 rm -f conftest.$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20488 grep -v '^ *+' conftest.er1 >conftest.err
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 ba_cv_header_utime_h=yes
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 ba_cv_header_utime_h=no
20513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20515 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20516 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20517 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20518 #define HAVE_UTIME_H 1
20522 echo "$as_me:$LINENO: checking for socklen_t" >&5
20523 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20524 if test "${ba_cv_header_socklen_t+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 cat >conftest.$ac_ext <<_ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20534 #include <sys/types.h>
20535 #include <sys/socket.h>
20544 rm -f conftest.$ac_objext
20545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20546 (eval $ac_compile) 2>conftest.er1
20548 grep -v '^ *+' conftest.er1 >conftest.err
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } &&
20553 { ac_try='test -z "$ac_c_werror_flag"
20554 || test ! -s conftest.err'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; } &&
20560 { ac_try='test -s conftest.$ac_objext'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 ba_cv_header_socklen_t=yes
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20571 ba_cv_header_socklen_t=no
20573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20575 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20576 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20577 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20578 #define HAVE_SOCKLEN_T 1
20582 echo "$as_me:$LINENO: checking for bigendian" >&5
20583 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20584 if test "${ba_cv_bigendian+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 if test "$cross_compiling" = yes; then
20590 cat >conftest.$ac_ext <<_ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20596 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20598 rm -f conftest$ac_exeext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20600 (eval $ac_link) 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 ba_cv_bigendian=yes
20611 echo "$as_me: program exited with status $ac_status" >&5
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20615 ( exit $ac_status )
20618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20621 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20622 echo "${ECHO_T}$ba_cv_bigendian" >&6
20623 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20624 #define HAVE_BIGENDIAN 1
20629 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20631 if test "${ac_cv_c_const+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20644 /* FIXME: Include the comments suggested by Paul. */
20645 #ifndef __cplusplus
20646 /* Ultrix mips cc rejects this. */
20647 typedef int charset[2];
20649 /* SunOS 4.1.1 cc rejects this. */
20650 char const *const *ccp;
20652 /* NEC SVR4.0.2 mips cc rejects this. */
20653 struct point {int x, y;};
20654 static struct point const zero = {0,0};
20655 /* AIX XL C 1.02.0.0 rejects this.
20656 It does not let you subtract one const X* pointer from another in
20657 an arm of an if-expression whose if-part is not a constant
20659 const char *g = "string";
20660 ccp = &g + (g ? g-g : 0);
20661 /* HPUX 7.0 cc rejects these. */
20664 ccp = (char const *const *) p;
20665 { /* SCO 3.2v4 cc rejects this. */
20667 char const *s = 0 ? (char *) 0 : (char const *) 0;
20671 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20672 int x[] = {25, 17};
20673 const int *foo = &x[0];
20676 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20677 typedef const int *iptr;
20681 { /* AIX XL C 1.02.0.0 rejects this saying
20682 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20683 struct s { int j; const int *ap[3]; };
20684 struct s *b; b->j = 5;
20686 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20687 const int foo = 10;
20695 rm -f conftest.$ac_objext
20696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20697 (eval $ac_compile) 2>conftest.er1
20699 grep -v '^ *+' conftest.er1 >conftest.err
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } &&
20704 { ac_try='test -z "$ac_c_werror_flag"
20705 || test ! -s conftest.err'
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; } &&
20711 { ac_try='test -s conftest.$ac_objext'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20726 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20727 echo "${ECHO_T}$ac_cv_c_const" >&6
20728 if test $ac_cv_c_const = no; then
20730 cat >>confdefs.h <<\_ACEOF
20738 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20739 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
20741 # The order of these tests is important.
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #include <sys/statvfs.h>
20749 #include <sys/fstyp.h>
20751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20754 grep -v '^ *+' conftest.er1 >conftest.err
20756 cat conftest.err >&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } >/dev/null; then
20759 if test -s conftest.err; then
20760 ac_cpp_err=$ac_c_preproc_warn_flag
20761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20768 if test -z "$ac_cpp_err"; then
20769 cat >>confdefs.h <<\_ACEOF
20770 #define FSTYPE_STATVFS 1
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20779 rm -f conftest.err conftest.$ac_ext
20780 if test $fstype = no; then
20781 cat >conftest.$ac_ext <<_ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787 #include <sys/statfs.h>
20788 #include <sys/fstyp.h>
20790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } >/dev/null; then
20798 if test -s conftest.err; then
20799 ac_cpp_err=$ac_c_preproc_warn_flag
20800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20807 if test -z "$ac_cpp_err"; then
20808 cat >>confdefs.h <<\_ACEOF
20809 #define FSTYPE_USG_STATFS 1
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20818 rm -f conftest.err conftest.$ac_ext
20820 if test $fstype = no; then
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 #include <sys/statfs.h>
20828 #include <sys/vmount.h>
20830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20833 grep -v '^ *+' conftest.er1 >conftest.err
20835 cat conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } >/dev/null; then
20838 if test -s conftest.err; then
20839 ac_cpp_err=$ac_c_preproc_warn_flag
20840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20847 if test -z "$ac_cpp_err"; then
20848 cat >>confdefs.h <<\_ACEOF
20849 #define FSTYPE_AIX_STATFS 1
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20858 rm -f conftest.err conftest.$ac_ext
20860 if test $fstype = no; then
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 #include <mntent.h>
20869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20872 grep -v '^ *+' conftest.er1 >conftest.err
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } >/dev/null; then
20877 if test -s conftest.err; then
20878 ac_cpp_err=$ac_c_preproc_warn_flag
20879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20886 if test -z "$ac_cpp_err"; then
20887 cat >>confdefs.h <<\_ACEOF
20888 #define FSTYPE_MNTENT 1
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20897 rm -f conftest.err conftest.$ac_ext
20899 if test $fstype = no; then
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 #include <sys/mount.h>
20909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20910 $EGREP "f_type;" >/dev/null 2>&1; then
20911 cat >>confdefs.h <<\_ACEOF
20912 #define FSTYPE_STATFS 1
20919 if test $fstype = no; then
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 #include <sys/mount.h>
20927 #include <sys/fs_types.h>
20929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20932 grep -v '^ *+' conftest.er1 >conftest.err
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } >/dev/null; then
20937 if test -s conftest.err; then
20938 ac_cpp_err=$ac_c_preproc_warn_flag
20939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20946 if test -z "$ac_cpp_err"; then
20947 cat >>confdefs.h <<\_ACEOF
20948 #define FSTYPE_GETMNT 1
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20957 rm -f conftest.err conftest.$ac_ext
20959 echo "$as_me:$LINENO: result: $fstype" >&5
20960 echo "${ECHO_T}$fstype" >&6
20962 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20963 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20964 if test "${ac_cv_type_signal+set}" = set; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 #include <sys/types.h>
20974 #include <signal.h>
20979 extern "C" void (*signal (int, void (*)(int)))(int);
20981 void (*signal ()) ();
20992 rm -f conftest.$ac_objext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20994 (eval $ac_compile) 2>conftest.er1
20996 grep -v '^ *+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } &&
21001 { ac_try='test -z "$ac_c_werror_flag"
21002 || test ! -s conftest.err'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest.$ac_objext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 ac_cv_type_signal=void
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ac_cv_type_signal=int
21021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21023 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21024 echo "${ECHO_T}$ac_cv_type_signal" >&6
21026 cat >>confdefs.h <<_ACEOF
21027 #define RETSIGTYPE $ac_cv_type_signal
21032 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21033 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21034 if test "${bash_cv_signal_vintage+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 cat >conftest.$ac_ext <<_ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <signal.h>
21050 struct sigaction sa;
21051 sigemptyset(&ss); sigsuspend(&ss);
21052 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21053 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21059 rm -f conftest.$ac_objext conftest$ac_exeext
21060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21061 (eval $ac_link) 2>conftest.er1
21063 grep -v '^ *+' conftest.er1 >conftest.err
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -z "$ac_c_werror_flag"
21069 || test ! -s conftest.err'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest$ac_exeext'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 bash_cv_signal_vintage=posix
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 #include <signal.h>
21098 int mask = sigmask(SIGINT);
21099 sigsetmask(mask); sigblock(mask); sigpause(mask);
21105 rm -f conftest.$ac_objext conftest$ac_exeext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21107 (eval $ac_link) 2>conftest.er1
21109 grep -v '^ *+' conftest.er1 >conftest.err
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 { ac_try='test -z "$ac_c_werror_flag"
21115 || test ! -s conftest.err'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; } &&
21121 { ac_try='test -s conftest$ac_exeext'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 bash_cv_signal_vintage=4.2bsd
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21140 #include <signal.h>
21141 RETSIGTYPE foo() { }
21146 int mask = sigmask(SIGINT);
21147 sigset(SIGINT, foo); sigrelse(SIGINT);
21148 sighold(SIGINT); sigpause(SIGINT);
21154 rm -f conftest.$ac_objext conftest$ac_exeext
21155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21156 (eval $ac_link) 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } &&
21163 { ac_try='test -z "$ac_c_werror_flag"
21164 || test ! -s conftest.err'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; } &&
21170 { ac_try='test -s conftest$ac_exeext'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; }; then
21176 bash_cv_signal_vintage=svr3
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 bash_cv_signal_vintage=v7
21184 rm -f conftest.err conftest.$ac_objext \
21185 conftest$ac_exeext conftest.$ac_ext
21188 rm -f conftest.err conftest.$ac_objext \
21189 conftest$ac_exeext conftest.$ac_ext
21192 rm -f conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21197 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21198 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21199 if test "$bash_cv_signal_vintage" = posix; then
21200 cat >>confdefs.h <<\_ACEOF
21201 #define HAVE_POSIX_SIGNALS 1
21204 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21205 cat >>confdefs.h <<\_ACEOF
21206 #define HAVE_BSD_SIGNALS 1
21209 elif test "$bash_cv_signal_vintage" = svr3; then
21210 cat >>confdefs.h <<\_ACEOF
21211 #define HAVE_USG_SIGHOLD 1
21216 echo "$as_me:$LINENO: checking for mode_t" >&5
21217 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21218 if test "${ac_cv_type_mode_t+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 cat >conftest.$ac_ext <<_ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21227 $ac_includes_default
21233 if (sizeof (mode_t))
21239 rm -f conftest.$ac_objext
21240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21241 (eval $ac_compile) 2>conftest.er1
21243 grep -v '^ *+' conftest.er1 >conftest.err
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } &&
21248 { ac_try='test -z "$ac_c_werror_flag"
21249 || test ! -s conftest.err'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; } &&
21255 { ac_try='test -s conftest.$ac_objext'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; }; then
21261 ac_cv_type_mode_t=yes
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_cv_type_mode_t=no
21268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21270 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21271 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21272 if test $ac_cv_type_mode_t = yes; then
21276 cat >>confdefs.h <<_ACEOF
21282 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21283 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21284 if test "${ac_cv_type_uid_t+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21287 cat >conftest.$ac_ext <<_ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 #include <sys/types.h>
21296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21297 $EGREP "uid_t" >/dev/null 2>&1; then
21298 ac_cv_type_uid_t=yes
21300 ac_cv_type_uid_t=no
21305 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21306 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21307 if test $ac_cv_type_uid_t = no; then
21309 cat >>confdefs.h <<\_ACEOF
21314 cat >>confdefs.h <<\_ACEOF
21320 echo "$as_me:$LINENO: checking for size_t" >&5
21321 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21322 if test "${ac_cv_type_size_t+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 cat >conftest.$ac_ext <<_ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21331 $ac_includes_default
21337 if (sizeof (size_t))
21343 rm -f conftest.$ac_objext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345 (eval $ac_compile) 2>conftest.er1
21347 grep -v '^ *+' conftest.er1 >conftest.err
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
21352 { ac_try='test -z "$ac_c_werror_flag"
21353 || test ! -s conftest.err'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; } &&
21359 { ac_try='test -s conftest.$ac_objext'
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; }; then
21365 ac_cv_type_size_t=yes
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21370 ac_cv_type_size_t=no
21372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21374 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21375 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21376 if test $ac_cv_type_size_t = yes; then
21380 cat >>confdefs.h <<_ACEOF
21381 #define size_t unsigned
21386 echo "$as_me:$LINENO: checking for pid_t" >&5
21387 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21388 if test "${ac_cv_type_pid_t+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 cat >conftest.$ac_ext <<_ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 $ac_includes_default
21403 if (sizeof (pid_t))
21409 rm -f conftest.$ac_objext
21410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21411 (eval $ac_compile) 2>conftest.er1
21413 grep -v '^ *+' conftest.er1 >conftest.err
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } &&
21418 { ac_try='test -z "$ac_c_werror_flag"
21419 || test ! -s conftest.err'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; } &&
21425 { ac_try='test -s conftest.$ac_objext'
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; }; then
21431 ac_cv_type_pid_t=yes
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_cv_type_pid_t=no
21438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21440 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21441 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21442 if test $ac_cv_type_pid_t = yes; then
21446 cat >>confdefs.h <<_ACEOF
21452 echo "$as_me:$LINENO: checking for off_t" >&5
21453 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21454 if test "${ac_cv_type_off_t+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 cat >conftest.$ac_ext <<_ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 $ac_includes_default
21469 if (sizeof (off_t))
21475 rm -f conftest.$ac_objext
21476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21477 (eval $ac_compile) 2>conftest.er1
21479 grep -v '^ *+' conftest.er1 >conftest.err
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } &&
21484 { ac_try='test -z "$ac_c_werror_flag"
21485 || test ! -s conftest.err'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; } &&
21491 { ac_try='test -s conftest.$ac_objext'
21492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; }; then
21497 ac_cv_type_off_t=yes
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 ac_cv_type_off_t=no
21504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21506 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21507 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21508 if test $ac_cv_type_off_t = yes; then
21512 cat >>confdefs.h <<_ACEOF
21518 echo "$as_me:$LINENO: checking for ino_t" >&5
21519 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21520 if test "${ac_cv_type_ino_t+set}" = set; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 cat >conftest.$ac_ext <<_ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529 $ac_includes_default
21535 if (sizeof (ino_t))
21541 rm -f conftest.$ac_objext
21542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21543 (eval $ac_compile) 2>conftest.er1
21545 grep -v '^ *+' conftest.er1 >conftest.err
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } &&
21550 { ac_try='test -z "$ac_c_werror_flag"
21551 || test ! -s conftest.err'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; } &&
21557 { ac_try='test -s conftest.$ac_objext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ac_cv_type_ino_t=yes
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21568 ac_cv_type_ino_t=no
21570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21572 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21573 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
21574 if test $ac_cv_type_ino_t = yes; then
21578 cat >>confdefs.h <<_ACEOF
21579 #define ino_t unsigned long
21584 echo "$as_me:$LINENO: checking for dev_t" >&5
21585 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
21586 if test "${ac_cv_type_dev_t+set}" = set; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21589 cat >conftest.$ac_ext <<_ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 $ac_includes_default
21601 if (sizeof (dev_t))
21607 rm -f conftest.$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>conftest.er1
21611 grep -v '^ *+' conftest.er1 >conftest.err
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try='test -z "$ac_c_werror_flag"
21617 || test ! -s conftest.err'
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); }; } &&
21623 { ac_try='test -s conftest.$ac_objext'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; }; then
21629 ac_cv_type_dev_t=yes
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_cv_type_dev_t=no
21636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21638 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21639 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
21640 if test $ac_cv_type_dev_t = yes; then
21644 cat >>confdefs.h <<_ACEOF
21645 #define dev_t unsigned long
21650 echo "$as_me:$LINENO: checking for daddr_t" >&5
21651 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
21652 if test "${ac_cv_type_daddr_t+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 cat >conftest.$ac_ext <<_ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21661 $ac_includes_default
21667 if (sizeof (daddr_t))
21673 rm -f conftest.$ac_objext
21674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21675 (eval $ac_compile) 2>conftest.er1
21677 grep -v '^ *+' conftest.er1 >conftest.err
21679 cat conftest.err >&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } &&
21682 { ac_try='test -z "$ac_c_werror_flag"
21683 || test ! -s conftest.err'
21684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685 (eval $ac_try) 2>&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); }; } &&
21689 { ac_try='test -s conftest.$ac_objext'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; }; then
21695 ac_cv_type_daddr_t=yes
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21700 ac_cv_type_daddr_t=no
21702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21704 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
21705 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
21706 if test $ac_cv_type_daddr_t = yes; then
21710 cat >>confdefs.h <<_ACEOF
21711 #define daddr_t long
21716 echo "$as_me:$LINENO: checking for major_t" >&5
21717 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
21718 if test "${ac_cv_type_major_t+set}" = set; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 cat >conftest.$ac_ext <<_ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21727 $ac_includes_default
21733 if (sizeof (major_t))
21739 rm -f conftest.$ac_objext
21740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21741 (eval $ac_compile) 2>conftest.er1
21743 grep -v '^ *+' conftest.er1 >conftest.err
21745 cat conftest.err >&5
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); } &&
21748 { ac_try='test -z "$ac_c_werror_flag"
21749 || test ! -s conftest.err'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; } &&
21755 { ac_try='test -s conftest.$ac_objext'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 ac_cv_type_major_t=yes
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ac_cv_type_major_t=no
21768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21770 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
21771 echo "${ECHO_T}$ac_cv_type_major_t" >&6
21772 if test $ac_cv_type_major_t = yes; then
21776 cat >>confdefs.h <<_ACEOF
21777 #define major_t int
21782 echo "$as_me:$LINENO: checking for minor_t" >&5
21783 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
21784 if test "${ac_cv_type_minor_t+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21787 cat >conftest.$ac_ext <<_ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 $ac_includes_default
21799 if (sizeof (minor_t))
21805 rm -f conftest.$ac_objext
21806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21807 (eval $ac_compile) 2>conftest.er1
21809 grep -v '^ *+' conftest.er1 >conftest.err
21811 cat conftest.err >&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } &&
21814 { ac_try='test -z "$ac_c_werror_flag"
21815 || test ! -s conftest.err'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s conftest.$ac_objext'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 ac_cv_type_minor_t=yes
21829 echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21832 ac_cv_type_minor_t=no
21834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21836 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
21837 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
21838 if test $ac_cv_type_minor_t = yes; then
21842 cat >>confdefs.h <<_ACEOF
21843 #define minor_t int
21848 echo "$as_me:$LINENO: checking for ssize_t" >&5
21849 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21850 if test "${ac_cv_type_ssize_t+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 cat >conftest.$ac_ext <<_ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 $ac_includes_default
21865 if (sizeof (ssize_t))
21871 rm -f conftest.$ac_objext
21872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21873 (eval $ac_compile) 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } &&
21880 { ac_try='test -z "$ac_c_werror_flag"
21881 || test ! -s conftest.err'
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest.$ac_objext'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; }; then
21893 ac_cv_type_ssize_t=yes
21895 echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21898 ac_cv_type_ssize_t=no
21900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21902 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21903 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
21904 if test $ac_cv_type_ssize_t = yes; then
21908 cat >>confdefs.h <<_ACEOF
21909 #define ssize_t int
21914 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21915 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
21916 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21917 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 cat >conftest.$ac_ext <<_ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h. */
21925 $ac_includes_default
21929 static struct stat ac_aggr;
21930 if (ac_aggr.st_blocks)
21936 rm -f conftest.$ac_objext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21938 (eval $ac_compile) 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } &&
21945 { ac_try='test -z "$ac_c_werror_flag"
21946 || test ! -s conftest.err'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try='test -s conftest.$ac_objext'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21958 ac_cv_member_struct_stat_st_blocks=yes
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 cat >conftest.$ac_ext <<_ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 $ac_includes_default
21973 static struct stat ac_aggr;
21974 if (sizeof ac_aggr.st_blocks)
21980 rm -f conftest.$ac_objext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21982 (eval $ac_compile) 2>conftest.er1
21984 grep -v '^ *+' conftest.er1 >conftest.err
21986 cat conftest.err >&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
21989 { ac_try='test -z "$ac_c_werror_flag"
21990 || test ! -s conftest.err'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; } &&
21996 { ac_try='test -s conftest.$ac_objext'
21997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998 (eval $ac_try) 2>&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; }; then
22002 ac_cv_member_struct_stat_st_blocks=yes
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 ac_cv_member_struct_stat_st_blocks=no
22009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22013 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22014 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22015 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22017 cat >>confdefs.h <<_ACEOF
22018 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22022 cat >>confdefs.h <<\_ACEOF
22023 #define HAVE_ST_BLOCKS 1
22028 "fileblocks.$ac_objext" | \
22029 *" fileblocks.$ac_objext" | \
22030 "fileblocks.$ac_objext "* | \
22031 *" fileblocks.$ac_objext "* ) ;;
22032 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22039 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22040 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22041 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22042 echo $ECHO_N "(cached) $ECHO_C" >&6
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050 $ac_includes_default
22054 static struct stat ac_aggr;
22055 if (ac_aggr.st_rdev)
22061 rm -f conftest.$ac_objext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063 (eval $ac_compile) 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } &&
22070 { ac_try='test -z "$ac_c_werror_flag"
22071 || test ! -s conftest.err'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; } &&
22077 { ac_try='test -s conftest.$ac_objext'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22083 ac_cv_member_struct_stat_st_rdev=yes
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 cat >conftest.$ac_ext <<_ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 $ac_includes_default
22098 static struct stat ac_aggr;
22099 if (sizeof ac_aggr.st_rdev)
22105 rm -f conftest.$ac_objext
22106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22107 (eval $ac_compile) 2>conftest.er1
22109 grep -v '^ *+' conftest.er1 >conftest.err
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
22114 { ac_try='test -z "$ac_c_werror_flag"
22115 || test ! -s conftest.err'
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest.$ac_objext'
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 ac_cv_member_struct_stat_st_rdev=yes
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_cv_member_struct_stat_st_rdev=no
22134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22138 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22139 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22140 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22142 cat >>confdefs.h <<_ACEOF
22143 #define HAVE_STRUCT_STAT_ST_RDEV 1
22147 cat >>confdefs.h <<\_ACEOF
22148 #define HAVE_ST_RDEV 1
22154 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22155 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22156 if test "${ac_cv_struct_tm+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
22159 cat >conftest.$ac_ext <<_ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22165 #include <sys/types.h>
22171 struct tm *tp; tp->tm_sec;
22176 rm -f conftest.$ac_objext
22177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22178 (eval $ac_compile) 2>conftest.er1
22180 grep -v '^ *+' conftest.er1 >conftest.err
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
22185 { ac_try='test -z "$ac_c_werror_flag"
22186 || test ! -s conftest.err'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; } &&
22192 { ac_try='test -s conftest.$ac_objext'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; }; then
22198 ac_cv_struct_tm=time.h
22200 echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22203 ac_cv_struct_tm=sys/time.h
22205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22207 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22208 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22209 if test $ac_cv_struct_tm = sys/time.h; then
22211 cat >>confdefs.h <<\_ACEOF
22212 #define TM_IN_SYS_TIME 1
22217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22219 if test "${ac_cv_c_const+set}" = set; then
22220 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 cat >conftest.$ac_ext <<_ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h. */
22232 /* FIXME: Include the comments suggested by Paul. */
22233 #ifndef __cplusplus
22234 /* Ultrix mips cc rejects this. */
22235 typedef int charset[2];
22237 /* SunOS 4.1.1 cc rejects this. */
22238 char const *const *ccp;
22240 /* NEC SVR4.0.2 mips cc rejects this. */
22241 struct point {int x, y;};
22242 static struct point const zero = {0,0};
22243 /* AIX XL C 1.02.0.0 rejects this.
22244 It does not let you subtract one const X* pointer from another in
22245 an arm of an if-expression whose if-part is not a constant
22247 const char *g = "string";
22248 ccp = &g + (g ? g-g : 0);
22249 /* HPUX 7.0 cc rejects these. */
22252 ccp = (char const *const *) p;
22253 { /* SCO 3.2v4 cc rejects this. */
22255 char const *s = 0 ? (char *) 0 : (char const *) 0;
22259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22260 int x[] = {25, 17};
22261 const int *foo = &x[0];
22264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22265 typedef const int *iptr;
22269 { /* AIX XL C 1.02.0.0 rejects this saying
22270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22271 struct s { int j; const int *ap[3]; };
22272 struct s *b; b->j = 5;
22274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22275 const int foo = 10;
22283 rm -f conftest.$ac_objext
22284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22285 (eval $ac_compile) 2>conftest.er1
22287 grep -v '^ *+' conftest.er1 >conftest.err
22289 cat conftest.err >&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } &&
22292 { ac_try='test -z "$ac_c_werror_flag"
22293 || test ! -s conftest.err'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; } &&
22299 { ac_try='test -s conftest.$ac_objext'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; }; then
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22315 echo "${ECHO_T}$ac_cv_c_const" >&6
22316 if test $ac_cv_c_const = no; then
22318 cat >>confdefs.h <<\_ACEOF
22326 echo "$as_me:$LINENO: checking for char" >&5
22327 echo $ECHO_N "checking for char... $ECHO_C" >&6
22328 if test "${ac_cv_type_char+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22331 cat >conftest.$ac_ext <<_ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337 $ac_includes_default
22349 rm -f conftest.$ac_objext
22350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22351 (eval $ac_compile) 2>conftest.er1
22353 grep -v '^ *+' conftest.er1 >conftest.err
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } &&
22358 { ac_try='test -z "$ac_c_werror_flag"
22359 || test ! -s conftest.err'
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; } &&
22365 { ac_try='test -s conftest.$ac_objext'
22366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367 (eval $ac_try) 2>&5
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22371 ac_cv_type_char=yes
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22380 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22381 echo "${ECHO_T}$ac_cv_type_char" >&6
22383 echo "$as_me:$LINENO: checking size of char" >&5
22384 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22385 if test "${ac_cv_sizeof_char+set}" = set; then
22386 echo $ECHO_N "(cached) $ECHO_C" >&6
22388 if test "$ac_cv_type_char" = yes; then
22389 # The cast to unsigned long works around a bug in the HP C Compiler
22390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22392 # This bug is HP SR number 8606223364.
22393 if test "$cross_compiling" = yes; then
22394 # Depending upon the size, compute the lo and hi bounds.
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 $ac_includes_default
22405 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22412 rm -f conftest.$ac_objext
22413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22414 (eval $ac_compile) 2>conftest.er1
22416 grep -v '^ *+' conftest.er1 >conftest.err
22418 cat conftest.err >&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } &&
22421 { ac_try='test -z "$ac_c_werror_flag"
22422 || test ! -s conftest.err'
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; } &&
22428 { ac_try='test -s conftest.$ac_objext'
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
22436 cat >conftest.$ac_ext <<_ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 $ac_includes_default
22446 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22453 rm -f conftest.$ac_objext
22454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22455 (eval $ac_compile) 2>conftest.er1
22457 grep -v '^ *+' conftest.er1 >conftest.err
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } &&
22462 { ac_try='test -z "$ac_c_werror_flag"
22463 || test ! -s conftest.err'
22464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465 (eval $ac_try) 2>&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; } &&
22469 { ac_try='test -s conftest.$ac_objext'
22470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471 (eval $ac_try) 2>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; }; then
22475 ac_hi=$ac_mid; break
22477 echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22480 ac_lo=`expr $ac_mid + 1`
22481 if test $ac_lo -le $ac_mid; then
22485 ac_mid=`expr 2 '*' $ac_mid + 1`
22487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 cat >conftest.$ac_ext <<_ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22499 $ac_includes_default
22503 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22510 rm -f conftest.$ac_objext
22511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22512 (eval $ac_compile) 2>conftest.er1
22514 grep -v '^ *+' conftest.er1 >conftest.err
22516 cat conftest.err >&5
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); } &&
22519 { ac_try='test -z "$ac_c_werror_flag"
22520 || test ! -s conftest.err'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; } &&
22526 { ac_try='test -s conftest.$ac_objext'
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; }; then
22534 cat >conftest.$ac_ext <<_ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 $ac_includes_default
22544 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22551 rm -f conftest.$ac_objext
22552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22553 (eval $ac_compile) 2>conftest.er1
22555 grep -v '^ *+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } &&
22560 { ac_try='test -z "$ac_c_werror_flag"
22561 || test ! -s conftest.err'
22562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22563 (eval $ac_try) 2>&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); }; } &&
22567 { ac_try='test -s conftest.$ac_objext'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573 ac_lo=$ac_mid; break
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_hi=`expr '(' $ac_mid ')' - 1`
22579 if test $ac_mid -le $ac_hi; then
22583 ac_mid=`expr 2 '*' $ac_mid`
22585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22596 # Binary search between lo and hi bounds.
22597 while test "x$ac_lo" != "x$ac_hi"; do
22598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22599 cat >conftest.$ac_ext <<_ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22605 $ac_includes_default
22609 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22616 rm -f conftest.$ac_objext
22617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22618 (eval $ac_compile) 2>conftest.er1
22620 grep -v '^ *+' conftest.er1 >conftest.err
22622 cat conftest.err >&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } &&
22625 { ac_try='test -z "$ac_c_werror_flag"
22626 || test ! -s conftest.err'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; } &&
22632 { ac_try='test -s conftest.$ac_objext'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; }; then
22640 echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 ac_lo=`expr '(' $ac_mid ')' + 1`
22645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22648 ?*) ac_cv_sizeof_char=$ac_lo;;
22649 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22650 See \`config.log' for more details." >&5
22651 echo "$as_me: error: cannot compute sizeof (char), 77
22652 See \`config.log' for more details." >&2;}
22653 { (exit 1); exit 1; }; } ;;
22656 if test "$cross_compiling" = yes; then
22657 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22658 See \`config.log' for more details." >&5
22659 echo "$as_me: error: cannot run test program while cross compiling
22660 See \`config.log' for more details." >&2;}
22661 { (exit 1); exit 1; }; }
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 $ac_includes_default
22670 long longval () { return (long) (sizeof (char)); }
22671 unsigned long ulongval () { return (long) (sizeof (char)); }
22673 #include <stdlib.h>
22678 FILE *f = fopen ("conftest.val", "w");
22681 if (((long) (sizeof (char))) < 0)
22683 long i = longval ();
22684 if (i != ((long) (sizeof (char))))
22686 fprintf (f, "%ld\n", i);
22690 unsigned long i = ulongval ();
22691 if (i != ((long) (sizeof (char))))
22693 fprintf (f, "%lu\n", i);
22695 exit (ferror (f) || fclose (f) != 0);
22701 rm -f conftest$ac_exeext
22702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22703 (eval $ac_link) 2>&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; }; then
22712 ac_cv_sizeof_char=`cat conftest.val`
22714 echo "$as_me: program exited with status $ac_status" >&5
22715 echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22718 ( exit $ac_status )
22719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22720 See \`config.log' for more details." >&5
22721 echo "$as_me: error: cannot compute sizeof (char), 77
22722 See \`config.log' for more details." >&2;}
22723 { (exit 1); exit 1; }; }
22725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22730 ac_cv_sizeof_char=0
22733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22734 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
22735 cat >>confdefs.h <<_ACEOF
22736 #define SIZEOF_CHAR $ac_cv_sizeof_char
22740 echo "$as_me:$LINENO: checking for short int" >&5
22741 echo $ECHO_N "checking for short int... $ECHO_C" >&6
22742 if test "${ac_cv_type_short_int+set}" = set; then
22743 echo $ECHO_N "(cached) $ECHO_C" >&6
22745 cat >conftest.$ac_ext <<_ACEOF
22748 cat confdefs.h >>conftest.$ac_ext
22749 cat >>conftest.$ac_ext <<_ACEOF
22750 /* end confdefs.h. */
22751 $ac_includes_default
22755 if ((short int *) 0)
22757 if (sizeof (short int))
22763 rm -f conftest.$ac_objext
22764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22765 (eval $ac_compile) 2>conftest.er1
22767 grep -v '^ *+' conftest.er1 >conftest.err
22769 cat conftest.err >&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } &&
22772 { ac_try='test -z "$ac_c_werror_flag"
22773 || test ! -s conftest.err'
22774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775 (eval $ac_try) 2>&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; } &&
22779 { ac_try='test -s conftest.$ac_objext'
22780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781 (eval $ac_try) 2>&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; }; then
22785 ac_cv_type_short_int=yes
22787 echo "$as_me: failed program was:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22790 ac_cv_type_short_int=no
22792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22794 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
22795 echo "${ECHO_T}$ac_cv_type_short_int" >&6
22797 echo "$as_me:$LINENO: checking size of short int" >&5
22798 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
22799 if test "${ac_cv_sizeof_short_int+set}" = set; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22802 if test "$ac_cv_type_short_int" = yes; then
22803 # The cast to unsigned long works around a bug in the HP C Compiler
22804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22806 # This bug is HP SR number 8606223364.
22807 if test "$cross_compiling" = yes; then
22808 # Depending upon the size, compute the lo and hi bounds.
22809 cat >conftest.$ac_ext <<_ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 $ac_includes_default
22819 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
22826 rm -f conftest.$ac_objext
22827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22828 (eval $ac_compile) 2>conftest.er1
22830 grep -v '^ *+' conftest.er1 >conftest.err
22832 cat conftest.err >&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } &&
22835 { ac_try='test -z "$ac_c_werror_flag"
22836 || test ! -s conftest.err'
22837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838 (eval $ac_try) 2>&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); }; } &&
22842 { ac_try='test -s conftest.$ac_objext'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22850 cat >conftest.$ac_ext <<_ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22856 $ac_includes_default
22860 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
22867 rm -f conftest.$ac_objext
22868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22869 (eval $ac_compile) 2>conftest.er1
22871 grep -v '^ *+' conftest.er1 >conftest.err
22873 cat conftest.err >&5
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } &&
22876 { ac_try='test -z "$ac_c_werror_flag"
22877 || test ! -s conftest.err'
22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879 (eval $ac_try) 2>&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; } &&
22883 { ac_try='test -s conftest.$ac_objext'
22884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885 (eval $ac_try) 2>&5
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; }; then
22889 ac_hi=$ac_mid; break
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 ac_lo=`expr $ac_mid + 1`
22895 if test $ac_lo -le $ac_mid; then
22899 ac_mid=`expr 2 '*' $ac_mid + 1`
22901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22904 echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 $ac_includes_default
22917 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
22924 rm -f conftest.$ac_objext
22925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22926 (eval $ac_compile) 2>conftest.er1
22928 grep -v '^ *+' conftest.er1 >conftest.err
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } &&
22933 { ac_try='test -z "$ac_c_werror_flag"
22934 || test ! -s conftest.err'
22935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936 (eval $ac_try) 2>&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; } &&
22940 { ac_try='test -s conftest.$ac_objext'
22941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942 (eval $ac_try) 2>&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); }; }; then
22948 cat >conftest.$ac_ext <<_ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954 $ac_includes_default
22958 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
22965 rm -f conftest.$ac_objext
22966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22967 (eval $ac_compile) 2>conftest.er1
22969 grep -v '^ *+' conftest.er1 >conftest.err
22971 cat conftest.err >&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } &&
22974 { ac_try='test -z "$ac_c_werror_flag"
22975 || test ! -s conftest.err'
22976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977 (eval $ac_try) 2>&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); }; } &&
22981 { ac_try='test -s conftest.$ac_objext'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; }; then
22987 ac_lo=$ac_mid; break
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 ac_hi=`expr '(' $ac_mid ')' - 1`
22993 if test $ac_mid -le $ac_hi; then
22997 ac_mid=`expr 2 '*' $ac_mid`
22999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23002 echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23010 # Binary search between lo and hi bounds.
23011 while test "x$ac_lo" != "x$ac_hi"; do
23012 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23013 cat >conftest.$ac_ext <<_ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h. */
23019 $ac_includes_default
23023 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23030 rm -f conftest.$ac_objext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23032 (eval $ac_compile) 2>conftest.er1
23034 grep -v '^ *+' conftest.er1 >conftest.err
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
23039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest.$ac_objext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ac_lo=`expr '(' $ac_mid ')' + 1`
23059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23062 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23063 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23064 See \`config.log' for more details." >&5
23065 echo "$as_me: error: cannot compute sizeof (short int), 77
23066 See \`config.log' for more details." >&2;}
23067 { (exit 1); exit 1; }; } ;;
23070 if test "$cross_compiling" = yes; then
23071 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23072 See \`config.log' for more details." >&5
23073 echo "$as_me: error: cannot run test program while cross compiling
23074 See \`config.log' for more details." >&2;}
23075 { (exit 1); exit 1; }; }
23077 cat >conftest.$ac_ext <<_ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 $ac_includes_default
23084 long longval () { return (long) (sizeof (short int)); }
23085 unsigned long ulongval () { return (long) (sizeof (short int)); }
23087 #include <stdlib.h>
23092 FILE *f = fopen ("conftest.val", "w");
23095 if (((long) (sizeof (short int))) < 0)
23097 long i = longval ();
23098 if (i != ((long) (sizeof (short int))))
23100 fprintf (f, "%ld\n", i);
23104 unsigned long i = ulongval ();
23105 if (i != ((long) (sizeof (short int))))
23107 fprintf (f, "%lu\n", i);
23109 exit (ferror (f) || fclose (f) != 0);
23115 rm -f conftest$ac_exeext
23116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23117 (eval $ac_link) 2>&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; }; then
23126 ac_cv_sizeof_short_int=`cat conftest.val`
23128 echo "$as_me: program exited with status $ac_status" >&5
23129 echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23132 ( exit $ac_status )
23133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23134 See \`config.log' for more details." >&5
23135 echo "$as_me: error: cannot compute sizeof (short int), 77
23136 See \`config.log' for more details." >&2;}
23137 { (exit 1); exit 1; }; }
23139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23144 ac_cv_sizeof_short_int=0
23147 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23148 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23149 cat >>confdefs.h <<_ACEOF
23150 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23154 echo "$as_me:$LINENO: checking for int" >&5
23155 echo $ECHO_N "checking for int... $ECHO_C" >&6
23156 if test "${ac_cv_type_int+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 cat >conftest.$ac_ext <<_ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23165 $ac_includes_default
23177 rm -f conftest.$ac_objext
23178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23179 (eval $ac_compile) 2>conftest.er1
23181 grep -v '^ *+' conftest.er1 >conftest.err
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
23186 { ac_try='test -z "$ac_c_werror_flag"
23187 || test ! -s conftest.err'
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; } &&
23193 { ac_try='test -s conftest.$ac_objext'
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23201 echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23208 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23209 echo "${ECHO_T}$ac_cv_type_int" >&6
23211 echo "$as_me:$LINENO: checking size of int" >&5
23212 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23213 if test "${ac_cv_sizeof_int+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23216 if test "$ac_cv_type_int" = yes; then
23217 # The cast to unsigned long works around a bug in the HP C Compiler
23218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23220 # This bug is HP SR number 8606223364.
23221 if test "$cross_compiling" = yes; then
23222 # Depending upon the size, compute the lo and hi bounds.
23223 cat >conftest.$ac_ext <<_ACEOF
23226 cat confdefs.h >>conftest.$ac_ext
23227 cat >>conftest.$ac_ext <<_ACEOF
23228 /* end confdefs.h. */
23229 $ac_includes_default
23233 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23240 rm -f conftest.$ac_objext
23241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23242 (eval $ac_compile) 2>conftest.er1
23244 grep -v '^ *+' conftest.er1 >conftest.err
23246 cat conftest.err >&5
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); } &&
23249 { ac_try='test -z "$ac_c_werror_flag"
23250 || test ! -s conftest.err'
23251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23252 (eval $ac_try) 2>&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); }; } &&
23256 { ac_try='test -s conftest.$ac_objext'
23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; }; then
23264 cat >conftest.$ac_ext <<_ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23270 $ac_includes_default
23274 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23281 rm -f conftest.$ac_objext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23283 (eval $ac_compile) 2>conftest.er1
23285 grep -v '^ *+' conftest.er1 >conftest.err
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } &&
23290 { ac_try='test -z "$ac_c_werror_flag"
23291 || test ! -s conftest.err'
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; } &&
23297 { ac_try='test -s conftest.$ac_objext'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; }; then
23303 ac_hi=$ac_mid; break
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ac_lo=`expr $ac_mid + 1`
23309 if test $ac_lo -le $ac_mid; then
23313 ac_mid=`expr 2 '*' $ac_mid + 1`
23315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23318 echo "$as_me: failed program was:" >&5
23319 sed 's/^/| /' conftest.$ac_ext >&5
23321 cat >conftest.$ac_ext <<_ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h. */
23327 $ac_includes_default
23331 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23338 rm -f conftest.$ac_objext
23339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23340 (eval $ac_compile) 2>conftest.er1
23342 grep -v '^ *+' conftest.er1 >conftest.err
23344 cat conftest.err >&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } &&
23347 { ac_try='test -z "$ac_c_werror_flag"
23348 || test ! -s conftest.err'
23349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350 (eval $ac_try) 2>&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; } &&
23354 { ac_try='test -s conftest.$ac_objext'
23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; }; then
23362 cat >conftest.$ac_ext <<_ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 $ac_includes_default
23372 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23379 rm -f conftest.$ac_objext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23381 (eval $ac_compile) 2>conftest.er1
23383 grep -v '^ *+' conftest.er1 >conftest.err
23385 cat conftest.err >&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
23388 { ac_try='test -z "$ac_c_werror_flag"
23389 || test ! -s conftest.err'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; } &&
23395 { ac_try='test -s conftest.$ac_objext'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; }; then
23401 ac_lo=$ac_mid; break
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23406 ac_hi=`expr '(' $ac_mid ')' - 1`
23407 if test $ac_mid -le $ac_hi; then
23411 ac_mid=`expr 2 '*' $ac_mid`
23413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23424 # Binary search between lo and hi bounds.
23425 while test "x$ac_lo" != "x$ac_hi"; do
23426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23427 cat >conftest.$ac_ext <<_ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433 $ac_includes_default
23437 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23444 rm -f conftest.$ac_objext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23446 (eval $ac_compile) 2>conftest.er1
23448 grep -v '^ *+' conftest.er1 >conftest.err
23450 cat conftest.err >&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } &&
23453 { ac_try='test -z "$ac_c_werror_flag"
23454 || test ! -s conftest.err'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; } &&
23460 { ac_try='test -s conftest.$ac_objext'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23471 ac_lo=`expr '(' $ac_mid ')' + 1`
23473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23476 ?*) ac_cv_sizeof_int=$ac_lo;;
23477 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23478 See \`config.log' for more details." >&5
23479 echo "$as_me: error: cannot compute sizeof (int), 77
23480 See \`config.log' for more details." >&2;}
23481 { (exit 1); exit 1; }; } ;;
23484 if test "$cross_compiling" = yes; then
23485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23486 See \`config.log' for more details." >&5
23487 echo "$as_me: error: cannot run test program while cross compiling
23488 See \`config.log' for more details." >&2;}
23489 { (exit 1); exit 1; }; }
23491 cat >conftest.$ac_ext <<_ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 $ac_includes_default
23498 long longval () { return (long) (sizeof (int)); }
23499 unsigned long ulongval () { return (long) (sizeof (int)); }
23501 #include <stdlib.h>
23506 FILE *f = fopen ("conftest.val", "w");
23509 if (((long) (sizeof (int))) < 0)
23511 long i = longval ();
23512 if (i != ((long) (sizeof (int))))
23514 fprintf (f, "%ld\n", i);
23518 unsigned long i = ulongval ();
23519 if (i != ((long) (sizeof (int))))
23521 fprintf (f, "%lu\n", i);
23523 exit (ferror (f) || fclose (f) != 0);
23529 rm -f conftest$ac_exeext
23530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23531 (eval $ac_link) 2>&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; }; then
23540 ac_cv_sizeof_int=`cat conftest.val`
23542 echo "$as_me: program exited with status $ac_status" >&5
23543 echo "$as_me: failed program was:" >&5
23544 sed 's/^/| /' conftest.$ac_ext >&5
23546 ( exit $ac_status )
23547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23548 See \`config.log' for more details." >&5
23549 echo "$as_me: error: cannot compute sizeof (int), 77
23550 See \`config.log' for more details." >&2;}
23551 { (exit 1); exit 1; }; }
23553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23562 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23563 cat >>confdefs.h <<_ACEOF
23564 #define SIZEOF_INT $ac_cv_sizeof_int
23568 echo "$as_me:$LINENO: checking for long int" >&5
23569 echo $ECHO_N "checking for long int... $ECHO_C" >&6
23570 if test "${ac_cv_type_long_int+set}" = set; then
23571 echo $ECHO_N "(cached) $ECHO_C" >&6
23573 cat >conftest.$ac_ext <<_ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23579 $ac_includes_default
23583 if ((long int *) 0)
23585 if (sizeof (long int))
23591 rm -f conftest.$ac_objext
23592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23593 (eval $ac_compile) 2>conftest.er1
23595 grep -v '^ *+' conftest.er1 >conftest.err
23597 cat conftest.err >&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } &&
23600 { ac_try='test -z "$ac_c_werror_flag"
23601 || test ! -s conftest.err'
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; } &&
23607 { ac_try='test -s conftest.$ac_objext'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; }; then
23613 ac_cv_type_long_int=yes
23615 echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.$ac_ext >&5
23618 ac_cv_type_long_int=no
23620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23622 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23623 echo "${ECHO_T}$ac_cv_type_long_int" >&6
23625 echo "$as_me:$LINENO: checking size of long int" >&5
23626 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
23627 if test "${ac_cv_sizeof_long_int+set}" = set; then
23628 echo $ECHO_N "(cached) $ECHO_C" >&6
23630 if test "$ac_cv_type_long_int" = yes; then
23631 # The cast to unsigned long works around a bug in the HP C Compiler
23632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23634 # This bug is HP SR number 8606223364.
23635 if test "$cross_compiling" = yes; then
23636 # Depending upon the size, compute the lo and hi bounds.
23637 cat >conftest.$ac_ext <<_ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23643 $ac_includes_default
23647 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
23654 rm -f conftest.$ac_objext
23655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23656 (eval $ac_compile) 2>conftest.er1
23658 grep -v '^ *+' conftest.er1 >conftest.err
23660 cat conftest.err >&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); } &&
23663 { ac_try='test -z "$ac_c_werror_flag"
23664 || test ! -s conftest.err'
23665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23666 (eval $ac_try) 2>&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); }; } &&
23670 { ac_try='test -s conftest.$ac_objext'
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; }; then
23678 cat >conftest.$ac_ext <<_ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h. */
23684 $ac_includes_default
23688 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
23695 rm -f conftest.$ac_objext
23696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23697 (eval $ac_compile) 2>conftest.er1
23699 grep -v '^ *+' conftest.er1 >conftest.err
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } &&
23704 { ac_try='test -z "$ac_c_werror_flag"
23705 || test ! -s conftest.err'
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; } &&
23711 { ac_try='test -s conftest.$ac_objext'
23712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713 (eval $ac_try) 2>&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); }; }; then
23717 ac_hi=$ac_mid; break
23719 echo "$as_me: failed program was:" >&5
23720 sed 's/^/| /' conftest.$ac_ext >&5
23722 ac_lo=`expr $ac_mid + 1`
23723 if test $ac_lo -le $ac_mid; then
23727 ac_mid=`expr 2 '*' $ac_mid + 1`
23729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23732 echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 cat >conftest.$ac_ext <<_ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23741 $ac_includes_default
23745 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
23752 rm -f conftest.$ac_objext
23753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23754 (eval $ac_compile) 2>conftest.er1
23756 grep -v '^ *+' conftest.er1 >conftest.err
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } &&
23761 { ac_try='test -z "$ac_c_werror_flag"
23762 || test ! -s conftest.err'
23763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23764 (eval $ac_try) 2>&5
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); }; } &&
23768 { ac_try='test -s conftest.$ac_objext'
23769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23770 (eval $ac_try) 2>&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); }; }; then
23776 cat >conftest.$ac_ext <<_ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h. */
23782 $ac_includes_default
23786 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
23793 rm -f conftest.$ac_objext
23794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23795 (eval $ac_compile) 2>conftest.er1
23797 grep -v '^ *+' conftest.er1 >conftest.err
23799 cat conftest.err >&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); } &&
23802 { ac_try='test -z "$ac_c_werror_flag"
23803 || test ! -s conftest.err'
23804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805 (eval $ac_try) 2>&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); }; } &&
23809 { ac_try='test -s conftest.$ac_objext'
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; }; then
23815 ac_lo=$ac_mid; break
23817 echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23820 ac_hi=`expr '(' $ac_mid ')' - 1`
23821 if test $ac_mid -le $ac_hi; then
23825 ac_mid=`expr 2 '*' $ac_mid`
23827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23830 echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23838 # Binary search between lo and hi bounds.
23839 while test "x$ac_lo" != "x$ac_hi"; do
23840 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23841 cat >conftest.$ac_ext <<_ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 $ac_includes_default
23851 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
23858 rm -f conftest.$ac_objext
23859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23860 (eval $ac_compile) 2>conftest.er1
23862 grep -v '^ *+' conftest.er1 >conftest.err
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } &&
23867 { ac_try='test -z "$ac_c_werror_flag"
23868 || test ! -s conftest.err'
23869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23870 (eval $ac_try) 2>&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); }; } &&
23874 { ac_try='test -s conftest.$ac_objext'
23875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876 (eval $ac_try) 2>&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); }; }; then
23882 echo "$as_me: failed program was:" >&5
23883 sed 's/^/| /' conftest.$ac_ext >&5
23885 ac_lo=`expr '(' $ac_mid ')' + 1`
23887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23890 ?*) ac_cv_sizeof_long_int=$ac_lo;;
23891 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
23892 See \`config.log' for more details." >&5
23893 echo "$as_me: error: cannot compute sizeof (long int), 77
23894 See \`config.log' for more details." >&2;}
23895 { (exit 1); exit 1; }; } ;;
23898 if test "$cross_compiling" = yes; then
23899 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23900 See \`config.log' for more details." >&5
23901 echo "$as_me: error: cannot run test program while cross compiling
23902 See \`config.log' for more details." >&2;}
23903 { (exit 1); exit 1; }; }
23905 cat >conftest.$ac_ext <<_ACEOF
23908 cat confdefs.h >>conftest.$ac_ext
23909 cat >>conftest.$ac_ext <<_ACEOF
23910 /* end confdefs.h. */
23911 $ac_includes_default
23912 long longval () { return (long) (sizeof (long int)); }
23913 unsigned long ulongval () { return (long) (sizeof (long int)); }
23915 #include <stdlib.h>
23920 FILE *f = fopen ("conftest.val", "w");
23923 if (((long) (sizeof (long int))) < 0)
23925 long i = longval ();
23926 if (i != ((long) (sizeof (long int))))
23928 fprintf (f, "%ld\n", i);
23932 unsigned long i = ulongval ();
23933 if (i != ((long) (sizeof (long int))))
23935 fprintf (f, "%lu\n", i);
23937 exit (ferror (f) || fclose (f) != 0);
23943 rm -f conftest$ac_exeext
23944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23945 (eval $ac_link) 2>&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23950 (eval $ac_try) 2>&5
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); }; }; then
23954 ac_cv_sizeof_long_int=`cat conftest.val`
23956 echo "$as_me: program exited with status $ac_status" >&5
23957 echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23960 ( exit $ac_status )
23961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
23962 See \`config.log' for more details." >&5
23963 echo "$as_me: error: cannot compute sizeof (long int), 77
23964 See \`config.log' for more details." >&2;}
23965 { (exit 1); exit 1; }; }
23967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23972 ac_cv_sizeof_long_int=0
23975 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
23976 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
23977 cat >>confdefs.h <<_ACEOF
23978 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
23982 echo "$as_me:$LINENO: checking for long long int" >&5
23983 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
23984 if test "${ac_cv_type_long_long_int+set}" = set; then
23985 echo $ECHO_N "(cached) $ECHO_C" >&6
23987 cat >conftest.$ac_ext <<_ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h. */
23993 $ac_includes_default
23997 if ((long long int *) 0)
23999 if (sizeof (long long int))
24005 rm -f conftest.$ac_objext
24006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24007 (eval $ac_compile) 2>conftest.er1
24009 grep -v '^ *+' conftest.er1 >conftest.err
24011 cat conftest.err >&5
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } &&
24014 { ac_try='test -z "$ac_c_werror_flag"
24015 || test ! -s conftest.err'
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; } &&
24021 { ac_try='test -s conftest.$ac_objext'
24022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023 (eval $ac_try) 2>&5
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); }; }; then
24027 ac_cv_type_long_long_int=yes
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 ac_cv_type_long_long_int=no
24034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24036 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24037 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24039 echo "$as_me:$LINENO: checking size of long long int" >&5
24040 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24041 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24042 echo $ECHO_N "(cached) $ECHO_C" >&6
24044 if test "$ac_cv_type_long_long_int" = yes; then
24045 # The cast to unsigned long works around a bug in the HP C Compiler
24046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24048 # This bug is HP SR number 8606223364.
24049 if test "$cross_compiling" = yes; then
24050 # Depending upon the size, compute the lo and hi bounds.
24051 cat >conftest.$ac_ext <<_ACEOF
24054 cat confdefs.h >>conftest.$ac_ext
24055 cat >>conftest.$ac_ext <<_ACEOF
24056 /* end confdefs.h. */
24057 $ac_includes_default
24061 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24068 rm -f conftest.$ac_objext
24069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24070 (eval $ac_compile) 2>conftest.er1
24072 grep -v '^ *+' conftest.er1 >conftest.err
24074 cat conftest.err >&5
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } &&
24077 { ac_try='test -z "$ac_c_werror_flag"
24078 || test ! -s conftest.err'
24079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080 (eval $ac_try) 2>&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; } &&
24084 { ac_try='test -s conftest.$ac_objext'
24085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24086 (eval $ac_try) 2>&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); }; }; then
24092 cat >conftest.$ac_ext <<_ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h. */
24098 $ac_includes_default
24102 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24109 rm -f conftest.$ac_objext
24110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24111 (eval $ac_compile) 2>conftest.er1
24113 grep -v '^ *+' conftest.er1 >conftest.err
24115 cat conftest.err >&5
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); } &&
24118 { ac_try='test -z "$ac_c_werror_flag"
24119 || test ! -s conftest.err'
24120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121 (eval $ac_try) 2>&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); }; } &&
24125 { ac_try='test -s conftest.$ac_objext'
24126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127 (eval $ac_try) 2>&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); }; }; then
24131 ac_hi=$ac_mid; break
24133 echo "$as_me: failed program was:" >&5
24134 sed 's/^/| /' conftest.$ac_ext >&5
24136 ac_lo=`expr $ac_mid + 1`
24137 if test $ac_lo -le $ac_mid; then
24141 ac_mid=`expr 2 '*' $ac_mid + 1`
24143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24146 echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.$ac_ext >&5
24149 cat >conftest.$ac_ext <<_ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24155 $ac_includes_default
24159 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24166 rm -f conftest.$ac_objext
24167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24168 (eval $ac_compile) 2>conftest.er1
24170 grep -v '^ *+' conftest.er1 >conftest.err
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } &&
24175 { ac_try='test -z "$ac_c_werror_flag"
24176 || test ! -s conftest.err'
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; } &&
24182 { ac_try='test -s conftest.$ac_objext'
24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 (eval $ac_try) 2>&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; }; then
24190 cat >conftest.$ac_ext <<_ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h. */
24196 $ac_includes_default
24200 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24207 rm -f conftest.$ac_objext
24208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24209 (eval $ac_compile) 2>conftest.er1
24211 grep -v '^ *+' conftest.er1 >conftest.err
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } &&
24216 { ac_try='test -z "$ac_c_werror_flag"
24217 || test ! -s conftest.err'
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; } &&
24223 { ac_try='test -s conftest.$ac_objext'
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; }; then
24229 ac_lo=$ac_mid; break
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 ac_hi=`expr '(' $ac_mid ')' - 1`
24235 if test $ac_mid -le $ac_hi; then
24239 ac_mid=`expr 2 '*' $ac_mid`
24241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24244 echo "$as_me: failed program was:" >&5
24245 sed 's/^/| /' conftest.$ac_ext >&5
24249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24252 # Binary search between lo and hi bounds.
24253 while test "x$ac_lo" != "x$ac_hi"; do
24254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24255 cat >conftest.$ac_ext <<_ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h. */
24261 $ac_includes_default
24265 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24272 rm -f conftest.$ac_objext
24273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24274 (eval $ac_compile) 2>conftest.er1
24276 grep -v '^ *+' conftest.er1 >conftest.err
24278 cat conftest.err >&5
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); } &&
24281 { ac_try='test -z "$ac_c_werror_flag"
24282 || test ! -s conftest.err'
24283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24284 (eval $ac_try) 2>&5
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); }; } &&
24288 { ac_try='test -s conftest.$ac_objext'
24289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24290 (eval $ac_try) 2>&5
24292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); }; }; then
24296 echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24299 ac_lo=`expr '(' $ac_mid ')' + 1`
24301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24304 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24305 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24306 See \`config.log' for more details." >&5
24307 echo "$as_me: error: cannot compute sizeof (long long int), 77
24308 See \`config.log' for more details." >&2;}
24309 { (exit 1); exit 1; }; } ;;
24312 if test "$cross_compiling" = yes; then
24313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24314 See \`config.log' for more details." >&5
24315 echo "$as_me: error: cannot run test program while cross compiling
24316 See \`config.log' for more details." >&2;}
24317 { (exit 1); exit 1; }; }
24319 cat >conftest.$ac_ext <<_ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24325 $ac_includes_default
24326 long longval () { return (long) (sizeof (long long int)); }
24327 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24329 #include <stdlib.h>
24334 FILE *f = fopen ("conftest.val", "w");
24337 if (((long) (sizeof (long long int))) < 0)
24339 long i = longval ();
24340 if (i != ((long) (sizeof (long long int))))
24342 fprintf (f, "%ld\n", i);
24346 unsigned long i = ulongval ();
24347 if (i != ((long) (sizeof (long long int))))
24349 fprintf (f, "%lu\n", i);
24351 exit (ferror (f) || fclose (f) != 0);
24357 rm -f conftest$ac_exeext
24358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24359 (eval $ac_link) 2>&5
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24364 (eval $ac_try) 2>&5
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); }; }; then
24368 ac_cv_sizeof_long_long_int=`cat conftest.val`
24370 echo "$as_me: program exited with status $ac_status" >&5
24371 echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.$ac_ext >&5
24374 ( exit $ac_status )
24375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24376 See \`config.log' for more details." >&5
24377 echo "$as_me: error: cannot compute sizeof (long long int), 77
24378 See \`config.log' for more details." >&2;}
24379 { (exit 1); exit 1; }; }
24381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24386 ac_cv_sizeof_long_long_int=0
24389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24390 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24391 cat >>confdefs.h <<_ACEOF
24392 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24396 echo "$as_me:$LINENO: checking for int *" >&5
24397 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24398 if test "${ac_cv_type_int_p+set}" = set; then
24399 echo $ECHO_N "(cached) $ECHO_C" >&6
24401 cat >conftest.$ac_ext <<_ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 $ac_includes_default
24413 if (sizeof (int *))
24419 rm -f conftest.$ac_objext
24420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24421 (eval $ac_compile) 2>conftest.er1
24423 grep -v '^ *+' conftest.er1 >conftest.err
24425 cat conftest.err >&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } &&
24428 { ac_try='test -z "$ac_c_werror_flag"
24429 || test ! -s conftest.err'
24430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431 (eval $ac_try) 2>&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); }; } &&
24435 { ac_try='test -s conftest.$ac_objext'
24436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437 (eval $ac_try) 2>&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; }; then
24441 ac_cv_type_int_p=yes
24443 echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24446 ac_cv_type_int_p=no
24448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24450 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24451 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24453 echo "$as_me:$LINENO: checking size of int *" >&5
24454 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24455 if test "${ac_cv_sizeof_int_p+set}" = set; then
24456 echo $ECHO_N "(cached) $ECHO_C" >&6
24458 if test "$ac_cv_type_int_p" = yes; then
24459 # The cast to unsigned long works around a bug in the HP C Compiler
24460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24462 # This bug is HP SR number 8606223364.
24463 if test "$cross_compiling" = yes; then
24464 # Depending upon the size, compute the lo and hi bounds.
24465 cat >conftest.$ac_ext <<_ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h. */
24471 $ac_includes_default
24475 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24482 rm -f conftest.$ac_objext
24483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24484 (eval $ac_compile) 2>conftest.er1
24486 grep -v '^ *+' conftest.er1 >conftest.err
24488 cat conftest.err >&5
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); } &&
24491 { ac_try='test -z "$ac_c_werror_flag"
24492 || test ! -s conftest.err'
24493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24494 (eval $ac_try) 2>&5
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; } &&
24498 { ac_try='test -s conftest.$ac_objext'
24499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500 (eval $ac_try) 2>&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; }; then
24506 cat >conftest.$ac_ext <<_ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24512 $ac_includes_default
24516 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24523 rm -f conftest.$ac_objext
24524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24525 (eval $ac_compile) 2>conftest.er1
24527 grep -v '^ *+' conftest.er1 >conftest.err
24529 cat conftest.err >&5
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); } &&
24532 { ac_try='test -z "$ac_c_werror_flag"
24533 || test ! -s conftest.err'
24534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535 (eval $ac_try) 2>&5
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; } &&
24539 { ac_try='test -s conftest.$ac_objext'
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; }; then
24545 ac_hi=$ac_mid; break
24547 echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550 ac_lo=`expr $ac_mid + 1`
24551 if test $ac_lo -le $ac_mid; then
24555 ac_mid=`expr 2 '*' $ac_mid + 1`
24557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24560 echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24563 cat >conftest.$ac_ext <<_ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h. */
24569 $ac_includes_default
24573 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24580 rm -f conftest.$ac_objext
24581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24582 (eval $ac_compile) 2>conftest.er1
24584 grep -v '^ *+' conftest.er1 >conftest.err
24586 cat conftest.err >&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } &&
24589 { ac_try='test -z "$ac_c_werror_flag"
24590 || test ! -s conftest.err'
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; } &&
24596 { ac_try='test -s conftest.$ac_objext'
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; }; then
24604 cat >conftest.$ac_ext <<_ACEOF
24607 cat confdefs.h >>conftest.$ac_ext
24608 cat >>conftest.$ac_ext <<_ACEOF
24609 /* end confdefs.h. */
24610 $ac_includes_default
24614 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
24621 rm -f conftest.$ac_objext
24622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24623 (eval $ac_compile) 2>conftest.er1
24625 grep -v '^ *+' conftest.er1 >conftest.err
24627 cat conftest.err >&5
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); } &&
24630 { ac_try='test -z "$ac_c_werror_flag"
24631 || test ! -s conftest.err'
24632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24633 (eval $ac_try) 2>&5
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); }; } &&
24637 { ac_try='test -s conftest.$ac_objext'
24638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639 (eval $ac_try) 2>&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); }; }; then
24643 ac_lo=$ac_mid; break
24645 echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24648 ac_hi=`expr '(' $ac_mid ')' - 1`
24649 if test $ac_mid -le $ac_hi; then
24653 ac_mid=`expr 2 '*' $ac_mid`
24655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24658 echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24666 # Binary search between lo and hi bounds.
24667 while test "x$ac_lo" != "x$ac_hi"; do
24668 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24669 cat >conftest.$ac_ext <<_ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 $ac_includes_default
24679 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24686 rm -f conftest.$ac_objext
24687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24688 (eval $ac_compile) 2>conftest.er1
24690 grep -v '^ *+' conftest.er1 >conftest.err
24692 cat conftest.err >&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); } &&
24695 { ac_try='test -z "$ac_c_werror_flag"
24696 || test ! -s conftest.err'
24697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24698 (eval $ac_try) 2>&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; } &&
24702 { ac_try='test -s conftest.$ac_objext'
24703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24704 (eval $ac_try) 2>&5
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); }; }; then
24710 echo "$as_me: failed program was:" >&5
24711 sed 's/^/| /' conftest.$ac_ext >&5
24713 ac_lo=`expr '(' $ac_mid ')' + 1`
24715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24718 ?*) ac_cv_sizeof_int_p=$ac_lo;;
24719 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
24720 See \`config.log' for more details." >&5
24721 echo "$as_me: error: cannot compute sizeof (int *), 77
24722 See \`config.log' for more details." >&2;}
24723 { (exit 1); exit 1; }; } ;;
24726 if test "$cross_compiling" = yes; then
24727 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24728 See \`config.log' for more details." >&5
24729 echo "$as_me: error: cannot run test program while cross compiling
24730 See \`config.log' for more details." >&2;}
24731 { (exit 1); exit 1; }; }
24733 cat >conftest.$ac_ext <<_ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h. */
24739 $ac_includes_default
24740 long longval () { return (long) (sizeof (int *)); }
24741 unsigned long ulongval () { return (long) (sizeof (int *)); }
24743 #include <stdlib.h>
24748 FILE *f = fopen ("conftest.val", "w");
24751 if (((long) (sizeof (int *))) < 0)
24753 long i = longval ();
24754 if (i != ((long) (sizeof (int *))))
24756 fprintf (f, "%ld\n", i);
24760 unsigned long i = ulongval ();
24761 if (i != ((long) (sizeof (int *))))
24763 fprintf (f, "%lu\n", i);
24765 exit (ferror (f) || fclose (f) != 0);
24771 rm -f conftest$ac_exeext
24772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24773 (eval $ac_link) 2>&5
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778 (eval $ac_try) 2>&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); }; }; then
24782 ac_cv_sizeof_int_p=`cat conftest.val`
24784 echo "$as_me: program exited with status $ac_status" >&5
24785 echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24788 ( exit $ac_status )
24789 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
24790 See \`config.log' for more details." >&5
24791 echo "$as_me: error: cannot compute sizeof (int *), 77
24792 See \`config.log' for more details." >&2;}
24793 { (exit 1); exit 1; }; }
24795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24800 ac_cv_sizeof_int_p=0
24803 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
24804 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
24805 cat >>confdefs.h <<_ACEOF
24806 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
24811 # Check for sys/types.h types
24812 echo "$as_me:$LINENO: checking for u_int type" >&5
24813 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
24814 if test "${ac_cv_have_u_int+set}" = set; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24818 cat >conftest.$ac_ext <<_ACEOF
24821 cat confdefs.h >>conftest.$ac_ext
24822 cat >>conftest.$ac_ext <<_ACEOF
24823 /* end confdefs.h. */
24824 #include <sys/types.h>
24833 rm -f conftest.$ac_objext
24834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24835 (eval $ac_compile) 2>conftest.er1
24837 grep -v '^ *+' conftest.er1 >conftest.err
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } &&
24842 { ac_try='test -z "$ac_c_werror_flag"
24843 || test ! -s conftest.err'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; } &&
24849 { ac_try='test -s conftest.$ac_objext'
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; }; then
24855 ac_cv_have_u_int="yes"
24857 echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24860 ac_cv_have_u_int="no"
24863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24866 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
24867 echo "${ECHO_T}$ac_cv_have_u_int" >&6
24868 if test "x$ac_cv_have_u_int" = "xyes" ; then
24869 cat >>confdefs.h <<\_ACEOF
24870 #define HAVE_U_INT 1
24876 echo "$as_me:$LINENO: checking for intmax_t type" >&5
24877 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
24878 if test "${ac_cv_have_intmax_t+set}" = set; then
24879 echo $ECHO_N "(cached) $ECHO_C" >&6
24882 cat >conftest.$ac_ext <<_ACEOF
24885 cat confdefs.h >>conftest.$ac_ext
24886 cat >>conftest.$ac_ext <<_ACEOF
24887 /* end confdefs.h. */
24888 #include <sys/types.h>
24897 rm -f conftest.$ac_objext
24898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24899 (eval $ac_compile) 2>conftest.er1
24901 grep -v '^ *+' conftest.er1 >conftest.err
24903 cat conftest.err >&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } &&
24906 { ac_try='test -z "$ac_c_werror_flag"
24907 || test ! -s conftest.err'
24908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24909 (eval $ac_try) 2>&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); }; } &&
24913 { ac_try='test -s conftest.$ac_objext'
24914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 (eval $ac_try) 2>&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; }; then
24919 ac_cv_have_intmax_t="yes"
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24925 cat >conftest.$ac_ext <<_ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24931 #include <stdint.h>
24940 rm -f conftest.$ac_objext
24941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24942 (eval $ac_compile) 2>conftest.er1
24944 grep -v '^ *+' conftest.er1 >conftest.err
24946 cat conftest.err >&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } &&
24949 { ac_try='test -z "$ac_c_werror_flag"
24950 || test ! -s conftest.err'
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; } &&
24956 { ac_try='test -s conftest.$ac_objext'
24957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24958 (eval $ac_try) 2>&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); }; }; then
24962 ac_cv_have_intmax_t="yes"
24964 echo "$as_me: failed program was:" >&5
24965 sed 's/^/| /' conftest.$ac_ext >&5
24967 ac_cv_have_intmax_t="no"
24970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24978 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
24979 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
24980 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
24981 cat >>confdefs.h <<\_ACEOF
24982 #define HAVE_INTMAX_T 1
24989 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
24990 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
24991 if test "${ac_cv_have_u_intmax_t+set}" = set; then
24992 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 cat >conftest.$ac_ext <<_ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25001 #include <sys/types.h>
25005 u_intmax_t a; a = 1;
25010 rm -f conftest.$ac_objext
25011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25012 (eval $ac_compile) 2>conftest.er1
25014 grep -v '^ *+' conftest.er1 >conftest.err
25016 cat conftest.err >&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } &&
25019 { ac_try='test -z "$ac_c_werror_flag"
25020 || test ! -s conftest.err'
25021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 (eval $ac_try) 2>&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; } &&
25026 { ac_try='test -s conftest.$ac_objext'
25027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25028 (eval $ac_try) 2>&5
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); }; }; then
25032 ac_cv_have_u_intmax_t="yes"
25034 echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25038 cat >conftest.$ac_ext <<_ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25044 #include <stdint.h>
25048 u_intmax_t a; a = 1;
25053 rm -f conftest.$ac_objext
25054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25055 (eval $ac_compile) 2>conftest.er1
25057 grep -v '^ *+' conftest.er1 >conftest.err
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } &&
25062 { ac_try='test -z "$ac_c_werror_flag"
25063 || test ! -s conftest.err'
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest.$ac_objext'
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
25075 ac_cv_have_u_intmax_t="yes"
25077 echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25080 ac_cv_have_u_intmax_t="no"
25083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25090 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25091 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25092 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25093 cat >>confdefs.h <<\_ACEOF
25094 #define HAVE_U_INTMAX_T 1
25101 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25102 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25103 if test "${ac_cv_have_intxx_t+set}" = set; then
25104 echo $ECHO_N "(cached) $ECHO_C" >&6
25107 cat >conftest.$ac_ext <<_ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h. */
25113 #include <sys/types.h>
25117 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25122 rm -f conftest.$ac_objext
25123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25124 (eval $ac_compile) 2>conftest.er1
25126 grep -v '^ *+' conftest.er1 >conftest.err
25128 cat conftest.err >&5
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); } &&
25131 { ac_try='test -z "$ac_c_werror_flag"
25132 || test ! -s conftest.err'
25133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25134 (eval $ac_try) 2>&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); }; } &&
25138 { ac_try='test -s conftest.$ac_objext'
25139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140 (eval $ac_try) 2>&5
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; }; then
25144 ac_cv_have_intxx_t="yes"
25146 echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25149 ac_cv_have_intxx_t="no"
25152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25155 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25156 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25157 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25158 cat >>confdefs.h <<\_ACEOF
25159 #define HAVE_INTXX_T 1
25165 echo "$as_me:$LINENO: checking for int64_t type" >&5
25166 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25167 if test "${ac_cv_have_int64_t+set}" = set; then
25168 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 cat >conftest.$ac_ext <<_ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25177 #include <sys/types.h>
25186 rm -f conftest.$ac_objext
25187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25188 (eval $ac_compile) 2>conftest.er1
25190 grep -v '^ *+' conftest.er1 >conftest.err
25192 cat conftest.err >&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } &&
25195 { ac_try='test -z "$ac_c_werror_flag"
25196 || test ! -s conftest.err'
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; } &&
25202 { ac_try='test -s conftest.$ac_objext'
25203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204 (eval $ac_try) 2>&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; }; then
25208 ac_cv_have_int64_t="yes"
25210 echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25213 ac_cv_have_int64_t="no"
25216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25219 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25220 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25221 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25222 cat >>confdefs.h <<\_ACEOF
25223 #define HAVE_INT64_T 1
25229 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25230 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25231 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25232 echo $ECHO_N "(cached) $ECHO_C" >&6
25235 cat >conftest.$ac_ext <<_ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h. */
25241 #include <sys/types.h>
25245 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25250 rm -f conftest.$ac_objext
25251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25252 (eval $ac_compile) 2>conftest.er1
25254 grep -v '^ *+' conftest.er1 >conftest.err
25256 cat conftest.err >&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } &&
25259 { ac_try='test -z "$ac_c_werror_flag"
25260 || test ! -s conftest.err'
25261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; } &&
25266 { ac_try='test -s conftest.$ac_objext'
25267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25268 (eval $ac_try) 2>&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; }; then
25272 ac_cv_have_u_intxx_t="yes"
25274 echo "$as_me: failed program was:" >&5
25275 sed 's/^/| /' conftest.$ac_ext >&5
25277 ac_cv_have_u_intxx_t="no"
25280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25283 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25284 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25285 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25286 cat >>confdefs.h <<\_ACEOF
25287 #define HAVE_U_INTXX_T 1
25293 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25294 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25295 if test "${ac_cv_have_u_int64_t+set}" = set; then
25296 echo $ECHO_N "(cached) $ECHO_C" >&6
25299 cat >conftest.$ac_ext <<_ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h. */
25305 #include <sys/types.h>
25309 u_int64_t a; a = 1;
25314 rm -f conftest.$ac_objext
25315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25316 (eval $ac_compile) 2>conftest.er1
25318 grep -v '^ *+' conftest.er1 >conftest.err
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } &&
25323 { ac_try='test -z "$ac_c_werror_flag"
25324 || test ! -s conftest.err'
25325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326 (eval $ac_try) 2>&5
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); }; } &&
25330 { ac_try='test -s conftest.$ac_objext'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; }; then
25336 ac_cv_have_u_int64_t="yes"
25338 echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25341 ac_cv_have_u_int64_t="no"
25344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25347 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25348 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25349 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25350 cat >>confdefs.h <<\_ACEOF
25351 #define HAVE_U_INT64_T 1
25357 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25358 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25360 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25361 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25362 cat >conftest.$ac_ext <<_ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h. */
25368 #include <sys/bitypes.h>
25372 int8_t a; int16_t b; int32_t c;
25373 u_int8_t e; u_int16_t f; u_int32_t g;
25374 a = b = c = e = f = g = 1;
25379 rm -f conftest.$ac_objext
25380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25381 (eval $ac_compile) 2>conftest.er1
25383 grep -v '^ *+' conftest.er1 >conftest.err
25385 cat conftest.err >&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } &&
25388 { ac_try='test -z "$ac_c_werror_flag"
25389 || test ! -s conftest.err'
25390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25391 (eval $ac_try) 2>&5
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); }; } &&
25395 { ac_try='test -s conftest.$ac_objext'
25396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397 (eval $ac_try) 2>&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); }; }; then
25401 cat >>confdefs.h <<\_ACEOF
25402 #define HAVE_U_INTXX_T 1
25405 cat >>confdefs.h <<\_ACEOF
25406 #define HAVE_INTXX_T 1
25409 cat >>confdefs.h <<\_ACEOF
25410 #define HAVE_SYS_BITYPES_H 1
25413 echo "$as_me:$LINENO: result: yes" >&5
25414 echo "${ECHO_T}yes" >&6
25416 echo "$as_me: failed program was:" >&5
25417 sed 's/^/| /' conftest.$ac_ext >&5
25419 echo "$as_me:$LINENO: result: no" >&5
25420 echo "${ECHO_T}no" >&6
25423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25426 if test -z "$have_u_intxx_t" ; then
25427 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25428 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25429 if test "${ac_cv_have_uintxx_t+set}" = set; then
25430 echo $ECHO_N "(cached) $ECHO_C" >&6
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 #include <sys/types.h>
25443 uint8_t a; uint16_t b;
25444 uint32_t c; a = b = c = 1;
25449 rm -f conftest.$ac_objext
25450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25451 (eval $ac_compile) 2>conftest.er1
25453 grep -v '^ *+' conftest.er1 >conftest.err
25455 cat conftest.err >&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); } &&
25458 { ac_try='test -z "$ac_c_werror_flag"
25459 || test ! -s conftest.err'
25460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; } &&
25465 { ac_try='test -s conftest.$ac_objext'
25466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25467 (eval $ac_try) 2>&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); }; }; then
25471 ac_cv_have_uintxx_t="yes"
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 ac_cv_have_uintxx_t="no"
25479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25482 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25483 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25484 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25485 cat >>confdefs.h <<\_ACEOF
25486 #define HAVE_UINTXX_T 1
25492 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25493 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25495 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25496 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25497 cat >conftest.$ac_ext <<_ACEOF
25500 cat confdefs.h >>conftest.$ac_ext
25501 cat >>conftest.$ac_ext <<_ACEOF
25502 /* end confdefs.h. */
25503 #include <sys/bitypes.h>
25507 int64_t a; u_int64_t b;
25513 rm -f conftest.$ac_objext
25514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25515 (eval $ac_compile) 2>conftest.er1
25517 grep -v '^ *+' conftest.er1 >conftest.err
25519 cat conftest.err >&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); } &&
25522 { ac_try='test -z "$ac_c_werror_flag"
25523 || test ! -s conftest.err'
25524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25525 (eval $ac_try) 2>&5
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); }; } &&
25529 { ac_try='test -s conftest.$ac_objext'
25530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25531 (eval $ac_try) 2>&5
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); }; }; then
25535 cat >>confdefs.h <<\_ACEOF
25536 #define HAVE_U_INT64_T 1
25539 cat >>confdefs.h <<\_ACEOF
25540 #define HAVE_INT64_T 1
25543 echo "$as_me:$LINENO: result: yes" >&5
25544 echo "${ECHO_T}yes" >&6
25546 echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25549 echo "$as_me:$LINENO: result: no" >&5
25550 echo "${ECHO_T}no" >&6
25553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25556 if (test -z "$have_uintxx_t" && \
25557 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25559 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25560 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
25561 cat >conftest.$ac_ext <<_ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h. */
25567 #include <sys/bitypes.h>
25571 uint8_t a; uint16_t b;
25572 uint32_t c; a = b = c = 1;
25577 rm -f conftest.$ac_objext
25578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25579 (eval $ac_compile) 2>conftest.er1
25581 grep -v '^ *+' conftest.er1 >conftest.err
25583 cat conftest.err >&5
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); } &&
25586 { ac_try='test -z "$ac_c_werror_flag"
25587 || test ! -s conftest.err'
25588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25589 (eval $ac_try) 2>&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); }; } &&
25593 { ac_try='test -s conftest.$ac_objext'
25594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595 (eval $ac_try) 2>&5
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; }; then
25599 cat >>confdefs.h <<\_ACEOF
25600 #define HAVE_UINTXX_T 1
25603 echo "$as_me:$LINENO: result: yes" >&5
25604 echo "${ECHO_T}yes" >&6
25606 echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25609 echo "$as_me:$LINENO: result: no" >&5
25610 echo "${ECHO_T}no" >&6
25613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25650 echo "$as_me:$LINENO: checking for $ac_func" >&5
25651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25652 if eval "test \"\${$as_ac_var+set}\" = set"; then
25653 echo $ECHO_N "(cached) $ECHO_C" >&6
25655 cat >conftest.$ac_ext <<_ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h. */
25661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25663 #define $ac_func innocuous_$ac_func
25665 /* System header to define __stub macros and hopefully few prototypes,
25666 which can conflict with char $ac_func (); below.
25667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25668 <limits.h> exists even on freestanding compilers. */
25671 # include <limits.h>
25673 # include <assert.h>
25678 /* Override any gcc2 internal prototype to avoid an error. */
25683 /* We use char because int might match the return type of a gcc2
25684 builtin and then its argument prototype would still apply. */
25686 /* The GNU C library defines this for functions which it implements
25687 to always fail with ENOSYS. Some functions are actually named
25688 something starting with __ and the normal name is an alias. */
25689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25692 char (*f) () = $ac_func;
25701 return f != $ac_func;
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25708 (eval $ac_link) 2>conftest.er1
25710 grep -v '^ *+' conftest.er1 >conftest.err
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
25715 { ac_try='test -z "$ac_c_werror_flag"
25716 || test ! -s conftest.err'
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; } &&
25722 { ac_try='test -s conftest$ac_exeext'
25723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724 (eval $ac_try) 2>&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; }; then
25728 eval "$as_ac_var=yes"
25730 echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25733 eval "$as_ac_var=no"
25735 rm -f conftest.err conftest.$ac_objext \
25736 conftest$ac_exeext conftest.$ac_ext
25738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25740 if test `eval echo '${'$as_ac_var'}'` = yes; then
25741 cat >>confdefs.h <<_ACEOF
25742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25746 echo 'configure: cannot find needed function.'; exit 1
25753 for ac_func in fchdir
25755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25756 echo "$as_me:$LINENO: checking for $ac_func" >&5
25757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25758 if eval "test \"\${$as_ac_var+set}\" = set"; then
25759 echo $ECHO_N "(cached) $ECHO_C" >&6
25761 cat >conftest.$ac_ext <<_ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h. */
25767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25769 #define $ac_func innocuous_$ac_func
25771 /* System header to define __stub macros and hopefully few prototypes,
25772 which can conflict with char $ac_func (); below.
25773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25774 <limits.h> exists even on freestanding compilers. */
25777 # include <limits.h>
25779 # include <assert.h>
25784 /* Override any gcc2 internal prototype to avoid an error. */
25789 /* We use char because int might match the return type of a gcc2
25790 builtin and then its argument prototype would still apply. */
25792 /* The GNU C library defines this for functions which it implements
25793 to always fail with ENOSYS. Some functions are actually named
25794 something starting with __ and the normal name is an alias. */
25795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25798 char (*f) () = $ac_func;
25807 return f != $ac_func;
25812 rm -f conftest.$ac_objext conftest$ac_exeext
25813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25814 (eval $ac_link) 2>conftest.er1
25816 grep -v '^ *+' conftest.er1 >conftest.err
25818 cat conftest.err >&5
25819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); } &&
25821 { ac_try='test -z "$ac_c_werror_flag"
25822 || test ! -s conftest.err'
25823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25824 (eval $ac_try) 2>&5
25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827 (exit $ac_status); }; } &&
25828 { ac_try='test -s conftest$ac_exeext'
25829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25830 (eval $ac_try) 2>&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); }; }; then
25834 eval "$as_ac_var=yes"
25836 echo "$as_me: failed program was:" >&5
25837 sed 's/^/| /' conftest.$ac_ext >&5
25839 eval "$as_ac_var=no"
25841 rm -f conftest.err conftest.$ac_objext \
25842 conftest$ac_exeext conftest.$ac_ext
25844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25846 if test `eval echo '${'$as_ac_var'}'` = yes; then
25847 cat >>confdefs.h <<_ACEOF
25848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25850 cat >>confdefs.h <<\_ACEOF
25851 #define HAVE_FCHDIR 1
25858 for ac_func in strtoll
25860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25861 echo "$as_me:$LINENO: checking for $ac_func" >&5
25862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25863 if eval "test \"\${$as_ac_var+set}\" = set"; then
25864 echo $ECHO_N "(cached) $ECHO_C" >&6
25866 cat >conftest.$ac_ext <<_ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h. */
25872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25874 #define $ac_func innocuous_$ac_func
25876 /* System header to define __stub macros and hopefully few prototypes,
25877 which can conflict with char $ac_func (); below.
25878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25879 <limits.h> exists even on freestanding compilers. */
25882 # include <limits.h>
25884 # include <assert.h>
25889 /* Override any gcc2 internal prototype to avoid an error. */
25894 /* We use char because int might match the return type of a gcc2
25895 builtin and then its argument prototype would still apply. */
25897 /* The GNU C library defines this for functions which it implements
25898 to always fail with ENOSYS. Some functions are actually named
25899 something starting with __ and the normal name is an alias. */
25900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25903 char (*f) () = $ac_func;
25912 return f != $ac_func;
25917 rm -f conftest.$ac_objext conftest$ac_exeext
25918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25919 (eval $ac_link) 2>conftest.er1
25921 grep -v '^ *+' conftest.er1 >conftest.err
25923 cat conftest.err >&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); } &&
25926 { ac_try='test -z "$ac_c_werror_flag"
25927 || test ! -s conftest.err'
25928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929 (eval $ac_try) 2>&5
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); }; } &&
25933 { ac_try='test -s conftest$ac_exeext'
25934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25935 (eval $ac_try) 2>&5
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); }; }; then
25939 eval "$as_ac_var=yes"
25941 echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25944 eval "$as_ac_var=no"
25946 rm -f conftest.err conftest.$ac_objext \
25947 conftest$ac_exeext conftest.$ac_ext
25949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25951 if test `eval echo '${'$as_ac_var'}'` = yes; then
25952 cat >>confdefs.h <<_ACEOF
25953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25955 cat >>confdefs.h <<\_ACEOF
25956 #define HAVE_STRTOLL 1
25964 for ac_func in chflags
25966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25967 echo "$as_me:$LINENO: checking for $ac_func" >&5
25968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25969 if eval "test \"\${$as_ac_var+set}\" = set"; then
25970 echo $ECHO_N "(cached) $ECHO_C" >&6
25972 cat >conftest.$ac_ext <<_ACEOF
25975 cat confdefs.h >>conftest.$ac_ext
25976 cat >>conftest.$ac_ext <<_ACEOF
25977 /* end confdefs.h. */
25978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25980 #define $ac_func innocuous_$ac_func
25982 /* System header to define __stub macros and hopefully few prototypes,
25983 which can conflict with char $ac_func (); below.
25984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25985 <limits.h> exists even on freestanding compilers. */
25988 # include <limits.h>
25990 # include <assert.h>
25995 /* Override any gcc2 internal prototype to avoid an error. */
26000 /* We use char because int might match the return type of a gcc2
26001 builtin and then its argument prototype would still apply. */
26003 /* The GNU C library defines this for functions which it implements
26004 to always fail with ENOSYS. Some functions are actually named
26005 something starting with __ and the normal name is an alias. */
26006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26009 char (*f) () = $ac_func;
26018 return f != $ac_func;
26023 rm -f conftest.$ac_objext conftest$ac_exeext
26024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26025 (eval $ac_link) 2>conftest.er1
26027 grep -v '^ *+' conftest.er1 >conftest.err
26029 cat conftest.err >&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
26032 { ac_try='test -z "$ac_c_werror_flag"
26033 || test ! -s conftest.err'
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; } &&
26039 { ac_try='test -s conftest$ac_exeext'
26040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; }; then
26045 eval "$as_ac_var=yes"
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 eval "$as_ac_var=no"
26052 rm -f conftest.err conftest.$ac_objext \
26053 conftest$ac_exeext conftest.$ac_ext
26055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26057 if test `eval echo '${'$as_ac_var'}'` = yes; then
26058 cat >>confdefs.h <<_ACEOF
26059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26070 for ac_func in snprintf vsnprintf gethostid fseeko
26072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26073 echo "$as_me:$LINENO: checking for $ac_func" >&5
26074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26075 if eval "test \"\${$as_ac_var+set}\" = set"; then
26076 echo $ECHO_N "(cached) $ECHO_C" >&6
26078 cat >conftest.$ac_ext <<_ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h. */
26084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26086 #define $ac_func innocuous_$ac_func
26088 /* System header to define __stub macros and hopefully few prototypes,
26089 which can conflict with char $ac_func (); below.
26090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26091 <limits.h> exists even on freestanding compilers. */
26094 # include <limits.h>
26096 # include <assert.h>
26101 /* Override any gcc2 internal prototype to avoid an error. */
26106 /* We use char because int might match the return type of a gcc2
26107 builtin and then its argument prototype would still apply. */
26109 /* The GNU C library defines this for functions which it implements
26110 to always fail with ENOSYS. Some functions are actually named
26111 something starting with __ and the normal name is an alias. */
26112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26115 char (*f) () = $ac_func;
26124 return f != $ac_func;
26129 rm -f conftest.$ac_objext conftest$ac_exeext
26130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26131 (eval $ac_link) 2>conftest.er1
26133 grep -v '^ *+' conftest.er1 >conftest.err
26135 cat conftest.err >&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } &&
26138 { ac_try='test -z "$ac_c_werror_flag"
26139 || test ! -s conftest.err'
26140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26141 (eval $ac_try) 2>&5
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; } &&
26145 { ac_try='test -s conftest$ac_exeext'
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; }; then
26151 eval "$as_ac_var=yes"
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26156 eval "$as_ac_var=no"
26158 rm -f conftest.err conftest.$ac_objext \
26159 conftest$ac_exeext conftest.$ac_ext
26161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26163 if test `eval echo '${'$as_ac_var'}'` = yes; then
26164 cat >>confdefs.h <<_ACEOF
26165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26176 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26181 if eval "test \"\${$as_ac_var+set}\" = set"; then
26182 echo $ECHO_N "(cached) $ECHO_C" >&6
26184 cat >conftest.$ac_ext <<_ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26192 #define $ac_func innocuous_$ac_func
26194 /* System header to define __stub macros and hopefully few prototypes,
26195 which can conflict with char $ac_func (); below.
26196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197 <limits.h> exists even on freestanding compilers. */
26200 # include <limits.h>
26202 # include <assert.h>
26207 /* Override any gcc2 internal prototype to avoid an error. */
26212 /* We use char because int might match the return type of a gcc2
26213 builtin and then its argument prototype would still apply. */
26215 /* The GNU C library defines this for functions which it implements
26216 to always fail with ENOSYS. Some functions are actually named
26217 something starting with __ and the normal name is an alias. */
26218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26221 char (*f) () = $ac_func;
26230 return f != $ac_func;
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26237 (eval $ac_link) 2>conftest.er1
26239 grep -v '^ *+' conftest.er1 >conftest.err
26241 cat conftest.err >&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); } &&
26244 { ac_try='test -z "$ac_c_werror_flag"
26245 || test ! -s conftest.err'
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247 (eval $ac_try) 2>&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; } &&
26251 { ac_try='test -s conftest$ac_exeext'
26252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253 (eval $ac_try) 2>&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; }; then
26257 eval "$as_ac_var=yes"
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26262 eval "$as_ac_var=no"
26264 rm -f conftest.err conftest.$ac_objext \
26265 conftest$ac_exeext conftest.$ac_ext
26267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26269 if test `eval echo '${'$as_ac_var'}'` = yes; then
26270 cat >>confdefs.h <<_ACEOF
26271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26278 # If resolver functions are not in libc check for -lnsl or -lresolv.
26279 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26280 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26281 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26282 echo $ECHO_N "(cached) $ECHO_C" >&6
26284 cat >conftest.$ac_ext <<_ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h. */
26290 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26292 #define gethostbyname_r innocuous_gethostbyname_r
26294 /* System header to define __stub macros and hopefully few prototypes,
26295 which can conflict with char gethostbyname_r (); below.
26296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26297 <limits.h> exists even on freestanding compilers. */
26300 # include <limits.h>
26302 # include <assert.h>
26305 #undef gethostbyname_r
26307 /* Override any gcc2 internal prototype to avoid an error. */
26312 /* We use char because int might match the return type of a gcc2
26313 builtin and then its argument prototype would still apply. */
26314 char gethostbyname_r ();
26315 /* The GNU C library defines this for functions which it implements
26316 to always fail with ENOSYS. Some functions are actually named
26317 something starting with __ and the normal name is an alias. */
26318 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26321 char (*f) () = gethostbyname_r;
26330 return f != gethostbyname_r;
26335 rm -f conftest.$ac_objext conftest$ac_exeext
26336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26337 (eval $ac_link) 2>conftest.er1
26339 grep -v '^ *+' conftest.er1 >conftest.err
26341 cat conftest.err >&5
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); } &&
26344 { ac_try='test -z "$ac_c_werror_flag"
26345 || test ! -s conftest.err'
26346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347 (eval $ac_try) 2>&5
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); }; } &&
26351 { ac_try='test -s conftest$ac_exeext'
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; }; then
26357 ac_cv_func_gethostbyname_r=yes
26359 echo "$as_me: failed program was:" >&5
26360 sed 's/^/| /' conftest.$ac_ext >&5
26362 ac_cv_func_gethostbyname_r=no
26364 rm -f conftest.err conftest.$ac_objext \
26365 conftest$ac_exeext conftest.$ac_ext
26367 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26368 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26369 if test $ac_cv_func_gethostbyname_r = yes; then
26370 echo "$as_me:$LINENO: result: using libc's resolver" >&5
26371 echo "${ECHO_T}using libc's resolver" >&6
26374 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26375 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26376 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26377 echo $ECHO_N "(cached) $ECHO_C" >&6
26379 ac_check_lib_save_LIBS=$LIBS
26381 cat >conftest.$ac_ext <<_ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h. */
26388 /* Override any gcc2 internal prototype to avoid an error. */
26392 /* We use char because int might match the return type of a gcc2
26393 builtin and then its argument prototype would still apply. */
26394 char gethostbyname_r ();
26398 gethostbyname_r ();
26403 rm -f conftest.$ac_objext conftest$ac_exeext
26404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26405 (eval $ac_link) 2>conftest.er1
26407 grep -v '^ *+' conftest.er1 >conftest.err
26409 cat conftest.err >&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } &&
26412 { ac_try='test -z "$ac_c_werror_flag"
26413 || test ! -s conftest.err'
26414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415 (eval $ac_try) 2>&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); }; } &&
26419 { ac_try='test -s conftest$ac_exeext'
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; }; then
26425 ac_cv_lib_nsl_gethostbyname_r=yes
26427 echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26430 ac_cv_lib_nsl_gethostbyname_r=no
26432 rm -f conftest.err conftest.$ac_objext \
26433 conftest$ac_exeext conftest.$ac_ext
26434 LIBS=$ac_check_lib_save_LIBS
26436 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26437 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26438 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26439 cat >>confdefs.h <<_ACEOF
26440 #define HAVE_LIBNSL 1
26448 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26449 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26450 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26453 ac_check_lib_save_LIBS=$LIBS
26454 LIBS="-lresolv $LIBS"
26455 cat >conftest.$ac_ext <<_ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26462 /* Override any gcc2 internal prototype to avoid an error. */
26466 /* We use char because int might match the return type of a gcc2
26467 builtin and then its argument prototype would still apply. */
26468 char gethostbyname_r ();
26472 gethostbyname_r ();
26477 rm -f conftest.$ac_objext conftest$ac_exeext
26478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26479 (eval $ac_link) 2>conftest.er1
26481 grep -v '^ *+' conftest.er1 >conftest.err
26483 cat conftest.err >&5
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } &&
26486 { ac_try='test -z "$ac_c_werror_flag"
26487 || test ! -s conftest.err'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; } &&
26493 { ac_try='test -s conftest$ac_exeext'
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; }; then
26499 ac_cv_lib_resolv_gethostbyname_r=yes
26501 echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26504 ac_cv_lib_resolv_gethostbyname_r=no
26506 rm -f conftest.err conftest.$ac_objext \
26507 conftest$ac_exeext conftest.$ac_ext
26508 LIBS=$ac_check_lib_save_LIBS
26510 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26511 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26512 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26513 cat >>confdefs.h <<_ACEOF
26514 #define HAVE_LIBRESOLV 1
26517 LIBS="-lresolv $LIBS"
26527 for ac_func in inet_pton
26529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26530 echo "$as_me:$LINENO: checking for $ac_func" >&5
26531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26532 if eval "test \"\${$as_ac_var+set}\" = set"; then
26533 echo $ECHO_N "(cached) $ECHO_C" >&6
26535 cat >conftest.$ac_ext <<_ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h. */
26541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26543 #define $ac_func innocuous_$ac_func
26545 /* System header to define __stub macros and hopefully few prototypes,
26546 which can conflict with char $ac_func (); below.
26547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26548 <limits.h> exists even on freestanding compilers. */
26551 # include <limits.h>
26553 # include <assert.h>
26558 /* Override any gcc2 internal prototype to avoid an error. */
26563 /* We use char because int might match the return type of a gcc2
26564 builtin and then its argument prototype would still apply. */
26566 /* The GNU C library defines this for functions which it implements
26567 to always fail with ENOSYS. Some functions are actually named
26568 something starting with __ and the normal name is an alias. */
26569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26572 char (*f) () = $ac_func;
26581 return f != $ac_func;
26586 rm -f conftest.$ac_objext conftest$ac_exeext
26587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26588 (eval $ac_link) 2>conftest.er1
26590 grep -v '^ *+' conftest.er1 >conftest.err
26592 cat conftest.err >&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } &&
26595 { ac_try='test -z "$ac_c_werror_flag"
26596 || test ! -s conftest.err'
26597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598 (eval $ac_try) 2>&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); }; } &&
26602 { ac_try='test -s conftest$ac_exeext'
26603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604 (eval $ac_try) 2>&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); }; }; then
26608 eval "$as_ac_var=yes"
26610 echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.$ac_ext >&5
26613 eval "$as_ac_var=no"
26615 rm -f conftest.err conftest.$ac_objext \
26616 conftest$ac_exeext conftest.$ac_ext
26618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26620 if test `eval echo '${'$as_ac_var'}'` = yes; then
26621 cat >>confdefs.h <<_ACEOF
26622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26624 cat >>confdefs.h <<\_ACEOF
26625 #define HAVE_INET_PTON 1
26632 for ac_func in inet_ntop
26634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26635 echo "$as_me:$LINENO: checking for $ac_func" >&5
26636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26637 if eval "test \"\${$as_ac_var+set}\" = set"; then
26638 echo $ECHO_N "(cached) $ECHO_C" >&6
26640 cat >conftest.$ac_ext <<_ACEOF
26643 cat confdefs.h >>conftest.$ac_ext
26644 cat >>conftest.$ac_ext <<_ACEOF
26645 /* end confdefs.h. */
26646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26648 #define $ac_func innocuous_$ac_func
26650 /* System header to define __stub macros and hopefully few prototypes,
26651 which can conflict with char $ac_func (); below.
26652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26653 <limits.h> exists even on freestanding compilers. */
26656 # include <limits.h>
26658 # include <assert.h>
26663 /* Override any gcc2 internal prototype to avoid an error. */
26668 /* We use char because int might match the return type of a gcc2
26669 builtin and then its argument prototype would still apply. */
26671 /* The GNU C library defines this for functions which it implements
26672 to always fail with ENOSYS. Some functions are actually named
26673 something starting with __ and the normal name is an alias. */
26674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26677 char (*f) () = $ac_func;
26686 return f != $ac_func;
26691 rm -f conftest.$ac_objext conftest$ac_exeext
26692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26693 (eval $ac_link) 2>conftest.er1
26695 grep -v '^ *+' conftest.er1 >conftest.err
26697 cat conftest.err >&5
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } &&
26700 { ac_try='test -z "$ac_c_werror_flag"
26701 || test ! -s conftest.err'
26702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703 (eval $ac_try) 2>&5
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); }; } &&
26707 { ac_try='test -s conftest$ac_exeext'
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; }; then
26713 eval "$as_ac_var=yes"
26715 echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26718 eval "$as_ac_var=no"
26720 rm -f conftest.err conftest.$ac_objext \
26721 conftest$ac_exeext conftest.$ac_ext
26723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26725 if test `eval echo '${'$as_ac_var'}'` = yes; then
26726 cat >>confdefs.h <<_ACEOF
26727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26729 cat >>confdefs.h <<\_ACEOF
26730 #define HAVE_INET_NTOP 1
26737 for ac_func in gethostbyname2
26739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26740 echo "$as_me:$LINENO: checking for $ac_func" >&5
26741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26742 if eval "test \"\${$as_ac_var+set}\" = set"; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26745 cat >conftest.$ac_ext <<_ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h. */
26751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26753 #define $ac_func innocuous_$ac_func
26755 /* System header to define __stub macros and hopefully few prototypes,
26756 which can conflict with char $ac_func (); below.
26757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26758 <limits.h> exists even on freestanding compilers. */
26761 # include <limits.h>
26763 # include <assert.h>
26768 /* Override any gcc2 internal prototype to avoid an error. */
26773 /* We use char because int might match the return type of a gcc2
26774 builtin and then its argument prototype would still apply. */
26776 /* The GNU C library defines this for functions which it implements
26777 to always fail with ENOSYS. Some functions are actually named
26778 something starting with __ and the normal name is an alias. */
26779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26782 char (*f) () = $ac_func;
26791 return f != $ac_func;
26796 rm -f conftest.$ac_objext conftest$ac_exeext
26797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26798 (eval $ac_link) 2>conftest.er1
26800 grep -v '^ *+' conftest.er1 >conftest.err
26802 cat conftest.err >&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); } &&
26805 { ac_try='test -z "$ac_c_werror_flag"
26806 || test ! -s conftest.err'
26807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808 (eval $ac_try) 2>&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; } &&
26812 { ac_try='test -s conftest$ac_exeext'
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; }; then
26818 eval "$as_ac_var=yes"
26820 echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.$ac_ext >&5
26823 eval "$as_ac_var=no"
26825 rm -f conftest.err conftest.$ac_objext \
26826 conftest$ac_exeext conftest.$ac_ext
26828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26830 if test `eval echo '${'$as_ac_var'}'` = yes; then
26831 cat >>confdefs.h <<_ACEOF
26832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26834 cat >>confdefs.h <<\_ACEOF
26835 #define HAVE_GETHOSTBYNAME2 1
26842 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
26843 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
26844 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
26845 echo $ECHO_N "(cached) $ECHO_C" >&6
26847 cat >conftest.$ac_ext <<_ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h. */
26853 #include <sys/socket.h>
26857 struct sockaddr s; s.sa_len;
26862 rm -f conftest.$ac_objext
26863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26864 (eval $ac_compile) 2>conftest.er1
26866 grep -v '^ *+' conftest.er1 >conftest.err
26868 cat conftest.err >&5
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); } &&
26871 { ac_try='test -z "$ac_c_werror_flag"
26872 || test ! -s conftest.err'
26873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874 (eval $ac_try) 2>&5
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; } &&
26878 { ac_try='test -s conftest.$ac_objext'
26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880 (eval $ac_try) 2>&5
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); }; }; then
26884 ac_cv_struct_sockaddr_sa_len=yes
26886 echo "$as_me: failed program was:" >&5
26887 sed 's/^/| /' conftest.$ac_ext >&5
26889 ac_cv_struct_sockaddr_sa_len=no
26891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26893 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
26894 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
26896 if test $ac_cv_struct_sockaddr_sa_len = yes; then
26898 cat >>confdefs.h <<\_ACEOF
26899 #define HAVE_SA_LEN 1
26905 echo "$as_me:$LINENO: checking for IPv6 support" >&5
26906 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
26907 if test "${ac_cv_ipv6_support+set}" = set; then
26908 echo $ECHO_N "(cached) $ECHO_C" >&6
26910 cat >conftest.$ac_ext <<_ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h. */
26916 #include <sys/types.h>
26917 #include <sys/socket.h>
26918 #include <netinet/in.h>
26922 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
26928 rm -f conftest.$ac_objext conftest$ac_exeext
26929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26930 (eval $ac_link) 2>conftest.er1
26932 grep -v '^ *+' conftest.er1 >conftest.err
26934 cat conftest.err >&5
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); } &&
26937 { ac_try='test -z "$ac_c_werror_flag"
26938 || test ! -s conftest.err'
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; } &&
26944 { ac_try='test -s conftest$ac_exeext'
26945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946 (eval $ac_try) 2>&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; }; then
26950 ac_cv_ipv6_support=yes
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26955 ac_cv_ipv6_support=no
26957 rm -f conftest.err conftest.$ac_objext \
26958 conftest$ac_exeext conftest.$ac_ext
26960 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
26961 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
26963 if test "$ac_cv_ipv6_support" = yes; then
26965 cat >>confdefs.h <<\_ACEOF
26966 #define HAVE_IPV6 1
26974 for ac_func in strftime
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
27073 # strftime is in -lintl on SCO UNIX.
27074 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27075 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27076 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27077 echo $ECHO_N "(cached) $ECHO_C" >&6
27079 ac_check_lib_save_LIBS=$LIBS
27080 LIBS="-lintl $LIBS"
27081 cat >conftest.$ac_ext <<_ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27088 /* Override any gcc2 internal prototype to avoid an error. */
27092 /* We use char because int might match the return type of a gcc2
27093 builtin and then its argument prototype would still apply. */
27103 rm -f conftest.$ac_objext conftest$ac_exeext
27104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27105 (eval $ac_link) 2>conftest.er1
27107 grep -v '^ *+' conftest.er1 >conftest.err
27109 cat conftest.err >&5
27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); } &&
27112 { ac_try='test -z "$ac_c_werror_flag"
27113 || test ! -s conftest.err'
27114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115 (eval $ac_try) 2>&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); }; } &&
27119 { ac_try='test -s conftest$ac_exeext'
27120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121 (eval $ac_try) 2>&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; }; then
27125 ac_cv_lib_intl_strftime=yes
27127 echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27130 ac_cv_lib_intl_strftime=no
27132 rm -f conftest.err conftest.$ac_objext \
27133 conftest$ac_exeext conftest.$ac_ext
27134 LIBS=$ac_check_lib_save_LIBS
27136 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27137 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27138 if test $ac_cv_lib_intl_strftime = yes; then
27139 cat >>confdefs.h <<\_ACEOF
27140 #define HAVE_STRFTIME 1
27143 LIBS="-lintl $LIBS"
27150 for ac_func in vprintf
27152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27153 echo "$as_me:$LINENO: checking for $ac_func" >&5
27154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27155 if eval "test \"\${$as_ac_var+set}\" = set"; then
27156 echo $ECHO_N "(cached) $ECHO_C" >&6
27158 cat >conftest.$ac_ext <<_ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h. */
27164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27166 #define $ac_func innocuous_$ac_func
27168 /* System header to define __stub macros and hopefully few prototypes,
27169 which can conflict with char $ac_func (); below.
27170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27171 <limits.h> exists even on freestanding compilers. */
27174 # include <limits.h>
27176 # include <assert.h>
27181 /* Override any gcc2 internal prototype to avoid an error. */
27186 /* We use char because int might match the return type of a gcc2
27187 builtin and then its argument prototype would still apply. */
27189 /* The GNU C library defines this for functions which it implements
27190 to always fail with ENOSYS. Some functions are actually named
27191 something starting with __ and the normal name is an alias. */
27192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27195 char (*f) () = $ac_func;
27204 return f != $ac_func;
27209 rm -f conftest.$ac_objext conftest$ac_exeext
27210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27211 (eval $ac_link) 2>conftest.er1
27213 grep -v '^ *+' conftest.er1 >conftest.err
27215 cat conftest.err >&5
27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); } &&
27218 { ac_try='test -z "$ac_c_werror_flag"
27219 || test ! -s conftest.err'
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; } &&
27225 { ac_try='test -s conftest$ac_exeext'
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
27231 eval "$as_ac_var=yes"
27233 echo "$as_me: failed program was:" >&5
27234 sed 's/^/| /' conftest.$ac_ext >&5
27236 eval "$as_ac_var=no"
27238 rm -f conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
27241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27243 if test `eval echo '${'$as_ac_var'}'` = yes; then
27244 cat >>confdefs.h <<_ACEOF
27245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27248 echo "$as_me:$LINENO: checking for _doprnt" >&5
27249 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27250 if test "${ac_cv_func__doprnt+set}" = set; then
27251 echo $ECHO_N "(cached) $ECHO_C" >&6
27253 cat >conftest.$ac_ext <<_ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h. */
27259 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27261 #define _doprnt innocuous__doprnt
27263 /* System header to define __stub macros and hopefully few prototypes,
27264 which can conflict with char _doprnt (); below.
27265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27266 <limits.h> exists even on freestanding compilers. */
27269 # include <limits.h>
27271 # include <assert.h>
27276 /* Override any gcc2 internal prototype to avoid an error. */
27281 /* We use char because int might match the return type of a gcc2
27282 builtin and then its argument prototype would still apply. */
27284 /* The GNU C library defines this for functions which it implements
27285 to always fail with ENOSYS. Some functions are actually named
27286 something starting with __ and the normal name is an alias. */
27287 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27290 char (*f) () = _doprnt;
27299 return f != _doprnt;
27304 rm -f conftest.$ac_objext conftest$ac_exeext
27305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27306 (eval $ac_link) 2>conftest.er1
27308 grep -v '^ *+' conftest.er1 >conftest.err
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } &&
27313 { ac_try='test -z "$ac_c_werror_flag"
27314 || test ! -s conftest.err'
27315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27316 (eval $ac_try) 2>&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; } &&
27320 { ac_try='test -s conftest$ac_exeext'
27321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322 (eval $ac_try) 2>&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; }; then
27326 ac_cv_func__doprnt=yes
27328 echo "$as_me: failed program was:" >&5
27329 sed 's/^/| /' conftest.$ac_ext >&5
27331 ac_cv_func__doprnt=no
27333 rm -f conftest.err conftest.$ac_objext \
27334 conftest$ac_exeext conftest.$ac_ext
27336 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27337 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27338 if test $ac_cv_func__doprnt = yes; then
27340 cat >>confdefs.h <<\_ACEOF
27341 #define HAVE_DOPRNT 1
27350 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27351 # for constant arguments. Useless!
27352 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27353 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27354 if test "${ac_cv_working_alloca_h+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 <alloca.h>
27367 char *p = (char *) alloca (2 * sizeof (int));
27372 rm -f conftest.$ac_objext conftest$ac_exeext
27373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27374 (eval $ac_link) 2>conftest.er1
27376 grep -v '^ *+' conftest.er1 >conftest.err
27378 cat conftest.err >&5
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); } &&
27381 { ac_try='test -z "$ac_c_werror_flag"
27382 || test ! -s conftest.err'
27383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27384 (eval $ac_try) 2>&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); }; } &&
27388 { ac_try='test -s conftest$ac_exeext'
27389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390 (eval $ac_try) 2>&5
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; }; then
27394 ac_cv_working_alloca_h=yes
27396 echo "$as_me: failed program was:" >&5
27397 sed 's/^/| /' conftest.$ac_ext >&5
27399 ac_cv_working_alloca_h=no
27401 rm -f conftest.err conftest.$ac_objext \
27402 conftest$ac_exeext conftest.$ac_ext
27404 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27405 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27406 if test $ac_cv_working_alloca_h = yes; then
27408 cat >>confdefs.h <<\_ACEOF
27409 #define HAVE_ALLOCA_H 1
27414 echo "$as_me:$LINENO: checking for alloca" >&5
27415 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27416 if test "${ac_cv_func_alloca_works+set}" = set; then
27417 echo $ECHO_N "(cached) $ECHO_C" >&6
27419 cat >conftest.$ac_ext <<_ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h. */
27426 # define alloca __builtin_alloca
27429 # include <malloc.h>
27430 # define alloca _alloca
27433 # include <alloca.h>
27438 # ifndef alloca /* predefined by HP cc +Olibcalls */
27449 char *p = (char *) alloca (1);
27454 rm -f conftest.$ac_objext conftest$ac_exeext
27455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27456 (eval $ac_link) 2>conftest.er1
27458 grep -v '^ *+' conftest.er1 >conftest.err
27460 cat conftest.err >&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } &&
27463 { ac_try='test -z "$ac_c_werror_flag"
27464 || test ! -s conftest.err'
27465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; } &&
27470 { ac_try='test -s conftest$ac_exeext'
27471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 (eval $ac_try) 2>&5
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; }; then
27476 ac_cv_func_alloca_works=yes
27478 echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27481 ac_cv_func_alloca_works=no
27483 rm -f conftest.err conftest.$ac_objext \
27484 conftest$ac_exeext conftest.$ac_ext
27486 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27487 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27489 if test $ac_cv_func_alloca_works = yes; then
27491 cat >>confdefs.h <<\_ACEOF
27492 #define HAVE_ALLOCA 1
27496 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27497 # that cause trouble. Some versions do not even contain alloca or
27498 # contain a buggy version. If you still want to use their alloca,
27499 # use ar to extract alloca.o from them instead of compiling alloca.c.
27501 ALLOCA=alloca.$ac_objext
27503 cat >>confdefs.h <<\_ACEOF
27508 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27509 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27510 if test "${ac_cv_os_cray+set}" = set; then
27511 echo $ECHO_N "(cached) $ECHO_C" >&6
27513 cat >conftest.$ac_ext <<_ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h. */
27519 #if defined(CRAY) && ! defined(CRAY2)
27526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27527 $EGREP "webecray" >/dev/null 2>&1; then
27535 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27536 echo "${ECHO_T}$ac_cv_os_cray" >&6
27537 if test $ac_cv_os_cray = yes; then
27538 for ac_func in _getb67 GETB67 getb67; do
27539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27540 echo "$as_me:$LINENO: checking for $ac_func" >&5
27541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27542 if eval "test \"\${$as_ac_var+set}\" = set"; then
27543 echo $ECHO_N "(cached) $ECHO_C" >&6
27545 cat >conftest.$ac_ext <<_ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27553 #define $ac_func innocuous_$ac_func
27555 /* System header to define __stub macros and hopefully few prototypes,
27556 which can conflict with char $ac_func (); below.
27557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27558 <limits.h> exists even on freestanding compilers. */
27561 # include <limits.h>
27563 # include <assert.h>
27568 /* Override any gcc2 internal prototype to avoid an error. */
27573 /* We use char because int might match the return type of a gcc2
27574 builtin and then its argument prototype would still apply. */
27576 /* The GNU C library defines this for functions which it implements
27577 to always fail with ENOSYS. Some functions are actually named
27578 something starting with __ and the normal name is an alias. */
27579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27582 char (*f) () = $ac_func;
27591 return f != $ac_func;
27596 rm -f conftest.$ac_objext conftest$ac_exeext
27597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27598 (eval $ac_link) 2>conftest.er1
27600 grep -v '^ *+' conftest.er1 >conftest.err
27602 cat conftest.err >&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); } &&
27605 { ac_try='test -z "$ac_c_werror_flag"
27606 || test ! -s conftest.err'
27607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27608 (eval $ac_try) 2>&5
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); }; } &&
27612 { ac_try='test -s conftest$ac_exeext'
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; }; then
27618 eval "$as_ac_var=yes"
27620 echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27623 eval "$as_ac_var=no"
27625 rm -f conftest.err conftest.$ac_objext \
27626 conftest$ac_exeext conftest.$ac_ext
27628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27630 if test `eval echo '${'$as_ac_var'}'` = yes; then
27632 cat >>confdefs.h <<_ACEOF
27633 #define CRAY_STACKSEG_END $ac_func
27642 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27643 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27644 if test "${ac_cv_c_stack_direction+set}" = set; then
27645 echo $ECHO_N "(cached) $ECHO_C" >&6
27647 if test "$cross_compiling" = yes; then
27648 ac_cv_c_stack_direction=0
27650 cat >conftest.$ac_ext <<_ACEOF
27653 cat confdefs.h >>conftest.$ac_ext
27654 cat >>conftest.$ac_ext <<_ACEOF
27655 /* end confdefs.h. */
27657 find_stack_direction ()
27659 static char *addr = 0;
27664 return find_stack_direction ();
27667 return (&dummy > addr) ? 1 : -1;
27673 exit (find_stack_direction () < 0);
27676 rm -f conftest$ac_exeext
27677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27678 (eval $ac_link) 2>&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683 (eval $ac_try) 2>&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; }; then
27687 ac_cv_c_stack_direction=1
27689 echo "$as_me: program exited with status $ac_status" >&5
27690 echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27693 ( exit $ac_status )
27694 ac_cv_c_stack_direction=-1
27696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27699 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27700 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27702 cat >>confdefs.h <<_ACEOF
27703 #define STACK_DIRECTION $ac_cv_c_stack_direction
27709 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
27710 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
27711 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
27712 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27715 ac_check_lib_save_LIBS=$LIBS
27717 cat >conftest.$ac_ext <<_ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h. */
27724 /* 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. */
27739 rm -f conftest.$ac_objext conftest$ac_exeext
27740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27741 (eval $ac_link) 2>conftest.er1
27743 grep -v '^ *+' conftest.er1 >conftest.err
27745 cat conftest.err >&5
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); } &&
27748 { ac_try='test -z "$ac_c_werror_flag"
27749 || test ! -s conftest.err'
27750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27751 (eval $ac_try) 2>&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); }; } &&
27755 { ac_try='test -s conftest$ac_exeext'
27756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27757 (eval $ac_try) 2>&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); }; }; then
27761 ac_cv_lib_sun_getmntent=yes
27763 echo "$as_me: failed program was:" >&5
27764 sed 's/^/| /' conftest.$ac_ext >&5
27766 ac_cv_lib_sun_getmntent=no
27768 rm -f conftest.err conftest.$ac_objext \
27769 conftest$ac_exeext conftest.$ac_ext
27770 LIBS=$ac_check_lib_save_LIBS
27772 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
27773 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
27774 if test $ac_cv_lib_sun_getmntent = yes; then
27777 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
27778 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
27779 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
27780 echo $ECHO_N "(cached) $ECHO_C" >&6
27782 ac_check_lib_save_LIBS=$LIBS
27784 cat >conftest.$ac_ext <<_ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h. */
27791 /* Override any gcc2 internal prototype to avoid an error. */
27795 /* We use char because int might match the return type of a gcc2
27796 builtin and then its argument prototype would still apply. */
27806 rm -f conftest.$ac_objext conftest$ac_exeext
27807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27808 (eval $ac_link) 2>conftest.er1
27810 grep -v '^ *+' conftest.er1 >conftest.err
27812 cat conftest.err >&5
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } &&
27815 { ac_try='test -z "$ac_c_werror_flag"
27816 || test ! -s conftest.err'
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; } &&
27822 { ac_try='test -s conftest$ac_exeext'
27823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27824 (eval $ac_try) 2>&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; }; then
27828 ac_cv_lib_seq_getmntent=yes
27830 echo "$as_me: failed program was:" >&5
27831 sed 's/^/| /' conftest.$ac_ext >&5
27833 ac_cv_lib_seq_getmntent=no
27835 rm -f conftest.err conftest.$ac_objext \
27836 conftest$ac_exeext conftest.$ac_ext
27837 LIBS=$ac_check_lib_save_LIBS
27839 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
27840 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
27841 if test $ac_cv_lib_seq_getmntent = yes; then
27844 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
27845 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
27846 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27849 ac_check_lib_save_LIBS=$LIBS
27851 cat >conftest.$ac_ext <<_ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h. */
27858 /* Override any gcc2 internal prototype to avoid an error. */
27862 /* We use char because int might match the return type of a gcc2
27863 builtin and then its argument prototype would still apply. */
27873 rm -f conftest.$ac_objext conftest$ac_exeext
27874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27875 (eval $ac_link) 2>conftest.er1
27877 grep -v '^ *+' conftest.er1 >conftest.err
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } &&
27882 { ac_try='test -z "$ac_c_werror_flag"
27883 || test ! -s conftest.err'
27884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885 (eval $ac_try) 2>&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest$ac_exeext'
27890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891 (eval $ac_try) 2>&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; }; then
27895 ac_cv_lib_gen_getmntent=yes
27897 echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27900 ac_cv_lib_gen_getmntent=no
27902 rm -f conftest.err conftest.$ac_objext \
27903 conftest$ac_exeext conftest.$ac_ext
27904 LIBS=$ac_check_lib_save_LIBS
27906 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
27907 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
27908 if test $ac_cv_lib_gen_getmntent = yes; then
27917 for ac_func in getmntent
27919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27920 echo "$as_me:$LINENO: checking for $ac_func" >&5
27921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27922 if eval "test \"\${$as_ac_var+set}\" = set"; then
27923 echo $ECHO_N "(cached) $ECHO_C" >&6
27925 cat >conftest.$ac_ext <<_ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h. */
27931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27933 #define $ac_func innocuous_$ac_func
27935 /* System header to define __stub macros and hopefully few prototypes,
27936 which can conflict with char $ac_func (); below.
27937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27938 <limits.h> exists even on freestanding compilers. */
27941 # include <limits.h>
27943 # include <assert.h>
27948 /* Override any gcc2 internal prototype to avoid an error. */
27953 /* We use char because int might match the return type of a gcc2
27954 builtin and then its argument prototype would still apply. */
27956 /* The GNU C library defines this for functions which it implements
27957 to always fail with ENOSYS. Some functions are actually named
27958 something starting with __ and the normal name is an alias. */
27959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27962 char (*f) () = $ac_func;
27971 return f != $ac_func;
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27978 (eval $ac_link) 2>conftest.er1
27980 grep -v '^ *+' conftest.er1 >conftest.err
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
27985 { ac_try='test -z "$ac_c_werror_flag"
27986 || test ! -s conftest.err'
27987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988 (eval $ac_try) 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest$ac_exeext'
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; }; then
27998 eval "$as_ac_var=yes"
28000 echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28003 eval "$as_ac_var=no"
28005 rm -f conftest.err conftest.$ac_objext \
28006 conftest$ac_exeext conftest.$ac_ext
28008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28010 if test `eval echo '${'$as_ac_var'}'` = yes; then
28011 cat >>confdefs.h <<_ACEOF
28012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28019 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28020 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28021 if test "${ac_cv_func_closedir_void+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28024 if test "$cross_compiling" = yes; then
28025 ac_cv_func_closedir_void=yes
28027 cat >conftest.$ac_ext <<_ACEOF
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h. */
28033 $ac_includes_default
28034 #include <$ac_header_dirent>
28035 #ifndef __cplusplus
28042 exit (closedir (opendir (".")) != 0);
28047 rm -f conftest$ac_exeext
28048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28049 (eval $ac_link) 2>&5
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; }; then
28058 ac_cv_func_closedir_void=no
28060 echo "$as_me: program exited with status $ac_status" >&5
28061 echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28064 ( exit $ac_status )
28065 ac_cv_func_closedir_void=yes
28067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28070 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28071 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28072 if test $ac_cv_func_closedir_void = yes; then
28074 cat >>confdefs.h <<\_ACEOF
28075 #define CLOSEDIR_VOID 1
28080 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28081 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28082 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28083 echo $ECHO_N "(cached) $ECHO_C" >&6
28085 if test "$cross_compiling" = yes; then
28086 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28087 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28088 { (exit 1); exit 1; }; }
28090 cat >conftest.$ac_ext <<_ACEOF
28093 cat confdefs.h >>conftest.$ac_ext
28094 cat >>conftest.$ac_ext <<_ACEOF
28095 /* end confdefs.h. */
28097 # include <unistd.h>
28103 /* If this system has a BSD-style setpgrp which takes arguments,
28104 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28105 exit successfully. */
28106 exit (setpgrp (1,1) == -1 ? 0 : 1);
28111 rm -f conftest$ac_exeext
28112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28113 (eval $ac_link) 2>&5
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; }; then
28122 ac_cv_func_setpgrp_void=no
28124 echo "$as_me: program exited with status $ac_status" >&5
28125 echo "$as_me: failed program was:" >&5
28126 sed 's/^/| /' conftest.$ac_ext >&5
28128 ( exit $ac_status )
28129 ac_cv_func_setpgrp_void=yes
28131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28134 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28135 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28136 if test $ac_cv_func_setpgrp_void = yes; then
28138 cat >>confdefs.h <<\_ACEOF
28139 #define SETPGRP_VOID 1
28143 # AC_FUNC_FNMATCH dnl use local version
28146 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
28147 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
28148 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
28149 echo $ECHO_N "(cached) $ECHO_C" >&6
28151 ac_check_lib_save_LIBS=$LIBS
28152 LIBS="-lxpg4 $LIBS"
28153 cat >conftest.$ac_ext <<_ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h. */
28160 /* Override any gcc2 internal prototype to avoid an error. */
28164 /* We use char because int might match the return type of a gcc2
28165 builtin and then its argument prototype would still apply. */
28175 rm -f conftest.$ac_objext conftest$ac_exeext
28176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28177 (eval $ac_link) 2>conftest.er1
28179 grep -v '^ *+' conftest.er1 >conftest.err
28181 cat conftest.err >&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } &&
28184 { ac_try='test -z "$ac_c_werror_flag"
28185 || test ! -s conftest.err'
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; } &&
28191 { ac_try='test -s conftest$ac_exeext'
28192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28193 (eval $ac_try) 2>&5
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; }; then
28197 ac_cv_lib_xpg4_setlocale=yes
28199 echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28202 ac_cv_lib_xpg4_setlocale=no
28204 rm -f conftest.err conftest.$ac_objext \
28205 conftest$ac_exeext conftest.$ac_ext
28206 LIBS=$ac_check_lib_save_LIBS
28208 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
28209 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
28210 if test $ac_cv_lib_xpg4_setlocale = yes; then
28211 LIBS="$LIBS -lxpg4"
28214 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28215 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28216 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28217 echo $ECHO_N "(cached) $ECHO_C" >&6
28219 ac_check_lib_save_LIBS=$LIBS
28220 LIBS="-lintl $LIBS"
28221 cat >conftest.$ac_ext <<_ACEOF
28224 cat confdefs.h >>conftest.$ac_ext
28225 cat >>conftest.$ac_ext <<_ACEOF
28226 /* end confdefs.h. */
28228 /* Override any gcc2 internal prototype to avoid an error. */
28232 /* We use char because int might match the return type of a gcc2
28233 builtin and then its argument prototype would still apply. */
28243 rm -f conftest.$ac_objext conftest$ac_exeext
28244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28245 (eval $ac_link) 2>conftest.er1
28247 grep -v '^ *+' conftest.er1 >conftest.err
28249 cat conftest.err >&5
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); } &&
28252 { ac_try='test -z "$ac_c_werror_flag"
28253 || test ! -s conftest.err'
28254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255 (eval $ac_try) 2>&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; } &&
28259 { ac_try='test -s conftest$ac_exeext'
28260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261 (eval $ac_try) 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; }; then
28265 ac_cv_lib_intl_gettext=yes
28267 echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28270 ac_cv_lib_intl_gettext=no
28272 rm -f conftest.err conftest.$ac_objext \
28273 conftest$ac_exeext conftest.$ac_ext
28274 LIBS=$ac_check_lib_save_LIBS
28276 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28277 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28278 if test $ac_cv_lib_intl_gettext = yes; then
28279 LIBS="$LIBS -lintl"
28285 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28286 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28287 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28288 echo $ECHO_N "(cached) $ECHO_C" >&6
28290 ac_check_lib_save_LIBS=$LIBS
28292 cat >conftest.$ac_ext <<_ACEOF
28295 cat confdefs.h >>conftest.$ac_ext
28296 cat >>conftest.$ac_ext <<_ACEOF
28297 /* end confdefs.h. */
28299 /* Override any gcc2 internal prototype to avoid an error. */
28303 /* We use char because int might match the return type of a gcc2
28304 builtin and then its argument prototype would still apply. */
28314 rm -f conftest.$ac_objext conftest$ac_exeext
28315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28316 (eval $ac_link) 2>conftest.er1
28318 grep -v '^ *+' conftest.er1 >conftest.err
28320 cat conftest.err >&5
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); } &&
28323 { ac_try='test -z "$ac_c_werror_flag"
28324 || test ! -s conftest.err'
28325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326 (eval $ac_try) 2>&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); }; } &&
28330 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28336 ac_cv_lib_sun_getpwnam=yes
28338 echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28341 ac_cv_lib_sun_getpwnam=no
28343 rm -f conftest.err conftest.$ac_objext \
28344 conftest$ac_exeext conftest.$ac_ext
28345 LIBS=$ac_check_lib_save_LIBS
28347 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28348 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28349 if test $ac_cv_lib_sun_getpwnam = yes; then
28350 cat >>confdefs.h <<_ACEOF
28351 #define HAVE_LIBSUN 1
28360 for ac_header in zlib.h
28362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28364 echo "$as_me:$LINENO: checking for $ac_header" >&5
28365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28367 echo $ECHO_N "(cached) $ECHO_C" >&6
28369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28372 # Is the header compilable?
28373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28375 cat >conftest.$ac_ext <<_ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h. */
28381 $ac_includes_default
28382 #include <$ac_header>
28384 rm -f conftest.$ac_objext
28385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28386 (eval $ac_compile) 2>conftest.er1
28388 grep -v '^ *+' conftest.er1 >conftest.err
28390 cat conftest.err >&5
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); } &&
28393 { ac_try='test -z "$ac_c_werror_flag"
28394 || test ! -s conftest.err'
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; } &&
28400 { ac_try='test -s conftest.$ac_objext'
28401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402 (eval $ac_try) 2>&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; }; then
28406 ac_header_compiler=yes
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28411 ac_header_compiler=no
28413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28415 echo "${ECHO_T}$ac_header_compiler" >&6
28417 # Is the header present?
28418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28420 cat >conftest.$ac_ext <<_ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h. */
28426 #include <$ac_header>
28428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28431 grep -v '^ *+' conftest.er1 >conftest.err
28433 cat conftest.err >&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } >/dev/null; then
28436 if test -s conftest.err; then
28437 ac_cpp_err=$ac_c_preproc_warn_flag
28438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28445 if test -z "$ac_cpp_err"; then
28446 ac_header_preproc=yes
28448 echo "$as_me: failed program was:" >&5
28449 sed 's/^/| /' conftest.$ac_ext >&5
28451 ac_header_preproc=no
28453 rm -f conftest.err conftest.$ac_ext
28454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28455 echo "${ECHO_T}$ac_header_preproc" >&6
28457 # So? What about this header?
28458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28464 ac_header_preproc=yes
28467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28481 ## ------------------------------------------ ##
28482 ## Report this to the AC_PACKAGE_NAME lists. ##
28483 ## ------------------------------------------ ##
28486 sed "s/^/$as_me: WARNING: /" >&2
28489 echo "$as_me:$LINENO: checking for $ac_header" >&5
28490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28492 echo $ECHO_N "(cached) $ECHO_C" >&6
28494 eval "$as_ac_Header=\$ac_header_preproc"
28496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28501 cat >>confdefs.h <<_ACEOF
28502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28509 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28510 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28511 if test "${ac_cv_lib_z_deflate+set}" = set; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28514 ac_check_lib_save_LIBS=$LIBS
28516 cat >conftest.$ac_ext <<_ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h. */
28523 /* Override any gcc2 internal prototype to avoid an error. */
28527 /* We use char because int might match the return type of a gcc2
28528 builtin and then its argument prototype would still apply. */
28538 rm -f conftest.$ac_objext conftest$ac_exeext
28539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28540 (eval $ac_link) 2>conftest.er1
28542 grep -v '^ *+' conftest.er1 >conftest.err
28544 cat conftest.err >&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } &&
28547 { ac_try='test -z "$ac_c_werror_flag"
28548 || test ! -s conftest.err'
28549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28550 (eval $ac_try) 2>&5
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; } &&
28554 { ac_try='test -s conftest$ac_exeext'
28555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556 (eval $ac_try) 2>&5
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; }; then
28560 ac_cv_lib_z_deflate=yes
28562 echo "$as_me: failed program was:" >&5
28563 sed 's/^/| /' conftest.$ac_ext >&5
28565 ac_cv_lib_z_deflate=no
28567 rm -f conftest.err conftest.$ac_objext \
28568 conftest$ac_exeext conftest.$ac_ext
28569 LIBS=$ac_check_lib_save_LIBS
28571 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28572 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28573 if test $ac_cv_lib_z_deflate = yes; then
28578 if test x$FDLIBS = x-lz; then
28579 cat >>confdefs.h <<\_ACEOF
28580 #define HAVE_LIBZ 1
28587 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28588 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28589 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28590 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28591 echo $ECHO_N "(cached) $ECHO_C" >&6
28593 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28594 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28596 # Is the header compilable?
28597 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28598 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28599 cat >conftest.$ac_ext <<_ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h. */
28605 $ac_includes_default
28606 #include <sys/acl.h>
28608 rm -f conftest.$ac_objext
28609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28610 (eval $ac_compile) 2>conftest.er1
28612 grep -v '^ *+' conftest.er1 >conftest.err
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } &&
28617 { ac_try='test -z "$ac_c_werror_flag"
28618 || test ! -s conftest.err'
28619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 (eval $ac_try) 2>&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; } &&
28624 { ac_try='test -s conftest.$ac_objext'
28625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626 (eval $ac_try) 2>&5
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; }; then
28630 ac_header_compiler=yes
28632 echo "$as_me: failed program was:" >&5
28633 sed 's/^/| /' conftest.$ac_ext >&5
28635 ac_header_compiler=no
28637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28639 echo "${ECHO_T}$ac_header_compiler" >&6
28641 # Is the header present?
28642 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28643 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
28644 cat >conftest.$ac_ext <<_ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h. */
28650 #include <sys/acl.h>
28652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28655 grep -v '^ *+' conftest.er1 >conftest.err
28657 cat conftest.err >&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); } >/dev/null; then
28660 if test -s conftest.err; then
28661 ac_cpp_err=$ac_c_preproc_warn_flag
28662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28669 if test -z "$ac_cpp_err"; then
28670 ac_header_preproc=yes
28672 echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28675 ac_header_preproc=no
28677 rm -f conftest.err conftest.$ac_ext
28678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28679 echo "${ECHO_T}$ac_header_preproc" >&6
28681 # So? What about this header?
28682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28684 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28685 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28686 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28687 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28688 ac_header_preproc=yes
28691 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28692 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28693 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
28694 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
28695 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28696 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28697 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
28698 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28699 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28700 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28701 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28702 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28705 ## ------------------------------------------ ##
28706 ## Report this to the AC_PACKAGE_NAME lists. ##
28707 ## ------------------------------------------ ##
28710 sed "s/^/$as_me: WARNING: /" >&2
28713 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28714 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28715 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28716 echo $ECHO_N "(cached) $ECHO_C" >&6
28718 ac_cv_header_sys_acl_h=$ac_header_preproc
28720 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28721 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28726 echo "$as_me:$LINENO: checking for acl_get_file" >&5
28727 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
28728 if test "${ac_cv_func_acl_get_file+set}" = set; then
28729 echo $ECHO_N "(cached) $ECHO_C" >&6
28731 cat >conftest.$ac_ext <<_ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h. */
28737 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
28738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28739 #define acl_get_file innocuous_acl_get_file
28741 /* System header to define __stub macros and hopefully few prototypes,
28742 which can conflict with char acl_get_file (); below.
28743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28744 <limits.h> exists even on freestanding compilers. */
28747 # include <limits.h>
28749 # include <assert.h>
28752 #undef acl_get_file
28754 /* Override any gcc2 internal prototype to avoid an error. */
28759 /* We use char because int might match the return type of a gcc2
28760 builtin and then its argument prototype would still apply. */
28761 char acl_get_file ();
28762 /* The GNU C library defines this for functions which it implements
28763 to always fail with ENOSYS. Some functions are actually named
28764 something starting with __ and the normal name is an alias. */
28765 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
28768 char (*f) () = acl_get_file;
28777 return f != acl_get_file;
28782 rm -f conftest.$ac_objext conftest$ac_exeext
28783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28784 (eval $ac_link) 2>conftest.er1
28786 grep -v '^ *+' conftest.er1 >conftest.err
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } &&
28791 { ac_try='test -z "$ac_c_werror_flag"
28792 || test ! -s conftest.err'
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; } &&
28798 { ac_try='test -s conftest$ac_exeext'
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
28804 ac_cv_func_acl_get_file=yes
28806 echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28809 ac_cv_func_acl_get_file=no
28811 rm -f conftest.err conftest.$ac_objext \
28812 conftest$ac_exeext conftest.$ac_ext
28814 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
28815 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
28816 if test $ac_cv_func_acl_get_file = yes; then
28819 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
28820 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
28821 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
28822 echo $ECHO_N "(cached) $ECHO_C" >&6
28824 ac_check_lib_save_LIBS=$LIBS
28826 cat >conftest.$ac_ext <<_ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h. */
28833 /* Override any gcc2 internal prototype to avoid an error. */
28837 /* We use char because int might match the return type of a gcc2
28838 builtin and then its argument prototype would still apply. */
28839 char acl_get_file ();
28848 rm -f conftest.$ac_objext conftest$ac_exeext
28849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28850 (eval $ac_link) 2>conftest.er1
28852 grep -v '^ *+' conftest.er1 >conftest.err
28854 cat conftest.err >&5
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } &&
28857 { ac_try='test -z "$ac_c_werror_flag"
28858 || test ! -s conftest.err'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; } &&
28864 { ac_try='test -s conftest$ac_exeext'
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 ac_cv_lib_acl_acl_get_file=yes
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28875 ac_cv_lib_acl_acl_get_file=no
28877 rm -f conftest.err conftest.$ac_objext \
28878 conftest$ac_exeext conftest.$ac_ext
28879 LIBS=$ac_check_lib_save_LIBS
28881 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
28882 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
28883 if test $ac_cv_lib_acl_acl_get_file = yes; then
28884 have_acl=yes; FDLIBS="-lacl $FDLIBS"
28890 if test $have_acl = yes; then
28891 cat >>confdefs.h <<\_ACEOF
28898 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
28899 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
28900 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
28901 echo $ECHO_N "(cached) $ECHO_C" >&6
28903 ac_check_lib_save_LIBS=$LIBS
28904 LIBS="-lpthread $LIBS"
28905 cat >conftest.$ac_ext <<_ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h. */
28912 /* Override any gcc2 internal prototype to avoid an error. */
28916 /* We use char because int might match the return type of a gcc2
28917 builtin and then its argument prototype would still apply. */
28918 char pthread_create ();
28927 rm -f conftest.$ac_objext conftest$ac_exeext
28928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28929 (eval $ac_link) 2>conftest.er1
28931 grep -v '^ *+' conftest.er1 >conftest.err
28933 cat conftest.err >&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } &&
28936 { ac_try='test -z "$ac_c_werror_flag"
28937 || test ! -s conftest.err'
28938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939 (eval $ac_try) 2>&5
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; } &&
28943 { ac_try='test -s conftest$ac_exeext'
28944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945 (eval $ac_try) 2>&5
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; }; then
28949 ac_cv_lib_pthread_pthread_create=yes
28951 echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28954 ac_cv_lib_pthread_pthread_create=no
28956 rm -f conftest.err conftest.$ac_objext \
28957 conftest$ac_exeext conftest.$ac_ext
28958 LIBS=$ac_check_lib_save_LIBS
28960 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
28961 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
28962 if test $ac_cv_lib_pthread_pthread_create = yes; then
28963 PTHREAD_LIB="-lpthread"
28965 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
28966 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
28967 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
28968 echo $ECHO_N "(cached) $ECHO_C" >&6
28970 ac_check_lib_save_LIBS=$LIBS
28971 LIBS="-lpthreads $LIBS"
28972 cat >conftest.$ac_ext <<_ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28979 /* Override any gcc2 internal prototype to avoid an error. */
28983 /* We use char because int might match the return type of a gcc2
28984 builtin and then its argument prototype would still apply. */
28985 char pthread_create ();
28994 rm -f conftest.$ac_objext conftest$ac_exeext
28995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28996 (eval $ac_link) 2>conftest.er1
28998 grep -v '^ *+' conftest.er1 >conftest.err
29000 cat conftest.err >&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } &&
29003 { ac_try='test -z "$ac_c_werror_flag"
29004 || test ! -s conftest.err'
29005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006 (eval $ac_try) 2>&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); }; } &&
29010 { ac_try='test -s conftest$ac_exeext'
29011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012 (eval $ac_try) 2>&5
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); }; }; then
29016 ac_cv_lib_pthreads_pthread_create=yes
29018 echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29021 ac_cv_lib_pthreads_pthread_create=no
29023 rm -f conftest.err conftest.$ac_objext \
29024 conftest$ac_exeext conftest.$ac_ext
29025 LIBS=$ac_check_lib_save_LIBS
29027 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29028 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29029 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29030 PTHREAD_LIB="-lpthreads"
29032 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29033 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29034 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29035 echo $ECHO_N "(cached) $ECHO_C" >&6
29037 ac_check_lib_save_LIBS=$LIBS
29039 cat >conftest.$ac_ext <<_ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h. */
29046 /* Override any gcc2 internal prototype to avoid an error. */
29050 /* We use char because int might match the return type of a gcc2
29051 builtin and then its argument prototype would still apply. */
29052 char pthread_create ();
29061 rm -f conftest.$ac_objext conftest$ac_exeext
29062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29063 (eval $ac_link) 2>conftest.er1
29065 grep -v '^ *+' conftest.er1 >conftest.err
29067 cat conftest.err >&5
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); } &&
29070 { ac_try='test -z "$ac_c_werror_flag"
29071 || test ! -s conftest.err'
29072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073 (eval $ac_try) 2>&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; } &&
29077 { ac_try='test -s conftest$ac_exeext'
29078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079 (eval $ac_try) 2>&5
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); }; }; then
29083 ac_cv_lib_c_r_pthread_create=yes
29085 echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.$ac_ext >&5
29088 ac_cv_lib_c_r_pthread_create=no
29090 rm -f conftest.err conftest.$ac_objext \
29091 conftest$ac_exeext conftest.$ac_ext
29092 LIBS=$ac_check_lib_save_LIBS
29094 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29095 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29096 if test $ac_cv_lib_c_r_pthread_create = yes; then
29097 PTHREAD_LIB="-lc_r"
29099 echo "$as_me:$LINENO: checking for pthread_create" >&5
29100 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29101 if test "${ac_cv_func_pthread_create+set}" = set; then
29102 echo $ECHO_N "(cached) $ECHO_C" >&6
29104 cat >conftest.$ac_ext <<_ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h. */
29110 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29112 #define pthread_create innocuous_pthread_create
29114 /* System header to define __stub macros and hopefully few prototypes,
29115 which can conflict with char pthread_create (); below.
29116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29117 <limits.h> exists even on freestanding compilers. */
29120 # include <limits.h>
29122 # include <assert.h>
29125 #undef pthread_create
29127 /* Override any gcc2 internal prototype to avoid an error. */
29132 /* We use char because int might match the return type of a gcc2
29133 builtin and then its argument prototype would still apply. */
29134 char pthread_create ();
29135 /* The GNU C library defines this for functions which it implements
29136 to always fail with ENOSYS. Some functions are actually named
29137 something starting with __ and the normal name is an alias. */
29138 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29141 char (*f) () = pthread_create;
29150 return f != pthread_create;
29155 rm -f conftest.$ac_objext conftest$ac_exeext
29156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29157 (eval $ac_link) 2>conftest.er1
29159 grep -v '^ *+' conftest.er1 >conftest.err
29161 cat conftest.err >&5
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); } &&
29164 { ac_try='test -z "$ac_c_werror_flag"
29165 || test ! -s conftest.err'
29166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29167 (eval $ac_try) 2>&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); }; } &&
29171 { ac_try='test -s conftest$ac_exeext'
29172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29173 (eval $ac_try) 2>&5
29175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); }; }; then
29177 ac_cv_func_pthread_create=yes
29179 echo "$as_me: failed program was:" >&5
29180 sed 's/^/| /' conftest.$ac_ext >&5
29182 ac_cv_func_pthread_create=no
29184 rm -f conftest.err conftest.$ac_objext \
29185 conftest$ac_exeext conftest.$ac_ext
29187 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29188 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29201 cat >>confdefs.h <<\_ACEOF
29207 CFLAGS=${CFLAGS--O}
29208 LDFLAGS=${LDFLAGS--O}
29209 DB_LIBS="${SQL_LFLAGS}"
29211 CPPFLAGS="$CPPFLAGS"
29238 # Finally we set appropriate distribution specific
29239 # variables and defaults
29241 # PFILES are platform specific files
29242 PFILES="platforms/Makefile"
29246 hostname=`uname -n | cut -d '.' -f 1`
29247 case "$DISTNAME" in
29250 PSCMD="ps -e -o pid,comm"
29251 PFILES="${PFILES} \
29252 platforms/aix/Makefile"
29253 TAPEDRIVE="/dev/rmt0.1"
29257 PTHREAD_LIB="-lpthread -lexc"
29258 if test "${CC}" = "gcc" ; then
29265 TAPEDRIVE="/dev/nrmt0"
29268 DISTVER=`uname -a |awk '{print $3}'`
29269 TAPEDRIVE="/dev/nrmt0"
29270 PTHREAD_LIB="-pthread"
29271 CFLAGS="${CFLAGS} -pthread"
29272 PSCMD="ps -ax -o pid,command"
29275 PFILES="${PFILES} \
29276 platforms/bsdi/Makefile \
29277 platforms/bsdi/bacula-fd \
29278 platforms/bsdi/bacula-sd \
29279 platforms/bsdi/bacula-dir"
29280 largefile_support="yes"
29283 DISTVER=`uname -a |awk '{print $3}'`
29284 TAPEDRIVE="/dev/nrst0"
29286 WCFLAGS="-mwindows"
29287 WLDFLAGS="-mwindows"
29291 TAPEDRIVE="/dev/nst0"
29292 PSCMD="ps -e -o pid,command"
29294 PFILES="${PFILES} \
29295 platforms/darwin/Makefile"
29298 DISTVER=`cat /etc/debian_version`
29299 TAPEDRIVE="/dev/nrst0"
29300 PSCMD="ps -e -o pid,command"
29303 DISTVER=`uname -a |awk '{print $3}'`
29304 VER=`echo $DISTVER | cut -c 1`
29305 if test x$VER = x4 ; then
29306 PTHREAD_LIB="-pthread"
29307 CFLAGS="${CFLAGS} -pthread"
29311 TAPEDRIVE="/dev/nrsa0"
29312 PSCMD="ps -ax -o pid,command"
29313 PFILES="${PFILES} \
29314 platforms/freebsd/Makefile \
29315 platforms/freebsd/bacula-fd \
29316 platforms/freebsd/bacula-sd \
29317 platforms/freebsd/bacula-dir"
29318 largefile_support="yes"
29321 PSCMD="UNIX95=1 ps -e -o pid,comm"
29322 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29324 TAPEDRIVE="/dev/rmt/0hnb"
29325 PTHREAD_LIB="-lpthread"
29326 cat >>confdefs.h <<\_ACEOF
29327 #define _INCLUDE_LONGLONG 1
29333 TAPEDRIVE="/dev/rmt/0cbn"
29334 PSCMD="ps -e -o pid,comm"
29335 PFILES="${PFILES} \
29336 platforms/irix/Makefile \
29337 platforms/irix/bacula-fd \
29338 platforms/irix/bacula-sd \
29339 platforms/irix/bacula-dir"
29342 DISTVER=`uname -a |awk '{print $3}'`
29345 TAPEDRIVE="/dev/nrst0"
29346 PSCMD="ps -ax -o pid,command"
29347 PTHREAD_LIB="-pthread"
29348 CFLAGS="${CFLAGS} -pthread"
29351 DISTVER=`uname -a |awk '{print $3}'`
29354 TAPEDRIVE="/dev/nrst0"
29355 PSCMD="ps -ax -o pid,command"
29356 PTHREAD_LIB="-pthread"
29357 CFLAGS="${CFLAGS} -pthread"
29358 PFILES="${PFILES} \
29359 platforms/openbsd/Makefile \
29360 platforms/openbsd/bacula-fd \
29361 platforms/openbsd/bacula-sd \
29362 platforms/openbsd/bacula-dir"
29365 if test -f /etc/whitebox-release ; then
29366 f=/etc/whitebox-release
29368 f=/etc/redhat-release
29370 if test `cat $f | grep release |\
29371 cut -f 3 -d ' '`x = "Enterprise"x ; then
29372 DISTVER="Enterprise "`cat $f | grep release |\
29375 DISTVER=`cat /etc/redhat-release | grep release |\
29378 TAPEDRIVE="/dev/nst0"
29379 PSCMD="ps -e -o pid,command"
29380 PFILES="${PFILES} \
29381 platforms/redhat/Makefile \
29382 platforms/redhat/bacula-fd \
29383 platforms/redhat/bacula-sd \
29384 platforms/redhat/bacula-dir \
29385 platforms/redhat/bacula.spec \
29387 hostname=`hostname -s`
29390 DISTVER=`cat /etc/mandrake-release | grep release |\
29392 TAPEDRIVE="/dev/nst0"
29393 PSCMD="ps -e -o pid,command"
29394 PFILES="${PFILES} \
29395 platforms/mandrake/Makefile \
29396 platforms/mandrake/bacula-fd \
29397 platforms/mandrake/bacula-sd \
29398 platforms/mandrake/bacula-dir \
29399 platforms/mandrake/bacula.spec \
29403 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29404 TAPEDRIVE="/dev/nst0"
29405 PSCMD="ps -e -o pid,command"
29406 PFILES="${PFILES} \
29407 platforms/gentoo/Makefile \
29408 platforms/gentoo/bacula-init \
29409 platforms/gentoo/bacula-fd \
29410 platforms/gentoo/bacula-sd \
29411 platforms/gentoo/bacula-dir"
29414 DISTVER=`cat /etc/slackware-version`
29415 TAPEDRIVE="/dev/nst0"
29416 PSCMD="ps -e -o pid,command"
29417 PFILES="${PFILES} \
29418 platforms/slackware/Makefile \
29419 platforms/slackware/rc.bacula-fd \
29420 platforms/slackware/rc.bacula-sd \
29421 platforms/slackware/rc.bacula-dir\
29422 platforms/slackware/functions.bacula"
29426 TAPEDRIVE="/dev/rmt/0cbn"
29427 PSCMD="ps -e -o pid,comm"
29428 PFILES="${PFILES} \
29429 platforms/solaris/Makefile \
29430 platforms/solaris/bacula-fd \
29431 platforms/solaris/bacula-sd \
29432 platforms/solaris/bacula-dir"
29433 if test x$DISTVER = x5.6 ; then
29434 cat >>confdefs.h <<\_ACEOF
29435 #define HAVE_OLD_SOCKOPT 1
29439 LIBS="$LIBS -lresolv"
29442 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29444 TAPEDRIVE="/dev/nst0"
29445 PSCMD="ps -e -o pid,command"
29446 PFILES="${PFILES} \
29447 platforms/suse/Makefile \
29448 platforms/suse/bacula-fd \
29449 platforms/suse/bacula-sd \
29450 platforms/suse/bacula-dir \
29451 platforms/suse/bacula \
29452 platforms/suse/bacula.spec"
29457 TAPEDRIVE="/dev/nst0"
29458 PSCMD="ps -e -o pid,command"
29459 PFILES="${PFILES} \
29460 platforms/suse/Makefile \
29461 platforms/suse/bacula-fd \
29462 platforms/suse/bacula-sd \
29463 platforms/suse/bacula-dir"
29467 TAPEDRIVE="/dev/nst0"
29470 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29476 LIBS="$PTHREAD_LIB $LIBS"
29478 cat >>confdefs.h <<_ACEOF
29482 cat >>confdefs.h <<_ACEOF
29493 MCOMMON=./autoconf/Make.common
29496 if test "x${subsysdir}" = "x${sbindir}" ; then
29499 echo "You have set both --sbindir and --with-subsys-dir"
29500 echo " equal to: ${subsysdir} "
29501 echo "This is not permitted. Please reconfigure."
29503 echo "Aborting configuration ..."
29509 ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula 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/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
29510 ac_config_commands="$ac_config_commands default"
29511 cat >confcache <<\_ACEOF
29512 # This file is a shell script that caches the results of configure
29513 # tests run on this system so they can be shared between configure
29514 # scripts and configure runs, see configure's option --config-cache.
29515 # It is not useful on other systems. If it contains results you don't
29516 # want to keep, you may remove or edit it.
29518 # config.status only pays attention to the cache file if you give it
29519 # the --recheck option to rerun configure.
29521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29523 # following values.
29527 # The following way of writing the cache mishandles newlines in values,
29528 # but we know of no workaround that is simple, portable, and efficient.
29529 # So, don't put newlines in cache variables' values.
29530 # Ultrix sh set writes to stderr and can't be redirected directly,
29531 # and sets the high bit in the cache file unless we assign to the vars.
29534 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29536 # `set' does not quote correctly, so add quotes (double-quote
29537 # substitution turns \\\\ into \\, and sed turns \\ into \).
29540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29543 # `set' quotes correctly as required by POSIX, so do not add quotes.
29545 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29554 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29556 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29557 if test -w $cache_file; then
29558 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29559 cat confcache >$cache_file
29561 echo "not updating unwritable cache $cache_file"
29566 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29567 # Let make expand exec_prefix.
29568 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29570 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29571 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29572 # trailing colons and then remove the whole line if VPATH becomes empty
29573 # (actually we leave an empty line to preserve line numbers).
29574 if test "x$srcdir" = x.; then
29575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29576 s/:*\$(srcdir):*/:/;
29577 s/:*\${srcdir}:*/:/;
29579 s/^\([^=]*=[ ]*\):*/\1/;
29585 DEFS=-DHAVE_CONFIG_H
29589 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29590 # 1. Remove the extension, and $U if already installed.
29591 ac_i=`echo "$ac_i" |
29592 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29594 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29595 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29597 LIBOBJS=$ac_libobjs
29599 LTLIBOBJS=$ac_ltlibobjs
29603 : ${CONFIG_STATUS=./config.status}
29604 ac_clean_files_save=$ac_clean_files
29605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29606 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29607 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29608 cat >$CONFIG_STATUS <<_ACEOF
29610 # Generated by $as_me.
29611 # Run this file to recreate the current configuration.
29612 # Compiler output produced by configure, useful for debugging
29613 # configure, is in config.log if it exists.
29616 ac_cs_recheck=false
29618 SHELL=\${CONFIG_SHELL-$SHELL}
29621 cat >>$CONFIG_STATUS <<\_ACEOF
29622 ## --------------------- ##
29623 ## M4sh Initialization. ##
29624 ## --------------------- ##
29626 # Be Bourne compatible
29627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29630 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29631 # is contrary to our usage. Disable this feature.
29632 alias -g '${1+"$@"}'='"$@"'
29633 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29636 DUALCASE=1; export DUALCASE # for MKS sh
29638 # Support unset when possible.
29639 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29646 # Work around bugs in pre-3.0 UWIN ksh.
29647 $as_unset ENV MAIL MAILPATH
29654 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29655 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29656 LC_TELEPHONE LC_TIME
29658 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29659 eval $as_var=C; export $as_var
29665 # Required to use basename.
29666 if expr a : '\(a\)' >/dev/null 2>&1; then
29672 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29673 as_basename=basename
29679 # Name of the executable.
29680 as_me=`$as_basename "$0" ||
29681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29682 X"$0" : 'X\(//\)$' \| \
29683 X"$0" : 'X\(/\)$' \| \
29684 . : '\(.\)' 2>/dev/null ||
29686 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29687 /^X\/\(\/\/\)$/{ s//\1/; q; }
29688 /^X\/\(\/\).*/{ s//\1/; q; }
29692 # PATH needs CR, and LINENO needs CR and PATH.
29693 # Avoid depending upon Character Ranges.
29694 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29695 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29696 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29697 as_cr_digits='0123456789'
29698 as_cr_alnum=$as_cr_Letters$as_cr_digits
29700 # The user is always right.
29701 if test "${PATH_SEPARATOR+set}" != set; then
29702 echo "#! /bin/sh" >conf$$.sh
29703 echo "exit 0" >>conf$$.sh
29705 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29714 as_lineno_1=$LINENO
29715 as_lineno_2=$LINENO
29716 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29717 test "x$as_lineno_1" != "x$as_lineno_2" &&
29718 test "x$as_lineno_3" = "x$as_lineno_2" || {
29719 # Find who we are. Look in the path if we contain no path at all
29722 *[\\/]* ) as_myself=$0 ;;
29723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29724 for as_dir in $PATH
29727 test -z "$as_dir" && as_dir=.
29728 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29733 # We did not find ourselves, most probably we were run as `sh COMMAND'
29734 # in which case we are not to be found in the path.
29735 if test "x$as_myself" = x; then
29738 if test ! -f "$as_myself"; then
29739 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29740 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29741 { (exit 1); exit 1; }; }
29743 case $CONFIG_SHELL in
29745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29746 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29749 test -z "$as_dir" && as_dir=.
29750 for as_base in sh bash ksh sh5; do
29753 if ("$as_dir/$as_base" -c '
29754 as_lineno_1=$LINENO
29755 as_lineno_2=$LINENO
29756 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29757 test "x$as_lineno_1" != "x$as_lineno_2" &&
29758 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29759 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29760 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29761 CONFIG_SHELL=$as_dir/$as_base
29762 export CONFIG_SHELL
29763 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29771 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29772 # uniformly replaced by the line number. The first 'sed' inserts a
29773 # line-number line before each line; the second 'sed' does the real
29774 # work. The second script uses 'N' to pair each line-number line
29775 # with the numbered line, and appends trailing '-' during
29776 # substitution so that $LINENO is not a special case at line end.
29777 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29778 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29779 sed '=' <$as_myself |
29784 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29787 s,^['$as_cr_digits']*\n,,
29788 ' >$as_me.lineno &&
29789 chmod +x $as_me.lineno ||
29790 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29791 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29792 { (exit 1); exit 1; }; }
29794 # Don't try to exec as it changes $[0], causing all sort of problems
29795 # (the dirname of $[0] is not the place where we might find the
29796 # original and so on. Autoconf is especially sensible to this).
29798 # Exit status is that of the last command.
29803 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29804 *c*,-n*) ECHO_N= ECHO_C='
29806 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29807 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29810 if expr a : '\(a\)' >/dev/null 2>&1; then
29816 rm -f conf$$ conf$$.exe conf$$.file
29818 if ln -s conf$$.file conf$$ 2>/dev/null; then
29819 # We could just check for DJGPP; but this test a) works b) is more generic
29820 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29821 if test -f conf$$.exe; then
29822 # Don't use ln at all; we don't have any links
29827 elif ln conf$$.file conf$$ 2>/dev/null; then
29832 rm -f conf$$ conf$$.exe conf$$.file
29834 if mkdir -p . 2>/dev/null; then
29837 test -d ./-p && rmdir ./-p
29841 as_executable_p="test -f"
29843 # Sed expression to map a string onto a valid CPP name.
29844 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29846 # Sed expression to map a string onto a valid variable name.
29847 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29851 # We need space, tab and new line, in precisely that order.
29861 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29862 # report actual input values of CONFIG_FILES etc. instead of their
29863 # values after options handling. Logging --version etc. is OK.
29867 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29868 ## Running $as_me. ##
29873 This file was extended by $as_me, which was
29874 generated by GNU Autoconf 2.59. Invocation command line was
29876 CONFIG_FILES = $CONFIG_FILES
29877 CONFIG_HEADERS = $CONFIG_HEADERS
29878 CONFIG_LINKS = $CONFIG_LINKS
29879 CONFIG_COMMANDS = $CONFIG_COMMANDS
29883 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29887 # Files that config.status was made for.
29888 if test -n "$ac_config_files"; then
29889 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29892 if test -n "$ac_config_headers"; then
29893 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29896 if test -n "$ac_config_links"; then
29897 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29900 if test -n "$ac_config_commands"; then
29901 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29904 cat >>$CONFIG_STATUS <<\_ACEOF
29907 \`$as_me' instantiates files from templates according to the
29908 current configuration.
29910 Usage: $0 [OPTIONS] [FILE]...
29912 -h, --help print this help, then exit
29913 -V, --version print version number, then exit
29914 -q, --quiet do not print progress messages
29915 -d, --debug don't remove temporary files
29916 --recheck update $as_me by reconfiguring in the same conditions
29917 --file=FILE[:TEMPLATE]
29918 instantiate the configuration file FILE
29919 --header=FILE[:TEMPLATE]
29920 instantiate the configuration header FILE
29922 Configuration files:
29925 Configuration headers:
29928 Configuration commands:
29931 Report bugs to <bug-autoconf@gnu.org>."
29934 cat >>$CONFIG_STATUS <<_ACEOF
29937 configured by $0, generated by GNU Autoconf 2.59,
29938 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29940 Copyright (C) 2003 Free Software Foundation, Inc.
29941 This config.status script is free software; the Free Software Foundation
29942 gives unlimited permission to copy, distribute and modify it."
29947 cat >>$CONFIG_STATUS <<\_ACEOF
29948 # If no file are specified by the user, then we need to provide default
29949 # value. By we need to know if files were specified by the user.
29955 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29956 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29964 *) # This is not an option, so the user has probably given explicit
29967 ac_need_defaults=false;;
29971 # Handling of the options.
29973 cat >>$CONFIG_STATUS <<\_ACEOF
29974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29976 --version | --vers* | -V )
29977 echo "$ac_cs_version"; exit 0 ;;
29979 # Conflict between --help and --header
29980 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29981 Try \`$0 --help' for more information." >&5
29982 echo "$as_me: error: ambiguous option: $1
29983 Try \`$0 --help' for more information." >&2;}
29984 { (exit 1); exit 1; }; };;
29985 --help | --hel | -h )
29986 echo "$ac_cs_usage"; exit 0 ;;
29987 --debug | --d* | -d )
29989 --file | --fil | --fi | --f )
29991 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29992 ac_need_defaults=false;;
29993 --header | --heade | --head | --hea )
29995 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29996 ac_need_defaults=false;;
29997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29998 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30001 # This is an error.
30002 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30003 Try \`$0 --help' for more information." >&5
30004 echo "$as_me: error: unrecognized option: $1
30005 Try \`$0 --help' for more information." >&2;}
30006 { (exit 1); exit 1; }; } ;;
30008 *) ac_config_targets="$ac_config_targets $1" ;;
30014 ac_configure_extra_args=
30016 if $ac_cs_silent; then
30018 ac_configure_extra_args="$ac_configure_extra_args --silent"
30022 cat >>$CONFIG_STATUS <<_ACEOF
30023 if \$ac_cs_recheck; then
30024 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30025 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30030 cat >>$CONFIG_STATUS <<_ACEOF
30032 # INIT-COMMANDS section.
30035 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30036 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30038 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30039 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30040 LINGUAS="${LINGUAS-%UNSET%}"
30047 cat >>$CONFIG_STATUS <<\_ACEOF
30048 for ac_config_target in $ac_config_targets
30050 case "$ac_config_target" in
30051 # Handling of arguments.
30052 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30053 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30054 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30055 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30056 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30057 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30058 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30059 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30060 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30061 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30062 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30063 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30064 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30065 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30066 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30067 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30068 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30069 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30070 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30071 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30072 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30073 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
30074 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
30075 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30076 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30077 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30078 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30079 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30080 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30081 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30082 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30083 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30084 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30085 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30086 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30087 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30088 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30089 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30090 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30091 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30092 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30093 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30094 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30095 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
30096 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30097 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30098 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30099 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30100 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30101 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30102 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30103 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30104 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30105 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30106 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30107 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30108 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30109 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30110 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30111 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30112 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30113 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30114 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30115 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30116 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30117 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30118 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30119 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30120 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30121 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30122 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30123 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30124 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30125 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30126 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30127 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30128 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30129 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30130 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30131 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30132 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30133 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30134 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30135 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30136 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30137 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30138 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30139 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
30140 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
30141 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
30142 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
30143 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
30144 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
30145 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30146 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30147 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30148 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30149 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30150 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30152 { (exit 1); exit 1; }; };;
30156 # If the user did not use the arguments to specify the items to instantiate,
30157 # then the envvar interface is used. Set only those that are not.
30158 # We use the long form for the default assignment because of an extremely
30159 # bizarre bug on SunOS 4.1.3.
30160 if $ac_need_defaults; then
30161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30166 # Have a temporary directory for convenience. Make it in the build tree
30167 # simply because there is no reason to put it here, and in addition,
30168 # creating and moving files from /tmp can sometimes cause problems.
30169 # Create a temporary directory, and hook for its removal unless debugging.
30172 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30173 trap '{ (exit 1); exit 1; }' 1 2 13 15
30176 # Create a (secure) tmp directory for tmp files.
30179 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30180 test -n "$tmp" && test -d "$tmp"
30183 tmp=./confstat$$-$RANDOM
30184 (umask 077 && mkdir $tmp)
30187 echo "$me: cannot create a temporary directory in ." >&2
30188 { (exit 1); exit 1; }
30193 cat >>$CONFIG_STATUS <<_ACEOF
30196 # CONFIG_FILES section.
30199 # No need to generate the scripts if there are no CONFIG_FILES.
30200 # This happens for instance when ./config.status config.h
30201 if test -n "\$CONFIG_FILES"; then
30202 # Protect against being on the right side of a sed subst in config.status.
30203 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30204 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30205 s,@SHELL@,$SHELL,;t t
30206 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30207 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30208 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30209 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30210 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30211 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30212 s,@exec_prefix@,$exec_prefix,;t t
30213 s,@prefix@,$prefix,;t t
30214 s,@program_transform_name@,$program_transform_name,;t t
30215 s,@bindir@,$bindir,;t t
30216 s,@sbindir@,$sbindir,;t t
30217 s,@libexecdir@,$libexecdir,;t t
30218 s,@datadir@,$datadir,;t t
30219 s,@sysconfdir@,$sysconfdir,;t t
30220 s,@sharedstatedir@,$sharedstatedir,;t t
30221 s,@localstatedir@,$localstatedir,;t t
30222 s,@libdir@,$libdir,;t t
30223 s,@includedir@,$includedir,;t t
30224 s,@oldincludedir@,$oldincludedir,;t t
30225 s,@infodir@,$infodir,;t t
30226 s,@mandir@,$mandir,;t t
30227 s,@build_alias@,$build_alias,;t t
30228 s,@host_alias@,$host_alias,;t t
30229 s,@target_alias@,$target_alias,;t t
30230 s,@DEFS@,$DEFS,;t t
30231 s,@ECHO_C@,$ECHO_C,;t t
30232 s,@ECHO_N@,$ECHO_N,;t t
30233 s,@ECHO_T@,$ECHO_T,;t t
30234 s,@LIBS@,$LIBS,;t t
30235 s,@BUILD_DIR@,$BUILD_DIR,;t t
30236 s,@TRUEPRG@,$TRUEPRG,;t t
30237 s,@FALSEPRG@,$FALSEPRG,;t t
30238 s,@VERSION@,$VERSION,;t t
30239 s,@DATE@,$DATE,;t t
30240 s,@LSMDATE@,$LSMDATE,;t t
30242 s,@CFLAGS@,$CFLAGS,;t t
30243 s,@LDFLAGS@,$LDFLAGS,;t t
30244 s,@CPPFLAGS@,$CPPFLAGS,;t t
30245 s,@ac_ct_CC@,$ac_ct_CC,;t t
30246 s,@EXEEXT@,$EXEEXT,;t t
30247 s,@OBJEXT@,$OBJEXT,;t t
30249 s,@CXXFLAGS@,$CXXFLAGS,;t t
30250 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30252 s,@EGREP@,$EGREP,;t t
30253 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30254 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30255 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30256 s,@RANLIB@,$RANLIB,;t t
30257 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30262 s,@ECHO@,$ECHO,;t t
30266 s,@OPENSSL@,$OPENSSL,;t t
30269 s,@MKISOFS@,$MKISOFS,;t t
30270 s,@PYTHON@,$PYTHON,;t t
30271 s,@GROWISOFS@,$GROWISOFS,;t t
30272 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30273 s,@PKGCONFIG@,$PKGCONFIG,;t t
30274 s,@WXCONFIG@,$WXCONFIG,;t t
30275 s,@WXFLAGS@,$WXFLAGS,;t t
30276 s,@CDRECORD@,$CDRECORD,;t t
30277 s,@PIDOF@,$PIDOF,;t t
30279 s,@ARFLAGS@,$ARFLAGS,;t t
30280 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30281 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30282 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30283 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30284 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30285 s,@build@,$build,;t t
30286 s,@build_cpu@,$build_cpu,;t t
30287 s,@build_vendor@,$build_vendor,;t t
30288 s,@build_os@,$build_os,;t t
30289 s,@host@,$host,;t t
30290 s,@host_cpu@,$host_cpu,;t t
30291 s,@host_vendor@,$host_vendor,;t t
30292 s,@host_os@,$host_os,;t t
30293 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30294 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30295 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30296 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30297 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30298 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30299 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30300 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30301 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30302 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30303 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30304 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30305 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30306 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30307 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30308 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30309 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30310 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30311 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30312 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30313 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30314 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30315 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30316 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30317 s,@SET_MAKE@,$SET_MAKE,;t t
30318 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30319 s,@USE_NLS@,$USE_NLS,;t t
30320 s,@MSGFMT@,$MSGFMT,;t t
30321 s,@GMSGFMT@,$GMSGFMT,;t t
30322 s,@XGETTEXT@,$XGETTEXT,;t t
30323 s,@MSGMERGE@,$MSGMERGE,;t t
30324 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30325 s,@LIBICONV@,$LIBICONV,;t t
30326 s,@LTLIBICONV@,$LTLIBICONV,;t t
30327 s,@INTLLIBS@,$INTLLIBS,;t t
30328 s,@LIBINTL@,$LIBINTL,;t t
30329 s,@LTLIBINTL@,$LTLIBINTL,;t t
30330 s,@POSUB@,$POSUB,;t t
30331 s,@GLIBC2@,$GLIBC2,;t t
30332 s,@ALLOCA@,$ALLOCA,;t t
30333 s,@GLIBC21@,$GLIBC21,;t t
30334 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30335 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30336 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30337 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30338 s,@INTLBISON@,$INTLBISON,;t t
30339 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30340 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30341 s,@CATOBJEXT@,$CATOBJEXT,;t t
30342 s,@DATADIRNAME@,$DATADIRNAME,;t t
30343 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30344 s,@GENCAT@,$GENCAT,;t t
30345 s,@INTLOBJS@,$INTLOBJS,;t t
30346 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30347 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30348 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30349 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30350 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30351 s,@GNOME_DIR@,$GNOME_DIR,;t t
30352 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30353 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30354 s,@WX_DIR@,$WX_DIR,;t t
30355 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30356 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30357 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30358 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30359 s,@STATIC_FD@,$STATIC_FD,;t t
30360 s,@STATIC_SD@,$STATIC_SD,;t t
30361 s,@STATIC_DIR@,$STATIC_DIR,;t t
30362 s,@STATIC_CONS@,$STATIC_CONS,;t t
30363 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30364 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30365 s,@ALL_DIRS@,$ALL_DIRS,;t t
30366 s,@DIRD_DIR@,$DIRD_DIR,;t t
30367 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30368 s,@STORED_DIR@,$STORED_DIR,;t t
30369 s,@CONS_INC@,$CONS_INC,;t t
30370 s,@CONS_OBJ@,$CONS_OBJ,;t t
30371 s,@CONS_SRC@,$CONS_SRC,;t t
30372 s,@CONS_LIBS@,$CONS_LIBS,;t t
30373 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30374 s,@READLINE_SRC@,$READLINE_SRC,;t t
30375 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30376 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30377 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30378 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30379 s,@working_dir@,$working_dir,;t t
30380 s,@scriptdir@,$scriptdir,;t t
30381 s,@dump_email@,$dump_email,;t t
30382 s,@job_email@,$job_email,;t t
30383 s,@smtp_host@,$smtp_host,;t t
30384 s,@piddir@,$piddir,;t t
30385 s,@subsysdir@,$subsysdir,;t t
30386 s,@baseport@,$baseport,;t t
30387 s,@dir_port@,$dir_port,;t t
30388 s,@fd_port@,$fd_port,;t t
30389 s,@sd_port@,$sd_port,;t t
30390 s,@dir_password@,$dir_password,;t t
30391 s,@fd_password@,$fd_password,;t t
30392 s,@sd_password@,$sd_password,;t t
30393 s,@mon_dir_password@,$mon_dir_password,;t t
30394 s,@mon_fd_password@,$mon_fd_password,;t t
30395 s,@mon_sd_password@,$mon_sd_password,;t t
30396 s,@dir_user@,$dir_user,;t t
30397 s,@dir_group@,$dir_group,;t t
30398 s,@sd_user@,$sd_user,;t t
30399 s,@sd_group@,$sd_group,;t t
30400 s,@fd_user@,$fd_user,;t t
30401 s,@fd_group@,$fd_group,;t t
30402 s,@SBINPERM@,$SBINPERM,;t t
30403 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30404 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30405 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30406 s,@cats@,$cats,;t t
30407 s,@DB_NAME@,$DB_NAME,;t t
30408 s,@GETCONF@,$GETCONF,;t t
30409 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30410 s,@X_CFLAGS@,$X_CFLAGS,;t t
30411 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30412 s,@X_LIBS@,$X_LIBS,;t t
30413 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30414 s,@LIBOBJS@,$LIBOBJS,;t t
30415 s,@FDLIBS@,$FDLIBS,;t t
30416 s,@DEBUG@,$DEBUG,;t t
30417 s,@DINCLUDE@,$DINCLUDE,;t t
30418 s,@DLIB@,$DLIB,;t t
30419 s,@DB_LIBS@,$DB_LIBS,;t t
30420 s,@WCFLAGS@,$WCFLAGS,;t t
30421 s,@WLDFLAGS@,$WLDFLAGS,;t t
30422 s,@WRAPLIBS@,$WRAPLIBS,;t t
30423 s,@OBJLIST@,$OBJLIST,;t t
30424 s,@hostname@,$hostname,;t t
30425 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30426 s,@PSCMD@,$PSCMD,;t t
30427 s,@WIN32@,$WIN32,;t t
30428 s,@MACOSX@,$MACOSX,;t t
30429 s,@DISTNAME@,$DISTNAME,;t t
30430 s,@DISTVER@,$DISTVER,;t t
30431 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30432 /@MCOMMON@/r $MCOMMON
30438 cat >>$CONFIG_STATUS <<\_ACEOF
30439 # Split the substitutions into bite-sized pieces for seds with
30440 # small command number limits, like on Digital OSF/1 and HP-UX.
30441 ac_max_sed_lines=48
30442 ac_sed_frag=1 # Number of current file.
30443 ac_beg=1 # First line for current file.
30444 ac_end=$ac_max_sed_lines # Line after last line for current file.
30447 while $ac_more_lines; do
30448 if test $ac_beg -gt 1; then
30449 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30451 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30453 if test ! -s $tmp/subs.frag; then
30454 ac_more_lines=false
30456 # The purpose of the label and of the branching condition is to
30457 # speed up the sed processing (if there are no `@' at all, there
30458 # is no need to browse any of the substitutions).
30459 # These are the two extra sed commands mentioned above.
30461 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30462 if test -z "$ac_sed_cmds"; then
30463 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30465 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30467 ac_sed_frag=`expr $ac_sed_frag + 1`
30469 ac_end=`expr $ac_end + $ac_max_sed_lines`
30472 if test -z "$ac_sed_cmds"; then
30475 fi # test -n "$CONFIG_FILES"
30478 cat >>$CONFIG_STATUS <<\_ACEOF
30479 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30480 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30482 - | *:- | *:-:* ) # input from stdin
30484 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30485 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30486 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30487 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30488 * ) ac_file_in=$ac_file.in ;;
30491 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30492 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30493 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30494 X"$ac_file" : 'X\(//\)[^/]' \| \
30495 X"$ac_file" : 'X\(//\)$' \| \
30496 X"$ac_file" : 'X\(/\)' \| \
30497 . : '\(.\)' 2>/dev/null ||
30499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30501 /^X\(\/\/\)$/{ s//\1/; q; }
30502 /^X\(\/\).*/{ s//\1/; q; }
30504 { if $as_mkdir_p; then
30509 while test ! -d "$as_dir"; do
30510 as_dirs="$as_dir $as_dirs"
30511 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30513 X"$as_dir" : 'X\(//\)[^/]' \| \
30514 X"$as_dir" : 'X\(//\)$' \| \
30515 X"$as_dir" : 'X\(/\)' \| \
30516 . : '\(.\)' 2>/dev/null ||
30518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30520 /^X\(\/\/\)$/{ s//\1/; q; }
30521 /^X\(\/\).*/{ s//\1/; q; }
30524 test ! -n "$as_dirs" || mkdir $as_dirs
30525 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30526 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30527 { (exit 1); exit 1; }; }; }
30531 if test "$ac_dir" != .; then
30532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30533 # A "../" for each directory in $ac_dir_suffix.
30534 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30536 ac_dir_suffix= ac_top_builddir=
30540 .) # No --srcdir option. We are building in place.
30542 if test -z "$ac_top_builddir"; then
30545 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30547 [\\/]* | ?:[\\/]* ) # Absolute path.
30548 ac_srcdir=$srcdir$ac_dir_suffix;
30549 ac_top_srcdir=$srcdir ;;
30550 *) # Relative path.
30551 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30552 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30555 # Do not use `cd foo && pwd` to compute absolute paths, because
30556 # the directories may not exist.
30558 .) ac_abs_builddir="$ac_dir";;
30561 .) ac_abs_builddir=`pwd`;;
30562 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30563 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30566 case $ac_abs_builddir in
30567 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30569 case ${ac_top_builddir}. in
30570 .) ac_abs_top_builddir=$ac_abs_builddir;;
30571 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30572 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30575 case $ac_abs_builddir in
30576 .) ac_abs_srcdir=$ac_srcdir;;
30579 .) ac_abs_srcdir=$ac_abs_builddir;;
30580 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30581 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30584 case $ac_abs_builddir in
30585 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30587 case $ac_top_srcdir in
30588 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30589 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30590 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30597 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30600 if test x"$ac_file" != x-; then
30601 { echo "$as_me:$LINENO: creating $ac_file" >&5
30602 echo "$as_me: creating $ac_file" >&6;}
30605 # Let's still pretend it is `configure' which instantiates (i.e., don't
30606 # use $as_me), people would be surprised to read:
30607 # /* config.h. Generated by config.status. */
30608 if test x"$ac_file" = x-; then
30611 configure_input="$ac_file. "
30613 configure_input=$configure_input"Generated from `echo $ac_file_in |
30614 sed 's,.*/,,'` by configure."
30616 # First look for the input files in the build tree, otherwise in the
30618 ac_file_inputs=`IFS=:
30619 for f in $ac_file_in; do
30621 -) echo $tmp/stdin ;;
30623 # Absolute (can't be DOS-style, as IFS=:)
30624 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30625 echo "$as_me: error: cannot find input file: $f" >&2;}
30626 { (exit 1); exit 1; }; }
30629 if test -f "$f"; then
30632 elif test -f "$srcdir/$f"; then
30637 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30638 echo "$as_me: error: cannot find input file: $f" >&2;}
30639 { (exit 1); exit 1; }; }
30642 done` || { (exit 1); exit 1; }
30644 cat >>$CONFIG_STATUS <<_ACEOF
30648 cat >>$CONFIG_STATUS <<\_ACEOF
30650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30651 s,@configure_input@,$configure_input,;t t
30652 s,@srcdir@,$ac_srcdir,;t t
30653 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30654 s,@top_srcdir@,$ac_top_srcdir,;t t
30655 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30656 s,@builddir@,$ac_builddir,;t t
30657 s,@abs_builddir@,$ac_abs_builddir,;t t
30658 s,@top_builddir@,$ac_top_builddir,;t t
30659 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30660 s,@INSTALL@,$ac_INSTALL,;t t
30661 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30663 if test x"$ac_file" != x-; then
30664 mv $tmp/out $ac_file
30672 cat >>$CONFIG_STATUS <<\_ACEOF
30675 # CONFIG_HEADER section.
30678 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30679 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30681 # ac_d sets the value in "#define NAME VALUE" lines.
30682 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30683 ac_dB='[ ].*$,\1#\2'
30686 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30687 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30688 ac_uB='$,\1#\2define\3'
30692 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30693 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30695 - | *:- | *:-:* ) # input from stdin
30697 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30699 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30701 * ) ac_file_in=$ac_file.in ;;
30704 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30705 echo "$as_me: creating $ac_file" >&6;}
30707 # First look for the input files in the build tree, otherwise in the
30709 ac_file_inputs=`IFS=:
30710 for f in $ac_file_in; do
30712 -) echo $tmp/stdin ;;
30714 # Absolute (can't be DOS-style, as IFS=:)
30715 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30716 echo "$as_me: error: cannot find input file: $f" >&2;}
30717 { (exit 1); exit 1; }; }
30718 # Do quote $f, to prevent DOS paths from being IFS'd.
30721 if test -f "$f"; then
30724 elif test -f "$srcdir/$f"; then
30729 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30730 echo "$as_me: error: cannot find input file: $f" >&2;}
30731 { (exit 1); exit 1; }; }
30734 done` || { (exit 1); exit 1; }
30735 # Remove the trailing spaces.
30736 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30740 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30741 # `conftest.undefs', that substitutes the proper values into
30742 # config.h.in to produce config.h. The first handles `#define'
30743 # templates, and the second `#undef' templates.
30744 # And first: Protect against being on the right side of a sed subst in
30745 # config.status. Protect against being in an unquoted here document
30746 # in config.status.
30747 rm -f conftest.defines conftest.undefs
30748 # Using a here document instead of a string reduces the quoting nightmare.
30749 # Putting comments in sed scripts is not portable.
30751 # `end' is used to avoid that the second main sed command (meant for
30752 # 0-ary CPP macros) applies to n-ary macro definitions.
30753 # See the Autoconf documentation for `clear'.
30754 cat >confdef2sed.sed <<\_ACEOF
30759 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30761 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30764 # If some macros were called several times there might be several times
30765 # the same #defines, which is useless. Nevertheless, we may not want to
30766 # sort them, since we want the *last* AC-DEFINE to be honored.
30767 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30768 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30769 rm -f confdef2sed.sed
30771 # This sed command replaces #undef with comments. This is necessary, for
30772 # example, in the case of _POSIX_SOURCE, which is predefined and required
30773 # on some systems where configure will not decide to define it.
30774 cat >>conftest.undefs <<\_ACEOF
30775 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30778 # Break up conftest.defines because some shells have a limit on the size
30779 # of here documents, and old seds have small limits too (100 cmds).
30780 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30781 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30782 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30783 echo ' :' >>$CONFIG_STATUS
30784 rm -f conftest.tail
30785 while grep . conftest.defines >/dev/null
30787 # Write a limited-size here document to $tmp/defines.sed.
30788 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30789 # Speed up: don't consider the non `#define' lines.
30790 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30791 # Work around the forget-to-reset-the-flag bug.
30792 echo 't clr' >>$CONFIG_STATUS
30793 echo ': clr' >>$CONFIG_STATUS
30794 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30796 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30798 mv $tmp/out $tmp/in
30800 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30801 rm -f conftest.defines
30802 mv conftest.tail conftest.defines
30804 rm -f conftest.defines
30805 echo ' fi # grep' >>$CONFIG_STATUS
30806 echo >>$CONFIG_STATUS
30808 # Break up conftest.undefs because some shells have a limit on the size
30809 # of here documents, and old seds have small limits too (100 cmds).
30810 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30811 rm -f conftest.tail
30812 while grep . conftest.undefs >/dev/null
30814 # Write a limited-size here document to $tmp/undefs.sed.
30815 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30816 # Speed up: don't consider the non `#undef'
30817 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30818 # Work around the forget-to-reset-the-flag bug.
30819 echo 't clr' >>$CONFIG_STATUS
30820 echo ': clr' >>$CONFIG_STATUS
30821 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30823 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30825 mv $tmp/out $tmp/in
30827 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30828 rm -f conftest.undefs
30829 mv conftest.tail conftest.undefs
30831 rm -f conftest.undefs
30833 cat >>$CONFIG_STATUS <<\_ACEOF
30834 # Let's still pretend it is `configure' which instantiates (i.e., don't
30835 # use $as_me), people would be surprised to read:
30836 # /* config.h. Generated by config.status. */
30837 if test x"$ac_file" = x-; then
30838 echo "/* Generated by configure. */" >$tmp/config.h
30840 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30842 cat $tmp/in >>$tmp/config.h
30844 if test x"$ac_file" != x-; then
30845 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30846 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30847 echo "$as_me: $ac_file is unchanged" >&6;}
30849 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30851 X"$ac_file" : 'X\(//\)[^/]' \| \
30852 X"$ac_file" : 'X\(//\)$' \| \
30853 X"$ac_file" : 'X\(/\)' \| \
30854 . : '\(.\)' 2>/dev/null ||
30856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30858 /^X\(\/\/\)$/{ s//\1/; q; }
30859 /^X\(\/\).*/{ s//\1/; q; }
30861 { if $as_mkdir_p; then
30866 while test ! -d "$as_dir"; do
30867 as_dirs="$as_dir $as_dirs"
30868 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30870 X"$as_dir" : 'X\(//\)[^/]' \| \
30871 X"$as_dir" : 'X\(//\)$' \| \
30872 X"$as_dir" : 'X\(/\)' \| \
30873 . : '\(.\)' 2>/dev/null ||
30875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30877 /^X\(\/\/\)$/{ s//\1/; q; }
30878 /^X\(\/\).*/{ s//\1/; q; }
30881 test ! -n "$as_dirs" || mkdir $as_dirs
30882 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30884 { (exit 1); exit 1; }; }; }
30887 mv $tmp/config.h $ac_file
30891 rm -f $tmp/config.h
30895 cat >>$CONFIG_STATUS <<\_ACEOF
30898 # CONFIG_COMMANDS section.
30900 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30901 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30902 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30903 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30904 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30905 X"$ac_dest" : 'X\(//\)[^/]' \| \
30906 X"$ac_dest" : 'X\(//\)$' \| \
30907 X"$ac_dest" : 'X\(/\)' \| \
30908 . : '\(.\)' 2>/dev/null ||
30910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30912 /^X\(\/\/\)$/{ s//\1/; q; }
30913 /^X\(\/\).*/{ s//\1/; q; }
30915 { if $as_mkdir_p; then
30920 while test ! -d "$as_dir"; do
30921 as_dirs="$as_dir $as_dirs"
30922 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30924 X"$as_dir" : 'X\(//\)[^/]' \| \
30925 X"$as_dir" : 'X\(//\)$' \| \
30926 X"$as_dir" : 'X\(/\)' \| \
30927 . : '\(.\)' 2>/dev/null ||
30929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30931 /^X\(\/\/\)$/{ s//\1/; q; }
30932 /^X\(\/\).*/{ s//\1/; q; }
30935 test ! -n "$as_dirs" || mkdir $as_dirs
30936 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30937 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30938 { (exit 1); exit 1; }; }; }
30942 if test "$ac_dir" != .; then
30943 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30944 # A "../" for each directory in $ac_dir_suffix.
30945 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30947 ac_dir_suffix= ac_top_builddir=
30951 .) # No --srcdir option. We are building in place.
30953 if test -z "$ac_top_builddir"; then
30956 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30958 [\\/]* | ?:[\\/]* ) # Absolute path.
30959 ac_srcdir=$srcdir$ac_dir_suffix;
30960 ac_top_srcdir=$srcdir ;;
30961 *) # Relative path.
30962 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30963 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30966 # Do not use `cd foo && pwd` to compute absolute paths, because
30967 # the directories may not exist.
30969 .) ac_abs_builddir="$ac_dir";;
30972 .) ac_abs_builddir=`pwd`;;
30973 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30974 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30977 case $ac_abs_builddir in
30978 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30980 case ${ac_top_builddir}. in
30981 .) ac_abs_top_builddir=$ac_abs_builddir;;
30982 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30983 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30986 case $ac_abs_builddir in
30987 .) ac_abs_srcdir=$ac_srcdir;;
30990 .) ac_abs_srcdir=$ac_abs_builddir;;
30991 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30992 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30995 case $ac_abs_builddir in
30996 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30998 case $ac_top_srcdir in
30999 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31000 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31001 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31006 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31007 echo "$as_me: executing $ac_dest commands" >&6;}
31010 for ac_file in $CONFIG_FILES; do
31011 # Support "outfile[:infile[:infile...]]"
31013 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31015 # PO directories have a Makefile.in generated from Makefile.in.in.
31016 case "$ac_file" in */Makefile.in)
31017 # Adjust a relative srcdir.
31018 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31019 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31020 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31021 # In autoconf-2.13 it is called $ac_given_srcdir.
31022 # In autoconf-2.50 it is called $srcdir.
31023 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31024 case "$ac_given_srcdir" in
31025 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31026 /*) top_srcdir="$ac_given_srcdir" ;;
31027 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31029 # Treat a directory as a PO directory if and only if it has a
31030 # POTFILES.in file. This allows packages to have multiple PO
31031 # directories under different names or in different locations.
31032 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31033 rm -f "$ac_dir/POTFILES"
31034 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31035 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31036 POMAKEFILEDEPS="POTFILES.in"
31037 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31038 # on $ac_dir but don't depend on user-specified configuration
31040 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31041 # The LINGUAS file contains the set of available languages.
31042 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31043 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31045 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31046 # Hide the ALL_LINGUAS assigment from automake.
31047 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31048 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31050 # The set of available languages was given in configure.in.
31051 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31054 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31055 # Compute UPDATEPOFILES
31056 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31057 # Compute DUMMYPOFILES
31058 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31060 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31061 case "$ac_given_srcdir" in
31063 *) srcdirpre='$(srcdir)/' ;;
31069 for lang in $ALL_LINGUAS; do
31070 POFILES="$POFILES $srcdirpre$lang.po"
31071 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31072 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31073 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31075 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31076 # environment variable.
31078 if test -n "$ALL_LINGUAS"; then
31079 for presentlang in $ALL_LINGUAS; do
31081 if test "%UNSET%" != "$LINGUAS"; then
31082 desiredlanguages="$LINGUAS"
31084 desiredlanguages="$ALL_LINGUAS"
31086 for desiredlang in $desiredlanguages; do
31087 # Use the presentlang catalog if desiredlang is
31088 # a. equal to presentlang, or
31089 # b. a variant of presentlang (because in this case,
31090 # presentlang can be used as a fallback for messages
31091 # which are not translated in the desiredlang catalog).
31092 case "$desiredlang" in
31093 "$presentlang"*) useit=yes;;
31096 if test $useit = yes; then
31097 INST_LINGUAS="$INST_LINGUAS $presentlang"
31102 if test -n "$INST_LINGUAS"; then
31103 for lang in $INST_LINGUAS; do
31104 CATALOGS="$CATALOGS $lang.gmo"
31107 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31108 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"
31109 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31110 if test -f "$f"; then
31112 *.orig | *.bak | *~) ;;
31113 *) cat "$f" >> "$ac_dir/Makefile" ;;
31121 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31127 cat >>$CONFIG_STATUS <<\_ACEOF
31129 { (exit 0); exit 0; }
31131 chmod +x $CONFIG_STATUS
31132 ac_clean_files=$ac_clean_files_save
31135 # configure is writing to config.log, and then calls config.status.
31136 # config.status does its own redirection, appending to config.log.
31137 # Unfortunately, on DOS this fails, as config.log is still kept open
31138 # by configure, so config.status won't be able to write to it; its
31139 # output is simply discarded. So we exec the FD to /dev/null,
31140 # effectively closing config.log, so it can be properly (re)opened and
31141 # appended to by config.status. When coming back to configure, we
31142 # need to make the FD available again.
31143 if test "$no_create" != yes; then
31145 ac_config_status_args=
31146 test "$silent" = yes &&
31147 ac_config_status_args="$ac_config_status_args --quiet"
31149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31152 # would make configure fail if this is the last instruction.
31153 $ac_cs_success || { (exit 1); exit 1; }
31158 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31159 chmod 755 dvd-writepart dvd-freespace
31160 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31165 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31166 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31168 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31169 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31171 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31172 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31174 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31175 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31177 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31178 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31180 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31181 chmod 755 $c/sqlite
31184 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31185 largefile_support="yes"
31189 # A whole lot of hand springs to get the compiler version.
31190 # This is because gcc changed the output in version 3.0
31192 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31193 if test "x${CCVERSION}" = "x" ; then
31194 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31196 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31197 if test x"${CXXVERSION}" = x ; then
31198 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31201 if test "x${subsysdir}" = "x${sbindir}" ; then
31204 echo "You have set --sbindir and --with-subsys-dir"
31205 echo " both equal to: ${subsysdir} "
31206 echo " This is not permitted. Please reconfigure."
31208 echo "Aborting configuration ..."
31214 if test "x${db_name}" = "xInternal" ; then
31217 echo "You have not specified either --enable-client-only or one of the"
31218 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31219 echo " This is not permitted. Please reconfigure."
31221 echo "Aborting the configuration ..."
31228 Configuration on `date`:
31230 Host: $host -- ${DISTNAME} ${DISTVER}
31231 Bacula version: ${VERSION} (${DATE})
31232 Source code location: ${srcdir}
31233 Install binaries: ${sbindir}
31234 Install config files: ${sysconfdir}
31235 Scripts directory: ${scriptdir}
31236 Working directory: ${working_dir}
31237 PID directory: ${piddir}
31238 Subsys directory: ${subsysdir}
31239 Man directory: ${mandir}
31240 Data directory: ${datadir}
31241 C Compiler: ${CC} ${CCVERSION}
31242 C++ Compiler: ${CXX} ${CXXVERSION}
31243 Compiler flags: ${WCFLAGS} ${CFLAGS}
31244 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31246 Statically Linked Tools: ${support_static_tools}
31247 Statically Linked FD: ${support_static_fd}
31248 Statically Linked SD: ${support_static_sd}
31249 Statically Linked DIR: ${support_static_dir}
31250 Statically Linked CONS: ${support_static_cons}
31251 Database type: ${db_name}
31252 Database lib: ${DB_LIBS}
31254 Job Output Email: ${job_email}
31255 Traceback Email: ${dump_email}
31256 SMTP Host Address: ${smtp_host}
31258 Director Port: ${dir_port}
31259 File daemon Port: ${fd_port}
31260 Storage daemon Port: ${sd_port}
31262 Director User: ${dir_user}
31263 Director Group: ${dir_group}
31264 Storage Daemon User: ${sd_user}
31265 Storage DaemonGroup: ${sd_group}
31266 File Daemon User: ${fd_user}
31267 File Daemon Group: ${fd_group}
31269 SQL binaries Directory ${SQL_BINDIR}
31271 Large file support: $largefile_support
31272 Bacula conio support: ${got_conio} ${CONS_LIBS}
31273 readline support: ${got_readline} ${PRTREADLINE_SRC}
31274 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31275 TLS support: ${support_tls}
31276 ZLIB support: ${have_zlib}
31277 enable-smartalloc: ${support_smartalloc}
31278 enable-gnome: ${support_gnome} ${gnome_version}
31279 enable-wx-console: ${support_wx_console} ${wx_version}
31280 enable-tray-monitor: ${support_tray_monitor}
31281 client-only: ${build_client_only}
31282 build-dird: ${build_dird}
31283 build-stored: ${build_stored}
31284 ACL support: ${have_acl}
31285 Python support: ${support_python} ${PYTHON_LIBS}