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 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 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 ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS 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 --disable-conio disable conio support enabled
881 --disable-readline disable readline support disable
883 --disable-largefile omit support for large files
886 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
887 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
888 --with-gnu-ld assume the C compiler uses GNU ld default=no
889 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
890 --without-libiconv-prefix don't search for libiconv in includedir and libdir
891 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
892 --without-libintl-prefix don't search for libintl in includedir and libdir
893 --with-readline=DIR specify readline library directory
895 --with-python=DIR Include Python support. DIR is the Python base
896 install directory, default is to search through
897 a number of common places for the Python files.
898 --with-tcp-wrappers=DIR enable tcpwrappers support
900 Include OpenSSL support. DIR is the OpenSSL base
901 --with-working-dir=PATH specify path of Bacula working directory
902 --with-scriptdir=PATH specify path of Bacula scripts directory
903 --with-dump-email=EMAIL dump email address
904 --with-job-email=EMAIL job output email address
905 --with-smtp-host=HOST SMTP mail host address
906 --with-pid-dir=PATH specify location of Bacula pid files
907 --with-subsys-dir=PATH specify location of Bacula subsys file
908 --with-baseport=PORT specify base port address for daemons
909 --with-dir-password=PASSWORD specify Director's password
910 --with-fd-password=PASSWORD specify Client's password
911 --with-sd-password=PASSWORD specify Storage daemon's password
912 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
913 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
914 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
915 --with-dir-user=USER specify user for Director daemon
916 --with-dir-group=GROUP specify group for Director daemon
917 --with-sd-user=USER specify user for Storage daemon
918 --with-sd-group=GROUP specify group for Storage daemon
919 --with-fd-user=USER specify user for File daemon
920 --with-fd-group=GROUP specify group for File daemon
921 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
922 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
923 base install directory, defaults to /usr/local/pgsql
925 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
926 install directory, default is to search through
927 a number of common places for the MySQL files.
929 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
930 install directory, default is to search through
931 a number of common places for the MySQL files.
933 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
934 install directory, default is to search through
935 a number of common places for the SQLite3 files.
937 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
938 install directory, default is to search through
939 a number of common places for the SQLite files.
940 --with-x use the X Window System
942 Some influential environment variables:
943 CC C compiler command
944 CFLAGS C compiler flags
945 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
946 nonstandard directory <lib dir>
947 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
948 headers in a nonstandard directory <include dir>
949 CXX C++ compiler command
950 CXXFLAGS C++ compiler flags
952 WXCONFIG wx-config command. On some systems, you must set it to
953 wx-config-2.6 to use wxWidgets 2.6.
954 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
956 Use these variables to override the choices made by `configure' or to help
957 it to find libraries and programs with nonstandard names/locations.
962 if test "$ac_init_help" = "recursive"; then
963 # If there are subdirs, report their specific --help.
965 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
966 test -d $ac_dir || continue
969 if test "$ac_dir" != .; then
970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
971 # A "../" for each directory in $ac_dir_suffix.
972 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
974 ac_dir_suffix= ac_top_builddir=
978 .) # No --srcdir option. We are building in place.
980 if test -z "$ac_top_builddir"; then
983 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
985 [\\/]* | ?:[\\/]* ) # Absolute path.
986 ac_srcdir=$srcdir$ac_dir_suffix;
987 ac_top_srcdir=$srcdir ;;
989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 # Do not use `cd foo && pwd` to compute absolute paths, because
994 # the directories may not exist.
996 .) ac_abs_builddir="$ac_dir";;
999 .) ac_abs_builddir=`pwd`;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1007 case ${ac_top_builddir}. in
1008 .) ac_abs_top_builddir=$ac_abs_builddir;;
1009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013 case $ac_abs_builddir in
1014 .) ac_abs_srcdir=$ac_srcdir;;
1017 .) ac_abs_srcdir=$ac_abs_builddir;;
1018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022 case $ac_abs_builddir in
1023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1025 case $ac_top_srcdir in
1026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1033 # Check for guested configure; otherwise get Cygnus style configure.
1034 if test -f $ac_srcdir/configure.gnu; then
1036 $SHELL $ac_srcdir/configure.gnu --help=recursive
1037 elif test -f $ac_srcdir/configure; then
1039 $SHELL $ac_srcdir/configure --help=recursive
1040 elif test -f $ac_srcdir/configure.ac ||
1041 test -f $ac_srcdir/configure.in; then
1043 $ac_configure --help
1045 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1051 test -n "$ac_init_help" && exit 0
1052 if $ac_init_version; then
1055 Copyright (C) 2003 Free Software Foundation, Inc.
1056 This configure script is free software; the Free Software Foundation
1057 gives unlimited permission to copy, distribute and modify it.
1063 This file contains any messages produced by compilers while
1064 running configure, to aid debugging if configure makes a mistake.
1066 It was created by $as_me, which was
1067 generated by GNU Autoconf 2.59. Invocation command line was
1078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1085 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1087 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1088 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1090 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1091 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1092 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1093 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 test -z "$as_dir" && as_dir=.
1102 echo "PATH: $as_dir"
1117 # Keep a trace of the command line.
1118 # Strip out --no-create and --no-recursion so they do not pile up.
1119 # Strip out --silent because we don't want to record it for future runs.
1120 # Also quote any args containing shell meta-characters.
1121 # Make two passes to allow for proper duplicate-argument suppression.
1126 ac_must_keep_next=false
1132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1136 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1137 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1142 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1143 if test $ac_must_keep_next = true; then
1144 ac_must_keep_next=false # Got value, back to normal.
1147 *=* | --config-cache | -C | -disable-* | --disable-* \
1148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1150 | -with-* | --with-* | -without-* | --without-* | --x)
1151 case "$ac_configure_args0 " in
1152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155 -* ) ac_must_keep_next=true ;;
1158 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1159 # Get rid of the leading space.
1165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1168 # When interrupted or exit'd, cleanup temporary files, and complete
1169 # config.log. We remove comments because anyway the quotes in there
1170 # would cause problems or look ugly.
1171 # WARNING: Be sure not to use single quotes in there, as some shells,
1172 # such as our DU 5.0 friend, will then `close' the trap.
1173 trap 'exit_status=$?
1174 # Save into config.log some information that might help in debugging.
1179 ## ---------------- ##
1180 ## Cache variables. ##
1181 ## ---------------- ##
1184 # The following way of writing the cache mishandles newlines in values,
1187 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1202 ## ----------------- ##
1203 ## Output variables. ##
1204 ## ----------------- ##
1207 for ac_var in $ac_subst_vars
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1214 if test -n "$ac_subst_files"; then
1221 for ac_var in $ac_subst_files
1223 eval ac_val=$`echo $ac_var`
1224 echo "$ac_var='"'"'$ac_val'"'"'"
1229 if test -s confdefs.h; then
1236 sed "/^$/d" confdefs.h | sort
1239 test "$ac_signal" != 0 &&
1240 echo "$as_me: caught signal $ac_signal"
1241 echo "$as_me: exit $exit_status"
1243 rm -f core *.core &&
1244 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247 for ac_signal in 1 2 13 15; do
1248 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1253 rm -rf conftest* confdefs.h
1254 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 # Predefined preprocessor variables.
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 # Let the site file select an alternate cache file if it wants to.
1285 # Prefer explicitly selected file to automatically selected ones.
1286 if test -z "$CONFIG_SITE"; then
1287 if test "x$prefix" != xNONE; then
1288 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1290 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293 for ac_site_file in $CONFIG_SITE; do
1294 if test -r "$ac_site_file"; then
1295 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296 echo "$as_me: loading site script $ac_site_file" >&6;}
1297 sed 's/^/| /' "$ac_site_file" >&5
1302 if test -r "$cache_file"; then
1303 # Some versions of bash will fail to source /dev/null (special
1304 # files actually), so we avoid doing that.
1305 if test -f "$cache_file"; then
1306 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307 echo "$as_me: loading cache $cache_file" >&6;}
1309 [\\/]* | ?:[\\/]* ) . $cache_file;;
1310 *) . ./$cache_file;;
1314 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315 echo "$as_me: creating cache $cache_file" >&6;}
1319 # Check that the precious variables saved in the cache have kept the same
1321 ac_cache_corrupted=false
1322 for ac_var in `(set) 2>&1 |
1323 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1324 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325 eval ac_new_set=\$ac_env_${ac_var}_set
1326 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327 eval ac_new_val="\$ac_env_${ac_var}_value"
1328 case $ac_old_set,$ac_new_set in
1330 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1332 ac_cache_corrupted=: ;;
1334 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336 ac_cache_corrupted=: ;;
1339 if test "x$ac_old_val" != "x$ac_new_val"; then
1340 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1341 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1342 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1343 echo "$as_me: former value: $ac_old_val" >&2;}
1344 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1345 echo "$as_me: current value: $ac_new_val" >&2;}
1346 ac_cache_corrupted=:
1349 # Pass precious variables to config.status.
1350 if test "$ac_new_set" = set; then
1352 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1354 *) ac_arg=$ac_var=$ac_new_val ;;
1356 case " $ac_configure_args " in
1357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1358 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362 if $ac_cache_corrupted; then
1363 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1366 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367 { (exit 1); exit 1; }; }
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1401 if test -f $ac_dir/install-sh; then
1403 ac_install_sh="$ac_aux_dir/install-sh -c"
1405 elif test -f $ac_dir/install.sh; then
1407 ac_install_sh="$ac_aux_dir/install.sh -c"
1409 elif test -f $ac_dir/shtool; then
1411 ac_install_sh="$ac_aux_dir/shtool install -c"
1415 if test -z "$ac_aux_dir"; then
1416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1417 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1418 { (exit 1); exit 1; }; }
1420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1422 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1424 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1432 # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy $ac_prog; ac_word=$2
1434 echo "$as_me:$LINENO: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 TRUEPRG=$ac_cv_path_TRUEPRG
1463 if test -n "$TRUEPRG"; then
1464 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1465 echo "${ECHO_T}$TRUEPRG" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1471 test -n "$TRUEPRG" && break
1473 test -n "$TRUEPRG" || TRUEPRG=":"
1475 for ac_prog in false
1477 # Extract the first word of "$ac_prog", so it can be a program name with args.
1478 set dummy $ac_prog; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 FALSEPRG=$ac_cv_path_FALSEPRG
1508 if test -n "$FALSEPRG"; then
1509 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1510 echo "${ECHO_T}$FALSEPRG" >&6
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1516 test -n "$FALSEPRG" && break
1518 test -n "$FALSEPRG" || FALSEPRG=":"
1523 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1524 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1525 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 echo "configuring for bacula $VERSION ($DATE)"
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535 if test -n "$ac_tool_prefix"; then
1536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 if test -n "$CC"; then
1564 echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1567 echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1572 if test -z "$ac_cv_prog_CC"; then
1574 # Extract the first word of "gcc", so it can be a program name with args.
1575 set dummy gcc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 if test -n "$ac_ct_CC"; then
1582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_ac_ct_CC="gcc"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1614 if test -z "$CC"; then
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}cc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_CC="${ac_tool_prefix}cc"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$ac_cv_prog_CC"; then
1654 # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$ac_ct_CC"; then
1662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_ac_ct_CC="cc"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1695 if test -z "$CC"; then
1696 # Extract the first word of "cc", so it can be a program name with args.
1697 set dummy cc; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1715 ac_prog_rejected=yes
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 if test $ac_prog_rejected = yes; then
1726 # We found a bogon in the path, so make sure we never use it.
1727 set dummy $ac_cv_prog_CC
1729 if test $# != 0; then
1730 # We chose a different compiler from the bogus one.
1731 # However, it has the same basename, so the bogon will be chosen
1732 # first if we set CC to just the basename; use the full file name.
1734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1740 if test -n "$CC"; then
1741 echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1749 if test -z "$CC"; then
1750 if test -n "$ac_tool_prefix"; then
1753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$CC"; then
1761 ac_cv_prog_CC="$CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 if test -n "$CC"; then
1781 echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1788 test -n "$CC" && break
1791 if test -z "$CC"; then
1795 # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$ac_ct_CC"; then
1803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_ac_ct_CC="$ac_prog"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1822 if test -n "$ac_ct_CC"; then
1823 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824 echo "${ECHO_T}$ac_ct_CC" >&6
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1830 test -n "$ac_ct_CC" && break
1839 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1840 See \`config.log' for more details." >&5
1841 echo "$as_me: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&2;}
1843 { (exit 1); exit 1; }; }
1845 # Provide some information about the compiler.
1846 echo "$as_me:$LINENO:" \
1847 "checking for C compiler version" >&5
1848 ac_compiler=`set X $ac_compile; echo $2`
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1850 (eval $ac_compiler --version </dev/null >&5) 2>&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }
1854 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1855 (eval $ac_compiler -v </dev/null >&5) 2>&5
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1860 (eval $ac_compiler -V </dev/null >&5) 2>&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }
1865 cat >conftest.$ac_ext <<_ACEOF
1868 cat confdefs.h >>conftest.$ac_ext
1869 cat >>conftest.$ac_ext <<_ACEOF
1870 /* end confdefs.h. */
1880 ac_clean_files_save=$ac_clean_files
1881 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1882 # Try to create an executable without -o first, disregard a.out.
1883 # It will help us diagnose broken compilers, and finding out an intuition
1885 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1886 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1887 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1889 (eval $ac_link_default) 2>&5
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # Find the output, starting from the most likely. This scheme is
1894 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1897 # Be careful to initialize this variable, since it used to be cached.
1898 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1900 # b.out is created by i960 compilers.
1901 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1903 test -f "$ac_file" || continue
1905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1908 # This is the source file.
1911 # We found the default executable, but exeext='' is most
1915 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916 # FIXME: I believe we export ac_cv_exeext for Libtool,
1917 # but it would be cool to find out if it's true. Does anybody
1918 # maintain Libtool? --akim.
1926 echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&2;}
1933 { (exit 77); exit 77; }; }
1936 ac_exeext=$ac_cv_exeext
1937 echo "$as_me:$LINENO: result: $ac_file" >&5
1938 echo "${ECHO_T}$ac_file" >&6
1940 # Check the compiler produces executables we can run. If not, either
1941 # the compiler is broken, or we cross compile.
1942 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1943 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1944 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1945 # If not cross compiling, check that we can run a simple program.
1946 if test "$cross_compiling" != yes; then
1947 if { ac_try='./$ac_file'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1955 if test "$cross_compiling" = maybe; then
1958 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1959 If you meant to cross compile, use \`--host'.
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&2;}
1964 { (exit 1); exit 1; }; }
1968 echo "$as_me:$LINENO: result: yes" >&5
1969 echo "${ECHO_T}yes" >&6
1971 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1972 ac_clean_files=$ac_clean_files_save
1973 # Check the compiler produces executables we can run. If not, either
1974 # the compiler is broken, or we cross compile.
1975 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1976 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1977 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1978 echo "${ECHO_T}$cross_compiling" >&6
1980 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1981 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1983 (eval $ac_link) 2>&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; then
1987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1988 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1989 # work properly (i.e., refer to `conftest.exe'), while it won't with
1991 for ac_file in conftest.exe conftest conftest.*; do
1992 test -f "$ac_file" || continue
1994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2002 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&2;}
2006 { (exit 1); exit 1; }; }
2009 rm -f conftest$ac_cv_exeext
2010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2011 echo "${ECHO_T}$ac_cv_exeext" >&6
2013 rm -f conftest.$ac_ext
2014 EXEEXT=$ac_cv_exeext
2016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2018 if test "${ac_cv_objext+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.$ac_ext <<_ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h. */
2036 rm -f conftest.o conftest.obj
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2045 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2050 echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2053 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&2;}
2057 { (exit 1); exit 1; }; }
2060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 cat >conftest.$ac_ext <<_ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h. */
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2093 grep -v '^ *+' conftest.er1 >conftest.err
2095 cat conftest.err >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -z "$ac_c_werror_flag"
2099 || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2113 echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2122 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2123 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2124 GCC=`test $ac_compiler_gnu = yes && echo yes`
2125 ac_test_CFLAGS=${CFLAGS+set}
2126 ac_save_CFLAGS=$CFLAGS
2128 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2129 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2130 if test "${ac_cv_prog_cc_g+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 cat >conftest.$ac_ext <<_ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2152 grep -v '^ *+' conftest.er1 >conftest.err
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -z "$ac_c_werror_flag"
2158 || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2179 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2181 if test "$ac_test_CFLAGS" = set; then
2182 CFLAGS=$ac_save_CFLAGS
2183 elif test $ac_cv_prog_cc_g = yes; then
2184 if test "$GCC" = yes; then
2190 if test "$GCC" = yes; then
2196 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2197 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2198 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 ac_cv_prog_cc_stdc=no
2203 cat >conftest.$ac_ext <<_ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h. */
2211 #include <sys/types.h>
2212 #include <sys/stat.h>
2213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2214 struct buf { int x; };
2215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2216 static char *e (p, i)
2222 static char *f (char * (*g) (char **, int), char **p, ...)
2227 s = g (p, va_arg (v,int));
2232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2233 function prototypes and stuff, but not '\xHH' hex character constants.
2234 These don't provoke an error unfortunately, instead are silently treated
2235 as 'x'. The following induces an error, until -std1 is added to get
2236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2237 array size at least. It's necessary to write '\x00'==0 to get something
2238 that's true only with -std1. */
2239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2241 int test (int i, double x);
2242 struct s1 {int (*f) (int a);};
2243 struct s2 {int (*f) (double a);};
2244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2255 # Don't try gcc -ansi; that turns off useful extensions and
2256 # breaks some systems' header files.
2257 # AIX -qlanglvl=ansi
2258 # Ultrix and OSF/1 -std1
2259 # HP-UX 10.20 and later -Ae
2260 # HP-UX older versions -Aa -D_HPUX_SOURCE
2261 # SVR4 -Xc -D__EXTENSIONS__
2262 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2264 CC="$ac_save_CC $ac_arg"
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2269 grep -v '^ *+' conftest.er1 >conftest.err
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 ac_cv_prog_cc_stdc=$ac_arg
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f conftest.err conftest.$ac_objext
2296 rm -f conftest.$ac_ext conftest.$ac_objext
2301 case "x$ac_cv_prog_cc_stdc" in
2303 echo "$as_me:$LINENO: result: none needed" >&5
2304 echo "${ECHO_T}none needed" >&6 ;;
2306 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2308 CC="$CC $ac_cv_prog_cc_stdc" ;;
2311 # Some people use a C++ compiler to compile C. Since we use `exit',
2312 # in C++ we need to declare it. In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2324 grep -v '^ *+' conftest.er1 >conftest.err
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -z "$ac_c_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 for ac_declaration in \
2344 'extern "C" void std::exit (int) throw (); using std::exit;' \
2345 'extern "C" void std::exit (int); using std::exit;' \
2346 'extern "C" void exit (int) throw ();' \
2347 'extern "C" void exit (int);' \
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>conftest.er1
2370 grep -v '^ *+' conftest.er1 >conftest.err
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -z "$ac_c_werror_flag"
2376 || test ! -s conftest.err'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2396 cat >conftest.$ac_ext <<_ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h. */
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>conftest.er1
2415 grep -v '^ *+' conftest.er1 >conftest.err
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag"
2421 || test ! -s conftest.err'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; } &&
2427 { ac_try='test -s conftest.$ac_objext'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
2435 echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 if test -n "$ac_declaration"; then
2443 echo '#ifdef __cplusplus' >>confdefs.h
2444 echo $ac_declaration >>confdefs.h
2445 echo '#endif' >>confdefs.h
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461 ac_cpp='$CXXCPP $CPPFLAGS'
2462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2465 if test -n "$ac_tool_prefix"; then
2466 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_CXX+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$CXX"; then
2476 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 if test -n "$CXX"; then
2496 echo "$as_me:$LINENO: result: $CXX" >&5
2497 echo "${ECHO_T}$CXX" >&6
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2503 test -n "$CXX" && break
2506 if test -z "$CXX"; then
2508 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2510 # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 if test -n "$ac_ct_CXX"; then
2518 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_ac_ct_CXX="$ac_prog"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2537 if test -n "$ac_ct_CXX"; then
2538 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2539 echo "${ECHO_T}$ac_ct_CXX" >&6
2541 echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2545 test -n "$ac_ct_CXX" && break
2547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2553 # Provide some information about the compiler.
2554 echo "$as_me:$LINENO:" \
2555 "checking for C++ compiler version" >&5
2556 ac_compiler=`set X $ac_compile; echo $2`
2557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2558 (eval $ac_compiler --version </dev/null >&5) 2>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }
2562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2563 (eval $ac_compiler -v </dev/null >&5) 2>&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2568 (eval $ac_compiler -V </dev/null >&5) 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_cxx_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2629 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2631 GXX=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CXXFLAGS=${CXXFLAGS+set}
2633 ac_save_CXXFLAGS=$CXXFLAGS
2635 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2636 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cxx_g+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_cxx_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_cv_prog_cxx_g=yes
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2688 if test "$ac_test_CXXFLAGS" = set; then
2689 CXXFLAGS=$ac_save_CXXFLAGS
2690 elif test $ac_cv_prog_cxx_g = yes; then
2691 if test "$GXX" = yes; then
2697 if test "$GXX" = yes; then
2703 for ac_declaration in \
2705 'extern "C" void std::exit (int) throw (); using std::exit;' \
2706 'extern "C" void std::exit (int); using std::exit;' \
2707 'extern "C" void exit (int) throw ();' \
2708 'extern "C" void exit (int);' \
2711 cat >conftest.$ac_ext <<_ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_cxx_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_cxx_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 if test -n "$ac_declaration"; then
2804 echo '#ifdef __cplusplus' >>confdefs.h
2805 echo $ac_declaration >>confdefs.h
2806 echo '#endif' >>confdefs.h
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 if test "x$CC" != xcc; then
2816 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2817 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2819 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2820 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2822 set dummy $CC; ac_cc=`echo $2 |
2823 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2824 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 cat >conftest.$ac_ext <<_ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2842 # Make sure it works both with $CC and with simple cc.
2843 # We do the test twice because some compilers refuse to overwrite an
2844 # existing .o file with -o, though they will create one.
2845 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2846 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); };
2857 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2858 if test "x$CC" != xcc; then
2859 # Test first that cc exists at all.
2860 if { ac_try='cc -c conftest.$ac_ext >&5'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2867 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } &&
2872 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); };
2881 # cc exists but doesn't like -o.
2882 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2887 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2892 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2893 echo "$as_me:$LINENO: result: yes" >&5
2894 echo "${ECHO_T}yes" >&6
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2899 cat >>confdefs.h <<\_ACEOF
2900 #define NO_MINUS_C_MINUS_O 1
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2912 # On Suns, sometimes $CPP names a directory.
2913 if test -n "$CPP" && test -d "$CPP"; then
2916 if test -z "$CPP"; then
2917 if test "${ac_cv_prog_CPP+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 # Double quotes because CPP needs to be expanded
2921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2924 for ac_c_preproc_warn_flag in '' yes
2926 # Use a header file that comes with gcc, so configuring glibc
2927 # with a fresh cross-compiler works.
2928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929 # <limits.h> exists even on freestanding compilers.
2930 # On the NeXT, cc -E runs the code through the compiler's parser,
2931 # not just through cpp. "Syntax error" is here to catch this case.
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2939 # include <limits.h>
2941 # include <assert.h>
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2962 if test -z "$ac_cpp_err"; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 # Broken: fails on valid input.
2971 rm -f conftest.err conftest.$ac_ext
2973 # OK, works on sane cases. Now check whether non-existent headers
2974 # can be detected and how.
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #include <ac_nonexistent.h>
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev/null; then
2991 if test -s conftest.err; then
2992 ac_cpp_err=$ac_c_preproc_warn_flag
2993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3000 if test -z "$ac_cpp_err"; then
3001 # Broken: success on invalid input.
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 # Passes both tests.
3011 rm -f conftest.err conftest.$ac_ext
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3028 echo "$as_me:$LINENO: result: $CPP" >&5
3029 echo "${ECHO_T}$CPP" >&6
3031 for ac_c_preproc_warn_flag in '' yes
3033 # Use a header file that comes with gcc, so configuring glibc
3034 # with a fresh cross-compiler works.
3035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3036 # <limits.h> exists even on freestanding compilers.
3037 # On the NeXT, cc -E runs the code through the compiler's parser,
3038 # not just through cpp. "Syntax error" is here to catch this case.
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3046 # include <limits.h>
3048 # include <assert.h>
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } >/dev/null; then
3060 if test -s conftest.err; then
3061 ac_cpp_err=$ac_c_preproc_warn_flag
3062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3069 if test -z "$ac_cpp_err"; then
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 # Broken: fails on valid input.
3078 rm -f conftest.err conftest.$ac_ext
3080 # OK, works on sane cases. Now check whether non-existent headers
3081 # can be detected and how.
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 #include <ac_nonexistent.h>
3090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } >/dev/null; then
3098 if test -s conftest.err; then
3099 ac_cpp_err=$ac_c_preproc_warn_flag
3100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3107 if test -z "$ac_cpp_err"; then
3108 # Broken: success on invalid input.
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 # Passes both tests.
3118 rm -f conftest.err conftest.$ac_ext
3121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3122 rm -f conftest.err conftest.$ac_ext
3123 if $ac_preproc_ok; then
3126 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140 echo "$as_me:$LINENO: checking for egrep" >&5
3141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3142 if test "${ac_cv_prog_egrep+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3146 then ac_cv_prog_egrep='grep -E'
3147 else ac_cv_prog_egrep='egrep'
3150 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3151 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3152 EGREP=$ac_cv_prog_egrep
3155 if test $ac_cv_c_compiler_gnu = yes; then
3156 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3157 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3158 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 ac_pattern="Autoconf.*'x'"
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3173 ac_cv_prog_gcc_traditional=yes
3175 ac_cv_prog_gcc_traditional=no
3180 if test $ac_cv_prog_gcc_traditional = no; then
3181 cat >conftest.$ac_ext <<_ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3192 ac_cv_prog_gcc_traditional=yes
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3199 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3200 if test $ac_cv_prog_gcc_traditional = yes; then
3201 CC="$CC -traditional"
3205 if test "x$CC" = xgcc; then
3206 cat >>confdefs.h <<\_ACEOF
3211 # Extract the first word of "$CXX", so it can be a program name with args.
3212 set dummy $CXX; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_path_CXX+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3243 if test -n "$CXX"; then
3244 echo "$as_me:$LINENO: result: $CXX" >&5
3245 echo "${ECHO_T}$CXX" >&6
3247 echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3251 if test ! -e $CXX; then
3252 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3253 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3254 { (exit 1); exit 1; }; }
3257 # Find a good install program. We prefer a C program (faster),
3258 # so one script is as good as another. But avoid the broken or
3259 # incompatible versions:
3260 # SysV /etc/install, /usr/sbin/install
3261 # SunOS /usr/etc/install
3262 # IRIX /sbin/install
3264 # AmigaOS /C/install, which installs bootblocks on floppy discs
3265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3268 # OS/2's system install, which has a completely different semantic
3269 # ./install, which can be erroneously created by make from ./install.sh.
3270 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3272 if test -z "$INSTALL"; then
3273 if test "${ac_cv_path_install+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 # Account for people who put trailing slashes in PATH elements.
3283 ./ | .// | /cC/* | \
3284 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3285 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3288 # OSF1 and SCO ODT 3.0 have their own names for install.
3289 # Don't use installbsd from OSF since it installs stuff as root
3291 for ac_prog in ginstall scoinst install; do
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3294 if test $ac_prog = install &&
3295 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296 # AIX install. It has an incompatible calling convention.
3298 elif test $ac_prog = install &&
3299 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300 # program-specific install script used by HP pwplus--don't use.
3303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3315 if test "${ac_cv_path_install+set}" = set; then
3316 INSTALL=$ac_cv_path_install
3318 # As a last resort, use the slow shell script. We don't cache a
3319 # path for INSTALL within a source directory, because that will
3320 # break other packages using the cache if that directory is
3321 # removed, or if the path is relative.
3322 INSTALL=$ac_install_sh
3325 echo "$as_me:$LINENO: result: $INSTALL" >&5
3326 echo "${ECHO_T}$INSTALL" >&6
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_RANLIB+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 if test -n "$RANLIB"; then
3345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 RANLIB=$ac_cv_prog_RANLIB
3364 if test -n "$RANLIB"; then
3365 echo "$as_me:$LINENO: result: $RANLIB" >&5
3366 echo "${ECHO_T}$RANLIB" >&6
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3373 if test -z "$ac_cv_prog_RANLIB"; then
3374 ac_ct_RANLIB=$RANLIB
3375 # Extract the first word of "ranlib", so it can be a program name with args.
3376 set dummy ranlib; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test -n "$ac_ct_RANLIB"; then
3383 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_RANLIB="ranlib"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3403 if test -n "$ac_ct_RANLIB"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3405 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3411 RANLIB=$ac_ct_RANLIB
3413 RANLIB="$ac_cv_prog_RANLIB"
3416 # Extract the first word of "mv", so it can be a program name with args.
3417 set dummy mv; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_path_MV+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3448 if test -n "$MV"; then
3449 echo "$as_me:$LINENO: result: $MV" >&5
3450 echo "${ECHO_T}$MV" >&6
3452 echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3456 # Extract the first word of "rm", so it can be a program name with args.
3457 set dummy rm; ac_word=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_path_RM+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3488 if test -n "$RM"; then
3489 echo "$as_me:$LINENO: result: $RM" >&5
3490 echo "${ECHO_T}$RM" >&6
3492 echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3496 # Extract the first word of "cp", so it can be a program name with args.
3497 set dummy cp; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_path_CP+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3528 if test -n "$CP"; then
3529 echo "$as_me:$LINENO: result: $CP" >&5
3530 echo "${ECHO_T}$CP" >&6
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 # Extract the first word of "sed", so it can be a program name with args.
3537 set dummy sed; ac_word=$2
3538 echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540 if test "${ac_cv_path_SED+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3568 if test -n "$SED"; then
3569 echo "$as_me:$LINENO: result: $SED" >&5
3570 echo "${ECHO_T}$SED" >&6
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3576 # Extract the first word of "echo", so it can be a program name with args.
3577 set dummy echo; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_path_ECHO+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3606 ECHO=$ac_cv_path_ECHO
3608 if test -n "$ECHO"; then
3609 echo "$as_me:$LINENO: result: $ECHO" >&5
3610 echo "${ECHO_T}$ECHO" >&6
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 # Extract the first word of "cmp", so it can be a program name with args.
3617 set dummy cmp; ac_word=$2
3618 echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620 if test "${ac_cv_path_CMP+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3648 if test -n "$CMP"; then
3649 echo "$as_me:$LINENO: result: $CMP" >&5
3650 echo "${ECHO_T}$CMP" >&6
3652 echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3656 # Extract the first word of "tbl", so it can be a program name with args.
3657 set dummy tbl; ac_word=$2
3658 echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 if test "${ac_cv_path_TBL+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3688 if test -n "$TBL"; then
3689 echo "$as_me:$LINENO: result: $TBL" >&5
3690 echo "${ECHO_T}$TBL" >&6
3692 echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3696 # Extract the first word of "ar", so it can be a program name with args.
3697 set dummy ar; ac_word=$2
3698 echo "$as_me:$LINENO: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700 if test "${ac_cv_path_AR+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3728 if test -n "$AR"; then
3729 echo "$as_me:$LINENO: result: $AR" >&5
3730 echo "${ECHO_T}$AR" >&6
3732 echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3736 # Extract the first word of "openssl", so it can be a program name with args.
3737 set dummy openssl; ac_word=$2
3738 echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740 if test "${ac_cv_path_OPENSSL+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3766 OPENSSL=$ac_cv_path_OPENSSL
3768 if test -n "$OPENSSL"; then
3769 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3770 echo "${ECHO_T}$OPENSSL" >&6
3772 echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6
3776 # Extract the first word of "mtx", so it can be a program name with args.
3777 set dummy mtx; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_path_MTX+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3808 if test -n "$MTX"; then
3809 echo "$as_me:$LINENO: result: $MTX" >&5
3810 echo "${ECHO_T}$MTX" >&6
3812 echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3816 # Extract the first word of "df", so it can be a program name with args.
3817 set dummy df; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_path_DF+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3848 if test -n "$DF"; then
3849 echo "$as_me:$LINENO: result: $DF" >&5
3850 echo "${ECHO_T}$DF" >&6
3852 echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3856 # Extract the first word of "mkisofs", so it can be a program name with args.
3857 set dummy mkisofs; ac_word=$2
3858 echo "$as_me:$LINENO: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_path_MKISOFS+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3886 MKISOFS=$ac_cv_path_MKISOFS
3888 if test -n "$MKISOFS"; then
3889 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3890 echo "${ECHO_T}$MKISOFS" >&6
3892 echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3896 # Extract the first word of "python", so it can be a program name with args.
3897 set dummy python; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_path_PYTHON+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3926 PYTHON=$ac_cv_path_PYTHON
3928 if test -n "$PYTHON"; then
3929 echo "$as_me:$LINENO: result: $PYTHON" >&5
3930 echo "${ECHO_T}$PYTHON" >&6
3932 echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3936 # Extract the first word of "growisofs", so it can be a program name with args.
3937 set dummy growisofs; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3966 GROWISOFS=$ac_cv_path_GROWISOFS
3968 if test -n "$GROWISOFS"; then
3969 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3970 echo "${ECHO_T}$GROWISOFS" >&6
3972 echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3976 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3977 set dummy dvd+rw-mediainfo; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 case $DVDRWMEDIAINFO in
3985 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4006 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4008 if test -n "$DVDRWMEDIAINFO"; then
4009 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4010 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4016 # Extract the first word of "pkg-config", so it can be a program name with args.
4017 set dummy pkg-config; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4046 PKGCONFIG=$ac_cv_path_PKGCONFIG
4048 if test -n "$PKGCONFIG"; then
4049 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4050 echo "${ECHO_T}$PKGCONFIG" >&6
4052 echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4057 if test "x$WXCONFIG" = x; then
4060 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4061 set dummy ${WXCONFIG}; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4090 WXCONFIG=$ac_cv_path_WXCONFIG
4092 if test -n "$WXCONFIG"; then
4093 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4094 echo "${ECHO_T}$WXCONFIG" >&6
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4101 # Extract the first word of "cdrecord", so it can be a program name with args.
4102 set dummy cdrecord; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_path_CDRECORD+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4131 CDRECORD=$ac_cv_path_CDRECORD
4133 if test -n "$CDRECORD"; then
4134 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4135 echo "${ECHO_T}$CDRECORD" >&6
4137 echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4141 # Extract the first word of "pidof", so it can be a program name with args.
4142 set dummy pidof; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_path_PIDOF+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4171 PIDOF=$ac_cv_path_PIDOF
4173 if test -n "$PIDOF"; then
4174 echo "$as_me:$LINENO: result: $PIDOF" >&5
4175 echo "${ECHO_T}$PIDOF" >&6
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4181 for ac_prog in gawk mawk nawk awk
4183 # Extract the first word of "$ac_prog", so it can be a program name with args.
4184 set dummy $ac_prog; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_AWK+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 if test -n "$AWK"; then
4191 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_AWK="$ac_prog"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 if test -n "$AWK"; then
4211 echo "$as_me:$LINENO: result: $AWK" >&5
4212 echo "${ECHO_T}$AWK" >&6
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4218 test -n "$AWK" && break
4221 # Some AWK programs fail, so test it and warn the user
4222 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4223 { if ((prog == $2) || (("(" prog ")") == $2) ||
4224 (("" prog "") == $2) ||
4225 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4227 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4228 The regex engine of $AWK is too broken to be used you
4229 might want to install GNU AWK.
4230 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4231 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4232 The regex engine of $AWK is too broken to be used you
4233 might want to install GNU AWK.
4234 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4235 { (exit 1); exit 1; }; }
4238 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4239 set dummy $THE_AWK; ac_word=$2
4240 echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_path_AWK+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4270 if test -n "$AWK"; then
4271 echo "$as_me:$LINENO: result: $AWK" >&5
4272 echo "${ECHO_T}$AWK" >&6
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 test -n "$ARFLAG" || ARFLAGS="cr"
4290 # Make sure we can run config.sub.
4291 $ac_config_sub sun4 >/dev/null 2>&1 ||
4292 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4294 { (exit 1); exit 1; }; }
4296 echo "$as_me:$LINENO: checking build system type" >&5
4297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4298 if test "${ac_cv_build+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_cv_build_alias=$build_alias
4302 test -z "$ac_cv_build_alias" &&
4303 ac_cv_build_alias=`$ac_config_guess`
4304 test -z "$ac_cv_build_alias" &&
4305 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4307 { (exit 1); exit 1; }; }
4308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4309 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4311 { (exit 1); exit 1; }; }
4314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4315 echo "${ECHO_T}$ac_cv_build" >&6
4317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4323 echo "$as_me:$LINENO: checking host system type" >&5
4324 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4325 if test "${ac_cv_host+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 ac_cv_host_alias=$host_alias
4329 test -z "$ac_cv_host_alias" &&
4330 ac_cv_host_alias=$ac_cv_build_alias
4331 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4332 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4333 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4334 { (exit 1); exit 1; }; }
4337 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4338 echo "${ECHO_T}$ac_cv_host" >&6
4340 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4341 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4342 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4346 *cygwin* ) CYGWIN=yes;;
4350 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4356 HAVE_SUN_OS_FALSE='#'
4358 HAVE_SUN_OS_TRUE='#'
4361 cat >>confdefs.h <<\_ACEOF
4362 #define HAVE_SUN_OS 1
4370 HAVE_SUN_OS_FALSE='#'
4372 HAVE_SUN_OS_TRUE='#'
4377 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4383 HAVE_OSF1_OS_FALSE='#'
4385 HAVE_OSF1_OS_TRUE='#'
4388 cat >>confdefs.h <<\_ACEOF
4389 #define HAVE_OSF1_OS 1
4397 HAVE_OSF1_OS_FALSE='#'
4399 HAVE_OSF1_OS_TRUE='#'
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4410 HAVE_AIX_OS_FALSE='#'
4412 HAVE_AIX_OS_TRUE='#'
4415 cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_AIX_OS 1
4424 HAVE_AIX_OS_FALSE='#'
4426 HAVE_AIX_OS_TRUE='#'
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4437 HAVE_HPUX_OS_FALSE='#'
4439 HAVE_HPUX_OS_TRUE='#'
4442 cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_HPUX_OS 1
4451 HAVE_HPUX_OS_FALSE='#'
4453 HAVE_HPUX_OS_TRUE='#'
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4464 HAVE_LINUX_OS_FALSE='#'
4466 HAVE_LINUX_OS_TRUE='#'
4467 HAVE_LINUX_OS_FALSE=
4469 cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_LINUX_OS 1
4478 HAVE_LINUX_OS_FALSE='#'
4480 HAVE_LINUX_OS_TRUE='#'
4481 HAVE_LINUX_OS_FALSE=
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4490 HAVE_FREEBSD_OS_TRUE=
4491 HAVE_FREEBSD_OS_FALSE='#'
4493 HAVE_FREEBSD_OS_TRUE='#'
4494 HAVE_FREEBSD_OS_FALSE=
4496 cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_FREEBSD_OS 1
4504 HAVE_FREEBSD_OS_TRUE=
4505 HAVE_FREEBSD_OS_FALSE='#'
4507 HAVE_FREEBSD_OS_TRUE='#'
4508 HAVE_FREEBSD_OS_FALSE=
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4517 HAVE_NETBSD_OS_TRUE=
4518 HAVE_NETBSD_OS_FALSE='#'
4520 HAVE_NETBSD_OS_TRUE='#'
4521 HAVE_NETBSD_OS_FALSE=
4523 cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_NETBSD_OS 1
4531 HAVE_NETBSD_OS_TRUE=
4532 HAVE_NETBSD_OS_FALSE='#'
4534 HAVE_NETBSD_OS_TRUE='#'
4535 HAVE_NETBSD_OS_FALSE=
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4544 HAVE_OPENBSD_OS_TRUE=
4545 HAVE_OPENBSD_OS_FALSE='#'
4547 HAVE_OPENBSD_OS_TRUE='#'
4548 HAVE_OPENBSD_OS_FALSE=
4550 cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_OPENBSD_OS 1
4558 HAVE_OPENBSD_OS_TRUE=
4559 HAVE_OPENBSD_OS_FALSE='#'
4561 HAVE_OPENBSD_OS_TRUE='#'
4562 HAVE_OPENBSD_OS_FALSE=
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4572 HAVE_BSDI_OS_FALSE='#'
4574 HAVE_BSDI_OS_TRUE='#'
4577 cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_BSDI_OS 1
4586 HAVE_BSDI_OS_FALSE='#'
4588 HAVE_BSDI_OS_TRUE='#'
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4599 HAVE_SGI_OS_FALSE='#'
4601 HAVE_SGI_OS_TRUE='#'
4604 cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_SGI_OS 1
4613 HAVE_SGI_OS_FALSE='#'
4615 HAVE_SGI_OS_TRUE='#'
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4626 HAVE_IRIX_OS_FALSE='#'
4628 HAVE_IRIX_OS_TRUE='#'
4631 cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_IRIX_OS 1
4640 HAVE_IRIX_OS_FALSE='#'
4642 HAVE_IRIX_OS_TRUE='#'
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4652 HAVE_DARWIN_OS_TRUE=
4653 HAVE_DARWIN_OS_FALSE='#'
4655 HAVE_DARWIN_OS_TRUE='#'
4656 HAVE_DARWIN_OS_FALSE=
4658 cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_DARWIN_OS 1
4666 HAVE_DARWIN_OS_TRUE=
4667 HAVE_DARWIN_OS_FALSE='#'
4669 HAVE_DARWIN_OS_TRUE='#'
4670 HAVE_DARWIN_OS_FALSE=
4675 # -----------------------------------------------------------
4676 # ----------------------------------------------------------
4677 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4678 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4679 if test "x$DISTNAME" != "x"
4681 echo "distname set to $DISTNAME"
4682 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4685 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4688 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4691 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4694 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4697 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4700 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4703 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4706 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4709 elif test -f /etc/SuSE-release
4712 elif test -d /etc/SuSEconfig
4715 elif test -f /etc/mandrake-release
4718 elif test -f /etc/whitebox-release
4721 elif test -f /etc/redhat-release
4724 elif test -f /etc/gentoo-release
4727 elif test -f /etc/debian_version
4730 elif test -f /etc/slackware-version
4733 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4736 elif test -f /etc/engarde-version
4739 elif test "$CYGWIN" = yes
4742 cat >>confdefs.h <<\_ACEOF
4743 #define HAVE_CYGWIN 1
4749 echo "$as_me:$LINENO: result: done" >&5
4750 echo "${ECHO_T}done" >&6
4753 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4754 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4756 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 cat >conftest.make <<\_ACEOF
4761 @echo 'ac_maketemp="$(MAKE)"'
4763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4764 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4765 if test -n "$ac_maketemp"; then
4766 eval ac_cv_prog_make_${ac_make}_set=yes
4768 eval ac_cv_prog_make_${ac_make}_set=no
4772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4773 echo "$as_me:$LINENO: result: yes" >&5
4774 echo "${ECHO_T}yes" >&6
4777 echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4779 SET_MAKE="MAKE=${MAKE-make}"
4785 if test -n "$ac_aux_dir"; then
4786 case "$ac_aux_dir" in
4787 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4788 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4791 if test -z "$MKINSTALLDIRS"; then
4792 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4797 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4798 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4799 # Check whether --enable-nls or --disable-nls was given.
4800 if test "${enable_nls+set}" = set; then
4801 enableval="$enable_nls"
4806 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4807 echo "${ECHO_T}$USE_NLS" >&6
4814 # Prepare PATH_SEPARATOR.
4815 # The user is always right.
4816 if test "${PATH_SEPARATOR+set}" != set; then
4817 echo "#! /bin/sh" >conf$$.sh
4818 echo "exit 0" >>conf$$.sh
4820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4828 # Find out how to test for executable files. Don't use a zero-byte file,
4829 # as systems may use methods other than mode bits to determine executability.
4830 cat >conf$$.file <<_ASEOF
4834 chmod +x conf$$.file
4835 if test -x conf$$.file >/dev/null 2>&1; then
4836 ac_executable_p="test -x"
4838 ac_executable_p="test -f"
4842 # Extract the first word of "msgfmt", so it can be a program name with args.
4843 set dummy msgfmt; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_path_MSGFMT+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4854 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4855 for ac_dir in $PATH; do
4857 test -z "$ac_dir" && ac_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4860 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4861 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4862 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4863 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4870 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4874 MSGFMT="$ac_cv_path_MSGFMT"
4875 if test "$MSGFMT" != ":"; then
4876 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4877 echo "${ECHO_T}$MSGFMT" >&6
4879 echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4883 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4884 set dummy gmsgfmt; ac_word=$2
4885 echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4887 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4913 GMSGFMT=$ac_cv_path_GMSGFMT
4915 if test -n "$GMSGFMT"; then
4916 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4917 echo "${ECHO_T}$GMSGFMT" >&6
4919 echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6
4925 # Prepare PATH_SEPARATOR.
4926 # The user is always right.
4927 if test "${PATH_SEPARATOR+set}" != set; then
4928 echo "#! /bin/sh" >conf$$.sh
4929 echo "exit 0" >>conf$$.sh
4931 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4939 # Find out how to test for executable files. Don't use a zero-byte file,
4940 # as systems may use methods other than mode bits to determine executability.
4941 cat >conf$$.file <<_ASEOF
4945 chmod +x conf$$.file
4946 if test -x conf$$.file >/dev/null 2>&1; then
4947 ac_executable_p="test -x"
4949 ac_executable_p="test -f"
4953 # Extract the first word of "xgettext", so it can be a program name with args.
4954 set dummy xgettext; ac_word=$2
4955 echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4957 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4965 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4966 for ac_dir in $PATH; do
4968 test -z "$ac_dir" && ac_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4971 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4972 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4973 (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
4974 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4981 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4985 XGETTEXT="$ac_cv_path_XGETTEXT"
4986 if test "$XGETTEXT" != ":"; then
4987 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4988 echo "${ECHO_T}$XGETTEXT" >&6
4990 echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4997 # Prepare PATH_SEPARATOR.
4998 # The user is always right.
4999 if test "${PATH_SEPARATOR+set}" != set; then
5000 echo "#! /bin/sh" >conf$$.sh
5001 echo "exit 0" >>conf$$.sh
5003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5011 # Find out how to test for executable files. Don't use a zero-byte file,
5012 # as systems may use methods other than mode bits to determine executability.
5013 cat >conf$$.file <<_ASEOF
5017 chmod +x conf$$.file
5018 if test -x conf$$.file >/dev/null 2>&1; then
5019 ac_executable_p="test -x"
5021 ac_executable_p="test -f"
5025 # Extract the first word of "msgmerge", so it can be a program name with args.
5026 set dummy msgmerge; ac_word=$2
5027 echo "$as_me:$LINENO: checking for $ac_word" >&5
5028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5029 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5037 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5038 for ac_dir in $PATH; do
5040 test -z "$ac_dir" && ac_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5043 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5044 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5045 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5052 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5056 MSGMERGE="$ac_cv_path_MSGMERGE"
5057 if test "$MSGMERGE" != ":"; then
5058 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5059 echo "${ECHO_T}$MSGMERGE" >&6
5061 echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6
5066 if test "$GMSGFMT" != ":"; then
5067 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5068 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5071 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5072 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5073 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5078 if test "$XGETTEXT" != ":"; then
5079 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5080 (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
5083 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5084 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5090 ac_config_commands="$ac_config_commands default-1"
5094 if test "X$prefix" = "XNONE"; then
5095 acl_final_prefix="$ac_default_prefix"
5097 acl_final_prefix="$prefix"
5099 if test "X$exec_prefix" = "XNONE"; then
5100 acl_final_exec_prefix='${prefix}'
5102 acl_final_exec_prefix="$exec_prefix"
5104 acl_save_prefix="$prefix"
5105 prefix="$acl_final_prefix"
5106 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5107 prefix="$acl_save_prefix"
5110 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5111 if test "${with_gnu_ld+set}" = set; then
5112 withval="$with_gnu_ld"
5113 test "$withval" = no || with_gnu_ld=yes
5117 # Prepare PATH_SEPARATOR.
5118 # The user is always right.
5119 if test "${PATH_SEPARATOR+set}" != set; then
5120 echo "#! /bin/sh" >conf$$.sh
5121 echo "exit 0" >>conf$$.sh
5123 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5131 if test "$GCC" = yes; then
5132 # Check if gcc -print-prog-name=ld gives a path.
5133 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5134 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5137 # gcc leaves a trailing carriage return which upsets mingw
5138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5143 # Accept absolute paths.
5144 [\\/]* | [A-Za-z]:[\\/]*)
5145 re_direlt='/[^/][^/]*/\.\./'
5146 # Canonicalize the path of ld
5147 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5149 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5151 test -z "$LD" && LD="$ac_prog"
5154 # If it fails, then pretend we aren't using GCC.
5158 # If it is relative, then search for the first ld in PATH.
5162 elif test "$with_gnu_ld" = yes; then
5163 echo "$as_me:$LINENO: checking for GNU ld" >&5
5164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5166 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5169 if test "${acl_cv_path_LD+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 if test -z "$LD"; then
5173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5174 for ac_dir in $PATH; do
5175 test -z "$ac_dir" && ac_dir=.
5176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5177 acl_cv_path_LD="$ac_dir/$ac_prog"
5178 # Check to see if the program is GNU ld. I'd rather use --version,
5179 # but apparently some GNU ld's only accept -v.
5180 # Break only if it was the GNU/non-GNU ld that we prefer.
5181 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5182 *GNU* | *'with BFD'*)
5183 test "$with_gnu_ld" != no && break ;;
5185 test "$with_gnu_ld" != yes && break ;;
5191 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5195 LD="$acl_cv_path_LD"
5196 if test -n "$LD"; then
5197 echo "$as_me:$LINENO: result: $LD" >&5
5198 echo "${ECHO_T}$LD" >&6
5200 echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5205 { (exit 1); exit 1; }; }
5206 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5208 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5212 case `$LD -v 2>&1 </dev/null` in
5213 *GNU* | *'with BFD'*)
5214 acl_cv_prog_gnu_ld=yes ;;
5216 acl_cv_prog_gnu_ld=no ;;
5219 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5220 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5221 with_gnu_ld=$acl_cv_prog_gnu_ld
5226 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5227 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5228 if test "${acl_cv_rpath+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5233 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5239 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5240 echo "${ECHO_T}$acl_cv_rpath" >&6
5242 libext="$acl_cv_libext"
5243 shlibext="$acl_cv_shlibext"
5244 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5245 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5246 hardcode_direct="$acl_cv_hardcode_direct"
5247 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5248 # Check whether --enable-rpath or --disable-rpath was given.
5249 if test "${enable_rpath+set}" = set; then
5250 enableval="$enable_rpath"
5264 acl_save_prefix="$prefix"
5265 prefix="$acl_final_prefix"
5266 acl_save_exec_prefix="$exec_prefix"
5267 exec_prefix="$acl_final_exec_prefix"
5269 eval additional_includedir=\"$includedir\"
5270 eval additional_libdir=\"$libdir\"
5272 exec_prefix="$acl_save_exec_prefix"
5273 prefix="$acl_save_prefix"
5276 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5277 if test "${with_libiconv_prefix+set}" = set; then
5278 withval="$with_libiconv_prefix"
5280 if test "X$withval" = "Xno"; then
5283 if test "X$withval" = "X"; then
5285 acl_save_prefix="$prefix"
5286 prefix="$acl_final_prefix"
5287 acl_save_exec_prefix="$exec_prefix"
5288 exec_prefix="$acl_final_exec_prefix"
5290 eval additional_includedir=\"$includedir\"
5291 eval additional_libdir=\"$libdir\"
5293 exec_prefix="$acl_save_exec_prefix"
5294 prefix="$acl_save_prefix"
5297 additional_includedir="$withval/include"
5298 additional_libdir="$withval/lib"
5308 names_already_handled=
5309 names_next_round='iconv '
5310 while test -n "$names_next_round"; do
5311 names_this_round="$names_next_round"
5313 for name in $names_this_round; do
5315 for n in $names_already_handled; do
5316 if test "$n" = "$name"; then
5321 if test -z "$already_handled"; then
5322 names_already_handled="$names_already_handled $name"
5323 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5324 eval value=\"\$HAVE_LIB$uppername\"
5325 if test -n "$value"; then
5326 if test "$value" = yes; then
5327 eval value=\"\$LIB$uppername\"
5328 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5329 eval value=\"\$LTLIB$uppername\"
5330 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5339 if test $use_additional = yes; then
5340 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5341 found_dir="$additional_libdir"
5342 found_so="$additional_libdir/lib$name.$shlibext"
5343 if test -f "$additional_libdir/lib$name.la"; then
5344 found_la="$additional_libdir/lib$name.la"
5347 if test -f "$additional_libdir/lib$name.$libext"; then
5348 found_dir="$additional_libdir"
5349 found_a="$additional_libdir/lib$name.$libext"
5350 if test -f "$additional_libdir/lib$name.la"; then
5351 found_la="$additional_libdir/lib$name.la"
5356 if test "X$found_dir" = "X"; then
5357 for x in $LDFLAGS $LTLIBICONV; do
5359 acl_save_prefix="$prefix"
5360 prefix="$acl_final_prefix"
5361 acl_save_exec_prefix="$exec_prefix"
5362 exec_prefix="$acl_final_exec_prefix"
5364 exec_prefix="$acl_save_exec_prefix"
5365 prefix="$acl_save_prefix"
5369 dir=`echo "X$x" | sed -e 's/^X-L//'`
5370 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5372 found_so="$dir/lib$name.$shlibext"
5373 if test -f "$dir/lib$name.la"; then
5374 found_la="$dir/lib$name.la"
5377 if test -f "$dir/lib$name.$libext"; then
5379 found_a="$dir/lib$name.$libext"
5380 if test -f "$dir/lib$name.la"; then
5381 found_la="$dir/lib$name.la"
5387 if test "X$found_dir" != "X"; then
5392 if test "X$found_dir" != "X"; then
5393 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5394 if test "X$found_so" != "X"; then
5395 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5399 for x in $ltrpathdirs; do
5400 if test "X$x" = "X$found_dir"; then
5405 if test -z "$haveit"; then
5406 ltrpathdirs="$ltrpathdirs $found_dir"
5408 if test "$hardcode_direct" = yes; then
5409 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5411 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5412 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5414 for x in $rpathdirs; do
5415 if test "X$x" = "X$found_dir"; then
5420 if test -z "$haveit"; then
5421 rpathdirs="$rpathdirs $found_dir"
5425 for x in $LDFLAGS $LIBICONV; do
5427 acl_save_prefix="$prefix"
5428 prefix="$acl_final_prefix"
5429 acl_save_exec_prefix="$exec_prefix"
5430 exec_prefix="$acl_final_exec_prefix"
5432 exec_prefix="$acl_save_exec_prefix"
5433 prefix="$acl_save_prefix"
5435 if test "X$x" = "X-L$found_dir"; then
5440 if test -z "$haveit"; then
5441 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5443 if test "$hardcode_minus_L" != no; then
5444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5446 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5452 if test "X$found_a" != "X"; then
5453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5455 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5458 additional_includedir=
5459 case "$found_dir" in
5461 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5462 additional_includedir="$basedir/include"
5465 if test "X$additional_includedir" != "X"; then
5466 if test "X$additional_includedir" != "X/usr/include"; then
5468 if test "X$additional_includedir" = "X/usr/local/include"; then
5469 if test -n "$GCC"; then
5471 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5475 if test -z "$haveit"; then
5476 for x in $CPPFLAGS $INCICONV; do
5478 acl_save_prefix="$prefix"
5479 prefix="$acl_final_prefix"
5480 acl_save_exec_prefix="$exec_prefix"
5481 exec_prefix="$acl_final_exec_prefix"
5483 exec_prefix="$acl_save_exec_prefix"
5484 prefix="$acl_save_prefix"
5486 if test "X$x" = "X-I$additional_includedir"; then
5491 if test -z "$haveit"; then
5492 if test -d "$additional_includedir"; then
5493 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5499 if test -n "$found_la"; then
5500 save_libdir="$libdir"
5502 */* | *\\*) . "$found_la" ;;
5503 *) . "./$found_la" ;;
5505 libdir="$save_libdir"
5506 for dep in $dependency_libs; do
5509 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5510 if test "X$additional_libdir" != "X/usr/lib"; then
5512 if test "X$additional_libdir" = "X/usr/local/lib"; then
5513 if test -n "$GCC"; then
5515 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5519 if test -z "$haveit"; then
5521 for x in $LDFLAGS $LIBICONV; do
5523 acl_save_prefix="$prefix"
5524 prefix="$acl_final_prefix"
5525 acl_save_exec_prefix="$exec_prefix"
5526 exec_prefix="$acl_final_exec_prefix"
5528 exec_prefix="$acl_save_exec_prefix"
5529 prefix="$acl_save_prefix"
5531 if test "X$x" = "X-L$additional_libdir"; then
5536 if test -z "$haveit"; then
5537 if test -d "$additional_libdir"; then
5538 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5542 for x in $LDFLAGS $LTLIBICONV; do
5544 acl_save_prefix="$prefix"
5545 prefix="$acl_final_prefix"
5546 acl_save_exec_prefix="$exec_prefix"
5547 exec_prefix="$acl_final_exec_prefix"
5549 exec_prefix="$acl_save_exec_prefix"
5550 prefix="$acl_save_prefix"
5552 if test "X$x" = "X-L$additional_libdir"; then
5557 if test -z "$haveit"; then
5558 if test -d "$additional_libdir"; then
5559 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5566 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5567 if test "$enable_rpath" != no; then
5569 for x in $rpathdirs; do
5570 if test "X$x" = "X$dir"; then
5575 if test -z "$haveit"; then
5576 rpathdirs="$rpathdirs $dir"
5579 for x in $ltrpathdirs; do
5580 if test "X$x" = "X$dir"; then
5585 if test -z "$haveit"; then
5586 ltrpathdirs="$ltrpathdirs $dir"
5591 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5594 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5597 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5604 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5605 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5611 if test "X$rpathdirs" != "X"; then
5612 if test -n "$hardcode_libdir_separator"; then
5614 for found_dir in $rpathdirs; do
5615 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5617 acl_save_libdir="$libdir"
5619 eval flag=\"$hardcode_libdir_flag_spec\"
5620 libdir="$acl_save_libdir"
5621 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5623 for found_dir in $rpathdirs; do
5624 acl_save_libdir="$libdir"
5626 eval flag=\"$hardcode_libdir_flag_spec\"
5627 libdir="$acl_save_libdir"
5628 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5632 if test "X$ltrpathdirs" != "X"; then
5633 for found_dir in $ltrpathdirs; do
5634 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5655 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5656 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5657 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 gt_save_CPPFLAGS="$CPPFLAGS"
5661 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5662 gt_save_LIBS="$LIBS"
5663 LIBS="$LIBS -framework CoreFoundation"
5664 cat >conftest.$ac_ext <<_ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <CFPreferences.h>
5674 CFPreferencesCopyAppValue(NULL, NULL)
5679 rm -f conftest.$ac_objext conftest$ac_exeext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5681 (eval $ac_link) 2>conftest.er1
5683 grep -v '^ *+' conftest.er1 >conftest.err
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -z "$ac_c_werror_flag"
5689 || test ! -s conftest.err'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest$ac_exeext'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 gt_cv_func_CFPreferencesCopyAppValue=yes
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706 gt_cv_func_CFPreferencesCopyAppValue=no
5708 rm -f conftest.err conftest.$ac_objext \
5709 conftest$ac_exeext conftest.$ac_ext
5710 CPPFLAGS="$gt_save_CPPFLAGS"
5711 LIBS="$gt_save_LIBS"
5713 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5714 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5715 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5717 cat >>confdefs.h <<\_ACEOF
5718 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5722 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5723 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5724 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 gt_save_CPPFLAGS="$CPPFLAGS"
5728 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5729 gt_save_LIBS="$LIBS"
5730 LIBS="$LIBS -framework CoreFoundation"
5731 cat >conftest.$ac_ext <<_ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 #include <CFLocale.h>
5741 CFLocaleCopyCurrent();
5746 rm -f conftest.$ac_objext conftest$ac_exeext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748 (eval $ac_link) 2>conftest.er1
5750 grep -v '^ *+' conftest.er1 >conftest.err
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag"
5756 || test ! -s conftest.err'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; } &&
5762 { ac_try='test -s conftest$ac_exeext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 gt_cv_func_CFLocaleCopyCurrent=yes
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 gt_cv_func_CFLocaleCopyCurrent=no
5775 rm -f conftest.err conftest.$ac_objext \
5776 conftest$ac_exeext conftest.$ac_ext
5777 CPPFLAGS="$gt_save_CPPFLAGS"
5778 LIBS="$gt_save_LIBS"
5780 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5781 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5782 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5784 cat >>confdefs.h <<\_ACEOF
5785 #define HAVE_CFLOCALECOPYCURRENT 1
5790 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5791 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5797 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5798 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5799 # Check whether --enable-nls or --disable-nls was given.
5800 if test "${enable_nls+set}" = set; then
5801 enableval="$enable_nls"
5806 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5807 echo "${ECHO_T}$USE_NLS" >&6
5816 if test "$USE_NLS" = "yes"; then
5817 gt_use_preinstalled_gnugettext=no
5824 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5825 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5826 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 cat >conftest.$ac_ext <<_ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #include <libintl.h>
5836 extern int _nl_msg_cat_cntr;
5837 extern int *_nl_domain_bindings;
5841 bindtextdomain ("", "");
5842 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849 (eval $ac_link) 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_c_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 gt_cv_func_gnugettext1_libc=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 gt_cv_func_gnugettext1_libc=no
5876 rm -f conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5879 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5880 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5882 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5888 am_save_CPPFLAGS="$CPPFLAGS"
5890 for element in $INCICONV; do
5892 for x in $CPPFLAGS; do
5894 acl_save_prefix="$prefix"
5895 prefix="$acl_final_prefix"
5896 acl_save_exec_prefix="$exec_prefix"
5897 exec_prefix="$acl_final_exec_prefix"
5899 exec_prefix="$acl_save_exec_prefix"
5900 prefix="$acl_save_prefix"
5902 if test "X$x" = "X$element"; then
5907 if test -z "$haveit"; then
5908 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5913 echo "$as_me:$LINENO: checking for iconv" >&5
5914 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5915 if test "${am_cv_func_iconv+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 am_cv_func_iconv="no, consider installing GNU libiconv"
5921 cat >conftest.$ac_ext <<_ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5932 iconv_t cd = iconv_open("","");
5933 iconv(cd,NULL,NULL,NULL,NULL);
5939 rm -f conftest.$ac_objext conftest$ac_exeext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941 (eval $ac_link) 2>conftest.er1
5943 grep -v '^ *+' conftest.er1 >conftest.err
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_c_werror_flag"
5949 || test ! -s conftest.err'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; } &&
5955 { ac_try='test -s conftest$ac_exeext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 am_cv_func_iconv=yes
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5967 rm -f conftest.err conftest.$ac_objext \
5968 conftest$ac_exeext conftest.$ac_ext
5969 if test "$am_cv_func_iconv" != yes; then
5970 am_save_LIBS="$LIBS"
5971 LIBS="$LIBS $LIBICONV"
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5983 iconv_t cd = iconv_open("","");
5984 iconv(cd,NULL,NULL,NULL,NULL);
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992 (eval $ac_link) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1 >conftest.err
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest$ac_exeext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6013 am_cv_func_iconv=yes
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6019 rm -f conftest.err conftest.$ac_objext \
6020 conftest$ac_exeext conftest.$ac_ext
6021 LIBS="$am_save_LIBS"
6025 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6026 echo "${ECHO_T}$am_cv_func_iconv" >&6
6027 if test "$am_cv_func_iconv" = yes; then
6029 cat >>confdefs.h <<\_ACEOF
6030 #define HAVE_ICONV 1
6034 if test "$am_cv_lib_iconv" = yes; then
6035 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6036 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6037 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6038 echo "${ECHO_T}$LIBICONV" >&6
6040 CPPFLAGS="$am_save_CPPFLAGS"
6052 acl_save_prefix="$prefix"
6053 prefix="$acl_final_prefix"
6054 acl_save_exec_prefix="$exec_prefix"
6055 exec_prefix="$acl_final_exec_prefix"
6057 eval additional_includedir=\"$includedir\"
6058 eval additional_libdir=\"$libdir\"
6060 exec_prefix="$acl_save_exec_prefix"
6061 prefix="$acl_save_prefix"
6064 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6065 if test "${with_libintl_prefix+set}" = set; then
6066 withval="$with_libintl_prefix"
6068 if test "X$withval" = "Xno"; then
6071 if test "X$withval" = "X"; then
6073 acl_save_prefix="$prefix"
6074 prefix="$acl_final_prefix"
6075 acl_save_exec_prefix="$exec_prefix"
6076 exec_prefix="$acl_final_exec_prefix"
6078 eval additional_includedir=\"$includedir\"
6079 eval additional_libdir=\"$libdir\"
6081 exec_prefix="$acl_save_exec_prefix"
6082 prefix="$acl_save_prefix"
6085 additional_includedir="$withval/include"
6086 additional_libdir="$withval/lib"
6096 names_already_handled=
6097 names_next_round='intl '
6098 while test -n "$names_next_round"; do
6099 names_this_round="$names_next_round"
6101 for name in $names_this_round; do
6103 for n in $names_already_handled; do
6104 if test "$n" = "$name"; then
6109 if test -z "$already_handled"; then
6110 names_already_handled="$names_already_handled $name"
6111 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6112 eval value=\"\$HAVE_LIB$uppername\"
6113 if test -n "$value"; then
6114 if test "$value" = yes; then
6115 eval value=\"\$LIB$uppername\"
6116 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6117 eval value=\"\$LTLIB$uppername\"
6118 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6127 if test $use_additional = yes; then
6128 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6129 found_dir="$additional_libdir"
6130 found_so="$additional_libdir/lib$name.$shlibext"
6131 if test -f "$additional_libdir/lib$name.la"; then
6132 found_la="$additional_libdir/lib$name.la"
6135 if test -f "$additional_libdir/lib$name.$libext"; then
6136 found_dir="$additional_libdir"
6137 found_a="$additional_libdir/lib$name.$libext"
6138 if test -f "$additional_libdir/lib$name.la"; then
6139 found_la="$additional_libdir/lib$name.la"
6144 if test "X$found_dir" = "X"; then
6145 for x in $LDFLAGS $LTLIBINTL; do
6147 acl_save_prefix="$prefix"
6148 prefix="$acl_final_prefix"
6149 acl_save_exec_prefix="$exec_prefix"
6150 exec_prefix="$acl_final_exec_prefix"
6152 exec_prefix="$acl_save_exec_prefix"
6153 prefix="$acl_save_prefix"
6157 dir=`echo "X$x" | sed -e 's/^X-L//'`
6158 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6160 found_so="$dir/lib$name.$shlibext"
6161 if test -f "$dir/lib$name.la"; then
6162 found_la="$dir/lib$name.la"
6165 if test -f "$dir/lib$name.$libext"; then
6167 found_a="$dir/lib$name.$libext"
6168 if test -f "$dir/lib$name.la"; then
6169 found_la="$dir/lib$name.la"
6175 if test "X$found_dir" != "X"; then
6180 if test "X$found_dir" != "X"; then
6181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6182 if test "X$found_so" != "X"; then
6183 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6184 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6187 for x in $ltrpathdirs; do
6188 if test "X$x" = "X$found_dir"; then
6193 if test -z "$haveit"; then
6194 ltrpathdirs="$ltrpathdirs $found_dir"
6196 if test "$hardcode_direct" = yes; then
6197 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6199 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6200 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6202 for x in $rpathdirs; do
6203 if test "X$x" = "X$found_dir"; then
6208 if test -z "$haveit"; then
6209 rpathdirs="$rpathdirs $found_dir"
6213 for x in $LDFLAGS $LIBINTL; do
6215 acl_save_prefix="$prefix"
6216 prefix="$acl_final_prefix"
6217 acl_save_exec_prefix="$exec_prefix"
6218 exec_prefix="$acl_final_exec_prefix"
6220 exec_prefix="$acl_save_exec_prefix"
6221 prefix="$acl_save_prefix"
6223 if test "X$x" = "X-L$found_dir"; then
6228 if test -z "$haveit"; then
6229 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6231 if test "$hardcode_minus_L" != no; then
6232 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6234 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6240 if test "X$found_a" != "X"; then
6241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6243 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6246 additional_includedir=
6247 case "$found_dir" in
6249 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6250 additional_includedir="$basedir/include"
6253 if test "X$additional_includedir" != "X"; then
6254 if test "X$additional_includedir" != "X/usr/include"; then
6256 if test "X$additional_includedir" = "X/usr/local/include"; then
6257 if test -n "$GCC"; then
6259 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6263 if test -z "$haveit"; then
6264 for x in $CPPFLAGS $INCINTL; do
6266 acl_save_prefix="$prefix"
6267 prefix="$acl_final_prefix"
6268 acl_save_exec_prefix="$exec_prefix"
6269 exec_prefix="$acl_final_exec_prefix"
6271 exec_prefix="$acl_save_exec_prefix"
6272 prefix="$acl_save_prefix"
6274 if test "X$x" = "X-I$additional_includedir"; then
6279 if test -z "$haveit"; then
6280 if test -d "$additional_includedir"; then
6281 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6287 if test -n "$found_la"; then
6288 save_libdir="$libdir"
6290 */* | *\\*) . "$found_la" ;;
6291 *) . "./$found_la" ;;
6293 libdir="$save_libdir"
6294 for dep in $dependency_libs; do
6297 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6298 if test "X$additional_libdir" != "X/usr/lib"; then
6300 if test "X$additional_libdir" = "X/usr/local/lib"; then
6301 if test -n "$GCC"; then
6303 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6307 if test -z "$haveit"; then
6309 for x in $LDFLAGS $LIBINTL; do
6311 acl_save_prefix="$prefix"
6312 prefix="$acl_final_prefix"
6313 acl_save_exec_prefix="$exec_prefix"
6314 exec_prefix="$acl_final_exec_prefix"
6316 exec_prefix="$acl_save_exec_prefix"
6317 prefix="$acl_save_prefix"
6319 if test "X$x" = "X-L$additional_libdir"; then
6324 if test -z "$haveit"; then
6325 if test -d "$additional_libdir"; then
6326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6330 for x in $LDFLAGS $LTLIBINTL; do
6332 acl_save_prefix="$prefix"
6333 prefix="$acl_final_prefix"
6334 acl_save_exec_prefix="$exec_prefix"
6335 exec_prefix="$acl_final_exec_prefix"
6337 exec_prefix="$acl_save_exec_prefix"
6338 prefix="$acl_save_prefix"
6340 if test "X$x" = "X-L$additional_libdir"; then
6345 if test -z "$haveit"; then
6346 if test -d "$additional_libdir"; then
6347 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6354 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6355 if test "$enable_rpath" != no; then
6357 for x in $rpathdirs; do
6358 if test "X$x" = "X$dir"; then
6363 if test -z "$haveit"; then
6364 rpathdirs="$rpathdirs $dir"
6367 for x in $ltrpathdirs; do
6368 if test "X$x" = "X$dir"; then
6373 if test -z "$haveit"; then
6374 ltrpathdirs="$ltrpathdirs $dir"
6379 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6382 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6385 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6386 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6392 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6393 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6399 if test "X$rpathdirs" != "X"; then
6400 if test -n "$hardcode_libdir_separator"; then
6402 for found_dir in $rpathdirs; do
6403 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6405 acl_save_libdir="$libdir"
6407 eval flag=\"$hardcode_libdir_flag_spec\"
6408 libdir="$acl_save_libdir"
6409 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6411 for found_dir in $rpathdirs; do
6412 acl_save_libdir="$libdir"
6414 eval flag=\"$hardcode_libdir_flag_spec\"
6415 libdir="$acl_save_libdir"
6416 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6420 if test "X$ltrpathdirs" != "X"; then
6421 for found_dir in $ltrpathdirs; do
6422 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6426 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6427 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6428 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 gt_save_CPPFLAGS="$CPPFLAGS"
6432 CPPFLAGS="$CPPFLAGS $INCINTL"
6433 gt_save_LIBS="$LIBS"
6434 LIBS="$LIBS $LIBINTL"
6435 cat >conftest.$ac_ext <<_ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <libintl.h>
6442 extern int _nl_msg_cat_cntr;
6447 const char *_nl_expand_alias (const char *);
6451 bindtextdomain ("", "");
6452 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6459 (eval $ac_link) 2>conftest.er1
6461 grep -v '^ *+' conftest.er1 >conftest.err
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -z "$ac_c_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest$ac_exeext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 gt_cv_func_gnugettext1_libintl=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 gt_cv_func_gnugettext1_libintl=no
6486 rm -f conftest.err conftest.$ac_objext \
6487 conftest$ac_exeext conftest.$ac_ext
6488 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6489 LIBS="$LIBS $LIBICONV"
6490 cat >conftest.$ac_ext <<_ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <libintl.h>
6497 extern int _nl_msg_cat_cntr;
6502 const char *_nl_expand_alias (const char *);
6506 bindtextdomain ("", "");
6507 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>conftest.er1
6516 grep -v '^ *+' conftest.er1 >conftest.err
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_c_werror_flag"
6522 || test ! -s conftest.err'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; } &&
6528 { ac_try='test -s conftest$ac_exeext'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 LIBINTL="$LIBINTL $LIBICONV"
6535 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6536 gt_cv_func_gnugettext1_libintl=yes
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6543 rm -f conftest.err conftest.$ac_objext \
6544 conftest$ac_exeext conftest.$ac_ext
6546 CPPFLAGS="$gt_save_CPPFLAGS"
6547 LIBS="$gt_save_LIBS"
6549 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6553 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6554 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6555 && test "$PACKAGE" != gettext-runtime \
6556 && test "$PACKAGE" != gettext-tools; }; then
6557 gt_use_preinstalled_gnugettext=yes
6566 if test -n "$INTL_MACOSX_LIBS"; then
6567 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6568 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6569 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6570 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6574 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6575 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6577 cat >>confdefs.h <<\_ACEOF
6578 #define ENABLE_NLS 1
6586 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6587 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6588 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6589 echo "${ECHO_T}$USE_NLS" >&6
6590 if test "$USE_NLS" = "yes"; then
6591 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6592 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6593 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6594 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6595 gt_source="external libintl"
6600 gt_source="included intl directory"
6602 echo "$as_me:$LINENO: result: $gt_source" >&5
6603 echo "${ECHO_T}$gt_source" >&6
6606 if test "$USE_NLS" = "yes"; then
6608 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6609 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6610 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6611 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6612 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6613 echo "${ECHO_T}$LIBINTL" >&6
6615 for element in $INCINTL; do
6617 for x in $CPPFLAGS; do
6619 acl_save_prefix="$prefix"
6620 prefix="$acl_final_prefix"
6621 acl_save_exec_prefix="$exec_prefix"
6622 exec_prefix="$acl_final_exec_prefix"
6624 exec_prefix="$acl_save_exec_prefix"
6625 prefix="$acl_save_prefix"
6627 if test "X$x" = "X$element"; then
6632 if test -z "$haveit"; then
6633 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6640 cat >>confdefs.h <<\_ACEOF
6641 #define HAVE_GETTEXT 1
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_DCGETTEXT 1
6663 localedir=${datadir}/locale
6664 LOCAL_DEFS="$LOCAL_DEFS -DLOCALEDIR=\"\\\"${localedir}\\\"\""
6666 # ------------------------------------------------------------------
6667 # If the user has not set --prefix, we set our default to nothing.
6668 # In this case, if the user has not set --sysconfdir, we set it
6669 # to the package default of /etc/bacula. If either --prefix or
6670 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6671 # ------------------------------------------------------------------
6672 if test x${prefix} = xNONE ; then
6673 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6674 sysconfdir=/etc/bacula
6678 sysconfdir=`eval echo ${sysconfdir}`
6680 # -------------------------------------------------------------------------
6681 # If the user has not set --exec-prefix, we default to ${prefix}
6682 # -------------------------------------------------------------------------
6683 if test x${exec_prefix} = xNONE ; then
6684 exec_prefix=${prefix}
6687 # ------------------------------------------------------------------
6688 # If the user has not set --sbindir, we set our default as /sbin
6689 # ------------------------------------------------------------------
6690 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6691 sbindir=${exec_prefix}/sbin
6693 sbindir=`eval echo ${sbindir}`
6695 # -------------------------------------------------------------------------
6696 # If the user has not set --mandir, we default to /usr/share/man
6697 # -------------------------------------------------------------------------
6698 if test x$mandir = x'${prefix}/man' ; then
6699 mandir=/usr/share/man
6703 # ------------------------------------------------------------------
6704 # All list of languages for which a translation exist. Each
6705 # language is separated by a space.
6706 # ------------------------------------------------------------------
6709 for ac_prog in msgfmt
6711 # Extract the first word of "$ac_prog", so it can be a program name with args.
6712 set dummy $ac_prog; ac_word=$2
6713 echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6715 if test "${ac_cv_path_MSGFMT+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 MSGFMT=$ac_cv_path_MSGFMT
6742 if test -n "$MSGFMT"; then
6743 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6744 echo "${ECHO_T}$MSGFMT" >&6
6746 echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6
6750 test -n "$MSGFMT" && break
6752 test -n "$MSGFMT" || MSGFMT="no"
6754 if test "$MSGFMT" = "no"
6756 echo 'msgfmt program not found, disabling NLS !'
6758 USE_INCLUDED_LIBINTL=no
6767 support_postgresql=no
6768 support_smartalloc=yes
6769 support_readline=yes
6772 support_wx_console=no
6776 support_static_tools=no
6777 support_static_fd=no
6778 support_static_sd=no
6779 support_static_dir=no
6780 support_static_cons=no
6782 build_client_only=no
6788 # -------------------------------------------
6789 # gnome (default off)
6790 # -------------------------------------------
6791 # Check whether --enable-gnome or --disable-gnome was given.
6792 if test "${enable_gnome+set}" = set; then
6793 enableval="$enable_gnome"
6794 if test x$enableval = xyes; then
6800 if test x$support_gnome = xyes; then
6801 abc=`$PKGCONFIG --exists libgnomeui-2.0`
6803 if test $pkg = 0; then
6804 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6805 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6806 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6807 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6812 GNOME_DIR=src/gnome2-console
6813 gnome_version="Version 2.x"
6815 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6816 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6817 { (exit 1); exit 1; }; }
6823 # -------------------------------------------
6824 # wx-console (default off)
6825 # -------------------------------------------
6826 # Check whether --enable-wx-console or --disable-wx-console was given.
6827 if test "${enable_wx_console+set}" = set; then
6828 enableval="$enable_wx_console"
6829 if test x$enableval = xyes; then
6830 support_wx_console=yes
6835 if test x$support_wx_console = xyes; then
6836 abc=`$WXCONFIG $WXFLAGS --cppflags`
6838 if test $pkg = 0; then
6839 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6840 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6841 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6845 WX_DIR=src/wx-console
6848 echo "wx-config program not found. wx-console disabled."
6850 support_wx_console=no
6856 # -------------------------------------------
6857 # tray-monitor (default off)
6858 # -------------------------------------------
6859 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6860 if test "${enable_tray_monitor+set}" = set; then
6861 enableval="$enable_tray_monitor"
6862 if test x$enableval = xyes; then
6863 support_tray_monitor=yes
6868 if test x$support_tray_monitor = xyes; then
6869 abc=`$PKGCONFIG --exists gtk+-2.0`
6871 if test $pkg = 0; then
6872 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6873 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6876 TRAY_MONITOR_DIR=src/tray-monitor
6877 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6879 if test $pkg = 0; then
6880 cat >>confdefs.h <<\_ACEOF
6881 #define HAVE_GTK_2_4 1
6889 # -------------------------------------------
6890 # smartalloc (default off)
6891 # -------------------------------------------
6892 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6893 if test "${enable_smartalloc+set}" = set; then
6894 enableval="$enable_smartalloc"
6895 if test x$enableval = xno; then
6896 support_smartalloc=no
6900 if test x$support_smartalloc = xyes; then
6901 cat >>confdefs.h <<\_ACEOF
6902 #define SMARTALLOC 1
6907 # -------------------------------------------
6908 # static-tools (default off)
6909 # -------------------------------------------
6910 # Check whether --enable-static-tools or --disable-static-tools was given.
6911 if test "${enable_static_tools+set}" = set; then
6912 enableval="$enable_static_tools"
6913 if test x$enableval = xyes; then
6914 support_static_tools=yes
6919 if test x$support_static_tools = xyes; then
6920 TTOOL_LDFLAGS="-static"
6924 # -------------------------------------------
6925 # static-fd (default off)
6926 # -------------------------------------------
6927 # Check whether --enable-static-fd or --disable-static-fd was given.
6928 if test "${enable_static_fd+set}" = set; then
6929 enableval="$enable_static_fd"
6930 if test x$enableval = xyes; then
6931 support_static_fd=yes
6936 if test x$support_static_fd = xyes; then
6937 STATIC_FD="static-bacula-fd"
6941 # -------------------------------------------
6942 # static-sd (default off)
6943 # -------------------------------------------
6944 # Check whether --enable-static-sd or --disable-static-sd was given.
6945 if test "${enable_static_sd+set}" = set; then
6946 enableval="$enable_static_sd"
6947 if test x$enableval = xyes; then
6948 support_static_sd=yes
6953 if test x$support_static_sd = xyes; then
6954 STATIC_SD="static-bacula-sd"
6958 # -------------------------------------------
6959 # static-dir (default off)
6960 # -------------------------------------------
6961 # Check whether --enable-static-dir or --disable-static-dir was given.
6962 if test "${enable_static_dir+set}" = set; then
6963 enableval="$enable_static_dir"
6964 if test x$enableval = xyes; then
6965 support_static_dir=yes
6970 if test x$support_static_dir = xyes; then
6971 STATIC_DIR="static-bacula-dir"
6975 # -------------------------------------------
6976 # static-cons (default off)
6977 # -------------------------------------------
6978 # Check whether --enable-static-cons or --disable-static-cons was given.
6979 if test "${enable_static_cons+set}" = set; then
6980 enableval="$enable_static_cons"
6981 if test x$enableval = xyes; then
6982 support_static_cons=yes
6989 if test x$support_static_cons = xyes; then
6990 STATIC_CONS="static-bconsole"
6991 STATIC_GNOME_CONS="static-gnome-console"
6992 STATIC_WX_CONS="static-wx-console"
6998 # -------------------------------------------
6999 # client_only (default off)
7000 # -------------------------------------------
7001 # Check whether --enable-client-only or --disable-client-only was given.
7002 if test "${enable_client_only+set}" = set; then
7003 enableval="$enable_client_only"
7004 if test x$enableval = xyes; then
7005 build_client_only=yes
7010 if test x$build_client_only = xno; then
7017 # ---------------------------------------------------
7018 # Check for conio (Bacula readline substitute)(
7019 # ---------------------------------------------------
7020 # this allows you to turn it completely off
7021 # Check whether --enable-conio or --disable-conio was given.
7022 if test "${enable_conio+set}" = set; then
7023 enableval="$enable_conio"
7024 if test x$enableval = xno; then
7030 if test x$support_conio = xyes; then
7031 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7033 if test "${ac_cv_header_stdc+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7055 rm -f conftest.$ac_objext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>conftest.er1
7059 grep -v '^ *+' conftest.er1 >conftest.err
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } &&
7064 { ac_try='test -z "$ac_c_werror_flag"
7065 || test ! -s conftest.err'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; } &&
7071 { ac_try='test -s conftest.$ac_objext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_cv_header_stdc=yes
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7082 ac_cv_header_stdc=no
7084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7086 if test $ac_cv_header_stdc = yes; then
7087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 $EGREP "memchr" >/dev/null 2>&1; then
7101 ac_cv_header_stdc=no
7107 if test $ac_cv_header_stdc = yes; then
7108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7119 $EGREP "free" >/dev/null 2>&1; then
7122 ac_cv_header_stdc=no
7128 if test $ac_cv_header_stdc = yes; then
7129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7130 if test "$cross_compiling" = yes; then
7133 cat >conftest.$ac_ext <<_ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7140 #if ((' ' & 0x0FF) == 0x020)
7141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7144 # define ISLOWER(c) \
7145 (('a' <= (c) && (c) <= 'i') \
7146 || ('j' <= (c) && (c) <= 'r') \
7147 || ('s' <= (c) && (c) <= 'z'))
7148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7156 for (i = 0; i < 256; i++)
7157 if (XOR (islower (i), ISLOWER (i))
7158 || toupper (i) != TOUPPER (i))
7163 rm -f conftest$ac_exeext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165 (eval $ac_link) 2>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7176 echo "$as_me: program exited with status $ac_status" >&5
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_cv_header_stdc=no
7183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7189 if test $ac_cv_header_stdc = yes; then
7191 cat >>confdefs.h <<\_ACEOF
7192 #define STDC_HEADERS 1
7197 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7208 inttypes.h stdint.h unistd.h
7210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7211 echo "$as_me:$LINENO: checking for $ac_header" >&5
7212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 cat >conftest.$ac_ext <<_ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 $ac_includes_default
7224 #include <$ac_header>
7226 rm -f conftest.$ac_objext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228 (eval $ac_compile) 2>conftest.er1
7230 grep -v '^ *+' conftest.er1 >conftest.err
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -z "$ac_c_werror_flag"
7236 || test ! -s conftest.err'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; } &&
7242 { ac_try='test -s conftest.$ac_objext'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 eval "$as_ac_Header=yes"
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7253 eval "$as_ac_Header=no"
7255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7260 cat >>confdefs.h <<_ACEOF
7261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7269 if test "${ac_cv_header_termcap_h+set}" = set; then
7270 echo "$as_me:$LINENO: checking for termcap.h" >&5
7271 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7272 if test "${ac_cv_header_termcap_h+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7276 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7278 # Is the header compilable?
7279 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7280 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7281 cat >conftest.$ac_ext <<_ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7288 #include <termcap.h>
7290 rm -f conftest.$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>conftest.er1
7294 grep -v '^ *+' conftest.er1 >conftest.err
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } &&
7299 { ac_try='test -z "$ac_c_werror_flag"
7300 || test ! -s conftest.err'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; } &&
7306 { ac_try='test -s conftest.$ac_objext'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 ac_header_compiler=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 ac_header_compiler=no
7319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7321 echo "${ECHO_T}$ac_header_compiler" >&6
7323 # Is the header present?
7324 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7325 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 #include <termcap.h>
7334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7337 grep -v '^ *+' conftest.er1 >conftest.err
7339 cat conftest.err >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } >/dev/null; then
7342 if test -s conftest.err; then
7343 ac_cpp_err=$ac_c_preproc_warn_flag
7344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7351 if test -z "$ac_cpp_err"; then
7352 ac_header_preproc=yes
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ac_header_preproc=no
7359 rm -f conftest.err conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7361 echo "${ECHO_T}$ac_header_preproc" >&6
7363 # So? What about this header?
7364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7366 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7367 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7369 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7370 ac_header_preproc=yes
7373 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7374 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
7376 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7378 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
7380 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7382 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7384 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7387 ## ------------------------------------------ ##
7388 ## Report this to the AC_PACKAGE_NAME lists. ##
7389 ## ------------------------------------------ ##
7392 sed "s/^/$as_me: WARNING: /" >&2
7395 echo "$as_me:$LINENO: checking for termcap.h" >&5
7396 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7397 if test "${ac_cv_header_termcap_h+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_cv_header_termcap_h=$ac_header_preproc
7402 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7403 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7406 if test $ac_cv_header_termcap_h = yes; then
7407 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7408 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7409 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 ac_check_lib_save_LIBS=$LIBS
7413 LIBS="-ltermcap $LIBS"
7414 cat >conftest.$ac_ext <<_ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7421 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>conftest.er1
7440 grep -v '^ *+' conftest.er1 >conftest.err
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
7445 { ac_try='test -z "$ac_c_werror_flag"
7446 || test ! -s conftest.err'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; } &&
7452 { ac_try='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_cv_lib_termcap_tgetent=yes
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 ac_cv_lib_termcap_tgetent=no
7465 rm -f conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467 LIBS=$ac_check_lib_save_LIBS
7469 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7470 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7471 if test $ac_cv_lib_termcap_tgetent = yes; then
7472 CONS_LIBS="-ltermcap"
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_CONIO 1
7484 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7485 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7486 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 ac_check_lib_save_LIBS=$LIBS
7490 LIBS="-lncurses $LIBS"
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7498 /* Override any gcc2 internal prototype to avoid an error. */
7502 /* We use char because int might match the return type of a gcc2
7503 builtin and then its argument prototype would still apply. */
7513 rm -f conftest.$ac_objext conftest$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515 (eval $ac_link) 2>conftest.er1
7517 grep -v '^ *+' conftest.er1 >conftest.err
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -z "$ac_c_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest$ac_exeext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_lib_ncurses_tgetent=yes
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 ac_cv_lib_ncurses_tgetent=no
7542 rm -f conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7544 LIBS=$ac_check_lib_save_LIBS
7546 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7547 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7548 if test $ac_cv_lib_ncurses_tgetent = yes; then
7549 CONS_LIBS="-lncurses"
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_CONIO 1
7569 for ac_header in curses.h
7571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573 echo "$as_me:$LINENO: checking for $ac_header" >&5
7574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7581 # Is the header compilable?
7582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7584 cat >conftest.$ac_ext <<_ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 $ac_includes_default
7591 #include <$ac_header>
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>conftest.er1
7597 grep -v '^ *+' conftest.er1 >conftest.err
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -z "$ac_c_werror_flag"
7603 || test ! -s conftest.err'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest.$ac_objext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 ac_header_compiler=yes
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ac_header_compiler=no
7622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7624 echo "${ECHO_T}$ac_header_compiler" >&6
7626 # Is the header present?
7627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 #include <$ac_header>
7637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7640 grep -v '^ *+' conftest.er1 >conftest.err
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } >/dev/null; then
7645 if test -s conftest.err; then
7646 ac_cpp_err=$ac_c_preproc_warn_flag
7647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7654 if test -z "$ac_cpp_err"; then
7655 ac_header_preproc=yes
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7660 ac_header_preproc=no
7662 rm -f conftest.err conftest.$ac_ext
7663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7664 echo "${ECHO_T}$ac_header_preproc" >&6
7666 # So? What about this header?
7667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7673 ac_header_preproc=yes
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7690 ## ------------------------------------------ ##
7691 ## Report this to the AC_PACKAGE_NAME lists. ##
7692 ## ------------------------------------------ ##
7695 sed "s/^/$as_me: WARNING: /" >&2
7698 echo "$as_me:$LINENO: checking for $ac_header" >&5
7699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 eval "$as_ac_Header=\$ac_header_preproc"
7705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710 cat >>confdefs.h <<_ACEOF
7711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7718 echo "$as_me:$LINENO: checking for term.h" >&5
7719 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7720 if test "${ac_cv_header_term_h+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 cat >conftest.$ac_ext <<_ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7736 rm -f conftest.$ac_objext
7737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7738 (eval $ac_compile) 2>conftest.er1
7740 grep -v '^ *+' conftest.er1 >conftest.err
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
7745 { ac_try='test -z "$ac_c_werror_flag"
7746 || test ! -s conftest.err'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; } &&
7752 { ac_try='test -s conftest.$ac_objext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_cv_header_term_h=yes
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_cv_header_term_h=no
7765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7767 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7768 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7769 if test $ac_cv_header_term_h = yes; then
7770 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7771 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7772 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 ac_check_lib_save_LIBS=$LIBS
7776 LIBS="-lcurses $LIBS"
7777 cat >conftest.$ac_ext <<_ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7784 /* Override any gcc2 internal prototype to avoid an error. */
7788 /* We use char because int might match the return type of a gcc2
7789 builtin and then its argument prototype would still apply. */
7799 rm -f conftest.$ac_objext conftest$ac_exeext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801 (eval $ac_link) 2>conftest.er1
7803 grep -v '^ *+' conftest.er1 >conftest.err
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
7808 { ac_try='test -z "$ac_c_werror_flag"
7809 || test ! -s conftest.err'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; } &&
7815 { ac_try='test -s conftest$ac_exeext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_cv_lib_curses_tgetent=yes
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 ac_cv_lib_curses_tgetent=no
7828 rm -f conftest.err conftest.$ac_objext \
7829 conftest$ac_exeext conftest.$ac_ext
7830 LIBS=$ac_check_lib_save_LIBS
7832 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7833 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7834 if test $ac_cv_lib_curses_tgetent = yes; then
7835 CONS_LIBS="-lcurses"
7841 cat >>confdefs.h <<\_ACEOF
7842 #define HAVE_CONIO 1
7850 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7861 # ---------------------------------------------------
7862 # Check for readline support/directory (default off)
7863 # ---------------------------------------------------
7864 # this allows you to turn it completely off
7865 # Check whether --enable-readline or --disable-readline was given.
7866 if test "${enable_readline+set}" = set; then
7867 enableval="$enable_readline"
7868 if test x$enableval = xno; then
7875 if test x$support_readline = xyes; then
7877 # Check whether --with-readline or --without-readline was given.
7878 if test "${with_readline+set}" = set; then
7879 withval="$with_readline"
7881 case "$with_readline" in
7884 if test -f ${with_readline}/readline.h; then
7885 CONS_INC="-I${with_readline}"
7886 CONS_LDFLAGS="-L$with_readline"
7887 elif test -f ${with_readline}/include/readline/readline.h; then
7888 CONS_INC="-I${with_readline}/include/readline"
7889 CONS_LDFLAGS="-L${with_readline}/lib"
7890 with_readline="${with_readline}/include/readline"
7892 with_readline="/usr/include/readline"
7894 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7897 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7904 # Is the header compilable?
7905 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7906 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7907 cat >conftest.$ac_ext <<_ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7913 $ac_includes_default
7914 #include <${with_readline}/readline.h>
7916 rm -f conftest.$ac_objext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7918 (eval $ac_compile) 2>conftest.er1
7920 grep -v '^ *+' conftest.er1 >conftest.err
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try='test -z "$ac_c_werror_flag"
7926 || test ! -s conftest.err'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest.$ac_objext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_header_compiler=yes
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_header_compiler=no
7945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7947 echo "${ECHO_T}$ac_header_compiler" >&6
7949 # Is the header present?
7950 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
7951 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 #include <${with_readline}/readline.h>
7960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7963 grep -v '^ *+' conftest.er1 >conftest.err
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } >/dev/null; then
7968 if test -s conftest.err; then
7969 ac_cpp_err=$ac_c_preproc_warn_flag
7970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7977 if test -z "$ac_cpp_err"; then
7978 ac_header_preproc=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_header_preproc=no
7985 rm -f conftest.err conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7987 echo "${ECHO_T}$ac_header_preproc" >&6
7989 # So? What about this header?
7990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7992 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
7993 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
7995 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
7996 ac_header_preproc=yes
7999 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8000 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
8002 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8004 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8005 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8006 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8008 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8010 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8013 ## ------------------------------------------ ##
8014 ## Report this to the AC_PACKAGE_NAME lists. ##
8015 ## ------------------------------------------ ##
8018 sed "s/^/$as_me: WARNING: /" >&2
8021 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8022 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 eval "$as_ac_Header=\$ac_header_preproc"
8028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8033 cat >>confdefs.h <<\_ACEOF
8034 #define HAVE_READLINE 1
8037 CONS_LIBS="-lreadline -lhistory -ltermcap"
8042 echo "readline.h not found. readline turned off ..."
8054 # check for standard readline library
8055 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8056 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8057 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8058 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8062 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8064 # Is the header compilable?
8065 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8066 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8074 #include </usr/include/readline/readline.h>
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078 (eval $ac_compile) 2>conftest.er1
8080 grep -v '^ *+' conftest.er1 >conftest.err
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag"
8086 || test ! -s conftest.err'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest.$ac_objext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 ac_header_compiler=yes
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 ac_header_compiler=no
8105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8107 echo "${ECHO_T}$ac_header_compiler" >&6
8109 # Is the header present?
8110 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8111 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8112 cat >conftest.$ac_ext <<_ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 #include </usr/include/readline/readline.h>
8120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8121 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8128 if test -s conftest.err; then
8129 ac_cpp_err=$ac_c_preproc_warn_flag
8130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8137 if test -z "$ac_cpp_err"; then
8138 ac_header_preproc=yes
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_header_preproc=no
8145 rm -f conftest.err conftest.$ac_ext
8146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8147 echo "${ECHO_T}$ac_header_preproc" >&6
8149 # So? What about this header?
8150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8152 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8153 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8154 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8155 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8156 ac_header_preproc=yes
8159 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8160 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8161 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
8162 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
8163 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8164 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8165 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8166 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8167 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8168 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8169 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8170 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8173 ## ------------------------------------------ ##
8174 ## Report this to the AC_PACKAGE_NAME lists. ##
8175 ## ------------------------------------------ ##
8178 sed "s/^/$as_me: WARNING: /" >&2
8181 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8182 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8183 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8188 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8189 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8192 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8193 cat >>confdefs.h <<\_ACEOF
8194 #define HAVE_READLINE 1
8198 CONS_INC="-I/usr/include/readline"
8199 CONS_LIBS="-lreadline -ltermcap"
8203 # Did not find standard library, so try Bacula's default
8204 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8206 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8207 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8214 # Is the header compilable?
8215 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8216 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8217 cat >conftest.$ac_ext <<_ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 $ac_includes_default
8224 #include <${TOP_DIR}/depkgs/readline/readline.h>
8226 rm -f conftest.$ac_objext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8228 (eval $ac_compile) 2>conftest.er1
8230 grep -v '^ *+' conftest.er1 >conftest.err
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
8235 { ac_try='test -z "$ac_c_werror_flag"
8236 || test ! -s conftest.err'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; } &&
8242 { ac_try='test -s conftest.$ac_objext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_header_compiler=yes
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8253 ac_header_compiler=no
8255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8257 echo "${ECHO_T}$ac_header_compiler" >&6
8259 # Is the header present?
8260 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8261 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 #include <${TOP_DIR}/depkgs/readline/readline.h>
8270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8273 grep -v '^ *+' conftest.er1 >conftest.err
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } >/dev/null; then
8278 if test -s conftest.err; then
8279 ac_cpp_err=$ac_c_preproc_warn_flag
8280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8287 if test -z "$ac_cpp_err"; then
8288 ac_header_preproc=yes
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8293 ac_header_preproc=no
8295 rm -f conftest.err conftest.$ac_ext
8296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8297 echo "${ECHO_T}$ac_header_preproc" >&6
8299 # So? What about this header?
8300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8302 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8303 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8305 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8306 ac_header_preproc=yes
8309 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8310 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8311 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
8312 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
8313 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8314 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8316 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8319 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8320 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8323 ## ------------------------------------------ ##
8324 ## Report this to the AC_PACKAGE_NAME lists. ##
8325 ## ------------------------------------------ ##
8328 sed "s/^/$as_me: WARNING: /" >&2
8331 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8332 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 eval "$as_ac_Header=\$ac_header_preproc"
8338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8343 cat >>confdefs.h <<\_ACEOF
8344 #define HAVE_READLINE 1
8348 CONS_INC="-I${TOP_DIR}/depkgs/readline"
8349 CONS_LIBS="-lreadline -lhistory -ltermcap"
8350 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8351 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8355 echo "readline.h not found. readline turned off ..."
8381 # Minimal stuff for readline Makefile configuration
8384 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8385 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8386 if test "${ac_cv_header_stat_broken+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 #include <sys/types.h>
8396 #include <sys/stat.h>
8398 #if defined(S_ISBLK) && defined(S_IFDIR)
8399 # if S_ISBLK (S_IFDIR)
8404 #if defined(S_ISBLK) && defined(S_IFCHR)
8405 # if S_ISBLK (S_IFCHR)
8410 #if defined(S_ISLNK) && defined(S_IFREG)
8411 # if S_ISLNK (S_IFREG)
8416 #if defined(S_ISSOCK) && defined(S_IFREG)
8417 # if S_ISSOCK (S_IFREG)
8423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8424 $EGREP "You lose" >/dev/null 2>&1; then
8425 ac_cv_header_stat_broken=yes
8427 ac_cv_header_stat_broken=no
8432 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8433 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8434 if test $ac_cv_header_stat_broken = yes; then
8436 cat >>confdefs.h <<\_ACEOF
8437 #define STAT_MACROS_BROKEN 1
8448 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8449 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8450 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8451 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 #include <sys/types.h>
8473 rm -f conftest.$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475 (eval $ac_compile) 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest.$ac_objext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 eval "$as_ac_Header=yes"
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8500 eval "$as_ac_Header=no"
8502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8507 cat >>confdefs.h <<_ACEOF
8508 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8511 ac_header_dirent=$ac_hdr; break
8515 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8516 if test $ac_header_dirent = dirent.h; then
8517 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8518 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8519 if test "${ac_cv_search_opendir+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 ac_func_search_save_LIBS=$LIBS
8523 ac_cv_search_opendir=no
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8531 /* Override any gcc2 internal prototype to avoid an error. */
8535 /* We use char because int might match the return type of a gcc2
8536 builtin and then its argument prototype would still apply. */
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8548 (eval $ac_link) 2>conftest.er1
8550 grep -v '^ *+' conftest.er1 >conftest.err
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try='test -z "$ac_c_werror_flag"
8556 || test ! -s conftest.err'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_search_opendir="none required"
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8574 rm -f conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 if test "$ac_cv_search_opendir" = no; then
8577 for ac_lib in dir; do
8578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8579 cat >conftest.$ac_ext <<_ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8586 /* Override any gcc2 internal prototype to avoid an error. */
8590 /* We use char because int might match the return type of a gcc2
8591 builtin and then its argument prototype would still apply. */
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -z "$ac_c_werror_flag"
8611 || test ! -s conftest.err'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; } &&
8617 { ac_try='test -s conftest$ac_exeext'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; }; then
8623 ac_cv_search_opendir="-l$ac_lib"
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8630 rm -f conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8634 LIBS=$ac_func_search_save_LIBS
8636 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8637 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8638 if test "$ac_cv_search_opendir" != no; then
8639 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8644 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8645 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8646 if test "${ac_cv_search_opendir+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 ac_func_search_save_LIBS=$LIBS
8650 ac_cv_search_opendir=no
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8658 /* Override any gcc2 internal prototype to avoid an error. */
8662 /* We use char because int might match the return type of a gcc2
8663 builtin and then its argument prototype would still apply. */
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675 (eval $ac_link) 2>conftest.er1
8677 grep -v '^ *+' conftest.er1 >conftest.err
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_c_werror_flag"
8683 || test ! -s conftest.err'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_cv_search_opendir="none required"
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8701 rm -f conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8703 if test "$ac_cv_search_opendir" = no; then
8705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8713 /* Override any gcc2 internal prototype to avoid an error. */
8717 /* We use char because int might match the return type of a gcc2
8718 builtin and then its argument prototype would still apply. */
8728 rm -f conftest.$ac_objext conftest$ac_exeext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730 (eval $ac_link) 2>conftest.er1
8732 grep -v '^ *+' conftest.er1 >conftest.err
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } &&
8737 { ac_try='test -z "$ac_c_werror_flag"
8738 || test ! -s conftest.err'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest$ac_exeext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_cv_search_opendir="-l$ac_lib"
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8757 rm -f conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8761 LIBS=$ac_func_search_save_LIBS
8763 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8764 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8765 if test "$ac_cv_search_opendir" != no; then
8766 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8780 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
8782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8783 echo "$as_me:$LINENO: checking for $ac_func" >&5
8784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8785 if eval "test \"\${$as_ac_var+set}\" = set"; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8796 #define $ac_func innocuous_$ac_func
8798 /* System header to define __stub macros and hopefully few prototypes,
8799 which can conflict with char $ac_func (); below.
8800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801 <limits.h> exists even on freestanding compilers. */
8804 # include <limits.h>
8806 # include <assert.h>
8811 /* Override any gcc2 internal prototype to avoid an error. */
8816 /* We use char because int might match the return type of a gcc2
8817 builtin and then its argument prototype would still apply. */
8819 /* The GNU C library defines this for functions which it implements
8820 to always fail with ENOSYS. Some functions are actually named
8821 something starting with __ and the normal name is an alias. */
8822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8825 char (*f) () = $ac_func;
8834 return f != $ac_func;
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>conftest.er1
8843 grep -v '^ *+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -z "$ac_c_werror_flag"
8849 || test ! -s conftest.err'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; } &&
8855 { ac_try='test -s 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 eval "$as_ac_var=yes"
8863 echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8866 eval "$as_ac_var=no"
8868 rm -f conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8873 if test `eval echo '${'$as_ac_var'}'` = yes; then
8874 cat >>confdefs.h <<_ACEOF
8875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8883 for ac_func in nanosleep nl_langinfo
8885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8886 echo "$as_me:$LINENO: checking for $ac_func" >&5
8887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_var+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 cat >conftest.$ac_ext <<_ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8899 #define $ac_func innocuous_$ac_func
8901 /* System header to define __stub macros and hopefully few prototypes,
8902 which can conflict with char $ac_func (); below.
8903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904 <limits.h> exists even on freestanding compilers. */
8907 # include <limits.h>
8909 # include <assert.h>
8914 /* Override any gcc2 internal prototype to avoid an error. */
8919 /* We use char because int might match the return type of a gcc2
8920 builtin and then its argument prototype would still apply. */
8922 /* The GNU C library defines this for functions which it implements
8923 to always fail with ENOSYS. Some functions are actually named
8924 something starting with __ and the normal name is an alias. */
8925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8928 char (*f) () = $ac_func;
8937 return f != $ac_func;
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8946 grep -v '^ *+' conftest.er1 >conftest.err
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 eval "$as_ac_var=yes"
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8969 eval "$as_ac_var=no"
8971 rm -f conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976 if test `eval echo '${'$as_ac_var'}'` = yes; then
8977 cat >>confdefs.h <<_ACEOF
8978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8985 for ac_header in varargs.h
8987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8989 echo "$as_me:$LINENO: checking for $ac_header" >&5
8990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8997 # Is the header compilable?
8998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9000 cat >conftest.$ac_ext <<_ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 $ac_includes_default
9007 #include <$ac_header>
9009 rm -f conftest.$ac_objext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011 (eval $ac_compile) 2>conftest.er1
9013 grep -v '^ *+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -z "$ac_c_werror_flag"
9019 || test ! -s conftest.err'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; } &&
9025 { ac_try='test -s conftest.$ac_objext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 ac_header_compiler=yes
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 ac_header_compiler=no
9038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9040 echo "${ECHO_T}$ac_header_compiler" >&6
9042 # Is the header present?
9043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9045 cat >conftest.$ac_ext <<_ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 #include <$ac_header>
9053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9056 grep -v '^ *+' conftest.er1 >conftest.err
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } >/dev/null; then
9061 if test -s conftest.err; then
9062 ac_cpp_err=$ac_c_preproc_warn_flag
9063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9070 if test -z "$ac_cpp_err"; then
9071 ac_header_preproc=yes
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_header_preproc=no
9078 rm -f conftest.err conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9080 echo "${ECHO_T}$ac_header_preproc" >&6
9082 # So? What about this header?
9083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9089 ac_header_preproc=yes
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9106 ## ------------------------------------------ ##
9107 ## Report this to the AC_PACKAGE_NAME lists. ##
9108 ## ------------------------------------------ ##
9111 sed "s/^/$as_me: WARNING: /" >&2
9114 echo "$as_me:$LINENO: checking for $ac_header" >&5
9115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 eval "$as_ac_Header=\$ac_header_preproc"
9121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9126 cat >>confdefs.h <<_ACEOF
9127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9135 # End of readline/conio stuff
9136 # -----------------------------------------------------------------------
9138 # -----------------------------------------------------------------------
9139 # Check for Python support
9141 echo "$as_me:$LINENO: checking for Python support" >&5
9142 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9144 # Check whether --with-python or --without-python was given.
9145 if test "${with_python+set}" = set; then
9146 withval="$with_python"
9150 if test "$withval" != "no"; then
9151 if test "$withval" = "yes"; then
9152 for python_root in /usr /usr/local; do
9153 if test -f $python_root/include/python2.2/Python.h; then
9154 PYTHON_INCDIR=-I$python_root/include/python2.2
9155 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9157 elif test -f $python_root/include/python2.3/Python.h; then
9158 PYTHON_INCDIR=-I$python_root/include/python2.3
9159 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9161 elif test -f $python_root/include/python2.4/Python.h; then
9162 PYTHON_INCDIR=-I$python_root/include/python2.4
9163 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9167 if test x$PYTHON_INCDIR = x; then
9168 if test -f $prefix/include/Python.h; then
9169 PYTHON_INCDIR=-I$prefix/include
9170 PYTHON_LIBS="-L$prefix/lib/config -lpython"
9172 echo "$as_me:$LINENO: result: no" >&5
9173 echo "${ECHO_T}no" >&6
9174 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9175 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9176 { (exit 1); exit 1; }; }
9180 if test -f $withval/Python.h; then
9181 PYTHON_INCDIR=-I$withval
9182 PYTHON_LIBS="-L$withval/config -lpython"
9183 elif test -f $withval/include/Python.h; then
9184 PYTHON_INCDIR=-I$withval/include
9185 PYTHON_LIBS="-L$withval/lib/config -lpython"
9186 elif test -f $withval/include/python/Python.h; then
9187 PYTHON_INCDIR=-I$withval/include/python
9188 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9190 echo "$as_me:$LINENO: result: no" >&5
9191 echo "${ECHO_T}no" >&6
9192 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9193 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9194 { (exit 1); exit 1; }; }
9197 cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_PYTHON 1
9201 echo "$as_me:$LINENO: result: yes" >&5
9202 echo "${ECHO_T}yes" >&6
9204 { echo "$as_me:$LINENO: checking for more Python libs" >&5
9205 echo "$as_me: checking for more Python libs" >&6;}
9206 saved_LIBS="$LIBS"; LIBS=
9207 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9208 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9209 if test "${ac_cv_search_shm_open+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 ac_func_search_save_LIBS=$LIBS
9213 ac_cv_search_shm_open=no
9214 cat >conftest.$ac_ext <<_ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9221 /* Override any gcc2 internal prototype to avoid an error. */
9225 /* We use char because int might match the return type of a gcc2
9226 builtin and then its argument prototype would still apply. */
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_c_werror_flag"
9246 || test ! -s conftest.err'
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; } &&
9252 { ac_try='test -s conftest$ac_exeext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 ac_cv_search_shm_open="none required"
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9264 rm -f conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 if test "$ac_cv_search_shm_open" = no; then
9267 for ac_lib in rt; do
9268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9269 cat >conftest.$ac_ext <<_ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9276 /* Override any gcc2 internal prototype to avoid an error. */
9280 /* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9291 rm -f conftest.$ac_objext conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>conftest.er1
9295 grep -v '^ *+' conftest.er1 >conftest.err
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try='test -z "$ac_c_werror_flag"
9301 || test ! -s conftest.err'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; } &&
9307 { ac_try='test -s conftest$ac_exeext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_cv_search_shm_open="-l$ac_lib"
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9320 rm -f conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9324 LIBS=$ac_func_search_save_LIBS
9326 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9327 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9328 if test "$ac_cv_search_shm_open" != no; then
9329 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9334 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9335 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9336 if test "${ac_cv_lib_util_openpty+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 ac_check_lib_save_LIBS=$LIBS
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9348 /* Override any gcc2 internal prototype to avoid an error. */
9352 /* We use char because int might match the return type of a gcc2
9353 builtin and then its argument prototype would still apply. */
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>conftest.er1
9367 grep -v '^ *+' conftest.er1 >conftest.err
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -z "$ac_c_werror_flag"
9373 || test ! -s conftest.err'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_lib_util_openpty=yes
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 ac_cv_lib_util_openpty=no
9392 rm -f conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9396 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9397 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9398 if test $ac_cv_lib_util_openpty = yes; then
9399 cat >>confdefs.h <<_ACEOF
9400 #define HAVE_LIBUTIL 1
9407 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9410 echo "$as_me:$LINENO: result: no" >&5
9411 echo "${ECHO_T}no" >&6
9416 echo "$as_me:$LINENO: result: no" >&5
9417 echo "${ECHO_T}no" >&6
9425 # Find where sockets are (especially for Solaris)
9426 # Do this before the TCP Wrappers test since tcp wrappers
9427 # uses the socket library and some linkers are stupid.
9429 echo "$as_me:$LINENO: checking for socket" >&5
9430 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9431 if test "${ac_cv_func_socket+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442 #define socket innocuous_socket
9444 /* System header to define __stub macros and hopefully few prototypes,
9445 which can conflict with char socket (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */
9450 # include <limits.h>
9452 # include <assert.h>
9457 /* Override any gcc2 internal prototype to avoid an error. */
9462 /* We use char because int might match the return type of a gcc2
9463 builtin and then its argument prototype would still apply. */
9465 /* The GNU C library defines this for functions which it implements
9466 to always fail with ENOSYS. Some functions are actually named
9467 something starting with __ and the normal name is an alias. */
9468 #if defined (__stub_socket) || defined (__stub___socket)
9471 char (*f) () = socket;
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>conftest.er1
9489 grep -v '^ *+' conftest.er1 >conftest.err
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } &&
9494 { ac_try='test -z "$ac_c_werror_flag"
9495 || test ! -s conftest.err'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; } &&
9501 { ac_try='test -s conftest$ac_exeext'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_func_socket=yes
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9512 ac_cv_func_socket=no
9514 rm -f conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9517 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9518 echo "${ECHO_T}$ac_cv_func_socket" >&6
9519 if test $ac_cv_func_socket = yes; then
9520 echo "$as_me:$LINENO: result: using libc's socket" >&5
9521 echo "${ECHO_T}using libc's socket" >&6
9524 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9525 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9526 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 ac_check_lib_save_LIBS=$LIBS
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9538 /* Override any gcc2 internal prototype to avoid an error. */
9542 /* We use char because int might match the return type of a gcc2
9543 builtin and then its argument prototype would still apply. */
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>conftest.er1
9557 grep -v '^ *+' conftest.er1 >conftest.err
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -z "$ac_c_werror_flag"
9563 || test ! -s conftest.err'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_lib_xnet_socket=yes
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ac_cv_lib_xnet_socket=no
9582 rm -f conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 LIBS=$ac_check_lib_save_LIBS
9586 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9587 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9588 if test $ac_cv_lib_xnet_socket = yes; then
9589 cat >>confdefs.h <<_ACEOF
9590 #define HAVE_LIBXNET 1
9598 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9599 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9600 if test "${ac_cv_lib_socket_socket+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_check_lib_save_LIBS=$LIBS
9604 LIBS="-lsocket $LIBS"
9605 cat >conftest.$ac_ext <<_ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9612 /* Override any gcc2 internal prototype to avoid an error. */
9616 /* We use char because int might match the return type of a gcc2
9617 builtin and then its argument prototype would still apply. */
9627 rm -f conftest.$ac_objext conftest$ac_exeext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629 (eval $ac_link) 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -z "$ac_c_werror_flag"
9637 || test ! -s conftest.err'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; } &&
9643 { ac_try='test -s conftest$ac_exeext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 ac_cv_lib_socket_socket=yes
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9654 ac_cv_lib_socket_socket=no
9656 rm -f conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658 LIBS=$ac_check_lib_save_LIBS
9660 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9661 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9662 if test $ac_cv_lib_socket_socket = yes; then
9663 cat >>confdefs.h <<_ACEOF
9664 #define HAVE_LIBSOCKET 1
9667 LIBS="-lsocket $LIBS"
9672 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9673 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9674 if test "${ac_cv_lib_inet_socket+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 ac_check_lib_save_LIBS=$LIBS
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 /* Override any gcc2 internal prototype to avoid an error. */
9690 /* We use char because int might match the return type of a gcc2
9691 builtin and then its argument prototype would still apply. */
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>conftest.er1
9705 grep -v '^ *+' conftest.er1 >conftest.err
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_lib_inet_socket=yes
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_cv_lib_inet_socket=no
9730 rm -f conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732 LIBS=$ac_check_lib_save_LIBS
9734 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9735 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9736 if test $ac_cv_lib_inet_socket = yes; then
9737 cat >>confdefs.h <<_ACEOF
9738 #define HAVE_LIBINET 1
9749 # -----------------------------------------------------------
9750 # Check whether user wants TCP wrappers support (default off)
9751 # -----------------------------------------------------------
9754 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9755 if test "${with_tcp_wrappers+set}" = set; then
9756 withval="$with_tcp_wrappers"
9758 if test "x$withval" != "xno" ; then
9760 LIBS="$saved_LIBS -lwrap"
9761 echo "$as_me:$LINENO: checking for libwrap" >&5
9762 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9770 int deny_severity = 0;
9771 int allow_severity = 0;
9772 struct request_info *req;
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>conftest.er1
9785 grep -v '^ *+' conftest.er1 >conftest.err
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_c_werror_flag"
9791 || test ! -s conftest.err'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9804 echo "$as_me:$LINENO: result: yes" >&5
9805 echo "${ECHO_T}yes" >&6
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_LIBWRAP 1
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9817 LIBS="$saved_LIBS -lwrap -lnsl"
9818 cat >conftest.$ac_ext <<_ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9825 int deny_severity = 0;
9826 int allow_severity = 0;
9827 struct request_info *req;
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838 (eval $ac_link) 2>conftest.er1
9840 grep -v '^ *+' conftest.er1 >conftest.err
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -z "$ac_c_werror_flag"
9846 || test ! -s conftest.err'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; } &&
9852 { ac_try='test -s conftest$ac_exeext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9859 echo "$as_me:$LINENO: result: yes" >&5
9860 echo "${ECHO_T}yes" >&6
9861 cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_LIBWRAP 1
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9872 echo "$as_me: error: *** libwrap missing" >&2;}
9873 { (exit 1); exit 1; }; }
9876 rm -f conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9880 rm -f conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9887 # -----------------------------------------------------------
9888 # Check whether OpenSSL is available
9889 # -----------------------------------------------------------
9890 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9891 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9893 # Check whether --with-openssl or --without-openssl was given.
9894 if test "${with_openssl+set}" = set; then
9895 withval="$with_openssl"
9896 with_openssl_directory=${withval}
9899 if test "x$with_openssl_directory" != "x"; then
9900 OPENSSL_LIBS="-lssl -lcrypto"
9903 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
9904 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
9905 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
9909 saved_CFLAGS="$CFLAGS"
9910 LIBS="$saved_LIBS $OPENSSL_LIBS"
9911 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
9913 cat >conftest.$ac_ext <<_ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9919 #include <openssl/ssl.h>
9923 CRYPTO_set_id_callback(NULL);
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930 (eval $ac_link) 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -z "$ac_c_werror_flag"
9938 || test ! -s conftest.err'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; } &&
9944 { ac_try='test -s conftest$ac_exeext'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9958 rm -f conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9962 CFLAGS="$saved_CFLAGS"
9964 if test "$support_tls" = "yes"; then
9966 cat >>confdefs.h <<\_ACEOF
9967 #define HAVE_OPENSSL 1
9971 cat >>confdefs.h <<\_ACEOF
9982 echo "$as_me:$LINENO: result: $support_tls" >&5
9983 echo "${ECHO_T}$support_tls" >&6
9988 # -----------------------------------------------------------
9989 # Python and OpenSSL are using dlopen
9990 # -----------------------------------------------------------
9992 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
9993 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9994 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
9995 if test "${ac_cv_search_dlopen+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 ac_func_search_save_LIBS=$LIBS
9999 ac_cv_search_dlopen=no
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10007 /* Override any gcc2 internal prototype to avoid an error. */
10011 /* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -z "$ac_c_werror_flag"
10032 || test ! -s conftest.err'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 ac_cv_search_dlopen="none required"
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10050 rm -f conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 if test "$ac_cv_search_dlopen" = no; then
10053 for ac_lib in dl; do
10054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10055 cat >conftest.$ac_ext <<_ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10062 /* Override any gcc2 internal prototype to avoid an error. */
10066 /* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>conftest.er1
10081 grep -v '^ *+' conftest.er1 >conftest.err
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag"
10087 || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest$ac_exeext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 ac_cv_search_dlopen="-l$ac_lib"
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10106 rm -f conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10110 LIBS=$ac_func_search_save_LIBS
10112 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10113 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10114 if test "$ac_cv_search_dlopen" != no; then
10115 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10121 # ------------------------------------------
10122 # Where to place working dir
10123 # ------------------------------------------
10124 working_dir=`eval echo ${prefix}/var/bacula/working`
10126 # Check whether --with-working-dir or --without-working-dir was given.
10127 if test "${with_working_dir+set}" = set; then
10128 withval="$with_working_dir"
10130 if test "x$withval" != "xno" ; then
10131 working_dir=$withval
10140 # ------------------------------------------
10141 # Where to place scriptdir (script files)
10142 # ------------------------------------------
10143 scriptdir=`eval echo ${sysconfdir}`
10145 # Check whether --with-scriptdir or --without-scriptdir was given.
10146 if test "${with_scriptdir+set}" = set; then
10147 withval="$with_scriptdir"
10149 if test "x$withval" != "xno" ; then
10159 # ------------------------------------------
10160 # Where to send dump email
10161 # ------------------------------------------
10162 dump_email=root@localhost
10164 # Check whether --with-dump-email or --without-dump-email was given.
10165 if test "${with_dump_email+set}" = set; then
10166 withval="$with_dump_email"
10168 if test "x$withval" != "xno" ; then
10169 dump_email=$withval
10177 # ------------------------------------------
10178 # Where to send job email
10179 # ------------------------------------------
10180 job_email=root@localhost
10182 # Check whether --with-job-email or --without-job-email was given.
10183 if test "${with_job_email+set}" = set; then
10184 withval="$with_job_email"
10186 if test "x$withval" != "xno" ; then
10195 # ------------------------------------------
10196 # Where to find smtp host
10197 # ------------------------------------------
10198 smtp_host=localhost
10200 # Check whether --with-smtp_host or --without-smtp_host was given.
10201 if test "${with_smtp_host+set}" = set; then
10202 withval="$with_smtp_host"
10204 if test "x$withval" != "xno" ; then
10214 # ------------------------------------
10215 # Where to place pid files
10216 # ------------------------------------
10219 # Check whether --with-pid-dir or --without-pid-dir was given.
10220 if test "${with_pid_dir+set}" = set; then
10221 withval="$with_pid_dir"
10223 if test "x$withval" != "xno" ; then
10230 cat >>confdefs.h <<_ACEOF
10231 #define _PATH_BACULA_PIDDIR "$piddir"
10237 # ------------------------------------
10238 # Where to place subsys "lock file"
10239 # ------------------------------------
10240 subsysdir=/var/run/subsys
10242 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10243 if test "${with_subsys_dir+set}" = set; then
10244 withval="$with_subsys_dir"
10246 if test "x$withval" != "xno" ; then
10257 # ------------------------------------
10258 # Where to start assigning ports
10259 # ------------------------------------
10262 # Check whether --with-baseport or --without-baseport was given.
10263 if test "${with_baseport+set}" = set; then
10264 withval="$with_baseport"
10266 if test "x$withval" != "xno" ; then
10274 dir_port=`expr $baseport`
10275 fd_port=`expr $baseport + 1`
10276 sd_port=`expr $fd_port + 1`
10283 # ------------------------------------------
10284 # Generate passwords
10285 # ------------------------------------------
10288 # Check whether --with-dir-password or --without-dir-password was given.
10289 if test "${with_dir_password+set}" = set; then
10290 withval="$with_dir_password"
10292 if test "x$withval" != "xno" ; then
10293 dir_password=$withval
10299 if test "x$dir_password" = "x" ; then
10300 if test "x$OPENSSL" = "xnone" ; then
10301 key=`autoconf/randpass 33`
10303 key=`openssl rand -base64 33`
10310 # Check whether --with-fd-password or --without-fd-password was given.
10311 if test "${with_fd_password+set}" = set; then
10312 withval="$with_fd_password"
10314 if test "x$withval" != "xno" ; then
10315 fd_password=$withval
10321 if test "x$fd_password" = "x" ; then
10322 if test "x$OPENSSL" = "xnone" ; then
10323 key=`autoconf/randpass 37`
10325 key=`openssl rand -base64 33`
10332 # Check whether --with-sd-password or --without-sd-password was given.
10333 if test "${with_sd_password+set}" = set; then
10334 withval="$with_sd_password"
10336 if test "x$withval" != "xno" ; then
10337 sd_password=$withval
10343 if test "x$sd_password" = "x" ; then
10344 if test "x$OPENSSL" = "xnone" ; then
10345 key=`autoconf/randpass 41`
10347 key=`openssl rand -base64 33`
10354 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10355 if test "${with_mon_dir_password+set}" = set; then
10356 withval="$with_mon_dir_password"
10358 if test "x$withval" != "xno" ; then
10359 mon_dir_password=$withval
10365 if test "x$mon_dir_password" = "x" ; then
10366 if test "x$OPENSSL" = "xnone" ; then
10367 key=`autoconf/randpass 33`
10369 key=`openssl rand -base64 33`
10371 mon_dir_password=$key
10376 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10377 if test "${with_mon_fd_password+set}" = set; then
10378 withval="$with_mon_fd_password"
10380 if test "x$withval" != "xno" ; then
10381 mon_fd_password=$withval
10387 if test "x$mon_fd_password" = "x" ; then
10388 if test "x$OPENSSL" = "xnone" ; then
10389 key=`autoconf/randpass 37`
10391 key=`openssl rand -base64 33`
10393 mon_fd_password=$key
10398 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10399 if test "${with_mon_sd_password+set}" = set; then
10400 withval="$with_mon_sd_password"
10402 if test "x$withval" != "xno" ; then
10403 mon_sd_password=$withval
10409 if test "x$mon_sd_password" = "x" ; then
10410 if test "x$OPENSSL" = "xnone" ; then
10411 key=`autoconf/randpass 41`
10413 key=`openssl rand -base64 33`
10415 mon_sd_password=$key
10427 # Handle users and groups for each daemon
10431 # Check whether --with-dir_user or --without-dir_user was given.
10432 if test "${with_dir_user+set}" = set; then
10433 withval="$with_dir_user"
10435 if test "x$withval" != "x" ; then
10444 # Check whether --with-dir_group or --without-dir_group was given.
10445 if test "${with_dir_group+set}" = set; then
10446 withval="$with_dir_group"
10448 if test "x$withval" != "x" ; then
10457 # Check whether --with-sd_user or --without-sd_user was given.
10458 if test "${with_sd_user+set}" = set; then
10459 withval="$with_sd_user"
10461 if test "x$withval" != "x" ; then
10470 # Check whether --with-sd_group or --without-sd_group was given.
10471 if test "${with_sd_group+set}" = set; then
10472 withval="$with_sd_group"
10474 if test "x$withval" != "x" ; then
10483 # Check whether --with-fd_user or --without-fd_user was given.
10484 if test "${with_fd_user+set}" = set; then
10485 withval="$with_fd_user"
10487 if test "x$withval" != "x" ; then
10496 # Check whether --with-fd_group or --without-fd_group was given.
10497 if test "${with_fd_group+set}" = set; then
10498 withval="$with_fd_group"
10500 if test "x$withval" != "x" ; then
10518 # allow setting default executable permissions
10522 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10523 if test "${with_sbin_perm+set}" = set; then
10524 withval="$with_sbin_perm"
10526 if test "x$withval" != "x" ; then
10535 # ------------------------------------------------
10536 # Bacula check for various SQL database engines
10537 # ------------------------------------------------
10540 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10541 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10543 # Check whether --with-postgresql or --without-postgresql was given.
10544 if test "${with_postgresql+set}" = set; then
10545 withval="$with_postgresql"
10547 if test "$withval" != "no"; then
10548 if test "$db_found" = "yes"; then
10549 echo "$as_me:$LINENO: result: error" >&5
10550 echo "${ECHO_T}error" >&6
10551 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10552 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10553 { (exit 1); exit 1; }; };
10555 if test "$withval" = "yes"; then
10556 if test -f /usr/local/include/libpq-fe.h; then
10557 POSTGRESQL_INCDIR=/usr/local/include
10558 POSTGRESQL_LIBDIR=/usr/local/lib
10559 POSTGRESQL_BINDIR=/usr/local/bin
10560 elif test -f /usr/include/libpq-fe.h; then
10561 POSTGRESQL_INCDIR=/usr/include
10562 POSTGRESQL_LIBDIR=/usr/lib
10563 POSTGRESQL_BINDIR=/usr/bin
10564 elif test -f /usr/include/pgsql/libpq-fe.h; then
10565 POSTGRESQL_INCDIR=/usr/include/pgsql
10566 POSTGRESQL_LIBDIR=/usr/lib/pgsql
10567 POSTGRESQL_BINDIR=/usr/bin
10568 elif test -f /usr/include/postgresql/libpq-fe.h; then
10569 POSTGRESQL_INCDIR=/usr/include/postgresql
10570 POSTGRESQL_LIBDIR=/usr/lib/postgresql
10571 POSTGRESQL_BINDIR=/usr/bin
10573 echo "$as_me:$LINENO: result: no" >&5
10574 echo "${ECHO_T}no" >&6
10575 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10576 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10577 { (exit 1); exit 1; }; }
10579 elif test -f $withval/include/libpq-fe.h; then
10580 POSTGRESQL_INCDIR=$withval/include
10581 POSTGRESQL_LIBDIR=$withval/lib
10582 POSTGRESQL_BINDIR=$withval/bin
10583 elif test -f $withval/include/postgresql/libpq-fe.h; then
10584 POSTGRESQL_INCDIR=$withval/include/postgresql
10585 POSTGRESQL_LIBDIR=$withval/lib
10586 POSTGRESQL_BINDIR=$withval/bin
10588 echo "$as_me:$LINENO: result: no" >&5
10589 echo "${ECHO_T}no" >&6
10590 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10591 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10592 { (exit 1); exit 1; }; }
10594 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10595 echo "$as_me:$LINENO: checking for crypt" >&5
10596 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10597 if test "${ac_cv_func_crypt+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 cat >conftest.$ac_ext <<_ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10608 #define crypt innocuous_crypt
10610 /* System header to define __stub macros and hopefully few prototypes,
10611 which can conflict with char crypt (); below.
10612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613 <limits.h> exists even on freestanding compilers. */
10616 # include <limits.h>
10618 # include <assert.h>
10623 /* Override any gcc2 internal prototype to avoid an error. */
10628 /* We use char because int might match the return type of a gcc2
10629 builtin and then its argument prototype would still apply. */
10631 /* The GNU C library defines this for functions which it implements
10632 to always fail with ENOSYS. Some functions are actually named
10633 something starting with __ and the normal name is an alias. */
10634 #if defined (__stub_crypt) || defined (__stub___crypt)
10637 char (*f) () = crypt;
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653 (eval $ac_link) 2>conftest.er1
10655 grep -v '^ *+' conftest.er1 >conftest.err
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -z "$ac_c_werror_flag"
10661 || test ! -s conftest.err'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; } &&
10667 { ac_try='test -s conftest$ac_exeext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_func_crypt=yes
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 ac_cv_func_crypt=no
10680 rm -f conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10684 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10685 if test $ac_cv_func_crypt = yes; then
10688 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10689 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10690 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 ac_check_lib_save_LIBS=$LIBS
10694 LIBS="-lcrypt $LIBS"
10695 cat >conftest.$ac_ext <<_ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10702 /* Override any gcc2 internal prototype to avoid an error. */
10706 /* We use char because int might match the return type of a gcc2
10707 builtin and then its argument prototype would still apply. */
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10719 (eval $ac_link) 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag"
10727 || test ! -s conftest.err'
10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; } &&
10733 { ac_try='test -s conftest$ac_exeext'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 ac_cv_lib_crypt_crypt=yes
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ac_cv_lib_crypt_crypt=no
10746 rm -f conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10750 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10751 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10752 if test $ac_cv_lib_crypt_crypt = yes; then
10753 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10758 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10759 SQL_LFLAGS=$POSTGRESQL_LFLAGS
10760 SQL_BINDIR=$POSTGRESQL_BINDIR
10761 cat >>confdefs.h <<\_ACEOF
10762 #define HAVE_POSTGRESQL 1
10765 echo "$as_me:$LINENO: result: yes" >&5
10766 echo "${ECHO_T}yes" >&6
10768 support_postgresql=yes
10772 echo "$as_me:$LINENO: result: no" >&5
10773 echo "${ECHO_T}no" >&6
10778 echo "$as_me:$LINENO: result: no" >&5
10779 echo "${ECHO_T}no" >&6
10790 echo "$as_me:$LINENO: checking for MySQL support" >&5
10791 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10793 # Check whether --with-mysql or --without-mysql was given.
10794 if test "${with_mysql+set}" = set; then
10795 withval="$with_mysql"
10797 if test "$withval" != "no"; then
10798 if test "$withval" = "yes"; then
10799 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10800 MYSQL_INCDIR=/usr/local/mysql/include/mysql
10801 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10802 MYSQL_BINDIR=/usr/local/mysql/bin
10803 elif test -f /usr/include/mysql/mysql.h; then
10804 MYSQL_INCDIR=/usr/include/mysql
10805 MYSQL_LIBDIR=/usr/lib/mysql
10806 MYSQL_BINDIR=/usr/bin
10807 elif test -f /usr/include/mysql.h; then
10808 MYSQL_INCDIR=/usr/include
10809 MYSQL_LIBDIR=/usr/lib
10810 MYSQL_BINDIR=/usr/bin
10811 elif test -f /usr/local/include/mysql/mysql.h; then
10812 MYSQL_INCDIR=/usr/local/include/mysql
10813 MYSQL_LIBDIR=/usr/local/lib/mysql
10814 MYSQL_BINDIR=/usr/local/bin
10815 elif test -f /usr/local/include/mysql.h; then
10816 MYSQL_INCDIR=/usr/local/include
10817 MYSQL_LIBDIR=/usr/local/lib
10818 MYSQL_BINDIR=/usr/local/bin
10820 echo "$as_me:$LINENO: result: no" >&5
10821 echo "${ECHO_T}no" >&6
10822 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10823 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10824 { (exit 1); exit 1; }; }
10827 if test -f $withval/include/mysql/mysql.h; then
10828 MYSQL_INCDIR=$withval/include/mysql
10829 MYSQL_LIBDIR=$withval/lib/mysql
10830 MYSQL_BINDIR=$withval/bin
10831 elif test -f $withval/include/mysql.h; then
10832 MYSQL_INCDIR=$withval/include
10833 MYSQL_LIBDIR=$withval/lib
10834 MYSQL_BINDIR=$withval/bin
10836 echo "$as_me:$LINENO: result: no" >&5
10837 echo "${ECHO_T}no" >&6
10838 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10839 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10840 { (exit 1); exit 1; }; }
10843 SQL_INCLUDE=-I$MYSQL_INCDIR
10844 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
10845 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
10846 cat >>confdefs.h <<\_ACEOF
10847 #define HAVE_THREAD_SAFE_MYSQL 1
10851 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
10853 SQL_BINDIR=$MYSQL_BINDIR
10855 cat >>confdefs.h <<\_ACEOF
10856 #define HAVE_MYSQL 1
10859 echo "$as_me:$LINENO: result: yes" >&5
10860 echo "${ECHO_T}yes" >&6
10867 echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6
10875 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
10876 if test "${with_embedded_mysql+set}" = set; then
10877 withval="$with_embedded_mysql"
10879 if test "$withval" != "no"; then
10880 if test "$withval" = "yes"; then
10881 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10882 MYSQL_INCDIR=/usr/local/mysql/include/mysql
10883 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10884 MYSQL_BINDIR=/usr/local/mysql/bin
10885 elif test -f /usr/include/mysql/mysql.h; then
10886 MYSQL_INCDIR=/usr/include/mysql
10887 MYSQL_LIBDIR=/usr/lib/mysql
10888 MYSQL_BINDIR=/usr/bin
10889 elif test -f /usr/include/mysql.h; then
10890 MYSQL_INCDIR=/usr/include
10891 MYSQL_LIBDIR=/usr/lib
10892 MYSQL_BINDIR=/usr/bin
10893 elif test -f /usr/local/include/mysql/mysql.h; then
10894 MYSQL_INCDIR=/usr/local/include/mysql
10895 MYSQL_LIBDIR=/usr/local/lib/mysql
10896 MYSQL_BINDIR=/usr/local/bin
10897 elif test -f /usr/local/include/mysql.h; then
10898 MYSQL_INCDIR=/usr/local/include
10899 MYSQL_LIBDIR=/usr/local/lib
10900 MYSQL_BINDIR=/usr/local/bin
10902 echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10904 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10905 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10906 { (exit 1); exit 1; }; }
10909 if test -f $withval/include/mysql/mysql.h; then
10910 MYSQL_INCDIR=$withval/include/mysql
10911 MYSQL_LIBDIR=$withval/lib/mysql
10912 MYSQL_BINDIR=$withval/bin
10913 elif test -f $withval/include/mysql.h; then
10914 MYSQL_INCDIR=$withval/include
10915 MYSQL_LIBDIR=$withval/lib
10916 MYSQL_BINDIR=$withval/bin
10918 echo "$as_me:$LINENO: result: no" >&5
10919 echo "${ECHO_T}no" >&6
10920 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10921 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10922 { (exit 1); exit 1; }; }
10925 SQL_INCLUDE=-I$MYSQL_INCDIR
10926 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
10927 SQL_BINDIR=$MYSQL_BINDIR
10929 cat >>confdefs.h <<\_ACEOF
10930 #define HAVE_MYSQL 1
10933 cat >>confdefs.h <<\_ACEOF
10934 #define HAVE_EMBEDDED_MYSQL 1
10937 echo "$as_me:$LINENO: result: yes" >&5
10938 echo "${ECHO_T}yes" >&6
10945 echo "$as_me:$LINENO: result: no" >&5
10946 echo "${ECHO_T}no" >&6
10961 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
10962 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
10964 # Check whether --with-sqlite3 or --without-sqlite3 was given.
10965 if test "${with_sqlite3+set}" = set; then
10966 withval="$with_sqlite3"
10968 if test "$withval" != "no"; then
10969 if test "$withval" = "yes"; then
10970 if test -f /usr/local/include/sqlite3.h; then
10971 SQLITE_INCDIR=/usr/local/include
10972 SQLITE_LIBDIR=/usr/local/lib
10973 SQLITE_BINDIR=/usr/local/bin
10974 elif test -f /usr/include/sqlite3.h; then
10975 SQLITE_INCDIR=/usr/include
10976 SQLITE_LIBDIR=/usr/lib
10977 SQLITE_BINDIR=/usr/bin
10978 elif test -f $prefix/include/sqlite3.h; then
10979 SQLITE_INCDIR=$prefix/include
10980 SQLITE_LIBDIR=$prefix/lib
10981 SQLITE_BINDIR=$prefix/bin
10983 echo "$as_me:$LINENO: result: no" >&5
10984 echo "${ECHO_T}no" >&6
10985 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
10986 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
10987 { (exit 1); exit 1; }; }
10990 if test -f $withval/sqlite3.h; then
10991 SQLITE_INCDIR=$withval
10992 SQLITE_LIBDIR=$withval
10993 SQLITE_BINDIR=$withval
10994 elif test -f $withval/include/sqlite3.h; then
10995 SQLITE_INCDIR=$withval/include
10996 SQLITE_LIBDIR=$withval/lib
10997 SQLITE_BINDIR=$withval/bin
10999 echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6
11001 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11002 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11003 { (exit 1); exit 1; }; }
11006 SQL_INCLUDE=-I$SQLITE_INCDIR
11007 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11008 SQL_BINDIR=$SQLITE_BINDIR
11010 cat >>confdefs.h <<\_ACEOF
11011 #define HAVE_SQLITE3 1
11014 echo "$as_me:$LINENO: result: yes" >&5
11015 echo "${ECHO_T}yes" >&6
11017 support_sqlite3=yes
11022 echo "$as_me:$LINENO: result: no" >&5
11023 echo "${ECHO_T}no" >&6
11028 echo "$as_me:$LINENO: result: no" >&5
11029 echo "${ECHO_T}no" >&6
11040 echo "$as_me:$LINENO: checking for SQLite support" >&5
11041 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11043 # Check whether --with-sqlite or --without-sqlite was given.
11044 if test "${with_sqlite+set}" = set; then
11045 withval="$with_sqlite"
11047 if test "$withval" != "no"; then
11048 if test "$withval" = "yes"; then
11049 if test -f /usr/local/include/sqlite.h; then
11050 SQLITE_INCDIR=/usr/local/include
11051 SQLITE_LIBDIR=/usr/local/lib
11052 SQLITE_BINDIR=/usr/local/bin
11053 elif test -f /usr/include/sqlite.h; then
11054 SQLITE_INCDIR=/usr/include
11055 SQLITE_LIBDIR=/usr/lib
11056 SQLITE_BINDIR=/usr/bin
11057 elif test -f $prefix/include/sqlite.h; then
11058 SQLITE_INCDIR=$prefix/include
11059 SQLITE_LIBDIR=$prefix/lib
11060 SQLITE_BINDIR=$prefix/bin
11062 echo "$as_me:$LINENO: result: no" >&5
11063 echo "${ECHO_T}no" >&6
11064 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11065 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11066 { (exit 1); exit 1; }; }
11069 if test -f $withval/sqlite.h; then
11070 SQLITE_INCDIR=$withval
11071 SQLITE_LIBDIR=$withval
11072 SQLITE_BINDIR=$withval
11073 elif test -f $withval/include/sqlite.h; then
11074 SQLITE_INCDIR=$withval/include
11075 SQLITE_LIBDIR=$withval/lib
11076 SQLITE_BINDIR=$withval/bin
11078 echo "$as_me:$LINENO: result: no" >&5
11079 echo "${ECHO_T}no" >&6
11080 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11081 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11082 { (exit 1); exit 1; }; }
11085 SQL_INCLUDE=-I$SQLITE_INCDIR
11086 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11087 SQL_BINDIR=$SQLITE_BINDIR
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_SQLITE 1
11093 echo "$as_me:$LINENO: result: yes" >&5
11094 echo "${ECHO_T}yes" >&6
11101 echo "$as_me:$LINENO: result: no" >&5
11102 echo "${ECHO_T}no" >&6
11107 echo "$as_me:$LINENO: result: no" >&5
11108 echo "${ECHO_T}no" >&6
11120 cat >>confdefs.h <<\_ACEOF
11121 #define PROTOTYPES 1
11125 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11126 if test -z "$CCOPTS"; then
11127 CCOPTS='-g -O2 -Wall'
11135 largefile_support="no"
11137 # Check whether --enable-largefile or --disable-largefile was given.
11138 if test "${enable_largefile+set}" = set; then
11139 enableval="$enable_largefile"
11142 if test "$enable_largefile" != no; then
11143 if test -n "$ac_tool_prefix"; then
11144 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11145 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11146 echo "$as_me:$LINENO: checking for $ac_word" >&5
11147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11148 if test "${ac_cv_prog_GETCONF+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 if test -n "$GETCONF"; then
11152 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11170 GETCONF=$ac_cv_prog_GETCONF
11171 if test -n "$GETCONF"; then
11172 echo "$as_me:$LINENO: result: $GETCONF" >&5
11173 echo "${ECHO_T}$GETCONF" >&6
11175 echo "$as_me:$LINENO: result: no" >&5
11176 echo "${ECHO_T}no" >&6
11180 if test -z "$ac_cv_prog_GETCONF"; then
11181 ac_ct_GETCONF=$GETCONF
11182 # Extract the first word of "getconf", so it can be a program name with args.
11183 set dummy getconf; ac_word=$2
11184 echo "$as_me:$LINENO: checking for $ac_word" >&5
11185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11186 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 if test -n "$ac_ct_GETCONF"; then
11190 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11199 ac_cv_prog_ac_ct_GETCONF="getconf"
11200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11209 if test -n "$ac_ct_GETCONF"; then
11210 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11211 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11213 echo "$as_me:$LINENO: result: no" >&5
11214 echo "${ECHO_T}no" >&6
11217 GETCONF=$ac_ct_GETCONF
11219 GETCONF="$ac_cv_prog_GETCONF"
11222 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11223 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11224 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11228 ac_cv_sys_largefile_CFLAGS=no
11230 # IRIX 6.2 and later require cc -n32.
11231 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11232 if test "$GCC" != yes; then
11233 ac_cv_sys_largefile_CFLAGS=-n32
11236 CC="$CC $ac_cv_sys_largefile_CFLAGS"
11237 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254 (eval $ac_link) 2>conftest.er1
11256 grep -v '^ *+' conftest.er1 >conftest.err
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } &&
11261 { ac_try='test -z "$ac_c_werror_flag"
11262 || test ! -s conftest.err'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; } &&
11268 { ac_try='test -s conftest$ac_exeext'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }; then
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 ac_cv_sys_largefile_CFLAGS=no
11281 rm -f conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11287 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11288 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11289 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11290 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11291 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11295 ac_cv_sys_largefile_LDFLAGS=no
11299 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11300 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11301 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11302 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11303 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11307 ac_cv_sys_largefile_LIBS=no
11311 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11312 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11314 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11317 -D_FILE_OFFSET_BITS=*) ;;
11318 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11319 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11324 case "$CPPFLAGS" in
11325 '') CPPFLAGS="$ac_flag" ;;
11326 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11334 '') CFLAGS="$ac_flag" ;;
11335 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11340 case "$ac_cv_sys_largefile_LDFLAGS" in
11344 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11345 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11348 case "$ac_cv_sys_largefile_LIBS" in
11352 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11353 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11356 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11357 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11358 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 ac_cv_sys_file_offset_bits=no
11362 ac_cv_sys_file_offset_bits=64
11363 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11365 -D_FILE_OFFSET_BITS)
11366 ac_cv_sys_file_offset_bits=1 ;;
11367 -D_FILE_OFFSET_BITS=*)
11368 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11373 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11374 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11375 if test "$ac_cv_sys_file_offset_bits" != no; then
11377 cat >>confdefs.h <<_ACEOF
11378 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11382 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11383 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11384 if test "${ac_cv_sys_largefile_source+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 ac_cv_sys_largefile_source=no
11388 ac_cv_sys_largefile_source=1
11389 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11391 -D_LARGEFILE_SOURCE)
11392 ac_cv_sys_largefile_source=1 ;;
11393 -D_LARGEFILE_SOURCE=*)
11394 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11399 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11400 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11401 if test "$ac_cv_sys_largefile_source" != no; then
11403 cat >>confdefs.h <<_ACEOF
11404 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11408 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11409 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11410 if test "${ac_cv_sys_large_files+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 ac_cv_sys_large_files=no
11414 ac_cv_sys_large_files=1
11415 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11418 ac_cv_sys_large_files=1 ;;
11420 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11425 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11426 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11427 if test "$ac_cv_sys_large_files" != no; then
11429 cat >>confdefs.h <<_ACEOF
11430 #define _LARGE_FILES $ac_cv_sys_large_files
11438 echo "$as_me:$LINENO: checking for X" >&5
11439 echo $ECHO_N "checking for X... $ECHO_C" >&6
11442 # Check whether --with-x or --without-x was given.
11443 if test "${with_x+set}" = set; then
11447 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11448 if test "x$with_x" = xno; then
11449 # The user explicitly disabled X.
11452 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11453 # Both variables are already set.
11456 if test "${ac_cv_have_x+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 # One or both of the vars are not set, and there is no cached value.
11460 ac_x_includes=no ac_x_libraries=no
11461 rm -fr conftest.dir
11462 if mkdir conftest.dir; then
11464 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11465 cat >Imakefile <<'_ACEOF'
11467 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11469 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11470 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11471 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11472 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11473 for ac_extension in a so sl; do
11474 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11475 test -f $ac_im_libdir/libX11.$ac_extension; then
11476 ac_im_usrlibdir=$ac_im_libdir; break
11479 # Screen out bogus values from the imake configuration. They are
11480 # bogus both because they are the default anyway, and because
11481 # using them would break gcc on systems where it needs fixed includes.
11482 case $ac_im_incroot in
11484 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11486 case $ac_im_usrlibdir in
11487 /usr/lib | /lib) ;;
11488 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11492 rm -fr conftest.dir
11495 # Standard set of common directories for X headers.
11496 # Check X11 before X11Rn because it is often a symlink to the current release.
11508 /usr/local/X11/include
11509 /usr/local/X11R6/include
11510 /usr/local/X11R5/include
11511 /usr/local/X11R4/include
11513 /usr/local/include/X11
11514 /usr/local/include/X11R6
11515 /usr/local/include/X11R5
11516 /usr/local/include/X11R4
11520 /usr/XFree86/include/X11
11524 /usr/unsupported/include
11525 /usr/athena/include
11526 /usr/local/x11r5/include
11527 /usr/lpp/Xamples/include
11529 /usr/openwin/include
11530 /usr/openwin/share/include'
11532 if test "$ac_x_includes" = no; then
11533 # Guess where to find include files, by looking for Intrinsic.h.
11534 # First, try using that file with no special directory specified.
11535 cat >conftest.$ac_ext <<_ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541 #include <X11/Intrinsic.h>
11543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11546 grep -v '^ *+' conftest.er1 >conftest.err
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } >/dev/null; then
11551 if test -s conftest.err; then
11552 ac_cpp_err=$ac_c_preproc_warn_flag
11553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560 if test -z "$ac_cpp_err"; then
11561 # We can compile using X headers with no special include directory.
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11567 for ac_dir in $ac_x_header_dirs; do
11568 if test -r "$ac_dir/X11/Intrinsic.h"; then
11569 ac_x_includes=$ac_dir
11574 rm -f conftest.err conftest.$ac_ext
11575 fi # $ac_x_includes = no
11577 if test "$ac_x_libraries" = no; then
11578 # Check for the libraries.
11579 # See if we find them without any special options.
11580 # Don't add to $LIBS permanently.
11583 cat >conftest.$ac_ext <<_ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11589 #include <X11/Intrinsic.h>
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>conftest.er1
11602 grep -v '^ *+' conftest.er1 >conftest.err
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_c_werror_flag"
11608 || test ! -s conftest.err'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest$ac_exeext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11621 # We can link X programs with no special library path.
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11628 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11630 # Don't even attempt the hair of trying to link an X program!
11631 for ac_extension in a so sl; do
11632 if test -r $ac_dir/libXt.$ac_extension; then
11633 ac_x_libraries=$ac_dir
11639 rm -f conftest.err conftest.$ac_objext \
11640 conftest$ac_exeext conftest.$ac_ext
11641 fi # $ac_x_libraries = no
11643 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11644 # Didn't find X anywhere. Cache the known absence of X.
11645 ac_cv_have_x="have_x=no"
11647 # Record where we found X for the cache.
11648 ac_cv_have_x="have_x=yes \
11649 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11654 eval "$ac_cv_have_x"
11657 if test "$have_x" != yes; then
11658 echo "$as_me:$LINENO: result: $have_x" >&5
11659 echo "${ECHO_T}$have_x" >&6
11662 # If each of the values was on the command line, it overrides each guess.
11663 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11664 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11665 # Update the cache value to reflect the command line values.
11666 ac_cv_have_x="have_x=yes \
11667 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11668 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11669 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11672 if test "$no_x" = yes; then
11673 # Not all programs may use this symbol, but it does not hurt to define it.
11675 cat >>confdefs.h <<\_ACEOF
11676 #define X_DISPLAY_MISSING 1
11679 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11681 if test -n "$x_includes"; then
11682 X_CFLAGS="$X_CFLAGS -I$x_includes"
11685 # It would also be nice to do this for all -L options, not just this one.
11686 if test -n "$x_libraries"; then
11687 X_LIBS="$X_LIBS -L$x_libraries"
11688 # For Solaris; some versions of Sun CC require a space after -R and
11689 # others require no space. Words are not sufficient . . . .
11690 case `(uname -sr) 2>/dev/null` in
11692 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11693 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11694 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712 (eval $ac_link) 2>conftest.er1
11714 grep -v '^ *+' conftest.er1 >conftest.err
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag"
11720 || test ! -s conftest.err'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; } &&
11726 { ac_try='test -s conftest$ac_exeext'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11739 rm -f conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
11741 if test $ac_R_nospace = yes; then
11742 echo "$as_me:$LINENO: result: no" >&5
11743 echo "${ECHO_T}no" >&6
11744 X_LIBS="$X_LIBS -R$x_libraries"
11746 LIBS="$ac_xsave_LIBS -R $x_libraries"
11747 cat >conftest.$ac_ext <<_ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764 (eval $ac_link) 2>conftest.er1
11766 grep -v '^ *+' conftest.er1 >conftest.err
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -z "$ac_c_werror_flag"
11772 || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11791 rm -f conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext
11793 if test $ac_R_space = yes; then
11794 echo "$as_me:$LINENO: result: yes" >&5
11795 echo "${ECHO_T}yes" >&6
11796 X_LIBS="$X_LIBS -R $x_libraries"
11798 echo "$as_me:$LINENO: result: neither works" >&5
11799 echo "${ECHO_T}neither works" >&6
11802 LIBS=$ac_xsave_LIBS
11806 # Check for system-dependent libraries X programs must link with.
11807 # Do this before checking for the system-independent R6 libraries
11808 # (-lICE), since we may need -lsocket or whatever for X linking.
11810 if test "$ISC" = yes; then
11811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11813 # Martyn Johnson says this is needed for Ultrix, if the X
11814 # libraries were built with DECnet support. And Karl Berry says
11815 # the Alpha needs dnet_stub (dnet does not exist).
11816 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11824 /* Override any gcc2 internal prototype to avoid an error. */
11828 /* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */
11830 char XOpenDisplay ();
11839 rm -f conftest.$ac_objext conftest$ac_exeext
11840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11841 (eval $ac_link) 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -z "$ac_c_werror_flag"
11849 || test ! -s conftest.err'
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); }; } &&
11855 { ac_try='test -s conftest$ac_exeext'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11867 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11868 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-ldnet $LIBS"
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11880 /* Override any gcc2 internal prototype to avoid an error. */
11884 /* We use char because int might match the return type of a gcc2
11885 builtin and then its argument prototype would still apply. */
11895 rm -f conftest.$ac_objext conftest$ac_exeext
11896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11897 (eval $ac_link) 2>conftest.er1
11899 grep -v '^ *+' conftest.er1 >conftest.err
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } &&
11904 { ac_try='test -z "$ac_c_werror_flag"
11905 || test ! -s conftest.err'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest$ac_exeext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 ac_cv_lib_dnet_dnet_ntoa=yes
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_cv_lib_dnet_dnet_ntoa=no
11924 rm -f conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11928 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11929 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11930 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11931 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11934 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11935 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11936 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11937 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 ac_check_lib_save_LIBS=$LIBS
11941 LIBS="-ldnet_stub $LIBS"
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11949 /* Override any gcc2 internal prototype to avoid an error. */
11953 /* We use char because int might match the return type of a gcc2
11954 builtin and then its argument prototype would still apply. */
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966 (eval $ac_link) 2>conftest.er1
11968 grep -v '^ *+' conftest.er1 >conftest.err
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag"
11974 || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest$ac_exeext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_lib_dnet_stub_dnet_ntoa=yes
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ac_cv_lib_dnet_stub_dnet_ntoa=no
11993 rm -f conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
11995 LIBS=$ac_check_lib_save_LIBS
11997 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
11998 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
11999 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12000 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12005 rm -f conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS="$ac_xsave_LIBS"
12009 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12010 # to get the SysV transport functions.
12011 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12013 # The nsl library prevents programs from opening the X display
12014 # on Irix 5.2, according to T.E. Dickey.
12015 # The functions gethostbyname, getservbyname, and inet_addr are
12016 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12017 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12018 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12019 if test "${ac_cv_func_gethostbyname+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 cat >conftest.$ac_ext <<_ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12030 #define gethostbyname innocuous_gethostbyname
12032 /* System header to define __stub macros and hopefully few prototypes,
12033 which can conflict with char gethostbyname (); below.
12034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035 <limits.h> exists even on freestanding compilers. */
12038 # include <limits.h>
12040 # include <assert.h>
12043 #undef gethostbyname
12045 /* Override any gcc2 internal prototype to avoid an error. */
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12052 char gethostbyname ();
12053 /* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
12056 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12059 char (*f) () = gethostbyname;
12068 return f != gethostbyname;
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_func_gethostbyname=yes
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_cv_func_gethostbyname=no
12102 rm -f conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12105 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12106 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12108 if test $ac_cv_func_gethostbyname = no; then
12109 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12110 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12111 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 ac_check_lib_save_LIBS=$LIBS
12116 cat >conftest.$ac_ext <<_ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12123 /* Override any gcc2 internal prototype to avoid an error. */
12127 /* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
12129 char gethostbyname ();
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140 (eval $ac_link) 2>conftest.er1
12142 grep -v '^ *+' conftest.er1 >conftest.err
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try='test -z "$ac_c_werror_flag"
12148 || test ! -s conftest.err'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; } &&
12154 { ac_try='test -s conftest$ac_exeext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_cv_lib_nsl_gethostbyname=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_cv_lib_nsl_gethostbyname=no
12167 rm -f conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12171 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12172 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12173 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12174 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12177 if test $ac_cv_lib_nsl_gethostbyname = no; then
12178 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12179 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12180 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 ac_check_lib_save_LIBS=$LIBS
12185 cat >conftest.$ac_ext <<_ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12192 /* Override any gcc2 internal prototype to avoid an error. */
12196 /* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12198 char gethostbyname ();
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209 (eval $ac_link) 2>conftest.er1
12211 grep -v '^ *+' conftest.er1 >conftest.err
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
12216 { ac_try='test -z "$ac_c_werror_flag"
12217 || test ! -s conftest.err'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_lib_bsd_gethostbyname=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_cv_lib_bsd_gethostbyname=no
12236 rm -f conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12240 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12241 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12242 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12243 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12249 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12250 # socket/setsockopt and other routines are undefined under SCO ODT
12251 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12252 # on later versions), says Simon Leinen: it contains gethostby*
12253 # variants that don't use the name server (or something). -lsocket
12254 # must be given before -lnsl if both are needed. We assume that
12255 # if connect needs -lnsl, so does gethostbyname.
12256 echo "$as_me:$LINENO: checking for connect" >&5
12257 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12258 if test "${ac_cv_func_connect+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 cat >conftest.$ac_ext <<_ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12267 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12269 #define connect innocuous_connect
12271 /* System header to define __stub macros and hopefully few prototypes,
12272 which can conflict with char connect (); below.
12273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12274 <limits.h> exists even on freestanding compilers. */
12277 # include <limits.h>
12279 # include <assert.h>
12284 /* Override any gcc2 internal prototype to avoid an error. */
12289 /* We use char because int might match the return type of a gcc2
12290 builtin and then its argument prototype would still apply. */
12292 /* The GNU C library defines this for functions which it implements
12293 to always fail with ENOSYS. Some functions are actually named
12294 something starting with __ and the normal name is an alias. */
12295 #if defined (__stub_connect) || defined (__stub___connect)
12298 char (*f) () = connect;
12307 return f != connect;
12312 rm -f conftest.$ac_objext conftest$ac_exeext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12314 (eval $ac_link) 2>conftest.er1
12316 grep -v '^ *+' conftest.er1 >conftest.err
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } &&
12321 { ac_try='test -z "$ac_c_werror_flag"
12322 || test ! -s conftest.err'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest$ac_exeext'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; }; then
12334 ac_cv_func_connect=yes
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12339 ac_cv_func_connect=no
12341 rm -f conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12344 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12345 echo "${ECHO_T}$ac_cv_func_connect" >&6
12347 if test $ac_cv_func_connect = no; then
12348 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12349 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12350 if test "${ac_cv_lib_socket_connect+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 ac_check_lib_save_LIBS=$LIBS
12354 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12355 cat >conftest.$ac_ext <<_ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12362 /* Override any gcc2 internal prototype to avoid an error. */
12366 /* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>conftest.er1
12381 grep -v '^ *+' conftest.er1 >conftest.err
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_lib_socket_connect=yes
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_cv_lib_socket_connect=no
12406 rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12410 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12411 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12412 if test $ac_cv_lib_socket_connect = yes; then
12413 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12418 # Guillermo Gomez says -lposix is necessary on A/UX.
12419 echo "$as_me:$LINENO: checking for remove" >&5
12420 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12421 if test "${ac_cv_func_remove+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12432 #define remove innocuous_remove
12434 /* System header to define __stub macros and hopefully few prototypes,
12435 which can conflict with char remove (); below.
12436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437 <limits.h> exists even on freestanding compilers. */
12440 # include <limits.h>
12442 # include <assert.h>
12447 /* Override any gcc2 internal prototype to avoid an error. */
12452 /* We use char because int might match the return type of a gcc2
12453 builtin and then its argument prototype would still apply. */
12455 /* The GNU C library defines this for functions which it implements
12456 to always fail with ENOSYS. Some functions are actually named
12457 something starting with __ and the normal name is an alias. */
12458 #if defined (__stub_remove) || defined (__stub___remove)
12461 char (*f) () = remove;
12470 return f != remove;
12475 rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>conftest.er1
12479 grep -v '^ *+' conftest.er1 >conftest.err
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try='test -z "$ac_c_werror_flag"
12485 || test ! -s conftest.err'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try='test -s conftest$ac_exeext'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 ac_cv_func_remove=yes
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12502 ac_cv_func_remove=no
12504 rm -f conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12507 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12508 echo "${ECHO_T}$ac_cv_func_remove" >&6
12510 if test $ac_cv_func_remove = no; then
12511 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12512 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12513 if test "${ac_cv_lib_posix_remove+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-lposix $LIBS"
12518 cat >conftest.$ac_ext <<_ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12525 /* Override any gcc2 internal prototype to avoid an error. */
12529 /* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest$ac_exeext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_lib_posix_remove=yes
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 ac_cv_lib_posix_remove=no
12569 rm -f conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12573 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12574 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12575 if test $ac_cv_lib_posix_remove = yes; then
12576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12581 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12582 echo "$as_me:$LINENO: checking for shmat" >&5
12583 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12584 if test "${ac_cv_func_shmat+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12593 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12595 #define shmat innocuous_shmat
12597 /* System header to define __stub macros and hopefully few prototypes,
12598 which can conflict with char shmat (); below.
12599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12600 <limits.h> exists even on freestanding compilers. */
12603 # include <limits.h>
12605 # include <assert.h>
12610 /* Override any gcc2 internal prototype to avoid an error. */
12615 /* We use char because int might match the return type of a gcc2
12616 builtin and then its argument prototype would still apply. */
12618 /* The GNU C library defines this for functions which it implements
12619 to always fail with ENOSYS. Some functions are actually named
12620 something starting with __ and the normal name is an alias. */
12621 #if defined (__stub_shmat) || defined (__stub___shmat)
12624 char (*f) () = shmat;
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640 (eval $ac_link) 2>conftest.er1
12642 grep -v '^ *+' conftest.er1 >conftest.err
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try='test -z "$ac_c_werror_flag"
12648 || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest$ac_exeext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 ac_cv_func_shmat=yes
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_cv_func_shmat=no
12667 rm -f conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12670 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12671 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12673 if test $ac_cv_func_shmat = no; then
12674 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12675 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12676 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12679 ac_check_lib_save_LIBS=$LIBS
12681 cat >conftest.$ac_ext <<_ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12688 /* Override any gcc2 internal prototype to avoid an error. */
12692 /* We use char because int might match the return type of a gcc2
12693 builtin and then its argument prototype would still apply. */
12703 rm -f conftest.$ac_objext conftest$ac_exeext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12705 (eval $ac_link) 2>conftest.er1
12707 grep -v '^ *+' conftest.er1 >conftest.err
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
12712 { ac_try='test -z "$ac_c_werror_flag"
12713 || test ! -s conftest.err'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; } &&
12719 { ac_try='test -s conftest$ac_exeext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_cv_lib_ipc_shmat=yes
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12730 ac_cv_lib_ipc_shmat=no
12732 rm -f conftest.err conftest.$ac_objext \
12733 conftest$ac_exeext conftest.$ac_ext
12734 LIBS=$ac_check_lib_save_LIBS
12736 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12737 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12738 if test $ac_cv_lib_ipc_shmat = yes; then
12739 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12745 # Check for libraries that X11R6 Xt/Xaw programs need.
12746 ac_save_LDFLAGS=$LDFLAGS
12747 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12748 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12749 # check for ICE first), but we must link in the order -lSM -lICE or
12750 # we get undefined symbols. So assume we have SM if we have ICE.
12751 # These have to be linked with before -lX11, unlike the other
12752 # libraries we check for below, so use a different variable.
12753 # John Interrante, Karl Berry
12754 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12755 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12756 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 ac_check_lib_save_LIBS=$LIBS
12760 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12761 cat >conftest.$ac_ext <<_ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12768 /* Override any gcc2 internal prototype to avoid an error. */
12772 /* We use char because int might match the return type of a gcc2
12773 builtin and then its argument prototype would still apply. */
12774 char IceConnectionNumber ();
12778 IceConnectionNumber ();
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785 (eval $ac_link) 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag"
12793 || test ! -s conftest.err'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest$ac_exeext'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 ac_cv_lib_ICE_IceConnectionNumber=yes
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 ac_cv_lib_ICE_IceConnectionNumber=no
12812 rm -f conftest.err conftest.$ac_objext \
12813 conftest$ac_exeext conftest.$ac_ext
12814 LIBS=$ac_check_lib_save_LIBS
12816 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12817 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12818 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12819 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12822 LDFLAGS=$ac_save_LDFLAGS
12884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886 echo "$as_me:$LINENO: checking for $ac_header" >&5
12887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12894 # Is the header compilable?
12895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12903 $ac_includes_default
12904 #include <$ac_header>
12906 rm -f conftest.$ac_objext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>conftest.er1
12910 grep -v '^ *+' conftest.er1 >conftest.err
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -z "$ac_c_werror_flag"
12916 || test ! -s conftest.err'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } &&
12922 { ac_try='test -s conftest.$ac_objext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 ac_header_compiler=yes
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ac_header_compiler=no
12935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6
12939 # Is the header present?
12940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12942 cat >conftest.$ac_ext <<_ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 #include <$ac_header>
12950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12953 grep -v '^ *+' conftest.er1 >conftest.err
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } >/dev/null; then
12958 if test -s conftest.err; then
12959 ac_cpp_err=$ac_c_preproc_warn_flag
12960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12967 if test -z "$ac_cpp_err"; then
12968 ac_header_preproc=yes
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ac_header_preproc=no
12975 rm -f conftest.err conftest.$ac_ext
12976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12977 echo "${ECHO_T}$ac_header_preproc" >&6
12979 # So? What about this header?
12980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12986 ac_header_preproc=yes
12989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13003 ## ------------------------------------------ ##
13004 ## Report this to the AC_PACKAGE_NAME lists. ##
13005 ## ------------------------------------------ ##
13008 sed "s/^/$as_me: WARNING: /" >&2
13011 echo "$as_me:$LINENO: checking for $ac_header" >&5
13012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 eval "$as_ac_Header=\$ac_header_preproc"
13018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13023 cat >>confdefs.h <<_ACEOF
13024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13031 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13033 if test "${ac_cv_header_stdc+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 #include <stdlib.h>
13043 #include <stdarg.h>
13044 #include <string.h>
13055 rm -f conftest.$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_header_stdc=yes
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_cv_header_stdc=no
13084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13086 if test $ac_cv_header_stdc = yes; then
13087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13088 cat >conftest.$ac_ext <<_ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 #include <string.h>
13097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13098 $EGREP "memchr" >/dev/null 2>&1; then
13101 ac_cv_header_stdc=no
13107 if test $ac_cv_header_stdc = yes; then
13108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 #include <stdlib.h>
13118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13119 $EGREP "free" >/dev/null 2>&1; then
13122 ac_cv_header_stdc=no
13128 if test $ac_cv_header_stdc = yes; then
13129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13130 if test "$cross_compiling" = yes; then
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 #if ((' ' & 0x0FF) == 0x020)
13141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13144 # define ISLOWER(c) \
13145 (('a' <= (c) && (c) <= 'i') \
13146 || ('j' <= (c) && (c) <= 'r') \
13147 || ('s' <= (c) && (c) <= 'z'))
13148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13156 for (i = 0; i < 256; i++)
13157 if (XOR (islower (i), ISLOWER (i))
13158 || toupper (i) != TOUPPER (i))
13163 rm -f conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13176 echo "$as_me: program exited with status $ac_status" >&5
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ( exit $ac_status )
13181 ac_cv_header_stdc=no
13183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13189 if test $ac_cv_header_stdc = yes; then
13191 cat >>confdefs.h <<\_ACEOF
13192 #define STDC_HEADERS 1
13197 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13198 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13199 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <sys/types.h>
13212 return makedev(0, 0);
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13219 (eval $ac_link) 2>conftest.er1
13221 grep -v '^ *+' conftest.er1 >conftest.err
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -z "$ac_c_werror_flag"
13227 || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest$ac_exeext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_cv_header_sys_types_h_makedev=yes
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13244 ac_cv_header_sys_types_h_makedev=no
13246 rm -f conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13251 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13253 if test $ac_cv_header_sys_types_h_makedev = no; then
13254 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13255 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13256 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13257 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13261 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13263 # Is the header compilable?
13264 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13265 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 $ac_includes_default
13273 #include <sys/mkdev.h>
13275 rm -f conftest.$ac_objext
13276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277 (eval $ac_compile) 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -z "$ac_c_werror_flag"
13285 || test ! -s conftest.err'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; } &&
13291 { ac_try='test -s conftest.$ac_objext'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; }; then
13297 ac_header_compiler=yes
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13302 ac_header_compiler=no
13304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13306 echo "${ECHO_T}$ac_header_compiler" >&6
13308 # Is the header present?
13309 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13310 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13311 cat >conftest.$ac_ext <<_ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 #include <sys/mkdev.h>
13319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } >/dev/null; then
13327 if test -s conftest.err; then
13328 ac_cpp_err=$ac_c_preproc_warn_flag
13329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13336 if test -z "$ac_cpp_err"; then
13337 ac_header_preproc=yes
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ac_header_preproc=no
13344 rm -f conftest.err conftest.$ac_ext
13345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13346 echo "${ECHO_T}$ac_header_preproc" >&6
13348 # So? What about this header?
13349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13351 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13352 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13354 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13355 ac_header_preproc=yes
13358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13359 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
13361 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
13362 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13363 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13364 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
13365 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
13366 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13367 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13368 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13369 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13372 ## ------------------------------------------ ##
13373 ## Report this to the AC_PACKAGE_NAME lists. ##
13374 ## ------------------------------------------ ##
13377 sed "s/^/$as_me: WARNING: /" >&2
13380 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13381 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13382 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 ac_cv_header_sys_mkdev_h=$ac_header_preproc
13387 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13388 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13391 if test $ac_cv_header_sys_mkdev_h = yes; then
13393 cat >>confdefs.h <<\_ACEOF
13394 #define MAJOR_IN_MKDEV 1
13401 if test $ac_cv_header_sys_mkdev_h = no; then
13402 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13403 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13404 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13405 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13409 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13411 # Is the header compilable?
13412 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13413 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 $ac_includes_default
13421 #include <sys/sysmacros.h>
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>conftest.er1
13427 grep -v '^ *+' conftest.er1 >conftest.err
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -z "$ac_c_werror_flag"
13433 || test ! -s conftest.err'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; } &&
13439 { ac_try='test -s conftest.$ac_objext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_header_compiler=yes
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ac_header_compiler=no
13452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13454 echo "${ECHO_T}$ac_header_compiler" >&6
13456 # Is the header present?
13457 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13458 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13459 cat >conftest.$ac_ext <<_ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 #include <sys/sysmacros.h>
13467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13470 grep -v '^ *+' conftest.er1 >conftest.err
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } >/dev/null; then
13475 if test -s conftest.err; then
13476 ac_cpp_err=$ac_c_preproc_warn_flag
13477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13484 if test -z "$ac_cpp_err"; then
13485 ac_header_preproc=yes
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ac_header_preproc=no
13492 rm -f conftest.err conftest.$ac_ext
13493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13494 echo "${ECHO_T}$ac_header_preproc" >&6
13496 # So? What about this header?
13497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13499 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13500 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13502 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13503 ac_header_preproc=yes
13506 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13507 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
13509 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13511 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
13513 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13515 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13517 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13520 ## ------------------------------------------ ##
13521 ## Report this to the AC_PACKAGE_NAME lists. ##
13522 ## ------------------------------------------ ##
13525 sed "s/^/$as_me: WARNING: /" >&2
13528 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13529 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13530 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13535 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13536 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13539 if test $ac_cv_header_sys_sysmacros_h = yes; then
13541 cat >>confdefs.h <<\_ACEOF
13542 #define MAJOR_IN_SYSMACROS 1
13556 ac_header_dirent=no
13557 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13558 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13559 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13560 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 cat >conftest.$ac_ext <<_ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 #include <sys/types.h>
13582 rm -f conftest.$ac_objext
13583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13584 (eval $ac_compile) 2>conftest.er1
13586 grep -v '^ *+' conftest.er1 >conftest.err
13588 cat conftest.err >&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } &&
13591 { ac_try='test -z "$ac_c_werror_flag"
13592 || test ! -s conftest.err'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; } &&
13598 { ac_try='test -s conftest.$ac_objext'
13599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 (eval $ac_try) 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; }; then
13604 eval "$as_ac_Header=yes"
13606 echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13609 eval "$as_ac_Header=no"
13611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13616 cat >>confdefs.h <<_ACEOF
13617 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13620 ac_header_dirent=$ac_hdr; break
13624 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13625 if test $ac_header_dirent = dirent.h; then
13626 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13627 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13628 if test "${ac_cv_search_opendir+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 ac_func_search_save_LIBS=$LIBS
13632 ac_cv_search_opendir=no
13633 cat >conftest.$ac_ext <<_ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13640 /* Override any gcc2 internal prototype to avoid an error. */
13644 /* We use char because int might match the return type of a gcc2
13645 builtin and then its argument prototype would still apply. */
13655 rm -f conftest.$ac_objext conftest$ac_exeext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13657 (eval $ac_link) 2>conftest.er1
13659 grep -v '^ *+' conftest.er1 >conftest.err
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -z "$ac_c_werror_flag"
13665 || test ! -s conftest.err'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest$ac_exeext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_search_opendir="none required"
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13683 rm -f conftest.err conftest.$ac_objext \
13684 conftest$ac_exeext conftest.$ac_ext
13685 if test "$ac_cv_search_opendir" = no; then
13686 for ac_lib in dir; do
13687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13688 cat >conftest.$ac_ext <<_ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13695 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13710 rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712 (eval $ac_link) 2>conftest.er1
13714 grep -v '^ *+' conftest.er1 >conftest.err
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -z "$ac_c_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_search_opendir="-l$ac_lib"
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13739 rm -f conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13743 LIBS=$ac_func_search_save_LIBS
13745 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13746 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13747 if test "$ac_cv_search_opendir" != no; then
13748 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13753 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13754 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13755 if test "${ac_cv_search_opendir+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 ac_func_search_save_LIBS=$LIBS
13759 ac_cv_search_opendir=no
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 /* Override any gcc2 internal prototype to avoid an error. */
13771 /* We use char because int might match the return type of a gcc2
13772 builtin and then its argument prototype would still apply. */
13782 rm -f conftest.$ac_objext conftest$ac_exeext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13784 (eval $ac_link) 2>conftest.er1
13786 grep -v '^ *+' conftest.er1 >conftest.err
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -z "$ac_c_werror_flag"
13792 || test ! -s conftest.err'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest$ac_exeext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 ac_cv_search_opendir="none required"
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13810 rm -f conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
13812 if test "$ac_cv_search_opendir" = no; then
13813 for ac_lib in x; do
13814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13815 cat >conftest.$ac_ext <<_ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h. */
13822 /* Override any gcc2 internal prototype to avoid an error. */
13826 /* We use char because int might match the return type of a gcc2
13827 builtin and then its argument prototype would still apply. */
13837 rm -f conftest.$ac_objext conftest$ac_exeext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13839 (eval $ac_link) 2>conftest.er1
13841 grep -v '^ *+' conftest.er1 >conftest.err
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -z "$ac_c_werror_flag"
13847 || test ! -s conftest.err'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest$ac_exeext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 ac_cv_search_opendir="-l$ac_lib"
13862 echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13866 rm -f conftest.err conftest.$ac_objext \
13867 conftest$ac_exeext conftest.$ac_ext
13870 LIBS=$ac_func_search_save_LIBS
13872 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13873 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13874 if test "$ac_cv_search_opendir" != no; then
13875 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13881 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13882 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13883 if test "${ac_cv_header_stat_broken+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 cat >conftest.$ac_ext <<_ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 #include <sys/types.h>
13893 #include <sys/stat.h>
13895 #if defined(S_ISBLK) && defined(S_IFDIR)
13896 # if S_ISBLK (S_IFDIR)
13901 #if defined(S_ISBLK) && defined(S_IFCHR)
13902 # if S_ISBLK (S_IFCHR)
13907 #if defined(S_ISLNK) && defined(S_IFREG)
13908 # if S_ISLNK (S_IFREG)
13913 #if defined(S_ISSOCK) && defined(S_IFREG)
13914 # if S_ISSOCK (S_IFREG)
13920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13921 $EGREP "You lose" >/dev/null 2>&1; then
13922 ac_cv_header_stat_broken=yes
13924 ac_cv_header_stat_broken=no
13929 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13930 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13931 if test $ac_cv_header_stat_broken = yes; then
13933 cat >>confdefs.h <<\_ACEOF
13934 #define STAT_MACROS_BROKEN 1
13939 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13940 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13941 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 #include <sys/types.h>
13951 #include <sys/wait.h>
13952 #ifndef WEXITSTATUS
13953 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13956 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13964 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13969 rm -f conftest.$ac_objext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13971 (eval $ac_compile) 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag"
13979 || test ! -s conftest.err'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest.$ac_objext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_header_sys_wait_h=yes
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_cv_header_sys_wait_h=no
13998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14000 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14001 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14002 if test $ac_cv_header_sys_wait_h = yes; then
14004 cat >>confdefs.h <<\_ACEOF
14005 #define HAVE_SYS_WAIT_H 1
14010 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14011 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14012 if test "${ac_cv_header_time+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 cat >conftest.$ac_ext <<_ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <sys/types.h>
14022 #include <sys/time.h>
14028 if ((struct tm *) 0)
14034 rm -f conftest.$ac_objext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036 (eval $ac_compile) 2>conftest.er1
14038 grep -v '^ *+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest.$ac_objext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_header_time=yes
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ac_cv_header_time=no
14063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14065 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14066 echo "${ECHO_T}$ac_cv_header_time" >&6
14067 if test $ac_cv_header_time = yes; then
14069 cat >>confdefs.h <<\_ACEOF
14070 #define TIME_WITH_SYS_TIME 1
14076 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14077 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14078 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 $ac_includes_default
14091 static struct stat ac_aggr;
14092 if (ac_aggr.st_blksize)
14098 rm -f conftest.$ac_objext
14099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14100 (eval $ac_compile) 2>conftest.er1
14102 grep -v '^ *+' conftest.er1 >conftest.err
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
14107 { ac_try='test -z "$ac_c_werror_flag"
14108 || test ! -s conftest.err'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest.$ac_objext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 ac_cv_member_struct_stat_st_blksize=yes
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 cat >conftest.$ac_ext <<_ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 $ac_includes_default
14135 static struct stat ac_aggr;
14136 if (sizeof ac_aggr.st_blksize)
14142 rm -f conftest.$ac_objext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14144 (eval $ac_compile) 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_c_werror_flag"
14152 || test ! -s conftest.err'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest.$ac_objext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 ac_cv_member_struct_stat_st_blksize=yes
14166 echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.$ac_ext >&5
14169 ac_cv_member_struct_stat_st_blksize=no
14171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14176 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14177 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14179 cat >>confdefs.h <<_ACEOF
14180 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14184 cat >>confdefs.h <<\_ACEOF
14185 #define HAVE_ST_BLKSIZE 1
14191 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14192 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14193 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 cat >conftest.$ac_ext <<_ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 $ac_includes_default
14206 static struct stat ac_aggr;
14207 if (ac_aggr.st_blocks)
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>conftest.er1
14217 grep -v '^ *+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag"
14223 || test ! -s conftest.err'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_member_struct_stat_st_blocks=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 cat >conftest.$ac_ext <<_ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 $ac_includes_default
14250 static struct stat ac_aggr;
14251 if (sizeof ac_aggr.st_blocks)
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest.$ac_objext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_member_struct_stat_st_blocks=yes
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 ac_cv_member_struct_stat_st_blocks=no
14286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14290 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14291 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14292 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14294 cat >>confdefs.h <<_ACEOF
14295 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14299 cat >>confdefs.h <<\_ACEOF
14300 #define HAVE_ST_BLOCKS 1
14305 "fileblocks.$ac_objext" | \
14306 *" fileblocks.$ac_objext" | \
14307 "fileblocks.$ac_objext "* | \
14308 *" fileblocks.$ac_objext "* ) ;;
14309 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14315 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14316 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14317 if test "${ac_cv_struct_tm+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 cat >conftest.$ac_ext <<_ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 #include <sys/types.h>
14332 struct tm *tp; tp->tm_sec;
14337 rm -f conftest.$ac_objext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14339 (eval $ac_compile) 2>conftest.er1
14341 grep -v '^ *+' conftest.er1 >conftest.err
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -z "$ac_c_werror_flag"
14347 || test ! -s conftest.err'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; } &&
14353 { ac_try='test -s conftest.$ac_objext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 ac_cv_struct_tm=time.h
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 ac_cv_struct_tm=sys/time.h
14366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14368 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14369 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14370 if test $ac_cv_struct_tm = sys/time.h; then
14372 cat >>confdefs.h <<\_ACEOF
14373 #define TM_IN_SYS_TIME 1
14378 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14379 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14380 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 cat >conftest.$ac_ext <<_ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 #include <sys/types.h>
14390 #include <$ac_cv_struct_tm>
14396 static struct tm ac_aggr;
14397 if (ac_aggr.tm_zone)
14403 rm -f conftest.$ac_objext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14405 (eval $ac_compile) 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag"
14413 || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_cv_member_struct_tm_tm_zone=yes
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 cat >conftest.$ac_ext <<_ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 #include <sys/types.h>
14437 #include <$ac_cv_struct_tm>
14443 static struct tm ac_aggr;
14444 if (sizeof ac_aggr.tm_zone)
14450 rm -f conftest.$ac_objext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>conftest.er1
14454 grep -v '^ *+' conftest.er1 >conftest.err
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_cv_member_struct_tm_tm_zone=yes
14474 echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14477 ac_cv_member_struct_tm_tm_zone=no
14479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14483 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14484 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14485 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14487 cat >>confdefs.h <<_ACEOF
14488 #define HAVE_STRUCT_TM_TM_ZONE 1
14494 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_TM_ZONE 1
14501 echo "$as_me:$LINENO: checking for tzname" >&5
14502 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14503 if test "${ac_cv_var_tzname+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 cat >conftest.$ac_ext <<_ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14513 #ifndef tzname /* For SGI. */
14514 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14525 rm -f conftest.$ac_objext conftest$ac_exeext
14526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14527 (eval $ac_link) 2>conftest.er1
14529 grep -v '^ *+' conftest.er1 >conftest.err
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag"
14535 || test ! -s conftest.err'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; } &&
14541 { ac_try='test -s conftest$ac_exeext'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14547 ac_cv_var_tzname=yes
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 ac_cv_var_tzname=no
14554 rm -f conftest.err conftest.$ac_objext \
14555 conftest$ac_exeext conftest.$ac_ext
14557 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14558 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14559 if test $ac_cv_var_tzname = yes; then
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_TZNAME 1
14569 echo "$as_me:$LINENO: checking for utime.h" >&5
14570 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14571 if test "${ba_cv_header_utime_h+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 cat >conftest.$ac_ext <<_ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14581 #include <sys/types.h>
14591 rm -f conftest.$ac_objext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14593 (eval $ac_compile) 2>conftest.er1
14595 grep -v '^ *+' conftest.er1 >conftest.err
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag"
14601 || test ! -s conftest.err'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; } &&
14607 { ac_try='test -s conftest.$ac_objext'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14613 ba_cv_header_utime_h=yes
14615 echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14618 ba_cv_header_utime_h=no
14620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14622 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14623 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14624 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14625 #define HAVE_UTIME_H 1
14629 echo "$as_me:$LINENO: checking for socklen_t" >&5
14630 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14631 if test "${ba_cv_header_socklen_t+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 cat >conftest.$ac_ext <<_ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14641 #include <sys/types.h>
14642 #include <sys/socket.h>
14651 rm -f conftest.$ac_objext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>conftest.er1
14655 grep -v '^ *+' conftest.er1 >conftest.err
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag"
14661 || test ! -s conftest.err'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest.$ac_objext'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 ba_cv_header_socklen_t=yes
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 ba_cv_header_socklen_t=no
14680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14682 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14683 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14684 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_SOCKLEN_T 1
14689 echo "$as_me:$LINENO: checking for bigendian" >&5
14690 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14691 if test "${ba_cv_bigendian+set}" = set; then
14692 echo $ECHO_N "(cached) $ECHO_C" >&6
14694 if test "$cross_compiling" = yes; then
14697 cat >conftest.$ac_ext <<_ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h. */
14703 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14705 rm -f conftest$ac_exeext
14706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14707 (eval $ac_link) 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ba_cv_bigendian=yes
14718 echo "$as_me: program exited with status $ac_status" >&5
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 ( exit $ac_status )
14725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14728 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14729 echo "${ECHO_T}$ba_cv_bigendian" >&6
14730 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_BIGENDIAN 1
14736 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14737 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14738 if test "${ac_cv_c_const+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14751 /* FIXME: Include the comments suggested by Paul. */
14752 #ifndef __cplusplus
14753 /* Ultrix mips cc rejects this. */
14754 typedef int charset[2];
14756 /* SunOS 4.1.1 cc rejects this. */
14757 char const *const *ccp;
14759 /* NEC SVR4.0.2 mips cc rejects this. */
14760 struct point {int x, y;};
14761 static struct point const zero = {0,0};
14762 /* AIX XL C 1.02.0.0 rejects this.
14763 It does not let you subtract one const X* pointer from another in
14764 an arm of an if-expression whose if-part is not a constant
14766 const char *g = "string";
14767 ccp = &g + (g ? g-g : 0);
14768 /* HPUX 7.0 cc rejects these. */
14771 ccp = (char const *const *) p;
14772 { /* SCO 3.2v4 cc rejects this. */
14774 char const *s = 0 ? (char *) 0 : (char const *) 0;
14778 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14779 int x[] = {25, 17};
14780 const int *foo = &x[0];
14783 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14784 typedef const int *iptr;
14788 { /* AIX XL C 1.02.0.0 rejects this saying
14789 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14790 struct s { int j; const int *ap[3]; };
14791 struct s *b; b->j = 5;
14793 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14794 const int foo = 10;
14802 rm -f conftest.$ac_objext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804 (eval $ac_compile) 2>conftest.er1
14806 grep -v '^ *+' conftest.er1 >conftest.err
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
14811 { ac_try='test -z "$ac_c_werror_flag"
14812 || test ! -s conftest.err'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } &&
14818 { ac_try='test -s conftest.$ac_objext'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14833 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14834 echo "${ECHO_T}$ac_cv_c_const" >&6
14835 if test $ac_cv_c_const = no; then
14837 cat >>confdefs.h <<\_ACEOF
14845 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
14846 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
14848 # The order of these tests is important.
14849 cat >conftest.$ac_ext <<_ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14855 #include <sys/statvfs.h>
14856 #include <sys/fstyp.h>
14858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14861 grep -v '^ *+' conftest.er1 >conftest.err
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } >/dev/null; then
14866 if test -s conftest.err; then
14867 ac_cpp_err=$ac_c_preproc_warn_flag
14868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14875 if test -z "$ac_cpp_err"; then
14876 cat >>confdefs.h <<\_ACEOF
14877 #define FSTYPE_STATVFS 1
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14886 rm -f conftest.err conftest.$ac_ext
14887 if test $fstype = no; then
14888 cat >conftest.$ac_ext <<_ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14894 #include <sys/statfs.h>
14895 #include <sys/fstyp.h>
14897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14900 grep -v '^ *+' conftest.er1 >conftest.err
14902 cat conftest.err >&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } >/dev/null; then
14905 if test -s conftest.err; then
14906 ac_cpp_err=$ac_c_preproc_warn_flag
14907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14914 if test -z "$ac_cpp_err"; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define FSTYPE_USG_STATFS 1
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14925 rm -f conftest.err conftest.$ac_ext
14927 if test $fstype = no; then
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 #include <sys/statfs.h>
14935 #include <sys/vmount.h>
14937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14940 grep -v '^ *+' conftest.er1 >conftest.err
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } >/dev/null; then
14945 if test -s conftest.err; then
14946 ac_cpp_err=$ac_c_preproc_warn_flag
14947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14954 if test -z "$ac_cpp_err"; then
14955 cat >>confdefs.h <<\_ACEOF
14956 #define FSTYPE_AIX_STATFS 1
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14965 rm -f conftest.err conftest.$ac_ext
14967 if test $fstype = no; then
14968 cat >conftest.$ac_ext <<_ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 #include <mntent.h>
14976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } >/dev/null; then
14984 if test -s conftest.err; then
14985 ac_cpp_err=$ac_c_preproc_warn_flag
14986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14993 if test -z "$ac_cpp_err"; then
14994 cat >>confdefs.h <<\_ACEOF
14995 #define FSTYPE_MNTENT 1
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15004 rm -f conftest.err conftest.$ac_ext
15006 if test $fstype = no; then
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 #include <sys/mount.h>
15016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15017 $EGREP "f_type;" >/dev/null 2>&1; then
15018 cat >>confdefs.h <<\_ACEOF
15019 #define FSTYPE_STATFS 1
15026 if test $fstype = no; then
15027 cat >conftest.$ac_ext <<_ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15033 #include <sys/mount.h>
15034 #include <sys/fs_types.h>
15036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15039 grep -v '^ *+' conftest.er1 >conftest.err
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } >/dev/null; then
15044 if test -s conftest.err; then
15045 ac_cpp_err=$ac_c_preproc_warn_flag
15046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15053 if test -z "$ac_cpp_err"; then
15054 cat >>confdefs.h <<\_ACEOF
15055 #define FSTYPE_GETMNT 1
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15064 rm -f conftest.err conftest.$ac_ext
15066 echo "$as_me:$LINENO: result: $fstype" >&5
15067 echo "${ECHO_T}$fstype" >&6
15069 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15070 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15071 if test "${ac_cv_type_signal+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <sys/types.h>
15081 #include <signal.h>
15086 extern "C" void (*signal (int, void (*)(int)))(int);
15088 void (*signal ()) ();
15099 rm -f conftest.$ac_objext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15101 (eval $ac_compile) 2>conftest.er1
15103 grep -v '^ *+' conftest.er1 >conftest.err
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest.$ac_objext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_type_signal=void
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_cv_type_signal=int
15128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15130 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15131 echo "${ECHO_T}$ac_cv_type_signal" >&6
15133 cat >>confdefs.h <<_ACEOF
15134 #define RETSIGTYPE $ac_cv_type_signal
15139 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15140 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15141 if test "${bash_cv_signal_vintage+set}" = set; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 cat >conftest.$ac_ext <<_ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15151 #include <signal.h>
15157 struct sigaction sa;
15158 sigemptyset(&ss); sigsuspend(&ss);
15159 sigaction(SIGINT, &sa, (struct sigaction *) 0);
15160 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag"
15176 || test ! -s conftest.err'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest$ac_exeext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 bash_cv_signal_vintage=posix
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #include <signal.h>
15205 int mask = sigmask(SIGINT);
15206 sigsetmask(mask); sigblock(mask); sigpause(mask);
15212 rm -f conftest.$ac_objext conftest$ac_exeext
15213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15214 (eval $ac_link) 2>conftest.er1
15216 grep -v '^ *+' conftest.er1 >conftest.err
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -z "$ac_c_werror_flag"
15222 || test ! -s conftest.err'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest$ac_exeext'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 bash_cv_signal_vintage=4.2bsd
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15240 cat >conftest.$ac_ext <<_ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15247 #include <signal.h>
15248 RETSIGTYPE foo() { }
15253 int mask = sigmask(SIGINT);
15254 sigset(SIGINT, foo); sigrelse(SIGINT);
15255 sighold(SIGINT); sigpause(SIGINT);
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15263 (eval $ac_link) 2>conftest.er1
15265 grep -v '^ *+' conftest.er1 >conftest.err
15267 cat conftest.err >&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } &&
15270 { ac_try='test -z "$ac_c_werror_flag"
15271 || test ! -s conftest.err'
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; } &&
15277 { ac_try='test -s conftest$ac_exeext'
15278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15279 (eval $ac_try) 2>&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
15283 bash_cv_signal_vintage=svr3
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 bash_cv_signal_vintage=v7
15291 rm -f conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15295 rm -f conftest.err conftest.$ac_objext \
15296 conftest$ac_exeext conftest.$ac_ext
15299 rm -f conftest.err conftest.$ac_objext \
15300 conftest$ac_exeext conftest.$ac_ext
15304 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15305 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15306 if test "$bash_cv_signal_vintage" = posix; then
15307 cat >>confdefs.h <<\_ACEOF
15308 #define HAVE_POSIX_SIGNALS 1
15311 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15312 cat >>confdefs.h <<\_ACEOF
15313 #define HAVE_BSD_SIGNALS 1
15316 elif test "$bash_cv_signal_vintage" = svr3; then
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_USG_SIGHOLD 1
15323 echo "$as_me:$LINENO: checking for mode_t" >&5
15324 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15325 if test "${ac_cv_type_mode_t+set}" = set; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 $ac_includes_default
15340 if (sizeof (mode_t))
15346 rm -f conftest.$ac_objext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15348 (eval $ac_compile) 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try='test -z "$ac_c_werror_flag"
15356 || test ! -s conftest.err'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; } &&
15362 { ac_try='test -s conftest.$ac_objext'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15368 ac_cv_type_mode_t=yes
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 ac_cv_type_mode_t=no
15375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15377 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15378 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15379 if test $ac_cv_type_mode_t = yes; then
15383 cat >>confdefs.h <<_ACEOF
15389 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15390 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15391 if test "${ac_cv_type_uid_t+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #include <sys/types.h>
15403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15404 $EGREP "uid_t" >/dev/null 2>&1; then
15405 ac_cv_type_uid_t=yes
15407 ac_cv_type_uid_t=no
15412 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15413 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15414 if test $ac_cv_type_uid_t = no; then
15416 cat >>confdefs.h <<\_ACEOF
15421 cat >>confdefs.h <<\_ACEOF
15427 echo "$as_me:$LINENO: checking for size_t" >&5
15428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15429 if test "${ac_cv_type_size_t+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 cat >conftest.$ac_ext <<_ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15438 $ac_includes_default
15444 if (sizeof (size_t))
15450 rm -f conftest.$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452 (eval $ac_compile) 2>conftest.er1
15454 grep -v '^ *+' conftest.er1 >conftest.err
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -z "$ac_c_werror_flag"
15460 || test ! -s conftest.err'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_cv_type_size_t=yes
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_cv_type_size_t=no
15479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15481 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15482 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15483 if test $ac_cv_type_size_t = yes; then
15487 cat >>confdefs.h <<_ACEOF
15488 #define size_t unsigned
15493 echo "$as_me:$LINENO: checking for pid_t" >&5
15494 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15495 if test "${ac_cv_type_pid_t+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 cat >conftest.$ac_ext <<_ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 $ac_includes_default
15510 if (sizeof (pid_t))
15516 rm -f conftest.$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518 (eval $ac_compile) 2>conftest.er1
15520 grep -v '^ *+' conftest.er1 >conftest.err
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_c_werror_flag"
15526 || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_type_pid_t=yes
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ac_cv_type_pid_t=no
15545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15547 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15548 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15549 if test $ac_cv_type_pid_t = yes; then
15553 cat >>confdefs.h <<_ACEOF
15559 echo "$as_me:$LINENO: checking for off_t" >&5
15560 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15561 if test "${ac_cv_type_off_t+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 cat >conftest.$ac_ext <<_ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 $ac_includes_default
15576 if (sizeof (off_t))
15582 rm -f conftest.$ac_objext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>conftest.er1
15586 grep -v '^ *+' conftest.er1 >conftest.err
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_cv_type_off_t=yes
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_cv_type_off_t=no
15611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15613 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15614 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15615 if test $ac_cv_type_off_t = yes; then
15619 cat >>confdefs.h <<_ACEOF
15625 echo "$as_me:$LINENO: checking for ino_t" >&5
15626 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15627 if test "${ac_cv_type_ino_t+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 $ac_includes_default
15642 if (sizeof (ino_t))
15648 rm -f conftest.$ac_objext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15650 (eval $ac_compile) 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -z "$ac_c_werror_flag"
15658 || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest.$ac_objext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_type_ino_t=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_type_ino_t=no
15677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15679 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15680 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15681 if test $ac_cv_type_ino_t = yes; then
15685 cat >>confdefs.h <<_ACEOF
15686 #define ino_t unsigned long
15691 echo "$as_me:$LINENO: checking for dev_t" >&5
15692 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15693 if test "${ac_cv_type_dev_t+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 $ac_includes_default
15708 if (sizeof (dev_t))
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716 (eval $ac_compile) 2>conftest.er1
15718 grep -v '^ *+' conftest.er1 >conftest.err
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
15723 { ac_try='test -z "$ac_c_werror_flag"
15724 || test ! -s conftest.err'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_cv_type_dev_t=yes
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 ac_cv_type_dev_t=no
15743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15745 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15746 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15747 if test $ac_cv_type_dev_t = yes; then
15751 cat >>confdefs.h <<_ACEOF
15752 #define dev_t unsigned long
15757 echo "$as_me:$LINENO: checking for daddr_t" >&5
15758 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15759 if test "${ac_cv_type_daddr_t+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 cat >conftest.$ac_ext <<_ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 $ac_includes_default
15774 if (sizeof (daddr_t))
15780 rm -f conftest.$ac_objext
15781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15782 (eval $ac_compile) 2>conftest.er1
15784 grep -v '^ *+' conftest.er1 >conftest.err
15786 cat conftest.err >&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try='test -z "$ac_c_werror_flag"
15790 || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_cv_type_daddr_t=yes
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_cv_type_daddr_t=no
15809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15811 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15812 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15813 if test $ac_cv_type_daddr_t = yes; then
15817 cat >>confdefs.h <<_ACEOF
15818 #define daddr_t long
15823 echo "$as_me:$LINENO: checking for major_t" >&5
15824 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
15825 if test "${ac_cv_type_major_t+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 cat >conftest.$ac_ext <<_ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 $ac_includes_default
15840 if (sizeof (major_t))
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848 (eval $ac_compile) 2>conftest.er1
15850 grep -v '^ *+' conftest.er1 >conftest.err
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_c_werror_flag"
15856 || test ! -s conftest.err'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_cv_type_major_t=yes
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 ac_cv_type_major_t=no
15875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15877 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
15878 echo "${ECHO_T}$ac_cv_type_major_t" >&6
15879 if test $ac_cv_type_major_t = yes; then
15883 cat >>confdefs.h <<_ACEOF
15884 #define major_t int
15889 echo "$as_me:$LINENO: checking for minor_t" >&5
15890 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
15891 if test "${ac_cv_type_minor_t+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 $ac_includes_default
15906 if (sizeof (minor_t))
15912 rm -f conftest.$ac_objext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15914 (eval $ac_compile) 2>conftest.er1
15916 grep -v '^ *+' conftest.er1 >conftest.err
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -z "$ac_c_werror_flag"
15922 || test ! -s conftest.err'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
15928 { ac_try='test -s conftest.$ac_objext'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 ac_cv_type_minor_t=yes
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 ac_cv_type_minor_t=no
15941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15943 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
15944 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
15945 if test $ac_cv_type_minor_t = yes; then
15949 cat >>confdefs.h <<_ACEOF
15950 #define minor_t int
15955 echo "$as_me:$LINENO: checking for ssize_t" >&5
15956 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15957 if test "${ac_cv_type_ssize_t+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 cat >conftest.$ac_ext <<_ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15972 if (sizeof (ssize_t))
15978 rm -f conftest.$ac_objext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980 (eval $ac_compile) 2>conftest.er1
15982 grep -v '^ *+' conftest.er1 >conftest.err
15984 cat conftest.err >&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -z "$ac_c_werror_flag"
15988 || test ! -s conftest.err'
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest.$ac_objext'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_cv_type_ssize_t=yes
16002 echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16005 ac_cv_type_ssize_t=no
16007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16009 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16010 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16011 if test $ac_cv_type_ssize_t = yes; then
16015 cat >>confdefs.h <<_ACEOF
16016 #define ssize_t int
16021 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16022 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16023 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 $ac_includes_default
16036 static struct stat ac_aggr;
16037 if (ac_aggr.st_blocks)
16043 rm -f conftest.$ac_objext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045 (eval $ac_compile) 2>conftest.er1
16047 grep -v '^ *+' conftest.er1 >conftest.err
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest.$ac_objext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_cv_member_struct_stat_st_blocks=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 cat >conftest.$ac_ext <<_ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 $ac_includes_default
16080 static struct stat ac_aggr;
16081 if (sizeof ac_aggr.st_blocks)
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089 (eval $ac_compile) 2>conftest.er1
16091 grep -v '^ *+' conftest.er1 >conftest.err
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_cv_member_struct_stat_st_blocks=yes
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 ac_cv_member_struct_stat_st_blocks=no
16116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16120 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16121 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16122 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16124 cat >>confdefs.h <<_ACEOF
16125 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16129 cat >>confdefs.h <<\_ACEOF
16130 #define HAVE_ST_BLOCKS 1
16135 "fileblocks.$ac_objext" | \
16136 *" fileblocks.$ac_objext" | \
16137 "fileblocks.$ac_objext "* | \
16138 *" fileblocks.$ac_objext "* ) ;;
16139 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16146 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16147 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16148 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 cat >conftest.$ac_ext <<_ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 $ac_includes_default
16161 static struct stat ac_aggr;
16162 if (ac_aggr.st_rdev)
16168 rm -f conftest.$ac_objext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16170 (eval $ac_compile) 2>conftest.er1
16172 grep -v '^ *+' conftest.er1 >conftest.err
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try='test -z "$ac_c_werror_flag"
16178 || test ! -s conftest.err'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; } &&
16184 { ac_try='test -s conftest.$ac_objext'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_cv_member_struct_stat_st_rdev=yes
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 cat >conftest.$ac_ext <<_ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16205 static struct stat ac_aggr;
16206 if (sizeof ac_aggr.st_rdev)
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214 (eval $ac_compile) 2>conftest.er1
16216 grep -v '^ *+' conftest.er1 >conftest.err
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag"
16222 || test ! -s conftest.err'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest.$ac_objext'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234 ac_cv_member_struct_stat_st_rdev=yes
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ac_cv_member_struct_stat_st_rdev=no
16241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16245 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16246 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16247 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16249 cat >>confdefs.h <<_ACEOF
16250 #define HAVE_STRUCT_STAT_ST_RDEV 1
16254 cat >>confdefs.h <<\_ACEOF
16255 #define HAVE_ST_RDEV 1
16261 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16262 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16263 if test "${ac_cv_struct_tm+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #include <sys/types.h>
16278 struct tm *tp; tp->tm_sec;
16283 rm -f conftest.$ac_objext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285 (eval $ac_compile) 2>conftest.er1
16287 grep -v '^ *+' conftest.er1 >conftest.err
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag"
16293 || test ! -s conftest.err'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest.$ac_objext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 ac_cv_struct_tm=time.h
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 ac_cv_struct_tm=sys/time.h
16312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16314 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16315 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16316 if test $ac_cv_struct_tm = sys/time.h; then
16318 cat >>confdefs.h <<\_ACEOF
16319 #define TM_IN_SYS_TIME 1
16324 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16325 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16326 if test "${ac_cv_c_const+set}" = set; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 cat >conftest.$ac_ext <<_ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16339 /* FIXME: Include the comments suggested by Paul. */
16340 #ifndef __cplusplus
16341 /* Ultrix mips cc rejects this. */
16342 typedef int charset[2];
16344 /* SunOS 4.1.1 cc rejects this. */
16345 char const *const *ccp;
16347 /* NEC SVR4.0.2 mips cc rejects this. */
16348 struct point {int x, y;};
16349 static struct point const zero = {0,0};
16350 /* AIX XL C 1.02.0.0 rejects this.
16351 It does not let you subtract one const X* pointer from another in
16352 an arm of an if-expression whose if-part is not a constant
16354 const char *g = "string";
16355 ccp = &g + (g ? g-g : 0);
16356 /* HPUX 7.0 cc rejects these. */
16359 ccp = (char const *const *) p;
16360 { /* SCO 3.2v4 cc rejects this. */
16362 char const *s = 0 ? (char *) 0 : (char const *) 0;
16366 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16367 int x[] = {25, 17};
16368 const int *foo = &x[0];
16371 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16372 typedef const int *iptr;
16376 { /* AIX XL C 1.02.0.0 rejects this saying
16377 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16378 struct s { int j; const int *ap[3]; };
16379 struct s *b; b->j = 5;
16381 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16382 const int foo = 10;
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>conftest.er1
16394 grep -v '^ *+' conftest.er1 >conftest.err
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest.$ac_objext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16421 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16422 echo "${ECHO_T}$ac_cv_c_const" >&6
16423 if test $ac_cv_c_const = no; then
16425 cat >>confdefs.h <<\_ACEOF
16433 echo "$as_me:$LINENO: checking for char" >&5
16434 echo $ECHO_N "checking for char... $ECHO_C" >&6
16435 if test "${ac_cv_type_char+set}" = set; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16438 cat >conftest.$ac_ext <<_ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 $ac_includes_default
16456 rm -f conftest.$ac_objext
16457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16458 (eval $ac_compile) 2>conftest.er1
16460 grep -v '^ *+' conftest.er1 >conftest.err
16462 cat conftest.err >&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } &&
16465 { ac_try='test -z "$ac_c_werror_flag"
16466 || test ! -s conftest.err'
16467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468 (eval $ac_try) 2>&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; } &&
16472 { ac_try='test -s conftest.$ac_objext'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 ac_cv_type_char=yes
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16487 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16488 echo "${ECHO_T}$ac_cv_type_char" >&6
16490 echo "$as_me:$LINENO: checking size of char" >&5
16491 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16492 if test "${ac_cv_sizeof_char+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 if test "$ac_cv_type_char" = yes; then
16496 # The cast to unsigned long works around a bug in the HP C Compiler
16497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16499 # This bug is HP SR number 8606223364.
16500 if test "$cross_compiling" = yes; then
16501 # Depending upon the size, compute the lo and hi bounds.
16502 cat >conftest.$ac_ext <<_ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 $ac_includes_default
16512 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16519 rm -f conftest.$ac_objext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16521 (eval $ac_compile) 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16543 cat >conftest.$ac_ext <<_ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 $ac_includes_default
16553 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16560 rm -f conftest.$ac_objext
16561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16562 (eval $ac_compile) 2>conftest.er1
16564 grep -v '^ *+' conftest.er1 >conftest.err
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } &&
16569 { ac_try='test -z "$ac_c_werror_flag"
16570 || test ! -s conftest.err'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; } &&
16576 { ac_try='test -s conftest.$ac_objext'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 ac_hi=$ac_mid; break
16584 echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16587 ac_lo=`expr $ac_mid + 1`
16588 if test $ac_lo -le $ac_mid; then
16592 ac_mid=`expr 2 '*' $ac_mid + 1`
16594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 cat >conftest.$ac_ext <<_ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 $ac_includes_default
16610 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16617 rm -f conftest.$ac_objext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16619 (eval $ac_compile) 2>conftest.er1
16621 grep -v '^ *+' conftest.er1 >conftest.err
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -z "$ac_c_werror_flag"
16627 || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest.$ac_objext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 $ac_includes_default
16651 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660 (eval $ac_compile) 2>conftest.er1
16662 grep -v '^ *+' conftest.er1 >conftest.err
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
16667 { ac_try='test -z "$ac_c_werror_flag"
16668 || test ! -s conftest.err'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_lo=$ac_mid; break
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16685 ac_hi=`expr '(' $ac_mid ')' - 1`
16686 if test $ac_mid -le $ac_hi; then
16690 ac_mid=`expr 2 '*' $ac_mid`
16692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16703 # Binary search between lo and hi bounds.
16704 while test "x$ac_lo" != "x$ac_hi"; do
16705 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16706 cat >conftest.$ac_ext <<_ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712 $ac_includes_default
16716 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16723 rm -f conftest.$ac_objext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16725 (eval $ac_compile) 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try='test -z "$ac_c_werror_flag"
16733 || test ! -s conftest.err'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest.$ac_objext'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 ac_lo=`expr '(' $ac_mid ')' + 1`
16752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16755 ?*) ac_cv_sizeof_char=$ac_lo;;
16756 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16757 See \`config.log' for more details." >&5
16758 echo "$as_me: error: cannot compute sizeof (char), 77
16759 See \`config.log' for more details." >&2;}
16760 { (exit 1); exit 1; }; } ;;
16763 if test "$cross_compiling" = yes; then
16764 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16765 See \`config.log' for more details." >&5
16766 echo "$as_me: error: cannot run test program while cross compiling
16767 See \`config.log' for more details." >&2;}
16768 { (exit 1); exit 1; }; }
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 $ac_includes_default
16777 long longval () { return (long) (sizeof (char)); }
16778 unsigned long ulongval () { return (long) (sizeof (char)); }
16780 #include <stdlib.h>
16785 FILE *f = fopen ("conftest.val", "w");
16788 if (((long) (sizeof (char))) < 0)
16790 long i = longval ();
16791 if (i != ((long) (sizeof (char))))
16793 fprintf (f, "%ld\n", i);
16797 unsigned long i = ulongval ();
16798 if (i != ((long) (sizeof (char))))
16800 fprintf (f, "%lu\n", i);
16802 exit (ferror (f) || fclose (f) != 0);
16808 rm -f conftest$ac_exeext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16810 (eval $ac_link) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_sizeof_char=`cat conftest.val`
16821 echo "$as_me: program exited with status $ac_status" >&5
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ( exit $ac_status )
16826 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16827 See \`config.log' for more details." >&5
16828 echo "$as_me: error: cannot compute sizeof (char), 77
16829 See \`config.log' for more details." >&2;}
16830 { (exit 1); exit 1; }; }
16832 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16837 ac_cv_sizeof_char=0
16840 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16841 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16842 cat >>confdefs.h <<_ACEOF
16843 #define SIZEOF_CHAR $ac_cv_sizeof_char
16847 echo "$as_me:$LINENO: checking for short int" >&5
16848 echo $ECHO_N "checking for short int... $ECHO_C" >&6
16849 if test "${ac_cv_type_short_int+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 cat >conftest.$ac_ext <<_ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 $ac_includes_default
16862 if ((short int *) 0)
16864 if (sizeof (short int))
16870 rm -f conftest.$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872 (eval $ac_compile) 2>conftest.er1
16874 grep -v '^ *+' conftest.er1 >conftest.err
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } &&
16879 { ac_try='test -z "$ac_c_werror_flag"
16880 || test ! -s conftest.err'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } &&
16886 { ac_try='test -s conftest.$ac_objext'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 ac_cv_type_short_int=yes
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ac_cv_type_short_int=no
16899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16901 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
16902 echo "${ECHO_T}$ac_cv_type_short_int" >&6
16904 echo "$as_me:$LINENO: checking size of short int" >&5
16905 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
16906 if test "${ac_cv_sizeof_short_int+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 if test "$ac_cv_type_short_int" = yes; then
16910 # The cast to unsigned long works around a bug in the HP C Compiler
16911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16913 # This bug is HP SR number 8606223364.
16914 if test "$cross_compiling" = yes; then
16915 # Depending upon the size, compute the lo and hi bounds.
16916 cat >conftest.$ac_ext <<_ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 $ac_includes_default
16926 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
16933 rm -f conftest.$ac_objext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16935 (eval $ac_compile) 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag"
16943 || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 $ac_includes_default
16967 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
16974 rm -f conftest.$ac_objext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16976 (eval $ac_compile) 2>conftest.er1
16978 grep -v '^ *+' conftest.er1 >conftest.err
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag"
16984 || test ! -s conftest.err'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest.$ac_objext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_hi=$ac_mid; break
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_lo=`expr $ac_mid + 1`
17002 if test $ac_lo -le $ac_mid; then
17006 ac_mid=`expr 2 '*' $ac_mid + 1`
17008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17014 cat >conftest.$ac_ext <<_ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 $ac_includes_default
17024 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17031 rm -f conftest.$ac_objext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17033 (eval $ac_compile) 2>conftest.er1
17035 grep -v '^ *+' conftest.er1 >conftest.err
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag"
17041 || test ! -s conftest.err'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest.$ac_objext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17055 cat >conftest.$ac_ext <<_ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 $ac_includes_default
17065 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17072 rm -f conftest.$ac_objext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17074 (eval $ac_compile) 2>conftest.er1
17076 grep -v '^ *+' conftest.er1 >conftest.err
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag"
17082 || test ! -s conftest.err'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest.$ac_objext'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 ac_lo=$ac_mid; break
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 ac_hi=`expr '(' $ac_mid ')' - 1`
17100 if test $ac_mid -le $ac_hi; then
17104 ac_mid=`expr 2 '*' $ac_mid`
17106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17117 # Binary search between lo and hi bounds.
17118 while test "x$ac_lo" != "x$ac_hi"; do
17119 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17120 cat >conftest.$ac_ext <<_ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126 $ac_includes_default
17130 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17137 rm -f conftest.$ac_objext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17139 (eval $ac_compile) 2>conftest.er1
17141 grep -v '^ *+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -z "$ac_c_werror_flag"
17147 || test ! -s conftest.err'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest.$ac_objext'
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17164 ac_lo=`expr '(' $ac_mid ')' + 1`
17166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17169 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17170 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17171 See \`config.log' for more details." >&5
17172 echo "$as_me: error: cannot compute sizeof (short int), 77
17173 See \`config.log' for more details." >&2;}
17174 { (exit 1); exit 1; }; } ;;
17177 if test "$cross_compiling" = yes; then
17178 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17179 See \`config.log' for more details." >&5
17180 echo "$as_me: error: cannot run test program while cross compiling
17181 See \`config.log' for more details." >&2;}
17182 { (exit 1); exit 1; }; }
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17191 long longval () { return (long) (sizeof (short int)); }
17192 unsigned long ulongval () { return (long) (sizeof (short int)); }
17194 #include <stdlib.h>
17199 FILE *f = fopen ("conftest.val", "w");
17202 if (((long) (sizeof (short int))) < 0)
17204 long i = longval ();
17205 if (i != ((long) (sizeof (short int))))
17207 fprintf (f, "%ld\n", i);
17211 unsigned long i = ulongval ();
17212 if (i != ((long) (sizeof (short int))))
17214 fprintf (f, "%lu\n", i);
17216 exit (ferror (f) || fclose (f) != 0);
17222 rm -f conftest$ac_exeext
17223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224 (eval $ac_link) 2>&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 ac_cv_sizeof_short_int=`cat conftest.val`
17235 echo "$as_me: program exited with status $ac_status" >&5
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ( exit $ac_status )
17240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17241 See \`config.log' for more details." >&5
17242 echo "$as_me: error: cannot compute sizeof (short int), 77
17243 See \`config.log' for more details." >&2;}
17244 { (exit 1); exit 1; }; }
17246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17251 ac_cv_sizeof_short_int=0
17254 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17255 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17256 cat >>confdefs.h <<_ACEOF
17257 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17261 echo "$as_me:$LINENO: checking for int" >&5
17262 echo $ECHO_N "checking for int... $ECHO_C" >&6
17263 if test "${ac_cv_type_int+set}" = set; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 $ac_includes_default
17284 rm -f conftest.$ac_objext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17286 (eval $ac_compile) 2>conftest.er1
17288 grep -v '^ *+' conftest.er1 >conftest.err
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -z "$ac_c_werror_flag"
17294 || test ! -s conftest.err'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; } &&
17300 { ac_try='test -s conftest.$ac_objext'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17315 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17316 echo "${ECHO_T}$ac_cv_type_int" >&6
17318 echo "$as_me:$LINENO: checking size of int" >&5
17319 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17320 if test "${ac_cv_sizeof_int+set}" = set; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17323 if test "$ac_cv_type_int" = yes; then
17324 # The cast to unsigned long works around a bug in the HP C Compiler
17325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17327 # This bug is HP SR number 8606223364.
17328 if test "$cross_compiling" = yes; then
17329 # Depending upon the size, compute the lo and hi bounds.
17330 cat >conftest.$ac_ext <<_ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h. */
17336 $ac_includes_default
17340 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17347 rm -f conftest.$ac_objext
17348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17349 (eval $ac_compile) 2>conftest.er1
17351 grep -v '^ *+' conftest.er1 >conftest.err
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -z "$ac_c_werror_flag"
17357 || test ! -s conftest.err'
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest.$ac_objext'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17371 cat >conftest.$ac_ext <<_ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17377 $ac_includes_default
17381 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17388 rm -f conftest.$ac_objext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17390 (eval $ac_compile) 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest.$ac_objext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_hi=$ac_mid; break
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 ac_lo=`expr $ac_mid + 1`
17416 if test $ac_lo -le $ac_mid; then
17420 ac_mid=`expr 2 '*' $ac_mid + 1`
17422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 cat >conftest.$ac_ext <<_ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17434 $ac_includes_default
17438 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17445 rm -f conftest.$ac_objext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17447 (eval $ac_compile) 2>conftest.er1
17449 grep -v '^ *+' conftest.er1 >conftest.err
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
17454 { ac_try='test -z "$ac_c_werror_flag"
17455 || test ! -s conftest.err'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } &&
17461 { ac_try='test -s conftest.$ac_objext'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17469 cat >conftest.$ac_ext <<_ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h. */
17475 $ac_includes_default
17479 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17486 rm -f conftest.$ac_objext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17488 (eval $ac_compile) 2>conftest.er1
17490 grep -v '^ *+' conftest.er1 >conftest.err
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -z "$ac_c_werror_flag"
17496 || test ! -s conftest.err'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; } &&
17502 { ac_try='test -s conftest.$ac_objext'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 ac_lo=$ac_mid; break
17510 echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17513 ac_hi=`expr '(' $ac_mid ')' - 1`
17514 if test $ac_mid -le $ac_hi; then
17518 ac_mid=`expr 2 '*' $ac_mid`
17520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17531 # Binary search between lo and hi bounds.
17532 while test "x$ac_lo" != "x$ac_hi"; do
17533 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 $ac_includes_default
17544 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17551 rm -f conftest.$ac_objext
17552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17553 (eval $ac_compile) 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_c_werror_flag"
17561 || test ! -s conftest.err'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest.$ac_objext'
17568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569 (eval $ac_try) 2>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; }; then
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17578 ac_lo=`expr '(' $ac_mid ')' + 1`
17580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17583 ?*) ac_cv_sizeof_int=$ac_lo;;
17584 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17585 See \`config.log' for more details." >&5
17586 echo "$as_me: error: cannot compute sizeof (int), 77
17587 See \`config.log' for more details." >&2;}
17588 { (exit 1); exit 1; }; } ;;
17591 if test "$cross_compiling" = yes; then
17592 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17593 See \`config.log' for more details." >&5
17594 echo "$as_me: error: cannot run test program while cross compiling
17595 See \`config.log' for more details." >&2;}
17596 { (exit 1); exit 1; }; }
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17605 long longval () { return (long) (sizeof (int)); }
17606 unsigned long ulongval () { return (long) (sizeof (int)); }
17608 #include <stdlib.h>
17613 FILE *f = fopen ("conftest.val", "w");
17616 if (((long) (sizeof (int))) < 0)
17618 long i = longval ();
17619 if (i != ((long) (sizeof (int))))
17621 fprintf (f, "%ld\n", i);
17625 unsigned long i = ulongval ();
17626 if (i != ((long) (sizeof (int))))
17628 fprintf (f, "%lu\n", i);
17630 exit (ferror (f) || fclose (f) != 0);
17636 rm -f conftest$ac_exeext
17637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638 (eval $ac_link) 2>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 ac_cv_sizeof_int=`cat conftest.val`
17649 echo "$as_me: program exited with status $ac_status" >&5
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 ( exit $ac_status )
17654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17655 See \`config.log' for more details." >&5
17656 echo "$as_me: error: cannot compute sizeof (int), 77
17657 See \`config.log' for more details." >&2;}
17658 { (exit 1); exit 1; }; }
17660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17669 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17670 cat >>confdefs.h <<_ACEOF
17671 #define SIZEOF_INT $ac_cv_sizeof_int
17675 echo "$as_me:$LINENO: checking for long int" >&5
17676 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17677 if test "${ac_cv_type_long_int+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 cat >conftest.$ac_ext <<_ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686 $ac_includes_default
17690 if ((long int *) 0)
17692 if (sizeof (long int))
17698 rm -f conftest.$ac_objext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700 (eval $ac_compile) 2>conftest.er1
17702 grep -v '^ *+' conftest.er1 >conftest.err
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } &&
17707 { ac_try='test -z "$ac_c_werror_flag"
17708 || test ! -s conftest.err'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try='test -s conftest.$ac_objext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_cv_type_long_int=yes
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17725 ac_cv_type_long_int=no
17727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17729 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17730 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17732 echo "$as_me:$LINENO: checking size of long int" >&5
17733 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17734 if test "${ac_cv_sizeof_long_int+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 if test "$ac_cv_type_long_int" = yes; then
17738 # The cast to unsigned long works around a bug in the HP C Compiler
17739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17741 # This bug is HP SR number 8606223364.
17742 if test "$cross_compiling" = yes; then
17743 # Depending upon the size, compute the lo and hi bounds.
17744 cat >conftest.$ac_ext <<_ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17750 $ac_includes_default
17754 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17761 rm -f conftest.$ac_objext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763 (eval $ac_compile) 2>conftest.er1
17765 grep -v '^ *+' conftest.er1 >conftest.err
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17785 cat >conftest.$ac_ext <<_ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 $ac_includes_default
17795 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17802 rm -f conftest.$ac_objext
17803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17804 (eval $ac_compile) 2>conftest.er1
17806 grep -v '^ *+' conftest.er1 >conftest.err
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag"
17812 || test ! -s conftest.err'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_hi=$ac_mid; break
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 ac_lo=`expr $ac_mid + 1`
17830 if test $ac_lo -le $ac_mid; then
17834 ac_mid=`expr 2 '*' $ac_mid + 1`
17836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17842 cat >conftest.$ac_ext <<_ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17848 $ac_includes_default
17852 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861 (eval $ac_compile) 2>conftest.er1
17863 grep -v '^ *+' conftest.er1 >conftest.err
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
17868 { ac_try='test -z "$ac_c_werror_flag"
17869 || test ! -s conftest.err'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest.$ac_objext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17883 cat >conftest.$ac_ext <<_ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17889 $ac_includes_default
17893 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
17900 rm -f conftest.$ac_objext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17902 (eval $ac_compile) 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest.$ac_objext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_lo=$ac_mid; break
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17927 ac_hi=`expr '(' $ac_mid ')' - 1`
17928 if test $ac_mid -le $ac_hi; then
17932 ac_mid=`expr 2 '*' $ac_mid`
17934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17945 # Binary search between lo and hi bounds.
17946 while test "x$ac_lo" != "x$ac_hi"; do
17947 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17948 cat >conftest.$ac_ext <<_ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17954 $ac_includes_default
17958 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17965 rm -f conftest.$ac_objext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17967 (eval $ac_compile) 2>conftest.er1
17969 grep -v '^ *+' conftest.er1 >conftest.err
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } &&
17974 { ac_try='test -z "$ac_c_werror_flag"
17975 || test ! -s conftest.err'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; } &&
17981 { ac_try='test -s conftest.$ac_objext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992 ac_lo=`expr '(' $ac_mid ')' + 1`
17994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17997 ?*) ac_cv_sizeof_long_int=$ac_lo;;
17998 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
17999 See \`config.log' for more details." >&5
18000 echo "$as_me: error: cannot compute sizeof (long int), 77
18001 See \`config.log' for more details." >&2;}
18002 { (exit 1); exit 1; }; } ;;
18005 if test "$cross_compiling" = yes; then
18006 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18007 See \`config.log' for more details." >&5
18008 echo "$as_me: error: cannot run test program while cross compiling
18009 See \`config.log' for more details." >&2;}
18010 { (exit 1); exit 1; }; }
18012 cat >conftest.$ac_ext <<_ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18018 $ac_includes_default
18019 long longval () { return (long) (sizeof (long int)); }
18020 unsigned long ulongval () { return (long) (sizeof (long int)); }
18022 #include <stdlib.h>
18027 FILE *f = fopen ("conftest.val", "w");
18030 if (((long) (sizeof (long int))) < 0)
18032 long i = longval ();
18033 if (i != ((long) (sizeof (long int))))
18035 fprintf (f, "%ld\n", i);
18039 unsigned long i = ulongval ();
18040 if (i != ((long) (sizeof (long int))))
18042 fprintf (f, "%lu\n", i);
18044 exit (ferror (f) || fclose (f) != 0);
18050 rm -f conftest$ac_exeext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052 (eval $ac_link) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_cv_sizeof_long_int=`cat conftest.val`
18063 echo "$as_me: program exited with status $ac_status" >&5
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 ( exit $ac_status )
18068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18069 See \`config.log' for more details." >&5
18070 echo "$as_me: error: cannot compute sizeof (long int), 77
18071 See \`config.log' for more details." >&2;}
18072 { (exit 1); exit 1; }; }
18074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18079 ac_cv_sizeof_long_int=0
18082 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18083 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18084 cat >>confdefs.h <<_ACEOF
18085 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18089 echo "$as_me:$LINENO: checking for long long int" >&5
18090 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18091 if test "${ac_cv_type_long_long_int+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 cat >conftest.$ac_ext <<_ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 $ac_includes_default
18104 if ((long long int *) 0)
18106 if (sizeof (long long int))
18112 rm -f conftest.$ac_objext
18113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18114 (eval $ac_compile) 2>conftest.er1
18116 grep -v '^ *+' conftest.er1 >conftest.err
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } &&
18121 { ac_try='test -z "$ac_c_werror_flag"
18122 || test ! -s conftest.err'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest.$ac_objext'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; }; then
18134 ac_cv_type_long_long_int=yes
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 ac_cv_type_long_long_int=no
18141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18143 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18144 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18146 echo "$as_me:$LINENO: checking size of long long int" >&5
18147 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18148 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 if test "$ac_cv_type_long_long_int" = yes; then
18152 # The cast to unsigned long works around a bug in the HP C Compiler
18153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18155 # This bug is HP SR number 8606223364.
18156 if test "$cross_compiling" = yes; then
18157 # Depending upon the size, compute the lo and hi bounds.
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 $ac_includes_default
18168 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18175 rm -f conftest.$ac_objext
18176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18177 (eval $ac_compile) 2>conftest.er1
18179 grep -v '^ *+' conftest.er1 >conftest.err
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag"
18185 || test ! -s conftest.err'
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest.$ac_objext'
18192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193 (eval $ac_try) 2>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; }; then
18199 cat >conftest.$ac_ext <<_ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 $ac_includes_default
18209 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18216 rm -f conftest.$ac_objext
18217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18218 (eval $ac_compile) 2>conftest.er1
18220 grep -v '^ *+' conftest.er1 >conftest.err
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } &&
18225 { ac_try='test -z "$ac_c_werror_flag"
18226 || test ! -s conftest.err'
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest.$ac_objext'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 ac_hi=$ac_mid; break
18240 echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18243 ac_lo=`expr $ac_mid + 1`
18244 if test $ac_lo -le $ac_mid; then
18248 ac_mid=`expr 2 '*' $ac_mid + 1`
18250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 cat >conftest.$ac_ext <<_ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18262 $ac_includes_default
18266 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18273 rm -f conftest.$ac_objext
18274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18275 (eval $ac_compile) 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag"
18283 || test ! -s conftest.err'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest.$ac_objext'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18297 cat >conftest.$ac_ext <<_ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 $ac_includes_default
18307 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18314 rm -f conftest.$ac_objext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18316 (eval $ac_compile) 2>conftest.er1
18318 grep -v '^ *+' conftest.er1 >conftest.err
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag"
18324 || test ! -s conftest.err'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; } &&
18330 { ac_try='test -s conftest.$ac_objext'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_lo=$ac_mid; break
18338 echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_hi=`expr '(' $ac_mid ')' - 1`
18342 if test $ac_mid -le $ac_hi; then
18346 ac_mid=`expr 2 '*' $ac_mid`
18348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18359 # Binary search between lo and hi bounds.
18360 while test "x$ac_lo" != "x$ac_hi"; do
18361 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18362 cat >conftest.$ac_ext <<_ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18368 $ac_includes_default
18372 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18379 rm -f conftest.$ac_objext
18380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18381 (eval $ac_compile) 2>conftest.er1
18383 grep -v '^ *+' conftest.er1 >conftest.err
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
18388 { ac_try='test -z "$ac_c_werror_flag"
18389 || test ! -s conftest.err'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; } &&
18395 { ac_try='test -s conftest.$ac_objext'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18403 echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18406 ac_lo=`expr '(' $ac_mid ')' + 1`
18408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18411 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18412 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18413 See \`config.log' for more details." >&5
18414 echo "$as_me: error: cannot compute sizeof (long long int), 77
18415 See \`config.log' for more details." >&2;}
18416 { (exit 1); exit 1; }; } ;;
18419 if test "$cross_compiling" = yes; then
18420 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18421 See \`config.log' for more details." >&5
18422 echo "$as_me: error: cannot run test program while cross compiling
18423 See \`config.log' for more details." >&2;}
18424 { (exit 1); exit 1; }; }
18426 cat >conftest.$ac_ext <<_ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 $ac_includes_default
18433 long longval () { return (long) (sizeof (long long int)); }
18434 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18436 #include <stdlib.h>
18441 FILE *f = fopen ("conftest.val", "w");
18444 if (((long) (sizeof (long long int))) < 0)
18446 long i = longval ();
18447 if (i != ((long) (sizeof (long long int))))
18449 fprintf (f, "%ld\n", i);
18453 unsigned long i = ulongval ();
18454 if (i != ((long) (sizeof (long long int))))
18456 fprintf (f, "%lu\n", i);
18458 exit (ferror (f) || fclose (f) != 0);
18464 rm -f conftest$ac_exeext
18465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18466 (eval $ac_link) 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_sizeof_long_long_int=`cat conftest.val`
18477 echo "$as_me: program exited with status $ac_status" >&5
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 ( exit $ac_status )
18482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18483 See \`config.log' for more details." >&5
18484 echo "$as_me: error: cannot compute sizeof (long long int), 77
18485 See \`config.log' for more details." >&2;}
18486 { (exit 1); exit 1; }; }
18488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18493 ac_cv_sizeof_long_long_int=0
18496 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18497 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18498 cat >>confdefs.h <<_ACEOF
18499 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18503 echo "$as_me:$LINENO: checking for int *" >&5
18504 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18505 if test "${ac_cv_type_int_p+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 $ac_includes_default
18520 if (sizeof (int *))
18526 rm -f conftest.$ac_objext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18528 (eval $ac_compile) 2>conftest.er1
18530 grep -v '^ *+' conftest.er1 >conftest.err
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -z "$ac_c_werror_flag"
18536 || test ! -s conftest.err'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try='test -s conftest.$ac_objext'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 ac_cv_type_int_p=yes
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18553 ac_cv_type_int_p=no
18555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18557 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18558 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18560 echo "$as_me:$LINENO: checking size of int *" >&5
18561 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18562 if test "${ac_cv_sizeof_int_p+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 if test "$ac_cv_type_int_p" = yes; then
18566 # The cast to unsigned long works around a bug in the HP C Compiler
18567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18569 # This bug is HP SR number 8606223364.
18570 if test "$cross_compiling" = yes; then
18571 # Depending upon the size, compute the lo and hi bounds.
18572 cat >conftest.$ac_ext <<_ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18578 $ac_includes_default
18582 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18589 rm -f conftest.$ac_objext
18590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18591 (eval $ac_compile) 2>conftest.er1
18593 grep -v '^ *+' conftest.er1 >conftest.err
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } &&
18598 { ac_try='test -z "$ac_c_werror_flag"
18599 || test ! -s conftest.err'
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; } &&
18605 { ac_try='test -s conftest.$ac_objext'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18613 cat >conftest.$ac_ext <<_ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18619 $ac_includes_default
18623 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18630 rm -f conftest.$ac_objext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18632 (eval $ac_compile) 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -z "$ac_c_werror_flag"
18640 || test ! -s conftest.err'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest.$ac_objext'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18652 ac_hi=$ac_mid; break
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_lo=`expr $ac_mid + 1`
18658 if test $ac_lo -le $ac_mid; then
18662 ac_mid=`expr 2 '*' $ac_mid + 1`
18664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18676 $ac_includes_default
18680 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18687 rm -f conftest.$ac_objext
18688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18689 (eval $ac_compile) 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag"
18697 || test ! -s conftest.err'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; } &&
18703 { ac_try='test -s conftest.$ac_objext'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 $ac_includes_default
18721 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18728 rm -f conftest.$ac_objext
18729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730 (eval $ac_compile) 2>conftest.er1
18732 grep -v '^ *+' conftest.er1 >conftest.err
18734 cat conftest.err >&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } &&
18737 { ac_try='test -z "$ac_c_werror_flag"
18738 || test ! -s conftest.err'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s conftest.$ac_objext'
18745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746 (eval $ac_try) 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
18750 ac_lo=$ac_mid; break
18752 echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 ac_hi=`expr '(' $ac_mid ')' - 1`
18756 if test $ac_mid -le $ac_hi; then
18760 ac_mid=`expr 2 '*' $ac_mid`
18762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18765 echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.$ac_ext >&5
18770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18773 # Binary search between lo and hi bounds.
18774 while test "x$ac_lo" != "x$ac_hi"; do
18775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18776 cat >conftest.$ac_ext <<_ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 $ac_includes_default
18786 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18793 rm -f conftest.$ac_objext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18795 (eval $ac_compile) 2>conftest.er1
18797 grep -v '^ *+' conftest.er1 >conftest.err
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try='test -z "$ac_c_werror_flag"
18803 || test ! -s conftest.err'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 ac_lo=`expr '(' $ac_mid ')' + 1`
18822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18825 ?*) ac_cv_sizeof_int_p=$ac_lo;;
18826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18827 See \`config.log' for more details." >&5
18828 echo "$as_me: error: cannot compute sizeof (int *), 77
18829 See \`config.log' for more details." >&2;}
18830 { (exit 1); exit 1; }; } ;;
18833 if test "$cross_compiling" = yes; then
18834 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18835 See \`config.log' for more details." >&5
18836 echo "$as_me: error: cannot run test program while cross compiling
18837 See \`config.log' for more details." >&2;}
18838 { (exit 1); exit 1; }; }
18840 cat >conftest.$ac_ext <<_ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 $ac_includes_default
18847 long longval () { return (long) (sizeof (int *)); }
18848 unsigned long ulongval () { return (long) (sizeof (int *)); }
18850 #include <stdlib.h>
18855 FILE *f = fopen ("conftest.val", "w");
18858 if (((long) (sizeof (int *))) < 0)
18860 long i = longval ();
18861 if (i != ((long) (sizeof (int *))))
18863 fprintf (f, "%ld\n", i);
18867 unsigned long i = ulongval ();
18868 if (i != ((long) (sizeof (int *))))
18870 fprintf (f, "%lu\n", i);
18872 exit (ferror (f) || fclose (f) != 0);
18878 rm -f conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880 (eval $ac_link) 2>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_sizeof_int_p=`cat conftest.val`
18891 echo "$as_me: program exited with status $ac_status" >&5
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18895 ( exit $ac_status )
18896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18897 See \`config.log' for more details." >&5
18898 echo "$as_me: error: cannot compute sizeof (int *), 77
18899 See \`config.log' for more details." >&2;}
18900 { (exit 1); exit 1; }; }
18902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18907 ac_cv_sizeof_int_p=0
18910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
18911 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
18912 cat >>confdefs.h <<_ACEOF
18913 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
18918 # Check for sys/types.h types
18919 echo "$as_me:$LINENO: checking for u_int type" >&5
18920 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
18921 if test "${ac_cv_have_u_int+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 cat >conftest.$ac_ext <<_ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931 #include <sys/types.h>
18940 rm -f conftest.$ac_objext
18941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942 (eval $ac_compile) 2>conftest.er1
18944 grep -v '^ *+' conftest.er1 >conftest.err
18946 cat conftest.err >&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -z "$ac_c_werror_flag"
18950 || test ! -s conftest.err'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_cv_have_u_int="yes"
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 ac_cv_have_u_int="no"
18970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18973 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
18974 echo "${ECHO_T}$ac_cv_have_u_int" >&6
18975 if test "x$ac_cv_have_u_int" = "xyes" ; then
18976 cat >>confdefs.h <<\_ACEOF
18977 #define HAVE_U_INT 1
18983 echo "$as_me:$LINENO: checking for intmax_t type" >&5
18984 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
18985 if test "${ac_cv_have_intmax_t+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 cat >conftest.$ac_ext <<_ACEOF
18992 cat confdefs.h >>conftest.$ac_ext
18993 cat >>conftest.$ac_ext <<_ACEOF
18994 /* end confdefs.h. */
18995 #include <sys/types.h>
19004 rm -f conftest.$ac_objext
19005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19006 (eval $ac_compile) 2>conftest.er1
19008 grep -v '^ *+' conftest.er1 >conftest.err
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -z "$ac_c_werror_flag"
19014 || test ! -s conftest.err'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest.$ac_objext'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_cv_have_intmax_t="yes"
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19032 cat >conftest.$ac_ext <<_ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038 #include <stdint.h>
19047 rm -f conftest.$ac_objext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049 (eval $ac_compile) 2>conftest.er1
19051 grep -v '^ *+' conftest.er1 >conftest.err
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest.$ac_objext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_cv_have_intmax_t="yes"
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_cv_have_intmax_t="no"
19077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19085 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19086 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19087 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19088 cat >>confdefs.h <<\_ACEOF
19089 #define HAVE_INTMAX_T 1
19096 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19097 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19098 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 cat >conftest.$ac_ext <<_ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19108 #include <sys/types.h>
19112 u_intmax_t a; a = 1;
19117 rm -f conftest.$ac_objext
19118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19119 (eval $ac_compile) 2>conftest.er1
19121 grep -v '^ *+' conftest.er1 >conftest.err
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } &&
19126 { ac_try='test -z "$ac_c_werror_flag"
19127 || test ! -s conftest.err'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; } &&
19133 { ac_try='test -s conftest.$ac_objext'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 ac_cv_have_u_intmax_t="yes"
19141 echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 #include <stdint.h>
19155 u_intmax_t a; a = 1;
19160 rm -f conftest.$ac_objext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162 (eval $ac_compile) 2>conftest.er1
19164 grep -v '^ *+' conftest.er1 >conftest.err
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } &&
19169 { ac_try='test -z "$ac_c_werror_flag"
19170 || test ! -s conftest.err'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest.$ac_objext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_have_u_intmax_t="yes"
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19187 ac_cv_have_u_intmax_t="no"
19190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19197 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19198 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19199 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE_U_INTMAX_T 1
19208 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19209 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19210 if test "${ac_cv_have_intxx_t+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 cat >conftest.$ac_ext <<_ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19220 #include <sys/types.h>
19224 int8_t a; int16_t b; int32_t c; a = b = c = 1;
19229 rm -f conftest.$ac_objext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231 (eval $ac_compile) 2>conftest.er1
19233 grep -v '^ *+' conftest.er1 >conftest.err
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
19238 { ac_try='test -z "$ac_c_werror_flag"
19239 || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_cv_have_intxx_t="yes"
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 ac_cv_have_intxx_t="no"
19259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19262 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19263 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19264 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19265 cat >>confdefs.h <<\_ACEOF
19266 #define HAVE_INTXX_T 1
19272 echo "$as_me:$LINENO: checking for int64_t type" >&5
19273 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19274 if test "${ac_cv_have_int64_t+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19278 cat >conftest.$ac_ext <<_ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19284 #include <sys/types.h>
19293 rm -f conftest.$ac_objext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19295 (eval $ac_compile) 2>conftest.er1
19297 grep -v '^ *+' conftest.er1 >conftest.err
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -z "$ac_c_werror_flag"
19303 || test ! -s conftest.err'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; } &&
19309 { ac_try='test -s conftest.$ac_objext'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19315 ac_cv_have_int64_t="yes"
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ac_cv_have_int64_t="no"
19323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19326 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19327 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19328 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19329 cat >>confdefs.h <<\_ACEOF
19330 #define HAVE_INT64_T 1
19336 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19337 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19338 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 cat >conftest.$ac_ext <<_ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348 #include <sys/types.h>
19352 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19357 rm -f conftest.$ac_objext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359 (eval $ac_compile) 2>conftest.er1
19361 grep -v '^ *+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_c_werror_flag"
19367 || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest.$ac_objext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_have_u_intxx_t="yes"
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_have_u_intxx_t="no"
19387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19390 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19391 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19392 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_U_INTXX_T 1
19400 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19401 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19402 if test "${ac_cv_have_u_int64_t+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 #include <sys/types.h>
19416 u_int64_t a; a = 1;
19421 rm -f conftest.$ac_objext
19422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19423 (eval $ac_compile) 2>conftest.er1
19425 grep -v '^ *+' conftest.er1 >conftest.err
19427 cat conftest.err >&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -z "$ac_c_werror_flag"
19431 || test ! -s conftest.err'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; } &&
19437 { ac_try='test -s conftest.$ac_objext'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_have_u_int64_t="yes"
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_cv_have_u_int64_t="no"
19451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19454 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19455 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19456 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_U_INT64_T 1
19464 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19465 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19467 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19468 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 #include <sys/bitypes.h>
19479 int8_t a; int16_t b; int32_t c;
19480 u_int8_t e; u_int16_t f; u_int32_t g;
19481 a = b = c = e = f = g = 1;
19486 rm -f conftest.$ac_objext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19488 (eval $ac_compile) 2>conftest.er1
19490 grep -v '^ *+' conftest.er1 >conftest.err
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag"
19496 || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest.$ac_objext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 cat >>confdefs.h <<\_ACEOF
19509 #define HAVE_U_INTXX_T 1
19512 cat >>confdefs.h <<\_ACEOF
19513 #define HAVE_INTXX_T 1
19516 cat >>confdefs.h <<\_ACEOF
19517 #define HAVE_SYS_BITYPES_H 1
19520 echo "$as_me:$LINENO: result: yes" >&5
19521 echo "${ECHO_T}yes" >&6
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 echo "$as_me:$LINENO: result: no" >&5
19527 echo "${ECHO_T}no" >&6
19530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19533 if test -z "$have_u_intxx_t" ; then
19534 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19535 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19536 if test "${ac_cv_have_uintxx_t+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 cat >conftest.$ac_ext <<_ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19546 #include <sys/types.h>
19550 uint8_t a; uint16_t b;
19551 uint32_t c; a = b = c = 1;
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>conftest.er1
19560 grep -v '^ *+' conftest.er1 >conftest.err
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
19565 { ac_try='test -z "$ac_c_werror_flag"
19566 || test ! -s conftest.err'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest.$ac_objext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_cv_have_uintxx_t="yes"
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 ac_cv_have_uintxx_t="no"
19586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19589 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19590 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19591 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19592 cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_UINTXX_T 1
19599 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19600 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19602 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19603 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 #include <sys/bitypes.h>
19614 int64_t a; u_int64_t b;
19620 rm -f conftest.$ac_objext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19622 (eval $ac_compile) 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag"
19630 || test ! -s conftest.err'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; } &&
19636 { ac_try='test -s conftest.$ac_objext'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 cat >>confdefs.h <<\_ACEOF
19643 #define HAVE_U_INT64_T 1
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_INT64_T 1
19650 echo "$as_me:$LINENO: result: yes" >&5
19651 echo "${ECHO_T}yes" >&6
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 echo "$as_me:$LINENO: result: no" >&5
19657 echo "${ECHO_T}no" >&6
19660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19663 if (test -z "$have_uintxx_t" && \
19664 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19666 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19667 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19668 cat >conftest.$ac_ext <<_ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 #include <sys/bitypes.h>
19678 uint8_t a; uint16_t b;
19679 uint32_t c; a = b = c = 1;
19684 rm -f conftest.$ac_objext
19685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686 (eval $ac_compile) 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_c_werror_flag"
19694 || test ! -s conftest.err'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try='test -s conftest.$ac_objext'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; }; then
19706 cat >>confdefs.h <<\_ACEOF
19707 #define HAVE_UINTXX_T 1
19710 echo "$as_me:$LINENO: result: yes" >&5
19711 echo "${ECHO_T}yes" >&6
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19716 echo "$as_me:$LINENO: result: no" >&5
19717 echo "${ECHO_T}no" >&6
19720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19757 echo "$as_me:$LINENO: checking for $ac_func" >&5
19758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19759 if eval "test \"\${$as_ac_var+set}\" = set"; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19770 #define $ac_func innocuous_$ac_func
19772 /* System header to define __stub macros and hopefully few prototypes,
19773 which can conflict with char $ac_func (); below.
19774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19775 <limits.h> exists even on freestanding compilers. */
19778 # include <limits.h>
19780 # include <assert.h>
19785 /* Override any gcc2 internal prototype to avoid an error. */
19790 /* We use char because int might match the return type of a gcc2
19791 builtin and then its argument prototype would still apply. */
19793 /* The GNU C library defines this for functions which it implements
19794 to always fail with ENOSYS. Some functions are actually named
19795 something starting with __ and the normal name is an alias. */
19796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19799 char (*f) () = $ac_func;
19808 return f != $ac_func;
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815 (eval $ac_link) 2>conftest.er1
19817 grep -v '^ *+' conftest.er1 >conftest.err
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try='test -z "$ac_c_werror_flag"
19823 || test ! -s conftest.err'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; } &&
19829 { ac_try='test -s conftest$ac_exeext'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 eval "$as_ac_var=yes"
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 eval "$as_ac_var=no"
19842 rm -f conftest.err conftest.$ac_objext \
19843 conftest$ac_exeext conftest.$ac_ext
19845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19847 if test `eval echo '${'$as_ac_var'}'` = yes; then
19848 cat >>confdefs.h <<_ACEOF
19849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19853 echo 'configure: cannot find needed function.'; exit 1
19860 for ac_func in fchdir
19862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19863 echo "$as_me:$LINENO: checking for $ac_func" >&5
19864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19865 if eval "test \"\${$as_ac_var+set}\" = set"; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 cat >conftest.$ac_ext <<_ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19876 #define $ac_func innocuous_$ac_func
19878 /* System header to define __stub macros and hopefully few prototypes,
19879 which can conflict with char $ac_func (); below.
19880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19881 <limits.h> exists even on freestanding compilers. */
19884 # include <limits.h>
19886 # include <assert.h>
19891 /* Override any gcc2 internal prototype to avoid an error. */
19896 /* We use char because int might match the return type of a gcc2
19897 builtin and then its argument prototype would still apply. */
19899 /* The GNU C library defines this for functions which it implements
19900 to always fail with ENOSYS. Some functions are actually named
19901 something starting with __ and the normal name is an alias. */
19902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19905 char (*f) () = $ac_func;
19914 return f != $ac_func;
19919 rm -f conftest.$ac_objext conftest$ac_exeext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19921 (eval $ac_link) 2>conftest.er1
19923 grep -v '^ *+' conftest.er1 >conftest.err
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
19928 { ac_try='test -z "$ac_c_werror_flag"
19929 || test ! -s conftest.err'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; } &&
19935 { ac_try='test -s conftest$ac_exeext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 eval "$as_ac_var=yes"
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 eval "$as_ac_var=no"
19948 rm -f conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext conftest.$ac_ext
19951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19953 if test `eval echo '${'$as_ac_var'}'` = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19957 cat >>confdefs.h <<\_ACEOF
19958 #define HAVE_FCHDIR 1
19965 for ac_func in strtoll
19967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19968 echo "$as_me:$LINENO: checking for $ac_func" >&5
19969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19970 if eval "test \"\${$as_ac_var+set}\" = set"; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 cat >conftest.$ac_ext <<_ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19981 #define $ac_func innocuous_$ac_func
19983 /* System header to define __stub macros and hopefully few prototypes,
19984 which can conflict with char $ac_func (); below.
19985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19986 <limits.h> exists even on freestanding compilers. */
19989 # include <limits.h>
19991 # include <assert.h>
19996 /* Override any gcc2 internal prototype to avoid an error. */
20001 /* We use char because int might match the return type of a gcc2
20002 builtin and then its argument prototype would still apply. */
20004 /* The GNU C library defines this for functions which it implements
20005 to always fail with ENOSYS. Some functions are actually named
20006 something starting with __ and the normal name is an alias. */
20007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20010 char (*f) () = $ac_func;
20019 return f != $ac_func;
20024 rm -f conftest.$ac_objext conftest$ac_exeext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20026 (eval $ac_link) 2>conftest.er1
20028 grep -v '^ *+' conftest.er1 >conftest.err
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -z "$ac_c_werror_flag"
20034 || test ! -s conftest.err'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; } &&
20040 { ac_try='test -s conftest$ac_exeext'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
20046 eval "$as_ac_var=yes"
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20051 eval "$as_ac_var=no"
20053 rm -f conftest.err conftest.$ac_objext \
20054 conftest$ac_exeext conftest.$ac_ext
20056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20058 if test `eval echo '${'$as_ac_var'}'` = yes; then
20059 cat >>confdefs.h <<_ACEOF
20060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_STRTOLL 1
20071 for ac_func in chflags
20073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20074 echo "$as_me:$LINENO: checking for $ac_func" >&5
20075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20076 if eval "test \"\${$as_ac_var+set}\" = set"; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 cat >conftest.$ac_ext <<_ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20087 #define $ac_func innocuous_$ac_func
20089 /* System header to define __stub macros and hopefully few prototypes,
20090 which can conflict with char $ac_func (); below.
20091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20092 <limits.h> exists even on freestanding compilers. */
20095 # include <limits.h>
20097 # include <assert.h>
20102 /* Override any gcc2 internal prototype to avoid an error. */
20107 /* We use char because int might match the return type of a gcc2
20108 builtin and then its argument prototype would still apply. */
20110 /* The GNU C library defines this for functions which it implements
20111 to always fail with ENOSYS. Some functions are actually named
20112 something starting with __ and the normal name is an alias. */
20113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20116 char (*f) () = $ac_func;
20125 return f != $ac_func;
20130 rm -f conftest.$ac_objext conftest$ac_exeext
20131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20132 (eval $ac_link) 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
20139 { ac_try='test -z "$ac_c_werror_flag"
20140 || test ! -s conftest.err'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; } &&
20146 { ac_try='test -s conftest$ac_exeext'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 eval "$as_ac_var=yes"
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20157 eval "$as_ac_var=no"
20159 rm -f conftest.err conftest.$ac_objext \
20160 conftest$ac_exeext conftest.$ac_ext
20162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20164 if test `eval echo '${'$as_ac_var'}'` = yes; then
20165 cat >>confdefs.h <<_ACEOF
20166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20177 for ac_func in snprintf vsnprintf gethostid fseeko
20179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20180 echo "$as_me:$LINENO: checking for $ac_func" >&5
20181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20182 if eval "test \"\${$as_ac_var+set}\" = set"; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20193 #define $ac_func innocuous_$ac_func
20195 /* System header to define __stub macros and hopefully few prototypes,
20196 which can conflict with char $ac_func (); below.
20197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20198 <limits.h> exists even on freestanding compilers. */
20201 # include <limits.h>
20203 # include <assert.h>
20208 /* Override any gcc2 internal prototype to avoid an error. */
20213 /* We use char because int might match the return type of a gcc2
20214 builtin and then its argument prototype would still apply. */
20216 /* The GNU C library defines this for functions which it implements
20217 to always fail with ENOSYS. Some functions are actually named
20218 something starting with __ and the normal name is an alias. */
20219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20222 char (*f) () = $ac_func;
20231 return f != $ac_func;
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20238 (eval $ac_link) 2>conftest.er1
20240 grep -v '^ *+' conftest.er1 >conftest.err
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_c_werror_flag"
20246 || test ! -s conftest.err'
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); }; } &&
20252 { ac_try='test -s conftest$ac_exeext'
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 eval "$as_ac_var=yes"
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 eval "$as_ac_var=no"
20265 rm -f conftest.err conftest.$ac_objext \
20266 conftest$ac_exeext conftest.$ac_ext
20268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20270 if test `eval echo '${'$as_ac_var'}'` = yes; then
20271 cat >>confdefs.h <<_ACEOF
20272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20283 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20286 echo "$as_me:$LINENO: checking for $ac_func" >&5
20287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20288 if eval "test \"\${$as_ac_var+set}\" = set"; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 cat >conftest.$ac_ext <<_ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20299 #define $ac_func innocuous_$ac_func
20301 /* System header to define __stub macros and hopefully few prototypes,
20302 which can conflict with char $ac_func (); below.
20303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20304 <limits.h> exists even on freestanding compilers. */
20307 # include <limits.h>
20309 # include <assert.h>
20314 /* Override any gcc2 internal prototype to avoid an error. */
20319 /* We use char because int might match the return type of a gcc2
20320 builtin and then its argument prototype would still apply. */
20322 /* The GNU C library defines this for functions which it implements
20323 to always fail with ENOSYS. Some functions are actually named
20324 something starting with __ and the normal name is an alias. */
20325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20328 char (*f) () = $ac_func;
20337 return f != $ac_func;
20342 rm -f conftest.$ac_objext conftest$ac_exeext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20344 (eval $ac_link) 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } &&
20351 { ac_try='test -z "$ac_c_werror_flag"
20352 || test ! -s conftest.err'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; } &&
20358 { ac_try='test -s conftest$ac_exeext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20364 eval "$as_ac_var=yes"
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 eval "$as_ac_var=no"
20371 rm -f conftest.err conftest.$ac_objext \
20372 conftest$ac_exeext conftest.$ac_ext
20374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20376 if test `eval echo '${'$as_ac_var'}'` = yes; then
20377 cat >>confdefs.h <<_ACEOF
20378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20385 # If resolver functions are not in libc check for -lnsl or -lresolv.
20386 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20387 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20388 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 cat >conftest.$ac_ext <<_ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20399 #define gethostbyname_r innocuous_gethostbyname_r
20401 /* System header to define __stub macros and hopefully few prototypes,
20402 which can conflict with char gethostbyname_r (); below.
20403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20404 <limits.h> exists even on freestanding compilers. */
20407 # include <limits.h>
20409 # include <assert.h>
20412 #undef gethostbyname_r
20414 /* Override any gcc2 internal prototype to avoid an error. */
20419 /* We use char because int might match the return type of a gcc2
20420 builtin and then its argument prototype would still apply. */
20421 char gethostbyname_r ();
20422 /* The GNU C library defines this for functions which it implements
20423 to always fail with ENOSYS. Some functions are actually named
20424 something starting with __ and the normal name is an alias. */
20425 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20428 char (*f) () = gethostbyname_r;
20437 return f != gethostbyname_r;
20442 rm -f conftest.$ac_objext conftest$ac_exeext
20443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20444 (eval $ac_link) 2>conftest.er1
20446 grep -v '^ *+' conftest.er1 >conftest.err
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } &&
20451 { ac_try='test -z "$ac_c_werror_flag"
20452 || test ! -s conftest.err'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest$ac_exeext'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 ac_cv_func_gethostbyname_r=yes
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 ac_cv_func_gethostbyname_r=no
20471 rm -f conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
20474 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20475 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20476 if test $ac_cv_func_gethostbyname_r = yes; then
20477 echo "$as_me:$LINENO: result: using libc's resolver" >&5
20478 echo "${ECHO_T}using libc's resolver" >&6
20481 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20482 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20483 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 ac_check_lib_save_LIBS=$LIBS
20488 cat >conftest.$ac_ext <<_ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20495 /* Override any gcc2 internal prototype to avoid an error. */
20499 /* We use char because int might match the return type of a gcc2
20500 builtin and then its argument prototype would still apply. */
20501 char gethostbyname_r ();
20505 gethostbyname_r ();
20510 rm -f conftest.$ac_objext conftest$ac_exeext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20512 (eval $ac_link) 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag"
20520 || test ! -s conftest.err'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest$ac_exeext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_cv_lib_nsl_gethostbyname_r=yes
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_lib_nsl_gethostbyname_r=no
20539 rm -f conftest.err conftest.$ac_objext \
20540 conftest$ac_exeext conftest.$ac_ext
20541 LIBS=$ac_check_lib_save_LIBS
20543 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20544 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20545 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20546 cat >>confdefs.h <<_ACEOF
20547 #define HAVE_LIBNSL 1
20555 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20556 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20557 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 ac_check_lib_save_LIBS=$LIBS
20561 LIBS="-lresolv $LIBS"
20562 cat >conftest.$ac_ext <<_ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20569 /* Override any gcc2 internal prototype to avoid an error. */
20573 /* We use char because int might match the return type of a gcc2
20574 builtin and then its argument prototype would still apply. */
20575 char gethostbyname_r ();
20579 gethostbyname_r ();
20584 rm -f conftest.$ac_objext conftest$ac_exeext
20585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20586 (eval $ac_link) 2>conftest.er1
20588 grep -v '^ *+' conftest.er1 >conftest.err
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } &&
20593 { ac_try='test -z "$ac_c_werror_flag"
20594 || test ! -s conftest.err'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; } &&
20600 { ac_try='test -s conftest$ac_exeext'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
20606 ac_cv_lib_resolv_gethostbyname_r=yes
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20611 ac_cv_lib_resolv_gethostbyname_r=no
20613 rm -f conftest.err conftest.$ac_objext \
20614 conftest$ac_exeext conftest.$ac_ext
20615 LIBS=$ac_check_lib_save_LIBS
20617 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20618 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20619 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20620 cat >>confdefs.h <<_ACEOF
20621 #define HAVE_LIBRESOLV 1
20624 LIBS="-lresolv $LIBS"
20634 for ac_func in inet_pton
20636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20637 echo "$as_me:$LINENO: checking for $ac_func" >&5
20638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20639 if eval "test \"\${$as_ac_var+set}\" = set"; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 cat >conftest.$ac_ext <<_ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20650 #define $ac_func innocuous_$ac_func
20652 /* System header to define __stub macros and hopefully few prototypes,
20653 which can conflict with char $ac_func (); below.
20654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20655 <limits.h> exists even on freestanding compilers. */
20658 # include <limits.h>
20660 # include <assert.h>
20665 /* Override any gcc2 internal prototype to avoid an error. */
20670 /* We use char because int might match the return type of a gcc2
20671 builtin and then its argument prototype would still apply. */
20673 /* The GNU C library defines this for functions which it implements
20674 to always fail with ENOSYS. Some functions are actually named
20675 something starting with __ and the normal name is an alias. */
20676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20679 char (*f) () = $ac_func;
20688 return f != $ac_func;
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695 (eval $ac_link) 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest$ac_exeext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 eval "$as_ac_var=yes"
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 eval "$as_ac_var=no"
20722 rm -f conftest.err conftest.$ac_objext \
20723 conftest$ac_exeext conftest.$ac_ext
20725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20727 if test `eval echo '${'$as_ac_var'}'` = yes; then
20728 cat >>confdefs.h <<_ACEOF
20729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20731 cat >>confdefs.h <<\_ACEOF
20732 #define HAVE_INET_PTON 1
20739 for ac_func in inet_ntop
20741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20742 echo "$as_me:$LINENO: checking for $ac_func" >&5
20743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20744 if eval "test \"\${$as_ac_var+set}\" = set"; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 cat >conftest.$ac_ext <<_ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20755 #define $ac_func innocuous_$ac_func
20757 /* System header to define __stub macros and hopefully few prototypes,
20758 which can conflict with char $ac_func (); below.
20759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20760 <limits.h> exists even on freestanding compilers. */
20763 # include <limits.h>
20765 # include <assert.h>
20770 /* Override any gcc2 internal prototype to avoid an error. */
20775 /* We use char because int might match the return type of a gcc2
20776 builtin and then its argument prototype would still apply. */
20778 /* The GNU C library defines this for functions which it implements
20779 to always fail with ENOSYS. Some functions are actually named
20780 something starting with __ and the normal name is an alias. */
20781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20784 char (*f) () = $ac_func;
20793 return f != $ac_func;
20798 rm -f conftest.$ac_objext conftest$ac_exeext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20800 (eval $ac_link) 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
20807 { ac_try='test -z "$ac_c_werror_flag"
20808 || test ! -s conftest.err'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest$ac_exeext'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 eval "$as_ac_var=yes"
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 eval "$as_ac_var=no"
20827 rm -f conftest.err conftest.$ac_objext \
20828 conftest$ac_exeext conftest.$ac_ext
20830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20832 if test `eval echo '${'$as_ac_var'}'` = yes; then
20833 cat >>confdefs.h <<_ACEOF
20834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20836 cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_INET_NTOP 1
20844 for ac_func in gethostbyname2
20846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20847 echo "$as_me:$LINENO: checking for $ac_func" >&5
20848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20849 if eval "test \"\${$as_ac_var+set}\" = set"; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20860 #define $ac_func innocuous_$ac_func
20862 /* System header to define __stub macros and hopefully few prototypes,
20863 which can conflict with char $ac_func (); below.
20864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20865 <limits.h> exists even on freestanding compilers. */
20868 # include <limits.h>
20870 # include <assert.h>
20875 /* Override any gcc2 internal prototype to avoid an error. */
20880 /* We use char because int might match the return type of a gcc2
20881 builtin and then its argument prototype would still apply. */
20883 /* The GNU C library defines this for functions which it implements
20884 to always fail with ENOSYS. Some functions are actually named
20885 something starting with __ and the normal name is an alias. */
20886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20889 char (*f) () = $ac_func;
20898 return f != $ac_func;
20903 rm -f conftest.$ac_objext conftest$ac_exeext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20905 (eval $ac_link) 2>conftest.er1
20907 grep -v '^ *+' conftest.er1 >conftest.err
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
20912 { ac_try='test -z "$ac_c_werror_flag"
20913 || test ! -s conftest.err'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; } &&
20919 { ac_try='test -s conftest$ac_exeext'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
20925 eval "$as_ac_var=yes"
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 eval "$as_ac_var=no"
20932 rm -f conftest.err conftest.$ac_objext \
20933 conftest$ac_exeext conftest.$ac_ext
20935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20937 if test `eval echo '${'$as_ac_var'}'` = yes; then
20938 cat >>confdefs.h <<_ACEOF
20939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20941 cat >>confdefs.h <<\_ACEOF
20942 #define HAVE_GETHOSTBYNAME2 1
20949 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
20950 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
20951 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 cat >conftest.$ac_ext <<_ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <sys/socket.h>
20964 struct sockaddr s; s.sa_len;
20969 rm -f conftest.$ac_objext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20971 (eval $ac_compile) 2>conftest.er1
20973 grep -v '^ *+' conftest.er1 >conftest.err
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try='test -z "$ac_c_werror_flag"
20979 || test ! -s conftest.err'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest.$ac_objext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_struct_sockaddr_sa_len=yes
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20996 ac_cv_struct_sockaddr_sa_len=no
20998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21000 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21001 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21003 if test $ac_cv_struct_sockaddr_sa_len = yes; then
21005 cat >>confdefs.h <<\_ACEOF
21006 #define HAVE_SA_LEN 1
21012 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21013 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21014 if test "${ac_cv_ipv6_support+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 cat >conftest.$ac_ext <<_ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21023 #include <sys/types.h>
21024 #include <sys/socket.h>
21025 #include <netinet/in.h>
21029 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21035 rm -f conftest.$ac_objext conftest$ac_exeext
21036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21037 (eval $ac_link) 2>conftest.er1
21039 grep -v '^ *+' conftest.er1 >conftest.err
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -z "$ac_c_werror_flag"
21045 || test ! -s conftest.err'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try='test -s conftest$ac_exeext'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_cv_ipv6_support=yes
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21062 ac_cv_ipv6_support=no
21064 rm -f conftest.err conftest.$ac_objext \
21065 conftest$ac_exeext conftest.$ac_ext
21067 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21068 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21070 if test "$ac_cv_ipv6_support" = yes; then
21072 cat >>confdefs.h <<\_ACEOF
21073 #define HAVE_IPV6 1
21081 for ac_func in strftime
21083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21084 echo "$as_me:$LINENO: checking for $ac_func" >&5
21085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21086 if eval "test \"\${$as_ac_var+set}\" = set"; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21097 #define $ac_func innocuous_$ac_func
21099 /* System header to define __stub macros and hopefully few prototypes,
21100 which can conflict with char $ac_func (); below.
21101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21102 <limits.h> exists even on freestanding compilers. */
21105 # include <limits.h>
21107 # include <assert.h>
21112 /* Override any gcc2 internal prototype to avoid an error. */
21117 /* We use char because int might match the return type of a gcc2
21118 builtin and then its argument prototype would still apply. */
21120 /* The GNU C library defines this for functions which it implements
21121 to always fail with ENOSYS. Some functions are actually named
21122 something starting with __ and the normal name is an alias. */
21123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21126 char (*f) () = $ac_func;
21135 return f != $ac_func;
21140 rm -f conftest.$ac_objext conftest$ac_exeext
21141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21142 (eval $ac_link) 2>conftest.er1
21144 grep -v '^ *+' conftest.er1 >conftest.err
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } &&
21149 { ac_try='test -z "$ac_c_werror_flag"
21150 || test ! -s conftest.err'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; } &&
21156 { ac_try='test -s conftest$ac_exeext'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; }; then
21162 eval "$as_ac_var=yes"
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 eval "$as_ac_var=no"
21169 rm -f conftest.err conftest.$ac_objext \
21170 conftest$ac_exeext conftest.$ac_ext
21172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21174 if test `eval echo '${'$as_ac_var'}'` = yes; then
21175 cat >>confdefs.h <<_ACEOF
21176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21180 # strftime is in -lintl on SCO UNIX.
21181 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21182 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21183 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 ac_check_lib_save_LIBS=$LIBS
21187 LIBS="-lintl $LIBS"
21188 cat >conftest.$ac_ext <<_ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21195 /* Override any gcc2 internal prototype to avoid an error. */
21199 /* We use char because int might match the return type of a gcc2
21200 builtin and then its argument prototype would still apply. */
21210 rm -f conftest.$ac_objext conftest$ac_exeext
21211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21212 (eval $ac_link) 2>conftest.er1
21214 grep -v '^ *+' conftest.er1 >conftest.err
21216 cat conftest.err >&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } &&
21219 { ac_try='test -z "$ac_c_werror_flag"
21220 || test ! -s conftest.err'
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; } &&
21226 { ac_try='test -s conftest$ac_exeext'
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228 (eval $ac_try) 2>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; }; then
21232 ac_cv_lib_intl_strftime=yes
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21237 ac_cv_lib_intl_strftime=no
21239 rm -f conftest.err conftest.$ac_objext \
21240 conftest$ac_exeext conftest.$ac_ext
21241 LIBS=$ac_check_lib_save_LIBS
21243 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21244 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21245 if test $ac_cv_lib_intl_strftime = yes; then
21246 cat >>confdefs.h <<\_ACEOF
21247 #define HAVE_STRFTIME 1
21250 LIBS="-lintl $LIBS"
21257 for ac_func in vprintf
21259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21260 echo "$as_me:$LINENO: checking for $ac_func" >&5
21261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21262 if eval "test \"\${$as_ac_var+set}\" = set"; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21273 #define $ac_func innocuous_$ac_func
21275 /* System header to define __stub macros and hopefully few prototypes,
21276 which can conflict with char $ac_func (); below.
21277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21278 <limits.h> exists even on freestanding compilers. */
21281 # include <limits.h>
21283 # include <assert.h>
21288 /* Override any gcc2 internal prototype to avoid an error. */
21293 /* We use char because int might match the return type of a gcc2
21294 builtin and then its argument prototype would still apply. */
21296 /* The GNU C library defines this for functions which it implements
21297 to always fail with ENOSYS. Some functions are actually named
21298 something starting with __ and the normal name is an alias. */
21299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21302 char (*f) () = $ac_func;
21311 return f != $ac_func;
21316 rm -f conftest.$ac_objext conftest$ac_exeext
21317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21318 (eval $ac_link) 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
21325 { ac_try='test -z "$ac_c_werror_flag"
21326 || test ! -s conftest.err'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; } &&
21332 { ac_try='test -s conftest$ac_exeext'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21338 eval "$as_ac_var=yes"
21340 echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21343 eval "$as_ac_var=no"
21345 rm -f conftest.err conftest.$ac_objext \
21346 conftest$ac_exeext conftest.$ac_ext
21348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21350 if test `eval echo '${'$as_ac_var'}'` = yes; then
21351 cat >>confdefs.h <<_ACEOF
21352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21355 echo "$as_me:$LINENO: checking for _doprnt" >&5
21356 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21357 if test "${ac_cv_func__doprnt+set}" = set; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21368 #define _doprnt innocuous__doprnt
21370 /* System header to define __stub macros and hopefully few prototypes,
21371 which can conflict with char _doprnt (); below.
21372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21373 <limits.h> exists even on freestanding compilers. */
21376 # include <limits.h>
21378 # include <assert.h>
21383 /* Override any gcc2 internal prototype to avoid an error. */
21388 /* We use char because int might match the return type of a gcc2
21389 builtin and then its argument prototype would still apply. */
21391 /* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21397 char (*f) () = _doprnt;
21406 return f != _doprnt;
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413 (eval $ac_link) 2>conftest.er1
21415 grep -v '^ *+' conftest.er1 >conftest.err
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try='test -z "$ac_c_werror_flag"
21421 || test ! -s conftest.err'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest$ac_exeext'
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 ac_cv_func__doprnt=yes
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ac_cv_func__doprnt=no
21440 rm -f conftest.err conftest.$ac_objext \
21441 conftest$ac_exeext conftest.$ac_ext
21443 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21444 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21445 if test $ac_cv_func__doprnt = yes; then
21447 cat >>confdefs.h <<\_ACEOF
21448 #define HAVE_DOPRNT 1
21457 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21458 # for constant arguments. Useless!
21459 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21460 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21461 if test "${ac_cv_working_alloca_h+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21464 cat >conftest.$ac_ext <<_ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 #include <alloca.h>
21474 char *p = (char *) alloca (2 * sizeof (int));
21479 rm -f conftest.$ac_objext conftest$ac_exeext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21481 (eval $ac_link) 2>conftest.er1
21483 grep -v '^ *+' conftest.er1 >conftest.err
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag"
21489 || test ! -s conftest.err'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; } &&
21495 { ac_try='test -s conftest$ac_exeext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 ac_cv_working_alloca_h=yes
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21506 ac_cv_working_alloca_h=no
21508 rm -f conftest.err conftest.$ac_objext \
21509 conftest$ac_exeext conftest.$ac_ext
21511 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21512 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21513 if test $ac_cv_working_alloca_h = yes; then
21515 cat >>confdefs.h <<\_ACEOF
21516 #define HAVE_ALLOCA_H 1
21521 echo "$as_me:$LINENO: checking for alloca" >&5
21522 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21523 if test "${ac_cv_func_alloca_works+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 cat >conftest.$ac_ext <<_ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h. */
21533 # define alloca __builtin_alloca
21536 # include <malloc.h>
21537 # define alloca _alloca
21540 # include <alloca.h>
21545 # ifndef alloca /* predefined by HP cc +Olibcalls */
21556 char *p = (char *) alloca (1);
21561 rm -f conftest.$ac_objext conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563 (eval $ac_link) 2>conftest.er1
21565 grep -v '^ *+' conftest.er1 >conftest.err
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } &&
21570 { ac_try='test -z "$ac_c_werror_flag"
21571 || test ! -s conftest.err'
21572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; } &&
21577 { ac_try='test -s conftest$ac_exeext'
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; }; then
21583 ac_cv_func_alloca_works=yes
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ac_cv_func_alloca_works=no
21590 rm -f conftest.err conftest.$ac_objext \
21591 conftest$ac_exeext conftest.$ac_ext
21593 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21594 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21596 if test $ac_cv_func_alloca_works = yes; then
21598 cat >>confdefs.h <<\_ACEOF
21599 #define HAVE_ALLOCA 1
21603 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21604 # that cause trouble. Some versions do not even contain alloca or
21605 # contain a buggy version. If you still want to use their alloca,
21606 # use ar to extract alloca.o from them instead of compiling alloca.c.
21608 ALLOCA=alloca.$ac_objext
21610 cat >>confdefs.h <<\_ACEOF
21615 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21616 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21617 if test "${ac_cv_os_cray+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626 #if defined(CRAY) && ! defined(CRAY2)
21633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21634 $EGREP "webecray" >/dev/null 2>&1; then
21642 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21643 echo "${ECHO_T}$ac_cv_os_cray" >&6
21644 if test $ac_cv_os_cray = yes; then
21645 for ac_func in _getb67 GETB67 getb67; do
21646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21647 echo "$as_me:$LINENO: checking for $ac_func" >&5
21648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21649 if eval "test \"\${$as_ac_var+set}\" = set"; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 cat >conftest.$ac_ext <<_ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21660 #define $ac_func innocuous_$ac_func
21662 /* System header to define __stub macros and hopefully few prototypes,
21663 which can conflict with char $ac_func (); below.
21664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21665 <limits.h> exists even on freestanding compilers. */
21668 # include <limits.h>
21670 # include <assert.h>
21675 /* Override any gcc2 internal prototype to avoid an error. */
21680 /* We use char because int might match the return type of a gcc2
21681 builtin and then its argument prototype would still apply. */
21683 /* The GNU C library defines this for functions which it implements
21684 to always fail with ENOSYS. Some functions are actually named
21685 something starting with __ and the normal name is an alias. */
21686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21689 char (*f) () = $ac_func;
21698 return f != $ac_func;
21703 rm -f conftest.$ac_objext conftest$ac_exeext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21705 (eval $ac_link) 2>conftest.er1
21707 grep -v '^ *+' conftest.er1 >conftest.err
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } &&
21712 { ac_try='test -z "$ac_c_werror_flag"
21713 || test ! -s conftest.err'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; } &&
21719 { ac_try='test -s conftest$ac_exeext'
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 eval "$as_ac_var=yes"
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21730 eval "$as_ac_var=no"
21732 rm -f conftest.err conftest.$ac_objext \
21733 conftest$ac_exeext conftest.$ac_ext
21735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21737 if test `eval echo '${'$as_ac_var'}'` = yes; then
21739 cat >>confdefs.h <<_ACEOF
21740 #define CRAY_STACKSEG_END $ac_func
21749 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21750 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21751 if test "${ac_cv_c_stack_direction+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 if test "$cross_compiling" = yes; then
21755 ac_cv_c_stack_direction=0
21757 cat >conftest.$ac_ext <<_ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h. */
21764 find_stack_direction ()
21766 static char *addr = 0;
21771 return find_stack_direction ();
21774 return (&dummy > addr) ? 1 : -1;
21780 exit (find_stack_direction () < 0);
21783 rm -f conftest$ac_exeext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21785 (eval $ac_link) 2>&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }; then
21794 ac_cv_c_stack_direction=1
21796 echo "$as_me: program exited with status $ac_status" >&5
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 ( exit $ac_status )
21801 ac_cv_c_stack_direction=-1
21803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21806 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21807 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21809 cat >>confdefs.h <<_ACEOF
21810 #define STACK_DIRECTION $ac_cv_c_stack_direction
21816 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21817 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21818 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21819 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 ac_check_lib_save_LIBS=$LIBS
21824 cat >conftest.$ac_ext <<_ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21831 /* Override any gcc2 internal prototype to avoid an error. */
21835 /* We use char because int might match the return type of a gcc2
21836 builtin and then its argument prototype would still apply. */
21846 rm -f conftest.$ac_objext conftest$ac_exeext
21847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21848 (eval $ac_link) 2>conftest.er1
21850 grep -v '^ *+' conftest.er1 >conftest.err
21852 cat conftest.err >&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } &&
21855 { ac_try='test -z "$ac_c_werror_flag"
21856 || test ! -s conftest.err'
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; } &&
21862 { ac_try='test -s conftest$ac_exeext'
21863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864 (eval $ac_try) 2>&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 ac_cv_lib_sun_getmntent=yes
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21873 ac_cv_lib_sun_getmntent=no
21875 rm -f conftest.err conftest.$ac_objext \
21876 conftest$ac_exeext conftest.$ac_ext
21877 LIBS=$ac_check_lib_save_LIBS
21879 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
21880 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
21881 if test $ac_cv_lib_sun_getmntent = yes; then
21884 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
21885 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
21886 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21889 ac_check_lib_save_LIBS=$LIBS
21891 cat >conftest.$ac_ext <<_ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21898 /* Override any gcc2 internal prototype to avoid an error. */
21902 /* We use char because int might match the return type of a gcc2
21903 builtin and then its argument prototype would still apply. */
21913 rm -f conftest.$ac_objext conftest$ac_exeext
21914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21915 (eval $ac_link) 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } &&
21922 { ac_try='test -z "$ac_c_werror_flag"
21923 || test ! -s conftest.err'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; } &&
21929 { ac_try='test -s conftest$ac_exeext'
21930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931 (eval $ac_try) 2>&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); }; }; then
21935 ac_cv_lib_seq_getmntent=yes
21937 echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21940 ac_cv_lib_seq_getmntent=no
21942 rm -f conftest.err conftest.$ac_objext \
21943 conftest$ac_exeext conftest.$ac_ext
21944 LIBS=$ac_check_lib_save_LIBS
21946 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
21947 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
21948 if test $ac_cv_lib_seq_getmntent = yes; then
21951 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
21952 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
21953 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 ac_check_lib_save_LIBS=$LIBS
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21965 /* Override any gcc2 internal prototype to avoid an error. */
21969 /* We use char because int might match the return type of a gcc2
21970 builtin and then its argument prototype would still apply. */
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21982 (eval $ac_link) 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_exeext'
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_lib_gen_getmntent=yes
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 ac_cv_lib_gen_getmntent=no
22009 rm -f conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22011 LIBS=$ac_check_lib_save_LIBS
22013 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22014 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22015 if test $ac_cv_lib_gen_getmntent = yes; then
22024 for ac_func in getmntent
22026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22027 echo "$as_me:$LINENO: checking for $ac_func" >&5
22028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22029 if eval "test \"\${$as_ac_var+set}\" = set"; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22032 cat >conftest.$ac_ext <<_ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22040 #define $ac_func innocuous_$ac_func
22042 /* System header to define __stub macros and hopefully few prototypes,
22043 which can conflict with char $ac_func (); below.
22044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22045 <limits.h> exists even on freestanding compilers. */
22048 # include <limits.h>
22050 # include <assert.h>
22055 /* Override any gcc2 internal prototype to avoid an error. */
22060 /* We use char because int might match the return type of a gcc2
22061 builtin and then its argument prototype would still apply. */
22063 /* The GNU C library defines this for functions which it implements
22064 to always fail with ENOSYS. Some functions are actually named
22065 something starting with __ and the normal name is an alias. */
22066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22069 char (*f) () = $ac_func;
22078 return f != $ac_func;
22083 rm -f conftest.$ac_objext conftest$ac_exeext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22085 (eval $ac_link) 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
22092 { ac_try='test -z "$ac_c_werror_flag"
22093 || test ! -s conftest.err'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; } &&
22099 { ac_try='test -s conftest$ac_exeext'
22100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101 (eval $ac_try) 2>&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); }; }; then
22105 eval "$as_ac_var=yes"
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 eval "$as_ac_var=no"
22112 rm -f conftest.err conftest.$ac_objext \
22113 conftest$ac_exeext conftest.$ac_ext
22115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22117 if test `eval echo '${'$as_ac_var'}'` = yes; then
22118 cat >>confdefs.h <<_ACEOF
22119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22126 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22127 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22128 if test "${ac_cv_func_closedir_void+set}" = set; then
22129 echo $ECHO_N "(cached) $ECHO_C" >&6
22131 if test "$cross_compiling" = yes; then
22132 ac_cv_func_closedir_void=yes
22134 cat >conftest.$ac_ext <<_ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 $ac_includes_default
22141 #include <$ac_header_dirent>
22142 #ifndef __cplusplus
22149 exit (closedir (opendir (".")) != 0);
22154 rm -f conftest$ac_exeext
22155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22156 (eval $ac_link) 2>&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; }; then
22165 ac_cv_func_closedir_void=no
22167 echo "$as_me: program exited with status $ac_status" >&5
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22171 ( exit $ac_status )
22172 ac_cv_func_closedir_void=yes
22174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22177 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22178 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22179 if test $ac_cv_func_closedir_void = yes; then
22181 cat >>confdefs.h <<\_ACEOF
22182 #define CLOSEDIR_VOID 1
22187 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22188 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22189 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22192 if test "$cross_compiling" = yes; then
22193 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22194 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22195 { (exit 1); exit 1; }; }
22197 cat >conftest.$ac_ext <<_ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22204 # include <unistd.h>
22210 /* If this system has a BSD-style setpgrp which takes arguments,
22211 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22212 exit successfully. */
22213 exit (setpgrp (1,1) == -1 ? 0 : 1);
22218 rm -f conftest$ac_exeext
22219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22220 (eval $ac_link) 2>&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
22229 ac_cv_func_setpgrp_void=no
22231 echo "$as_me: program exited with status $ac_status" >&5
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22235 ( exit $ac_status )
22236 ac_cv_func_setpgrp_void=yes
22238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22241 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22242 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22243 if test $ac_cv_func_setpgrp_void = yes; then
22245 cat >>confdefs.h <<\_ACEOF
22246 #define SETPGRP_VOID 1
22250 # AC_FUNC_FNMATCH dnl use local version
22253 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22254 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22255 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 ac_check_lib_save_LIBS=$LIBS
22259 LIBS="-lxpg4 $LIBS"
22260 cat >conftest.$ac_ext <<_ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22267 /* Override any gcc2 internal prototype to avoid an error. */
22271 /* We use char because int might match the return type of a gcc2
22272 builtin and then its argument prototype would still apply. */
22282 rm -f conftest.$ac_objext conftest$ac_exeext
22283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22284 (eval $ac_link) 2>conftest.er1
22286 grep -v '^ *+' conftest.er1 >conftest.err
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } &&
22291 { ac_try='test -z "$ac_c_werror_flag"
22292 || test ! -s conftest.err'
22293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294 (eval $ac_try) 2>&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; } &&
22298 { ac_try='test -s conftest$ac_exeext'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; }; then
22304 ac_cv_lib_xpg4_setlocale=yes
22306 echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 ac_cv_lib_xpg4_setlocale=no
22311 rm -f conftest.err conftest.$ac_objext \
22312 conftest$ac_exeext conftest.$ac_ext
22313 LIBS=$ac_check_lib_save_LIBS
22315 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22316 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22317 if test $ac_cv_lib_xpg4_setlocale = yes; then
22318 LIBS="$LIBS -lxpg4"
22324 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22325 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22326 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22329 ac_check_lib_save_LIBS=$LIBS
22331 cat >conftest.$ac_ext <<_ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22338 /* Override any gcc2 internal prototype to avoid an error. */
22342 /* We use char because int might match the return type of a gcc2
22343 builtin and then its argument prototype would still apply. */
22353 rm -f conftest.$ac_objext conftest$ac_exeext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22355 (eval $ac_link) 2>conftest.er1
22357 grep -v '^ *+' conftest.er1 >conftest.err
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } &&
22362 { ac_try='test -z "$ac_c_werror_flag"
22363 || test ! -s conftest.err'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; } &&
22369 { ac_try='test -s conftest$ac_exeext'
22370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371 (eval $ac_try) 2>&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; }; then
22375 ac_cv_lib_sun_getpwnam=yes
22377 echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22380 ac_cv_lib_sun_getpwnam=no
22382 rm -f conftest.err conftest.$ac_objext \
22383 conftest$ac_exeext conftest.$ac_ext
22384 LIBS=$ac_check_lib_save_LIBS
22386 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22387 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22388 if test $ac_cv_lib_sun_getpwnam = yes; then
22389 cat >>confdefs.h <<_ACEOF
22390 #define HAVE_LIBSUN 1
22399 for ac_header in zlib.h
22401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22403 echo "$as_me:$LINENO: checking for $ac_header" >&5
22404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22411 # Is the header compilable?
22412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22414 cat >conftest.$ac_ext <<_ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22420 $ac_includes_default
22421 #include <$ac_header>
22423 rm -f conftest.$ac_objext
22424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22425 (eval $ac_compile) 2>conftest.er1
22427 grep -v '^ *+' conftest.er1 >conftest.err
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
22432 { ac_try='test -z "$ac_c_werror_flag"
22433 || test ! -s conftest.err'
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; } &&
22439 { ac_try='test -s conftest.$ac_objext'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 ac_header_compiler=yes
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_header_compiler=no
22452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22454 echo "${ECHO_T}$ac_header_compiler" >&6
22456 # Is the header present?
22457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22459 cat >conftest.$ac_ext <<_ACEOF
22462 cat confdefs.h >>conftest.$ac_ext
22463 cat >>conftest.$ac_ext <<_ACEOF
22464 /* end confdefs.h. */
22465 #include <$ac_header>
22467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22470 grep -v '^ *+' conftest.er1 >conftest.err
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } >/dev/null; then
22475 if test -s conftest.err; then
22476 ac_cpp_err=$ac_c_preproc_warn_flag
22477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22484 if test -z "$ac_cpp_err"; then
22485 ac_header_preproc=yes
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 ac_header_preproc=no
22492 rm -f conftest.err conftest.$ac_ext
22493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22494 echo "${ECHO_T}$ac_header_preproc" >&6
22496 # So? What about this header?
22497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22503 ac_header_preproc=yes
22506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22520 ## ------------------------------------------ ##
22521 ## Report this to the AC_PACKAGE_NAME lists. ##
22522 ## ------------------------------------------ ##
22525 sed "s/^/$as_me: WARNING: /" >&2
22528 echo "$as_me:$LINENO: checking for $ac_header" >&5
22529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22533 eval "$as_ac_Header=\$ac_header_preproc"
22535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22540 cat >>confdefs.h <<_ACEOF
22541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22548 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22549 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22550 if test "${ac_cv_lib_z_deflate+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 ac_check_lib_save_LIBS=$LIBS
22555 cat >conftest.$ac_ext <<_ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22562 /* Override any gcc2 internal prototype to avoid an error. */
22566 /* We use char because int might match the return type of a gcc2
22567 builtin and then its argument prototype would still apply. */
22577 rm -f conftest.$ac_objext conftest$ac_exeext
22578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22579 (eval $ac_link) 2>conftest.er1
22581 grep -v '^ *+' conftest.er1 >conftest.err
22583 cat conftest.err >&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } &&
22586 { ac_try='test -z "$ac_c_werror_flag"
22587 || test ! -s conftest.err'
22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589 (eval $ac_try) 2>&5
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); }; } &&
22593 { ac_try='test -s conftest$ac_exeext'
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; }; then
22599 ac_cv_lib_z_deflate=yes
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 ac_cv_lib_z_deflate=no
22606 rm -f conftest.err conftest.$ac_objext \
22607 conftest$ac_exeext conftest.$ac_ext
22608 LIBS=$ac_check_lib_save_LIBS
22610 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22611 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22612 if test $ac_cv_lib_z_deflate = yes; then
22617 if test x$FDLIBS = x-lz; then
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_LIBZ 1
22626 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22627 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22628 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22629 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22633 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22635 # Is the header compilable?
22636 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22637 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22638 cat >conftest.$ac_ext <<_ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h. */
22644 $ac_includes_default
22645 #include <sys/acl.h>
22647 rm -f conftest.$ac_objext
22648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22649 (eval $ac_compile) 2>conftest.er1
22651 grep -v '^ *+' conftest.er1 >conftest.err
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } &&
22656 { ac_try='test -z "$ac_c_werror_flag"
22657 || test ! -s conftest.err'
22658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659 (eval $ac_try) 2>&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; } &&
22663 { ac_try='test -s conftest.$ac_objext'
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22669 ac_header_compiler=yes
22671 echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22674 ac_header_compiler=no
22676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22678 echo "${ECHO_T}$ac_header_compiler" >&6
22680 # Is the header present?
22681 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22682 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22683 cat >conftest.$ac_ext <<_ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689 #include <sys/acl.h>
22691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22694 grep -v '^ *+' conftest.er1 >conftest.err
22696 cat conftest.err >&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } >/dev/null; then
22699 if test -s conftest.err; then
22700 ac_cpp_err=$ac_c_preproc_warn_flag
22701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22708 if test -z "$ac_cpp_err"; then
22709 ac_header_preproc=yes
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22714 ac_header_preproc=no
22716 rm -f conftest.err conftest.$ac_ext
22717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22718 echo "${ECHO_T}$ac_header_preproc" >&6
22720 # So? What about this header?
22721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22723 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22724 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22725 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22726 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22727 ac_header_preproc=yes
22730 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22731 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22732 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
22733 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
22734 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22735 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22736 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
22737 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22738 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22739 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22740 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22741 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22744 ## ------------------------------------------ ##
22745 ## Report this to the AC_PACKAGE_NAME lists. ##
22746 ## ------------------------------------------ ##
22749 sed "s/^/$as_me: WARNING: /" >&2
22752 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22753 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22754 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22757 ac_cv_header_sys_acl_h=$ac_header_preproc
22759 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22760 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22765 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22766 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22767 if test "${ac_cv_func_acl_get_file+set}" = set; then
22768 echo $ECHO_N "(cached) $ECHO_C" >&6
22770 cat >conftest.$ac_ext <<_ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22778 #define acl_get_file innocuous_acl_get_file
22780 /* System header to define __stub macros and hopefully few prototypes,
22781 which can conflict with char acl_get_file (); below.
22782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22783 <limits.h> exists even on freestanding compilers. */
22786 # include <limits.h>
22788 # include <assert.h>
22791 #undef acl_get_file
22793 /* Override any gcc2 internal prototype to avoid an error. */
22798 /* We use char because int might match the return type of a gcc2
22799 builtin and then its argument prototype would still apply. */
22800 char acl_get_file ();
22801 /* The GNU C library defines this for functions which it implements
22802 to always fail with ENOSYS. Some functions are actually named
22803 something starting with __ and the normal name is an alias. */
22804 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22807 char (*f) () = acl_get_file;
22816 return f != acl_get_file;
22821 rm -f conftest.$ac_objext conftest$ac_exeext
22822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22823 (eval $ac_link) 2>conftest.er1
22825 grep -v '^ *+' conftest.er1 >conftest.err
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } &&
22830 { ac_try='test -z "$ac_c_werror_flag"
22831 || test ! -s conftest.err'
22832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22833 (eval $ac_try) 2>&5
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); }; } &&
22837 { ac_try='test -s conftest$ac_exeext'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; }; then
22843 ac_cv_func_acl_get_file=yes
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22848 ac_cv_func_acl_get_file=no
22850 rm -f conftest.err conftest.$ac_objext \
22851 conftest$ac_exeext conftest.$ac_ext
22853 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
22854 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
22855 if test $ac_cv_func_acl_get_file = yes; then
22858 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22859 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22860 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22863 ac_check_lib_save_LIBS=$LIBS
22865 cat >conftest.$ac_ext <<_ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22872 /* Override any gcc2 internal prototype to avoid an error. */
22876 /* We use char because int might match the return type of a gcc2
22877 builtin and then its argument prototype would still apply. */
22878 char acl_get_file ();
22887 rm -f conftest.$ac_objext conftest$ac_exeext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22889 (eval $ac_link) 2>conftest.er1
22891 grep -v '^ *+' conftest.er1 >conftest.err
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
22896 { ac_try='test -z "$ac_c_werror_flag"
22897 || test ! -s conftest.err'
22898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899 (eval $ac_try) 2>&5
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); }; } &&
22903 { ac_try='test -s conftest$ac_exeext'
22904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905 (eval $ac_try) 2>&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }; }; then
22909 ac_cv_lib_acl_acl_get_file=yes
22911 echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22914 ac_cv_lib_acl_acl_get_file=no
22916 rm -f conftest.err conftest.$ac_objext \
22917 conftest$ac_exeext conftest.$ac_ext
22918 LIBS=$ac_check_lib_save_LIBS
22920 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22921 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22922 if test $ac_cv_lib_acl_acl_get_file = yes; then
22923 have_acl=yes; FDLIBS="-lacl $FDLIBS"
22929 if test $have_acl = yes; then
22930 cat >>confdefs.h <<\_ACEOF
22937 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22938 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
22939 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22942 ac_check_lib_save_LIBS=$LIBS
22943 LIBS="-lpthread $LIBS"
22944 cat >conftest.$ac_ext <<_ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22951 /* Override any gcc2 internal prototype to avoid an error. */
22955 /* We use char because int might match the return type of a gcc2
22956 builtin and then its argument prototype would still apply. */
22957 char pthread_create ();
22966 rm -f conftest.$ac_objext conftest$ac_exeext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22968 (eval $ac_link) 2>conftest.er1
22970 grep -v '^ *+' conftest.er1 >conftest.err
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } &&
22975 { ac_try='test -z "$ac_c_werror_flag"
22976 || test ! -s conftest.err'
22977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978 (eval $ac_try) 2>&5
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); }; } &&
22982 { ac_try='test -s conftest$ac_exeext'
22983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984 (eval $ac_try) 2>&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); }; }; then
22988 ac_cv_lib_pthread_pthread_create=yes
22990 echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22993 ac_cv_lib_pthread_pthread_create=no
22995 rm -f conftest.err conftest.$ac_objext \
22996 conftest$ac_exeext conftest.$ac_ext
22997 LIBS=$ac_check_lib_save_LIBS
22999 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23000 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23001 if test $ac_cv_lib_pthread_pthread_create = yes; then
23002 PTHREAD_LIB="-lpthread"
23004 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23005 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23006 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23007 echo $ECHO_N "(cached) $ECHO_C" >&6
23009 ac_check_lib_save_LIBS=$LIBS
23010 LIBS="-lpthreads $LIBS"
23011 cat >conftest.$ac_ext <<_ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h. */
23018 /* Override any gcc2 internal prototype to avoid an error. */
23022 /* We use char because int might match the return type of a gcc2
23023 builtin and then its argument prototype would still apply. */
23024 char pthread_create ();
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23035 (eval $ac_link) 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } &&
23042 { ac_try='test -z "$ac_c_werror_flag"
23043 || test ! -s conftest.err'
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; } &&
23049 { ac_try='test -s conftest$ac_exeext'
23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; }; then
23055 ac_cv_lib_pthreads_pthread_create=yes
23057 echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23060 ac_cv_lib_pthreads_pthread_create=no
23062 rm -f conftest.err conftest.$ac_objext \
23063 conftest$ac_exeext conftest.$ac_ext
23064 LIBS=$ac_check_lib_save_LIBS
23066 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23067 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23068 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23069 PTHREAD_LIB="-lpthreads"
23071 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23072 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23073 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23074 echo $ECHO_N "(cached) $ECHO_C" >&6
23076 ac_check_lib_save_LIBS=$LIBS
23078 cat >conftest.$ac_ext <<_ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23085 /* Override any gcc2 internal prototype to avoid an error. */
23089 /* We use char because int might match the return type of a gcc2
23090 builtin and then its argument prototype would still apply. */
23091 char pthread_create ();
23100 rm -f conftest.$ac_objext conftest$ac_exeext
23101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23102 (eval $ac_link) 2>conftest.er1
23104 grep -v '^ *+' conftest.er1 >conftest.err
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } &&
23109 { ac_try='test -z "$ac_c_werror_flag"
23110 || test ! -s conftest.err'
23111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112 (eval $ac_try) 2>&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }; } &&
23116 { ac_try='test -s conftest$ac_exeext'
23117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118 (eval $ac_try) 2>&5
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; }; then
23122 ac_cv_lib_c_r_pthread_create=yes
23124 echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 ac_cv_lib_c_r_pthread_create=no
23129 rm -f conftest.err conftest.$ac_objext \
23130 conftest$ac_exeext conftest.$ac_ext
23131 LIBS=$ac_check_lib_save_LIBS
23133 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23134 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23135 if test $ac_cv_lib_c_r_pthread_create = yes; then
23136 PTHREAD_LIB="-lc_r"
23138 echo "$as_me:$LINENO: checking for pthread_create" >&5
23139 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23140 if test "${ac_cv_func_pthread_create+set}" = set; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 cat >conftest.$ac_ext <<_ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23151 #define pthread_create innocuous_pthread_create
23153 /* System header to define __stub macros and hopefully few prototypes,
23154 which can conflict with char pthread_create (); below.
23155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23156 <limits.h> exists even on freestanding compilers. */
23159 # include <limits.h>
23161 # include <assert.h>
23164 #undef pthread_create
23166 /* Override any gcc2 internal prototype to avoid an error. */
23171 /* We use char because int might match the return type of a gcc2
23172 builtin and then its argument prototype would still apply. */
23173 char pthread_create ();
23174 /* The GNU C library defines this for functions which it implements
23175 to always fail with ENOSYS. Some functions are actually named
23176 something starting with __ and the normal name is an alias. */
23177 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23180 char (*f) () = pthread_create;
23189 return f != pthread_create;
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23196 (eval $ac_link) 2>conftest.er1
23198 grep -v '^ *+' conftest.er1 >conftest.err
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } &&
23203 { ac_try='test -z "$ac_c_werror_flag"
23204 || test ! -s conftest.err'
23205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); }; } &&
23210 { ac_try='test -s conftest$ac_exeext'
23211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212 (eval $ac_try) 2>&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); }; }; then
23216 ac_cv_func_pthread_create=yes
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ac_cv_func_pthread_create=no
23223 rm -f conftest.err conftest.$ac_objext \
23224 conftest$ac_exeext conftest.$ac_ext
23226 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23227 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23240 cat >>confdefs.h <<\_ACEOF
23246 CFLAGS=${CFLAGS--O}
23247 LDFLAGS=${LDFLAGS--O}
23248 DB_LIBS="${SQL_LFLAGS}"
23250 CPPFLAGS="$CPPFLAGS"
23276 # Finally we set appropriate distribution specific
23277 # variables and defaults
23279 # PFILES are platform specific files
23280 PFILES="platforms/Makefile"
23284 hostname=`uname -n | cut -d '.' -f 1`
23285 case "$DISTNAME" in
23288 PSCMD="ps -e -o pid,comm"
23289 PFILES="${PFILES} \
23290 platforms/aix/Makefile"
23291 TAPEDRIVE="/dev/rmt0.1"
23295 PTHREAD_LIB="-lpthread -lexc"
23296 if test "${CC}" = "gcc" ; then
23303 TAPEDRIVE="/dev/nrmt0"
23306 DISTVER=`uname -a |awk '{print $3}'`
23307 TAPEDRIVE="/dev/nrmt0"
23308 PTHREAD_LIB="-pthread"
23309 CFLAGS="${CFLAGS} -pthread"
23310 PSCMD="ps -ax -o pid,command"
23313 PFILES="${PFILES} \
23314 platforms/bsdi/Makefile \
23315 platforms/bsdi/bacula-fd \
23316 platforms/bsdi/bacula-sd \
23317 platforms/bsdi/bacula-dir"
23318 largefile_support="yes"
23321 DISTVER=`uname -a |awk '{print $3}'`
23322 TAPEDRIVE="/dev/nrst0"
23324 WCFLAGS="-mwindows"
23325 WLDFLAGS="-mwindows"
23329 TAPEDRIVE="/dev/nst0"
23330 PSCMD="ps -e -o pid,command"
23332 PFILES="${PFILES} \
23333 platforms/darwin/Makefile"
23336 DISTVER=`cat /etc/debian_version`
23337 TAPEDRIVE="/dev/nrst0"
23338 PSCMD="ps -e -o pid,command"
23341 DISTVER=`uname -a |awk '{print $3}'`
23342 VER=`echo $DISTVER | cut -c 1`
23343 if test x$VER = x4 ; then
23344 PTHREAD_LIB="-pthread"
23345 CFLAGS="${CFLAGS} -pthread"
23349 TAPEDRIVE="/dev/nrsa0"
23350 PSCMD="ps -ax -o pid,command"
23351 PFILES="${PFILES} \
23352 platforms/freebsd/Makefile \
23353 platforms/freebsd/bacula-fd \
23354 platforms/freebsd/bacula-sd \
23355 platforms/freebsd/bacula-dir"
23356 largefile_support="yes"
23359 PSCMD="UNIX95=1 ps -e -o pid,comm"
23360 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23362 TAPEDRIVE="/dev/rmt/0hnb"
23363 PTHREAD_LIB="-lpthread"
23364 cat >>confdefs.h <<\_ACEOF
23365 #define _INCLUDE_LONGLONG 1
23371 TAPEDRIVE="/dev/rmt/0cbn"
23372 PSCMD="ps -e -o pid,comm"
23373 PFILES="${PFILES} \
23374 platforms/irix/Makefile \
23375 platforms/irix/bacula-fd \
23376 platforms/irix/bacula-sd \
23377 platforms/irix/bacula-dir"
23380 DISTVER=`uname -a |awk '{print $3}'`
23383 TAPEDRIVE="/dev/nrst0"
23384 PSCMD="ps -ax -o pid,command"
23385 PTHREAD_LIB="-pthread"
23386 CFLAGS="${CFLAGS} -pthread"
23389 DISTVER=`uname -a |awk '{print $3}'`
23392 TAPEDRIVE="/dev/nrst0"
23393 PSCMD="ps -ax -o pid,command"
23394 PTHREAD_LIB="-pthread"
23395 CFLAGS="${CFLAGS} -pthread"
23396 PFILES="${PFILES} \
23397 platforms/openbsd/Makefile \
23398 platforms/openbsd/bacula-fd \
23399 platforms/openbsd/bacula-sd \
23400 platforms/openbsd/bacula-dir"
23403 if test -f /etc/whitebox-release ; then
23404 f=/etc/whitebox-release
23406 f=/etc/redhat-release
23408 if test `cat $f | grep release |\
23409 cut -f 3 -d ' '`x = "Enterprise"x ; then
23410 DISTVER="Enterprise "`cat $f | grep release |\
23413 DISTVER=`cat /etc/redhat-release | grep release |\
23416 TAPEDRIVE="/dev/nst0"
23417 PSCMD="ps -e -o pid,command"
23418 PFILES="${PFILES} \
23419 platforms/redhat/Makefile \
23420 platforms/redhat/bacula-fd \
23421 platforms/redhat/bacula-sd \
23422 platforms/redhat/bacula-dir \
23423 platforms/redhat/bacula.spec \
23425 hostname=`hostname -s`
23428 DISTVER=`cat /etc/mandrake-release | grep release |\
23430 TAPEDRIVE="/dev/nst0"
23431 PSCMD="ps -e -o pid,command"
23432 PFILES="${PFILES} \
23433 platforms/mandrake/Makefile \
23434 platforms/mandrake/bacula-fd \
23435 platforms/mandrake/bacula-sd \
23436 platforms/mandrake/bacula-dir \
23437 platforms/mandrake/bacula.spec \
23441 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23442 TAPEDRIVE="/dev/nst0"
23443 PSCMD="ps -e -o pid,command"
23444 PFILES="${PFILES} \
23445 platforms/gentoo/Makefile \
23446 platforms/gentoo/bacula-init \
23447 platforms/gentoo/bacula-fd \
23448 platforms/gentoo/bacula-sd \
23449 platforms/gentoo/bacula-dir"
23452 DISTVER=`cat /etc/slackware-version`
23453 TAPEDRIVE="/dev/nst0"
23454 PSCMD="ps -e -o pid,command"
23455 PFILES="${PFILES} \
23456 platforms/slackware/Makefile \
23457 platforms/slackware/rc.bacula-fd \
23458 platforms/slackware/rc.bacula-sd \
23459 platforms/slackware/rc.bacula-dir\
23460 platforms/slackware/functions.bacula"
23464 TAPEDRIVE="/dev/rmt/0cbn"
23465 PSCMD="ps -e -o pid,comm"
23466 PFILES="${PFILES} \
23467 platforms/solaris/Makefile \
23468 platforms/solaris/bacula-fd \
23469 platforms/solaris/bacula-sd \
23470 platforms/solaris/bacula-dir"
23471 if test x$DISTVER = x5.6 ; then
23472 cat >>confdefs.h <<\_ACEOF
23473 #define HAVE_OLD_SOCKOPT 1
23477 LIBS="$LIBS -lresolv"
23480 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23482 TAPEDRIVE="/dev/nst0"
23483 PSCMD="ps -e -o pid,command"
23484 PFILES="${PFILES} \
23485 platforms/suse/Makefile \
23486 platforms/suse/bacula-fd \
23487 platforms/suse/bacula-sd \
23488 platforms/suse/bacula-dir \
23489 platforms/suse/bacula \
23490 platforms/suse/bacula.spec"
23495 TAPEDRIVE="/dev/nst0"
23496 PSCMD="ps -e -o pid,command"
23497 PFILES="${PFILES} \
23498 platforms/suse/Makefile \
23499 platforms/suse/bacula-fd \
23500 platforms/suse/bacula-sd \
23501 platforms/suse/bacula-dir"
23505 TAPEDRIVE="/dev/nst0"
23508 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23514 LIBS="$PTHREAD_LIB $LIBS"
23516 cat >>confdefs.h <<_ACEOF
23520 cat >>confdefs.h <<_ACEOF
23531 MCOMMON=./autoconf/Make.common
23534 if test "x${subsysdir}" = "x${sbindir}" ; then
23537 echo "You have set both --sbindir and --with-subsys-dir"
23538 echo " equal to: ${subsysdir} "
23539 echo "This is not permitted. Please reconfigure."
23541 echo "Aborting configuration ..."
23547 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"
23548 ac_config_commands="$ac_config_commands default"
23549 cat >confcache <<\_ACEOF
23550 # This file is a shell script that caches the results of configure
23551 # tests run on this system so they can be shared between configure
23552 # scripts and configure runs, see configure's option --config-cache.
23553 # It is not useful on other systems. If it contains results you don't
23554 # want to keep, you may remove or edit it.
23556 # config.status only pays attention to the cache file if you give it
23557 # the --recheck option to rerun configure.
23559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23561 # following values.
23565 # The following way of writing the cache mishandles newlines in values,
23566 # but we know of no workaround that is simple, portable, and efficient.
23567 # So, don't put newlines in cache variables' values.
23568 # Ultrix sh set writes to stderr and can't be redirected directly,
23569 # and sets the high bit in the cache file unless we assign to the vars.
23572 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23574 # `set' does not quote correctly, so add quotes (double-quote
23575 # substitution turns \\\\ into \\, and sed turns \\ into \).
23578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23581 # `set' quotes correctly as required by POSIX, so do not add quotes.
23583 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23592 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23594 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23595 if test -w $cache_file; then
23596 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23597 cat confcache >$cache_file
23599 echo "not updating unwritable cache $cache_file"
23604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23605 # Let make expand exec_prefix.
23606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23608 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23609 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23610 # trailing colons and then remove the whole line if VPATH becomes empty
23611 # (actually we leave an empty line to preserve line numbers).
23612 if test "x$srcdir" = x.; then
23613 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23614 s/:*\$(srcdir):*/:/;
23615 s/:*\${srcdir}:*/:/;
23617 s/^\([^=]*=[ ]*\):*/\1/;
23623 DEFS=-DHAVE_CONFIG_H
23627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23628 # 1. Remove the extension, and $U if already installed.
23629 ac_i=`echo "$ac_i" |
23630 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23632 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23633 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23635 LIBOBJS=$ac_libobjs
23637 LTLIBOBJS=$ac_ltlibobjs
23641 : ${CONFIG_STATUS=./config.status}
23642 ac_clean_files_save=$ac_clean_files
23643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23646 cat >$CONFIG_STATUS <<_ACEOF
23648 # Generated by $as_me.
23649 # Run this file to recreate the current configuration.
23650 # Compiler output produced by configure, useful for debugging
23651 # configure, is in config.log if it exists.
23654 ac_cs_recheck=false
23656 SHELL=\${CONFIG_SHELL-$SHELL}
23659 cat >>$CONFIG_STATUS <<\_ACEOF
23660 ## --------------------- ##
23661 ## M4sh Initialization. ##
23662 ## --------------------- ##
23664 # Be Bourne compatible
23665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23668 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23669 # is contrary to our usage. Disable this feature.
23670 alias -g '${1+"$@"}'='"$@"'
23671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23674 DUALCASE=1; export DUALCASE # for MKS sh
23676 # Support unset when possible.
23677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23684 # Work around bugs in pre-3.0 UWIN ksh.
23685 $as_unset ENV MAIL MAILPATH
23692 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23693 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23694 LC_TELEPHONE LC_TIME
23696 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23697 eval $as_var=C; export $as_var
23703 # Required to use basename.
23704 if expr a : '\(a\)' >/dev/null 2>&1; then
23710 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23711 as_basename=basename
23717 # Name of the executable.
23718 as_me=`$as_basename "$0" ||
23719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23720 X"$0" : 'X\(//\)$' \| \
23721 X"$0" : 'X\(/\)$' \| \
23722 . : '\(.\)' 2>/dev/null ||
23724 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23725 /^X\/\(\/\/\)$/{ s//\1/; q; }
23726 /^X\/\(\/\).*/{ s//\1/; q; }
23730 # PATH needs CR, and LINENO needs CR and PATH.
23731 # Avoid depending upon Character Ranges.
23732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23735 as_cr_digits='0123456789'
23736 as_cr_alnum=$as_cr_Letters$as_cr_digits
23738 # The user is always right.
23739 if test "${PATH_SEPARATOR+set}" != set; then
23740 echo "#! /bin/sh" >conf$$.sh
23741 echo "exit 0" >>conf$$.sh
23743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23752 as_lineno_1=$LINENO
23753 as_lineno_2=$LINENO
23754 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23755 test "x$as_lineno_1" != "x$as_lineno_2" &&
23756 test "x$as_lineno_3" = "x$as_lineno_2" || {
23757 # Find who we are. Look in the path if we contain no path at all
23760 *[\\/]* ) as_myself=$0 ;;
23761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23762 for as_dir in $PATH
23765 test -z "$as_dir" && as_dir=.
23766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23771 # We did not find ourselves, most probably we were run as `sh COMMAND'
23772 # in which case we are not to be found in the path.
23773 if test "x$as_myself" = x; then
23776 if test ! -f "$as_myself"; then
23777 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23778 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23779 { (exit 1); exit 1; }; }
23781 case $CONFIG_SHELL in
23783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23784 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23787 test -z "$as_dir" && as_dir=.
23788 for as_base in sh bash ksh sh5; do
23791 if ("$as_dir/$as_base" -c '
23792 as_lineno_1=$LINENO
23793 as_lineno_2=$LINENO
23794 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23795 test "x$as_lineno_1" != "x$as_lineno_2" &&
23796 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23797 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23798 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23799 CONFIG_SHELL=$as_dir/$as_base
23800 export CONFIG_SHELL
23801 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23809 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23810 # uniformly replaced by the line number. The first 'sed' inserts a
23811 # line-number line before each line; the second 'sed' does the real
23812 # work. The second script uses 'N' to pair each line-number line
23813 # with the numbered line, and appends trailing '-' during
23814 # substitution so that $LINENO is not a special case at line end.
23815 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23816 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23817 sed '=' <$as_myself |
23822 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23825 s,^['$as_cr_digits']*\n,,
23826 ' >$as_me.lineno &&
23827 chmod +x $as_me.lineno ||
23828 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23829 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23830 { (exit 1); exit 1; }; }
23832 # Don't try to exec as it changes $[0], causing all sort of problems
23833 # (the dirname of $[0] is not the place where we might find the
23834 # original and so on. Autoconf is especially sensible to this).
23836 # Exit status is that of the last command.
23841 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23842 *c*,-n*) ECHO_N= ECHO_C='
23844 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23845 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23848 if expr a : '\(a\)' >/dev/null 2>&1; then
23854 rm -f conf$$ conf$$.exe conf$$.file
23856 if ln -s conf$$.file conf$$ 2>/dev/null; then
23857 # We could just check for DJGPP; but this test a) works b) is more generic
23858 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23859 if test -f conf$$.exe; then
23860 # Don't use ln at all; we don't have any links
23865 elif ln conf$$.file conf$$ 2>/dev/null; then
23870 rm -f conf$$ conf$$.exe conf$$.file
23872 if mkdir -p . 2>/dev/null; then
23875 test -d ./-p && rmdir ./-p
23879 as_executable_p="test -f"
23881 # Sed expression to map a string onto a valid CPP name.
23882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23884 # Sed expression to map a string onto a valid variable name.
23885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23889 # We need space, tab and new line, in precisely that order.
23899 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23900 # report actual input values of CONFIG_FILES etc. instead of their
23901 # values after options handling. Logging --version etc. is OK.
23905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23906 ## Running $as_me. ##
23911 This file was extended by $as_me, which was
23912 generated by GNU Autoconf 2.59. Invocation command line was
23914 CONFIG_FILES = $CONFIG_FILES
23915 CONFIG_HEADERS = $CONFIG_HEADERS
23916 CONFIG_LINKS = $CONFIG_LINKS
23917 CONFIG_COMMANDS = $CONFIG_COMMANDS
23921 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23925 # Files that config.status was made for.
23926 if test -n "$ac_config_files"; then
23927 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23930 if test -n "$ac_config_headers"; then
23931 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23934 if test -n "$ac_config_links"; then
23935 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23938 if test -n "$ac_config_commands"; then
23939 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23942 cat >>$CONFIG_STATUS <<\_ACEOF
23945 \`$as_me' instantiates files from templates according to the
23946 current configuration.
23948 Usage: $0 [OPTIONS] [FILE]...
23950 -h, --help print this help, then exit
23951 -V, --version print version number, then exit
23952 -q, --quiet do not print progress messages
23953 -d, --debug don't remove temporary files
23954 --recheck update $as_me by reconfiguring in the same conditions
23955 --file=FILE[:TEMPLATE]
23956 instantiate the configuration file FILE
23957 --header=FILE[:TEMPLATE]
23958 instantiate the configuration header FILE
23960 Configuration files:
23963 Configuration headers:
23966 Configuration commands:
23969 Report bugs to <bug-autoconf@gnu.org>."
23972 cat >>$CONFIG_STATUS <<_ACEOF
23975 configured by $0, generated by GNU Autoconf 2.59,
23976 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23978 Copyright (C) 2003 Free Software Foundation, Inc.
23979 This config.status script is free software; the Free Software Foundation
23980 gives unlimited permission to copy, distribute and modify it."
23985 cat >>$CONFIG_STATUS <<\_ACEOF
23986 # If no file are specified by the user, then we need to provide default
23987 # value. By we need to know if files were specified by the user.
23993 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23994 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24002 *) # This is not an option, so the user has probably given explicit
24005 ac_need_defaults=false;;
24009 # Handling of the options.
24011 cat >>$CONFIG_STATUS <<\_ACEOF
24012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24014 --version | --vers* | -V )
24015 echo "$ac_cs_version"; exit 0 ;;
24017 # Conflict between --help and --header
24018 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24019 Try \`$0 --help' for more information." >&5
24020 echo "$as_me: error: ambiguous option: $1
24021 Try \`$0 --help' for more information." >&2;}
24022 { (exit 1); exit 1; }; };;
24023 --help | --hel | -h )
24024 echo "$ac_cs_usage"; exit 0 ;;
24025 --debug | --d* | -d )
24027 --file | --fil | --fi | --f )
24029 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24030 ac_need_defaults=false;;
24031 --header | --heade | --head | --hea )
24033 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24034 ac_need_defaults=false;;
24035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24039 # This is an error.
24040 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24041 Try \`$0 --help' for more information." >&5
24042 echo "$as_me: error: unrecognized option: $1
24043 Try \`$0 --help' for more information." >&2;}
24044 { (exit 1); exit 1; }; } ;;
24046 *) ac_config_targets="$ac_config_targets $1" ;;
24052 ac_configure_extra_args=
24054 if $ac_cs_silent; then
24056 ac_configure_extra_args="$ac_configure_extra_args --silent"
24060 cat >>$CONFIG_STATUS <<_ACEOF
24061 if \$ac_cs_recheck; then
24062 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24063 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24068 cat >>$CONFIG_STATUS <<_ACEOF
24070 # INIT-COMMANDS section.
24073 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24074 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24076 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24077 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24078 LINGUAS="${LINGUAS-%UNSET%}"
24085 cat >>$CONFIG_STATUS <<\_ACEOF
24086 for ac_config_target in $ac_config_targets
24088 case "$ac_config_target" in
24089 # Handling of arguments.
24090 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24091 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24092 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24093 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24094 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24095 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24096 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24097 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24098 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24099 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24100 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24101 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24102 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24103 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24104 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24105 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24106 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24107 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24108 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24109 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24110 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24111 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24112 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24113 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24114 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24115 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24116 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24117 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24118 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24119 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24120 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24121 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24122 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24123 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24124 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24125 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24126 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24127 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24128 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24129 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24130 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24131 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24132 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24133 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24134 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24135 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24136 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24137 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24138 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24139 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24140 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24141 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24142 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24143 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24144 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24145 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24146 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24147 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24148 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24149 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24150 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24151 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24152 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24153 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24154 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24155 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24156 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24157 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24158 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24159 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24160 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24161 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24162 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24163 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24164 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24165 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24166 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24167 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24168 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24169 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24170 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24171 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24172 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24173 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24174 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24175 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24176 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24177 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24178 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24179 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24180 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24181 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24182 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24183 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24184 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24185 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24186 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24187 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24188 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24189 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24190 { (exit 1); exit 1; }; };;
24194 # If the user did not use the arguments to specify the items to instantiate,
24195 # then the envvar interface is used. Set only those that are not.
24196 # We use the long form for the default assignment because of an extremely
24197 # bizarre bug on SunOS 4.1.3.
24198 if $ac_need_defaults; then
24199 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24200 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24201 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24204 # Have a temporary directory for convenience. Make it in the build tree
24205 # simply because there is no reason to put it here, and in addition,
24206 # creating and moving files from /tmp can sometimes cause problems.
24207 # Create a temporary directory, and hook for its removal unless debugging.
24210 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24211 trap '{ (exit 1); exit 1; }' 1 2 13 15
24214 # Create a (secure) tmp directory for tmp files.
24217 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24218 test -n "$tmp" && test -d "$tmp"
24221 tmp=./confstat$$-$RANDOM
24222 (umask 077 && mkdir $tmp)
24225 echo "$me: cannot create a temporary directory in ." >&2
24226 { (exit 1); exit 1; }
24231 cat >>$CONFIG_STATUS <<_ACEOF
24234 # CONFIG_FILES section.
24237 # No need to generate the scripts if there are no CONFIG_FILES.
24238 # This happens for instance when ./config.status config.h
24239 if test -n "\$CONFIG_FILES"; then
24240 # Protect against being on the right side of a sed subst in config.status.
24241 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24242 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24243 s,@SHELL@,$SHELL,;t t
24244 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24245 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24246 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24247 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24248 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24249 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24250 s,@exec_prefix@,$exec_prefix,;t t
24251 s,@prefix@,$prefix,;t t
24252 s,@program_transform_name@,$program_transform_name,;t t
24253 s,@bindir@,$bindir,;t t
24254 s,@sbindir@,$sbindir,;t t
24255 s,@libexecdir@,$libexecdir,;t t
24256 s,@datadir@,$datadir,;t t
24257 s,@sysconfdir@,$sysconfdir,;t t
24258 s,@sharedstatedir@,$sharedstatedir,;t t
24259 s,@localstatedir@,$localstatedir,;t t
24260 s,@libdir@,$libdir,;t t
24261 s,@includedir@,$includedir,;t t
24262 s,@oldincludedir@,$oldincludedir,;t t
24263 s,@infodir@,$infodir,;t t
24264 s,@mandir@,$mandir,;t t
24265 s,@build_alias@,$build_alias,;t t
24266 s,@host_alias@,$host_alias,;t t
24267 s,@target_alias@,$target_alias,;t t
24268 s,@DEFS@,$DEFS,;t t
24269 s,@ECHO_C@,$ECHO_C,;t t
24270 s,@ECHO_N@,$ECHO_N,;t t
24271 s,@ECHO_T@,$ECHO_T,;t t
24272 s,@LIBS@,$LIBS,;t t
24273 s,@BUILD_DIR@,$BUILD_DIR,;t t
24274 s,@TRUEPRG@,$TRUEPRG,;t t
24275 s,@FALSEPRG@,$FALSEPRG,;t t
24276 s,@VERSION@,$VERSION,;t t
24277 s,@DATE@,$DATE,;t t
24278 s,@LSMDATE@,$LSMDATE,;t t
24280 s,@CFLAGS@,$CFLAGS,;t t
24281 s,@LDFLAGS@,$LDFLAGS,;t t
24282 s,@CPPFLAGS@,$CPPFLAGS,;t t
24283 s,@ac_ct_CC@,$ac_ct_CC,;t t
24284 s,@EXEEXT@,$EXEEXT,;t t
24285 s,@OBJEXT@,$OBJEXT,;t t
24287 s,@CXXFLAGS@,$CXXFLAGS,;t t
24288 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24290 s,@EGREP@,$EGREP,;t t
24291 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24292 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24293 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24294 s,@RANLIB@,$RANLIB,;t t
24295 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24300 s,@ECHO@,$ECHO,;t t
24304 s,@OPENSSL@,$OPENSSL,;t t
24307 s,@MKISOFS@,$MKISOFS,;t t
24308 s,@PYTHON@,$PYTHON,;t t
24309 s,@GROWISOFS@,$GROWISOFS,;t t
24310 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24311 s,@PKGCONFIG@,$PKGCONFIG,;t t
24312 s,@WXCONFIG@,$WXCONFIG,;t t
24313 s,@WXFLAGS@,$WXFLAGS,;t t
24314 s,@CDRECORD@,$CDRECORD,;t t
24315 s,@PIDOF@,$PIDOF,;t t
24317 s,@ARFLAGS@,$ARFLAGS,;t t
24318 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24319 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24320 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24321 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24322 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24323 s,@build@,$build,;t t
24324 s,@build_cpu@,$build_cpu,;t t
24325 s,@build_vendor@,$build_vendor,;t t
24326 s,@build_os@,$build_os,;t t
24327 s,@host@,$host,;t t
24328 s,@host_cpu@,$host_cpu,;t t
24329 s,@host_vendor@,$host_vendor,;t t
24330 s,@host_os@,$host_os,;t t
24331 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24332 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24333 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24334 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24335 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24336 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24337 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24338 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24339 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24340 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24341 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24342 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24343 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24344 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24345 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24346 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24347 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24348 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24349 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24350 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24351 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24352 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24353 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24354 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24355 s,@SET_MAKE@,$SET_MAKE,;t t
24356 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24357 s,@USE_NLS@,$USE_NLS,;t t
24358 s,@MSGFMT@,$MSGFMT,;t t
24359 s,@GMSGFMT@,$GMSGFMT,;t t
24360 s,@XGETTEXT@,$XGETTEXT,;t t
24361 s,@MSGMERGE@,$MSGMERGE,;t t
24362 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24363 s,@LIBICONV@,$LIBICONV,;t t
24364 s,@LTLIBICONV@,$LTLIBICONV,;t t
24365 s,@INTLLIBS@,$INTLLIBS,;t t
24366 s,@LIBINTL@,$LIBINTL,;t t
24367 s,@LTLIBINTL@,$LTLIBINTL,;t t
24368 s,@POSUB@,$POSUB,;t t
24369 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24370 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24371 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24372 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24373 s,@GNOME_DIR@,$GNOME_DIR,;t t
24374 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24375 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24376 s,@WX_DIR@,$WX_DIR,;t t
24377 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24378 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24379 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24380 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24381 s,@STATIC_FD@,$STATIC_FD,;t t
24382 s,@STATIC_SD@,$STATIC_SD,;t t
24383 s,@STATIC_DIR@,$STATIC_DIR,;t t
24384 s,@STATIC_CONS@,$STATIC_CONS,;t t
24385 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24386 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24387 s,@ALL_DIRS@,$ALL_DIRS,;t t
24388 s,@CONS_INC@,$CONS_INC,;t t
24389 s,@CONS_OBJ@,$CONS_OBJ,;t t
24390 s,@CONS_SRC@,$CONS_SRC,;t t
24391 s,@CONS_LIBS@,$CONS_LIBS,;t t
24392 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24393 s,@READLINE_SRC@,$READLINE_SRC,;t t
24394 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24395 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24396 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24397 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24398 s,@working_dir@,$working_dir,;t t
24399 s,@scriptdir@,$scriptdir,;t t
24400 s,@dump_email@,$dump_email,;t t
24401 s,@job_email@,$job_email,;t t
24402 s,@smtp_host@,$smtp_host,;t t
24403 s,@piddir@,$piddir,;t t
24404 s,@subsysdir@,$subsysdir,;t t
24405 s,@baseport@,$baseport,;t t
24406 s,@dir_port@,$dir_port,;t t
24407 s,@fd_port@,$fd_port,;t t
24408 s,@sd_port@,$sd_port,;t t
24409 s,@dir_password@,$dir_password,;t t
24410 s,@fd_password@,$fd_password,;t t
24411 s,@sd_password@,$sd_password,;t t
24412 s,@mon_dir_password@,$mon_dir_password,;t t
24413 s,@mon_fd_password@,$mon_fd_password,;t t
24414 s,@mon_sd_password@,$mon_sd_password,;t t
24415 s,@dir_user@,$dir_user,;t t
24416 s,@dir_group@,$dir_group,;t t
24417 s,@sd_user@,$sd_user,;t t
24418 s,@sd_group@,$sd_group,;t t
24419 s,@fd_user@,$fd_user,;t t
24420 s,@fd_group@,$fd_group,;t t
24421 s,@SBINPERM@,$SBINPERM,;t t
24422 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24423 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24424 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24425 s,@cats@,$cats,;t t
24426 s,@DB_NAME@,$DB_NAME,;t t
24427 s,@GETCONF@,$GETCONF,;t t
24428 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24429 s,@X_CFLAGS@,$X_CFLAGS,;t t
24430 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24431 s,@X_LIBS@,$X_LIBS,;t t
24432 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24433 s,@LIBOBJS@,$LIBOBJS,;t t
24434 s,@ALLOCA@,$ALLOCA,;t t
24435 s,@FDLIBS@,$FDLIBS,;t t
24436 s,@DEBUG@,$DEBUG,;t t
24437 s,@DINCLUDE@,$DINCLUDE,;t t
24438 s,@DLIB@,$DLIB,;t t
24439 s,@DB_LIBS@,$DB_LIBS,;t t
24440 s,@WCFLAGS@,$WCFLAGS,;t t
24441 s,@WLDFLAGS@,$WLDFLAGS,;t t
24442 s,@OBJLIST@,$OBJLIST,;t t
24443 s,@hostname@,$hostname,;t t
24444 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24445 s,@PSCMD@,$PSCMD,;t t
24446 s,@WIN32@,$WIN32,;t t
24447 s,@MACOSX@,$MACOSX,;t t
24448 s,@DISTNAME@,$DISTNAME,;t t
24449 s,@DISTVER@,$DISTVER,;t t
24450 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24451 /@MCOMMON@/r $MCOMMON
24457 cat >>$CONFIG_STATUS <<\_ACEOF
24458 # Split the substitutions into bite-sized pieces for seds with
24459 # small command number limits, like on Digital OSF/1 and HP-UX.
24460 ac_max_sed_lines=48
24461 ac_sed_frag=1 # Number of current file.
24462 ac_beg=1 # First line for current file.
24463 ac_end=$ac_max_sed_lines # Line after last line for current file.
24466 while $ac_more_lines; do
24467 if test $ac_beg -gt 1; then
24468 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24470 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24472 if test ! -s $tmp/subs.frag; then
24473 ac_more_lines=false
24475 # The purpose of the label and of the branching condition is to
24476 # speed up the sed processing (if there are no `@' at all, there
24477 # is no need to browse any of the substitutions).
24478 # These are the two extra sed commands mentioned above.
24480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24481 if test -z "$ac_sed_cmds"; then
24482 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24484 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24486 ac_sed_frag=`expr $ac_sed_frag + 1`
24488 ac_end=`expr $ac_end + $ac_max_sed_lines`
24491 if test -z "$ac_sed_cmds"; then
24494 fi # test -n "$CONFIG_FILES"
24497 cat >>$CONFIG_STATUS <<\_ACEOF
24498 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24499 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24501 - | *:- | *:-:* ) # input from stdin
24503 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24504 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24505 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24506 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24507 * ) ac_file_in=$ac_file.in ;;
24510 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24511 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24513 X"$ac_file" : 'X\(//\)[^/]' \| \
24514 X"$ac_file" : 'X\(//\)$' \| \
24515 X"$ac_file" : 'X\(/\)' \| \
24516 . : '\(.\)' 2>/dev/null ||
24518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24520 /^X\(\/\/\)$/{ s//\1/; q; }
24521 /^X\(\/\).*/{ s//\1/; q; }
24523 { if $as_mkdir_p; then
24528 while test ! -d "$as_dir"; do
24529 as_dirs="$as_dir $as_dirs"
24530 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24532 X"$as_dir" : 'X\(//\)[^/]' \| \
24533 X"$as_dir" : 'X\(//\)$' \| \
24534 X"$as_dir" : 'X\(/\)' \| \
24535 . : '\(.\)' 2>/dev/null ||
24537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24539 /^X\(\/\/\)$/{ s//\1/; q; }
24540 /^X\(\/\).*/{ s//\1/; q; }
24543 test ! -n "$as_dirs" || mkdir $as_dirs
24544 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24545 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24546 { (exit 1); exit 1; }; }; }
24550 if test "$ac_dir" != .; then
24551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24552 # A "../" for each directory in $ac_dir_suffix.
24553 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24555 ac_dir_suffix= ac_top_builddir=
24559 .) # No --srcdir option. We are building in place.
24561 if test -z "$ac_top_builddir"; then
24564 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24566 [\\/]* | ?:[\\/]* ) # Absolute path.
24567 ac_srcdir=$srcdir$ac_dir_suffix;
24568 ac_top_srcdir=$srcdir ;;
24569 *) # Relative path.
24570 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24571 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24574 # Do not use `cd foo && pwd` to compute absolute paths, because
24575 # the directories may not exist.
24577 .) ac_abs_builddir="$ac_dir";;
24580 .) ac_abs_builddir=`pwd`;;
24581 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24582 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24585 case $ac_abs_builddir in
24586 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24588 case ${ac_top_builddir}. in
24589 .) ac_abs_top_builddir=$ac_abs_builddir;;
24590 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24591 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24594 case $ac_abs_builddir in
24595 .) ac_abs_srcdir=$ac_srcdir;;
24598 .) ac_abs_srcdir=$ac_abs_builddir;;
24599 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24600 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24603 case $ac_abs_builddir in
24604 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24606 case $ac_top_srcdir in
24607 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24608 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24609 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24615 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24616 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24619 if test x"$ac_file" != x-; then
24620 { echo "$as_me:$LINENO: creating $ac_file" >&5
24621 echo "$as_me: creating $ac_file" >&6;}
24624 # Let's still pretend it is `configure' which instantiates (i.e., don't
24625 # use $as_me), people would be surprised to read:
24626 # /* config.h. Generated by config.status. */
24627 if test x"$ac_file" = x-; then
24630 configure_input="$ac_file. "
24632 configure_input=$configure_input"Generated from `echo $ac_file_in |
24633 sed 's,.*/,,'` by configure."
24635 # First look for the input files in the build tree, otherwise in the
24637 ac_file_inputs=`IFS=:
24638 for f in $ac_file_in; do
24640 -) echo $tmp/stdin ;;
24642 # Absolute (can't be DOS-style, as IFS=:)
24643 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24644 echo "$as_me: error: cannot find input file: $f" >&2;}
24645 { (exit 1); exit 1; }; }
24648 if test -f "$f"; then
24651 elif test -f "$srcdir/$f"; then
24656 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24657 echo "$as_me: error: cannot find input file: $f" >&2;}
24658 { (exit 1); exit 1; }; }
24661 done` || { (exit 1); exit 1; }
24663 cat >>$CONFIG_STATUS <<_ACEOF
24667 cat >>$CONFIG_STATUS <<\_ACEOF
24669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24670 s,@configure_input@,$configure_input,;t t
24671 s,@srcdir@,$ac_srcdir,;t t
24672 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24673 s,@top_srcdir@,$ac_top_srcdir,;t t
24674 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24675 s,@builddir@,$ac_builddir,;t t
24676 s,@abs_builddir@,$ac_abs_builddir,;t t
24677 s,@top_builddir@,$ac_top_builddir,;t t
24678 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24679 s,@INSTALL@,$ac_INSTALL,;t t
24680 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24682 if test x"$ac_file" != x-; then
24683 mv $tmp/out $ac_file
24691 cat >>$CONFIG_STATUS <<\_ACEOF
24694 # CONFIG_HEADER section.
24697 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24698 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24700 # ac_d sets the value in "#define NAME VALUE" lines.
24701 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24702 ac_dB='[ ].*$,\1#\2'
24705 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24706 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24707 ac_uB='$,\1#\2define\3'
24711 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24712 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24714 - | *:- | *:-:* ) # input from stdin
24716 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24717 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24718 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24719 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24720 * ) ac_file_in=$ac_file.in ;;
24723 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24724 echo "$as_me: creating $ac_file" >&6;}
24726 # First look for the input files in the build tree, otherwise in the
24728 ac_file_inputs=`IFS=:
24729 for f in $ac_file_in; do
24731 -) echo $tmp/stdin ;;
24733 # Absolute (can't be DOS-style, as IFS=:)
24734 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24735 echo "$as_me: error: cannot find input file: $f" >&2;}
24736 { (exit 1); exit 1; }; }
24737 # Do quote $f, to prevent DOS paths from being IFS'd.
24740 if test -f "$f"; then
24743 elif test -f "$srcdir/$f"; then
24748 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24749 echo "$as_me: error: cannot find input file: $f" >&2;}
24750 { (exit 1); exit 1; }; }
24753 done` || { (exit 1); exit 1; }
24754 # Remove the trailing spaces.
24755 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24759 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24760 # `conftest.undefs', that substitutes the proper values into
24761 # config.h.in to produce config.h. The first handles `#define'
24762 # templates, and the second `#undef' templates.
24763 # And first: Protect against being on the right side of a sed subst in
24764 # config.status. Protect against being in an unquoted here document
24765 # in config.status.
24766 rm -f conftest.defines conftest.undefs
24767 # Using a here document instead of a string reduces the quoting nightmare.
24768 # Putting comments in sed scripts is not portable.
24770 # `end' is used to avoid that the second main sed command (meant for
24771 # 0-ary CPP macros) applies to n-ary macro definitions.
24772 # See the Autoconf documentation for `clear'.
24773 cat >confdef2sed.sed <<\_ACEOF
24778 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24780 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24783 # If some macros were called several times there might be several times
24784 # the same #defines, which is useless. Nevertheless, we may not want to
24785 # sort them, since we want the *last* AC-DEFINE to be honored.
24786 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24787 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24788 rm -f confdef2sed.sed
24790 # This sed command replaces #undef with comments. This is necessary, for
24791 # example, in the case of _POSIX_SOURCE, which is predefined and required
24792 # on some systems where configure will not decide to define it.
24793 cat >>conftest.undefs <<\_ACEOF
24794 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24797 # Break up conftest.defines because some shells have a limit on the size
24798 # of here documents, and old seds have small limits too (100 cmds).
24799 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24800 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24801 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24802 echo ' :' >>$CONFIG_STATUS
24803 rm -f conftest.tail
24804 while grep . conftest.defines >/dev/null
24806 # Write a limited-size here document to $tmp/defines.sed.
24807 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24808 # Speed up: don't consider the non `#define' lines.
24809 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24810 # Work around the forget-to-reset-the-flag bug.
24811 echo 't clr' >>$CONFIG_STATUS
24812 echo ': clr' >>$CONFIG_STATUS
24813 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24815 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24817 mv $tmp/out $tmp/in
24819 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24820 rm -f conftest.defines
24821 mv conftest.tail conftest.defines
24823 rm -f conftest.defines
24824 echo ' fi # grep' >>$CONFIG_STATUS
24825 echo >>$CONFIG_STATUS
24827 # Break up conftest.undefs because some shells have a limit on the size
24828 # of here documents, and old seds have small limits too (100 cmds).
24829 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24830 rm -f conftest.tail
24831 while grep . conftest.undefs >/dev/null
24833 # Write a limited-size here document to $tmp/undefs.sed.
24834 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24835 # Speed up: don't consider the non `#undef'
24836 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24837 # Work around the forget-to-reset-the-flag bug.
24838 echo 't clr' >>$CONFIG_STATUS
24839 echo ': clr' >>$CONFIG_STATUS
24840 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24842 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24844 mv $tmp/out $tmp/in
24846 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24847 rm -f conftest.undefs
24848 mv conftest.tail conftest.undefs
24850 rm -f conftest.undefs
24852 cat >>$CONFIG_STATUS <<\_ACEOF
24853 # Let's still pretend it is `configure' which instantiates (i.e., don't
24854 # use $as_me), people would be surprised to read:
24855 # /* config.h. Generated by config.status. */
24856 if test x"$ac_file" = x-; then
24857 echo "/* Generated by configure. */" >$tmp/config.h
24859 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24861 cat $tmp/in >>$tmp/config.h
24863 if test x"$ac_file" != x-; then
24864 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24865 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24866 echo "$as_me: $ac_file is unchanged" >&6;}
24868 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24870 X"$ac_file" : 'X\(//\)[^/]' \| \
24871 X"$ac_file" : 'X\(//\)$' \| \
24872 X"$ac_file" : 'X\(/\)' \| \
24873 . : '\(.\)' 2>/dev/null ||
24875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24877 /^X\(\/\/\)$/{ s//\1/; q; }
24878 /^X\(\/\).*/{ s//\1/; q; }
24880 { if $as_mkdir_p; then
24885 while test ! -d "$as_dir"; do
24886 as_dirs="$as_dir $as_dirs"
24887 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24889 X"$as_dir" : 'X\(//\)[^/]' \| \
24890 X"$as_dir" : 'X\(//\)$' \| \
24891 X"$as_dir" : 'X\(/\)' \| \
24892 . : '\(.\)' 2>/dev/null ||
24894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24896 /^X\(\/\/\)$/{ s//\1/; q; }
24897 /^X\(\/\).*/{ s//\1/; q; }
24900 test ! -n "$as_dirs" || mkdir $as_dirs
24901 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24902 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24903 { (exit 1); exit 1; }; }; }
24906 mv $tmp/config.h $ac_file
24910 rm -f $tmp/config.h
24914 cat >>$CONFIG_STATUS <<\_ACEOF
24917 # CONFIG_COMMANDS section.
24919 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24920 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24921 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24922 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24923 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24924 X"$ac_dest" : 'X\(//\)[^/]' \| \
24925 X"$ac_dest" : 'X\(//\)$' \| \
24926 X"$ac_dest" : 'X\(/\)' \| \
24927 . : '\(.\)' 2>/dev/null ||
24929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24931 /^X\(\/\/\)$/{ s//\1/; q; }
24932 /^X\(\/\).*/{ s//\1/; q; }
24934 { if $as_mkdir_p; then
24939 while test ! -d "$as_dir"; do
24940 as_dirs="$as_dir $as_dirs"
24941 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24943 X"$as_dir" : 'X\(//\)[^/]' \| \
24944 X"$as_dir" : 'X\(//\)$' \| \
24945 X"$as_dir" : 'X\(/\)' \| \
24946 . : '\(.\)' 2>/dev/null ||
24948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24950 /^X\(\/\/\)$/{ s//\1/; q; }
24951 /^X\(\/\).*/{ s//\1/; q; }
24954 test ! -n "$as_dirs" || mkdir $as_dirs
24955 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24956 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24957 { (exit 1); exit 1; }; }; }
24961 if test "$ac_dir" != .; then
24962 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24963 # A "../" for each directory in $ac_dir_suffix.
24964 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24966 ac_dir_suffix= ac_top_builddir=
24970 .) # No --srcdir option. We are building in place.
24972 if test -z "$ac_top_builddir"; then
24975 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24977 [\\/]* | ?:[\\/]* ) # Absolute path.
24978 ac_srcdir=$srcdir$ac_dir_suffix;
24979 ac_top_srcdir=$srcdir ;;
24980 *) # Relative path.
24981 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24982 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24985 # Do not use `cd foo && pwd` to compute absolute paths, because
24986 # the directories may not exist.
24988 .) ac_abs_builddir="$ac_dir";;
24991 .) ac_abs_builddir=`pwd`;;
24992 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24993 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24996 case $ac_abs_builddir in
24997 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24999 case ${ac_top_builddir}. in
25000 .) ac_abs_top_builddir=$ac_abs_builddir;;
25001 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25002 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25005 case $ac_abs_builddir in
25006 .) ac_abs_srcdir=$ac_srcdir;;
25009 .) ac_abs_srcdir=$ac_abs_builddir;;
25010 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25011 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25014 case $ac_abs_builddir in
25015 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25017 case $ac_top_srcdir in
25018 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25019 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25020 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25025 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25026 echo "$as_me: executing $ac_dest commands" >&6;}
25029 for ac_file in $CONFIG_FILES; do
25030 # Support "outfile[:infile[:infile...]]"
25032 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25034 # PO directories have a Makefile.in generated from Makefile.in.in.
25035 case "$ac_file" in */Makefile.in)
25036 # Adjust a relative srcdir.
25037 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25038 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25039 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25040 # In autoconf-2.13 it is called $ac_given_srcdir.
25041 # In autoconf-2.50 it is called $srcdir.
25042 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25043 case "$ac_given_srcdir" in
25044 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25045 /*) top_srcdir="$ac_given_srcdir" ;;
25046 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25048 # Treat a directory as a PO directory if and only if it has a
25049 # POTFILES.in file. This allows packages to have multiple PO
25050 # directories under different names or in different locations.
25051 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25052 rm -f "$ac_dir/POTFILES"
25053 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25054 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25055 POMAKEFILEDEPS="POTFILES.in"
25056 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25057 # on $ac_dir but don't depend on user-specified configuration
25059 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25060 # The LINGUAS file contains the set of available languages.
25061 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25062 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25064 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25065 # Hide the ALL_LINGUAS assigment from automake.
25066 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25067 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25069 # The set of available languages was given in configure.in.
25070 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25073 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25074 # Compute UPDATEPOFILES
25075 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25076 # Compute DUMMYPOFILES
25077 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25079 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25080 case "$ac_given_srcdir" in
25082 *) srcdirpre='$(srcdir)/' ;;
25088 for lang in $ALL_LINGUAS; do
25089 POFILES="$POFILES $srcdirpre$lang.po"
25090 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25091 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25092 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25094 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25095 # environment variable.
25097 if test -n "$ALL_LINGUAS"; then
25098 for presentlang in $ALL_LINGUAS; do
25100 if test "%UNSET%" != "$LINGUAS"; then
25101 desiredlanguages="$LINGUAS"
25103 desiredlanguages="$ALL_LINGUAS"
25105 for desiredlang in $desiredlanguages; do
25106 # Use the presentlang catalog if desiredlang is
25107 # a. equal to presentlang, or
25108 # b. a variant of presentlang (because in this case,
25109 # presentlang can be used as a fallback for messages
25110 # which are not translated in the desiredlang catalog).
25111 case "$desiredlang" in
25112 "$presentlang"*) useit=yes;;
25115 if test $useit = yes; then
25116 INST_LINGUAS="$INST_LINGUAS $presentlang"
25121 if test -n "$INST_LINGUAS"; then
25122 for lang in $INST_LINGUAS; do
25123 CATALOGS="$CATALOGS $lang.gmo"
25126 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25127 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"
25128 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25129 if test -f "$f"; then
25131 *.orig | *.bak | *~) ;;
25132 *) cat "$f" >> "$ac_dir/Makefile" ;;
25140 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25146 cat >>$CONFIG_STATUS <<\_ACEOF
25148 { (exit 0); exit 0; }
25150 chmod +x $CONFIG_STATUS
25151 ac_clean_files=$ac_clean_files_save
25154 # configure is writing to config.log, and then calls config.status.
25155 # config.status does its own redirection, appending to config.log.
25156 # Unfortunately, on DOS this fails, as config.log is still kept open
25157 # by configure, so config.status won't be able to write to it; its
25158 # output is simply discarded. So we exec the FD to /dev/null,
25159 # effectively closing config.log, so it can be properly (re)opened and
25160 # appended to by config.status. When coming back to configure, we
25161 # need to make the FD available again.
25162 if test "$no_create" != yes; then
25164 ac_config_status_args=
25165 test "$silent" = yes &&
25166 ac_config_status_args="$ac_config_status_args --quiet"
25168 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25170 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25171 # would make configure fail if this is the last instruction.
25172 $ac_cs_success || { (exit 1); exit 1; }
25177 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25178 chmod 755 dvd-writepart dvd-freespace
25179 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25184 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
25185 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
25187 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
25188 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
25190 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
25191 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
25193 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
25194 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
25196 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
25197 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
25199 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25200 chmod 755 $c/sqlite
25203 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25204 largefile_support="yes"
25208 # A whole lot of hand springs to get the compiler version.
25209 # This is because gcc changed the output in version 3.0
25211 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25212 if test "x${CCVERSION}" = "x" ; then
25213 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25215 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25216 if test x"${CXXVERSION}" = x ; then
25217 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25220 if test "x${subsysdir}" = "x${sbindir}" ; then
25223 echo "You have set --sbindir and --with-subsys-dir"
25224 echo " both equal to: ${subsysdir} "
25225 echo " This is not permitted. Please reconfigure."
25227 echo "Aborting configuration ..."
25233 if test "x${db_name}" = "xInternal" ; then
25236 echo "You have not specified either --enable-client-only or one of the"
25237 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25238 echo " This is not permitted. Please reconfigure."
25240 echo "Aborting the configuration ..."
25247 Configuration on `date`:
25249 Host: $host -- ${DISTNAME} ${DISTVER}
25250 Bacula version: ${VERSION} (${DATE})
25251 Source code location: ${srcdir}
25252 Install binaries: ${sbindir}
25253 Install config files: ${sysconfdir}
25254 Scripts directory: ${scriptdir}
25255 Working directory: ${working_dir}
25256 PID directory: ${piddir}
25257 Subsys directory: ${subsysdir}
25258 Man directory: ${mandir}
25259 C Compiler: ${CC} ${CCVERSION}
25260 C++ Compiler: ${CXX} ${CXXVERSION}
25261 Compiler flags: ${WCFLAGS} ${CFLAGS}
25262 Linker flags: ${WLDFLAGS} ${LDFLAGS}
25264 Statically Linked Tools: ${support_static_tools}
25265 Statically Linked FD: ${support_static_fd}
25266 Statically Linked SD: ${support_static_sd}
25267 Statically Linked DIR: ${support_static_dir}
25268 Statically Linked CONS: ${support_static_cons}
25269 Database type: ${db_name}
25270 Database lib: ${DB_LIBS}
25272 Job Output Email: ${job_email}
25273 Traceback Email: ${dump_email}
25274 SMTP Host Address: ${smtp_host}
25276 Director Port: ${dir_port}
25277 File daemon Port: ${fd_port}
25278 Storage daemon Port: ${sd_port}
25280 Director User: ${dir_user}
25281 Director Group: ${dir_group}
25282 Storage Daemon User: ${sd_user}
25283 Storage DaemonGroup: ${sd_group}
25284 File Daemon User: ${fd_user}
25285 File Daemon Group: ${fd_group}
25287 SQL binaries Directory ${SQL_BINDIR}
25289 Large file support: $largefile_support
25290 Bacula conio support: ${got_conio} ${CONS_LIBS}
25291 readline support: ${got_readline} ${PRTREADLINE_SRC}
25292 TCP Wrappers support: ${TCPW_MSG}
25293 TLS support: ${support_tls}
25294 ZLIB support: ${have_zlib}
25295 enable-smartalloc: ${support_smartalloc}
25296 enable-gnome: ${support_gnome} ${gnome_version}
25297 enable-wx-console: ${support_wx_console} ${wx_version}
25298 enable-tray-monitor: ${support_tray_monitor}
25299 client-only: ${build_client_only}
25300 ACL support: ${have_acl}
25301 Python support: ${support_python} ${PYTHON_LIBS}