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 DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS 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 --enable-build-dird enable building of dird (Director) enabled
880 --enable-build-stored enable building of stored (Storage daemon) enabled
881 --disable-conio disable conio support enabled
883 --disable-readline disable readline support disable
885 --disable-largefile omit support for large files
888 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
889 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
892 --without-libiconv-prefix don't search for libiconv in includedir and libdir
893 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
894 --without-libintl-prefix don't search for libintl in includedir and libdir
895 --with-readline=DIR specify readline library directory
897 --with-python=DIR Include Python support. DIR is the Python base
898 install directory, default is to search through
899 a number of common places for the Python files.
900 --with-tcp-wrappers=DIR enable tcpwrappers support
902 Include OpenSSL support. DIR is the OpenSSL base
903 --with-working-dir=PATH specify path of Bacula working directory
904 --with-scriptdir=PATH specify path of Bacula scripts directory
905 --with-dump-email=EMAIL dump email address
906 --with-job-email=EMAIL job output email address
907 --with-smtp-host=HOST SMTP mail host address
908 --with-pid-dir=PATH specify location of Bacula pid files
909 --with-subsys-dir=PATH specify location of Bacula subsys file
910 --with-baseport=PORT specify base port address for daemons
911 --with-dir-password=PASSWORD specify Director's password
912 --with-fd-password=PASSWORD specify Client's password
913 --with-sd-password=PASSWORD specify Storage daemon's password
914 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
915 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
916 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
917 --with-dir-user=USER specify user for Director daemon
918 --with-dir-group=GROUP specify group for Director daemon
919 --with-sd-user=USER specify user for Storage daemon
920 --with-sd-group=GROUP specify group for Storage daemon
921 --with-fd-user=USER specify user for File daemon
922 --with-fd-group=GROUP specify group for File daemon
923 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
924 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
925 base install directory, defaults to /usr/local/pgsql
927 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
928 install directory, default is to search through
929 a number of common places for the MySQL files.
931 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
932 install directory, default is to search through
933 a number of common places for the MySQL files.
935 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
936 install directory, default is to search through
937 a number of common places for the SQLite3 files.
939 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
940 install directory, default is to search through
941 a number of common places for the SQLite files.
942 --with-x use the X Window System
944 Some influential environment variables:
945 CC C compiler command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
948 nonstandard directory <lib dir>
949 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
950 headers in a nonstandard directory <include dir>
951 CXX C++ compiler command
952 CXXFLAGS C++ compiler flags
954 WXCONFIG wx-config command. On some systems, you must set it to
955 wx-config-2.6 to use wxWidgets 2.6.
956 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 ac_dir_suffix= ac_top_builddir=
980 .) # No --srcdir option. We are building in place.
982 if test -z "$ac_top_builddir"; then
985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
998 .) ac_abs_builddir="$ac_dir";;
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1045 $ac_configure --help
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1128 ac_must_keep_next=false
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157 -* ) ac_must_keep_next=true ;;
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176 # Save into config.log some information that might help in debugging.
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1186 # The following way of writing the cache mishandles newlines in values,
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1209 for ac_var in $ac_subst_vars
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1216 if test -n "$ac_subst_files"; then
1223 for ac_var in $ac_subst_files
1225 eval ac_val=$`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1231 if test -s confdefs.h; then
1238 sed "/^$/d" confdefs.h | sort
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1245 rm -f core *.core &&
1246 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 # Predefined preprocessor variables.
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's/^/| /' "$ac_site_file" >&5
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1321 # Check that the precious variables saved in the cache have kept the same
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334 ac_cache_corrupted=: ;;
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1403 if test -f $ac_dir/install-sh; then
1405 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 elif test -f $ac_dir/install.sh; then
1409 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 elif test -f $ac_dir/shtool; then
1413 ac_install_sh="$ac_aux_dir/shtool install -c"
1417 if test -z "$ac_aux_dir"; then
1418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1420 { (exit 1); exit 1; }; }
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1434 # Extract the first word of "$ac_prog", so it can be a program name with args.
1435 set dummy $ac_prog; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 TRUEPRG=$ac_cv_path_TRUEPRG
1465 if test -n "$TRUEPRG"; then
1466 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1467 echo "${ECHO_T}$TRUEPRG" >&6
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1473 test -n "$TRUEPRG" && break
1475 test -n "$TRUEPRG" || TRUEPRG=":"
1477 for ac_prog in false
1479 # Extract the first word of "$ac_prog", so it can be a program name with args.
1480 set dummy $ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508 FALSEPRG=$ac_cv_path_FALSEPRG
1510 if test -n "$FALSEPRG"; then
1511 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1512 echo "${ECHO_T}$FALSEPRG" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1518 test -n "$FALSEPRG" && break
1520 test -n "$FALSEPRG" || FALSEPRG=":"
1525 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 echo "configuring for bacula $VERSION ($DATE)"
1533 ac_cpp='$CPP $CPPFLAGS'
1534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 if test -n "$ac_tool_prefix"; then
1538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1574 if test -z "$ac_cv_prog_CC"; then
1576 # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 if test -n "$ac_ct_CC"; then
1584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 test -z "$as_dir" && as_dir=.
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593 ac_cv_prog_ac_ct_CC="gcc"
1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1619 set dummy ${ac_tool_prefix}cc; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 ac_cv_prog_CC="${ac_tool_prefix}cc"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1654 if test -z "$ac_cv_prog_CC"; then
1656 # Extract the first word of "cc", so it can be a program name with args.
1657 set dummy cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_ac_ct_CC="cc"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1697 if test -z "$CC"; then
1698 # Extract the first word of "cc", so it can be a program name with args.
1699 set dummy cc; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$CC"; then
1706 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1717 ac_prog_rejected=yes
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 if test $ac_prog_rejected = yes; then
1728 # We found a bogon in the path, so make sure we never use it.
1729 set dummy $ac_cv_prog_CC
1731 if test $# != 0; then
1732 # We chose a different compiler from the bogus one.
1733 # However, it has the same basename, so the bogon will be chosen
1734 # first if we set CC to just the basename; use the full file name.
1736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$CC"; then
1752 if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test.
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 if test -n "$CC"; then
1783 echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1790 test -n "$CC" && break
1793 if test -z "$CC"; then
1797 # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$ac_ct_CC"; then
1805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_ac_ct_CC="$ac_prog"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1832 test -n "$ac_ct_CC" && break
1841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1847 # Provide some information about the compiler.
1848 echo "$as_me:$LINENO:" \
1849 "checking for C compiler version" >&5
1850 ac_compiler=`set X $ac_compile; echo $2`
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1852 (eval $ac_compiler --version </dev/null >&5) 2>&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }
1856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1857 (eval $ac_compiler -v </dev/null >&5) 2>&5
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1862 (eval $ac_compiler -V </dev/null >&5) 2>&5
1864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }
1867 cat >conftest.$ac_ext <<_ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h. */
1882 ac_clean_files_save=$ac_clean_files
1883 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1884 # Try to create an executable without -o first, disregard a.out.
1885 # It will help us diagnose broken compilers, and finding out an intuition
1887 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1888 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1889 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1890 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1891 (eval $ac_link_default) 2>&5
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; then
1895 # Find the output, starting from the most likely. This scheme is
1896 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1899 # Be careful to initialize this variable, since it used to be cached.
1900 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1902 # b.out is created by i960 compilers.
1903 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1905 test -f "$ac_file" || continue
1907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1910 # This is the source file.
1913 # We found the default executable, but exeext='' is most
1917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918 # FIXME: I believe we export ac_cv_exeext for Libtool,
1919 # but it would be cool to find out if it's true. Does anybody
1920 # maintain Libtool? --akim.
1928 echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&2;}
1935 { (exit 77); exit 77; }; }
1938 ac_exeext=$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_file" >&5
1940 echo "${ECHO_T}$ac_file" >&6
1942 # Check the compiler produces executables we can run. If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1945 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1946 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1947 # If not cross compiling, check that we can run a simple program.
1948 if test "$cross_compiling" != yes; then
1949 if { ac_try='./$ac_file'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1957 if test "$cross_compiling" = maybe; then
1960 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1961 If you meant to cross compile, use \`--host'.
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'.
1965 See \`config.log' for more details." >&2;}
1966 { (exit 1); exit 1; }; }
1970 echo "$as_me:$LINENO: result: yes" >&5
1971 echo "${ECHO_T}yes" >&6
1973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1974 ac_clean_files=$ac_clean_files_save
1975 # Check the compiler produces executables we can run. If not, either
1976 # the compiler is broken, or we cross compile.
1977 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1979 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1980 echo "${ECHO_T}$cross_compiling" >&6
1982 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1985 (eval $ac_link) 2>&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; then
1989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1991 # work properly (i.e., refer to `conftest.exe'), while it won't with
1993 for ac_file in conftest.exe conftest conftest.*; do
1994 test -f "$ac_file" || continue
1996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&2;}
2008 { (exit 1); exit 1; }; }
2011 rm -f conftest$ac_cv_exeext
2012 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2013 echo "${ECHO_T}$ac_cv_exeext" >&6
2015 rm -f conftest.$ac_ext
2016 EXEEXT=$ac_cv_exeext
2018 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2020 if test "${ac_cv_objext+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 cat >conftest.$ac_ext <<_ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h. */
2038 rm -f conftest.o conftest.obj
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; then
2044 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2052 echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2064 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065 echo "${ECHO_T}$ac_cv_objext" >&6
2066 OBJEXT=$ac_cv_objext
2068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2070 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 cat >conftest.$ac_ext <<_ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h. */
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>conftest.er1
2095 grep -v '^ *+' conftest.er1 >conftest.err
2097 cat conftest.err >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -z "$ac_c_werror_flag"
2101 || test ! -s conftest.err'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; } &&
2107 { ac_try='test -s conftest.$ac_objext'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2115 echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126 GCC=`test $ac_compiler_gnu = yes && echo yes`
2127 ac_test_CFLAGS=${CFLAGS+set}
2128 ac_save_CFLAGS=$CFLAGS
2130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_g+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 cat >conftest.$ac_ext <<_ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2154 grep -v '^ *+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2174 echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2183 if test "$ac_test_CFLAGS" = set; then
2184 CFLAGS=$ac_save_CFLAGS
2185 elif test $ac_cv_prog_cc_g = yes; then
2186 if test "$GCC" = yes; then
2192 if test "$GCC" = yes; then
2198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 ac_cv_prog_cc_stdc=no
2205 cat >conftest.$ac_ext <<_ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2213 #include <sys/types.h>
2214 #include <sys/stat.h>
2215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2216 struct buf { int x; };
2217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2218 static char *e (p, i)
2224 static char *f (char * (*g) (char **, int), char **p, ...)
2229 s = g (p, va_arg (v,int));
2234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2235 function prototypes and stuff, but not '\xHH' hex character constants.
2236 These don't provoke an error unfortunately, instead are silently treated
2237 as 'x'. The following induces an error, until -std1 is added to get
2238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2239 array size at least. It's necessary to write '\x00'==0 to get something
2240 that's true only with -std1. */
2241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2243 int test (int i, double x);
2244 struct s1 {int (*f) (int a);};
2245 struct s2 {int (*f) (double a);};
2246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2257 # Don't try gcc -ansi; that turns off useful extensions and
2258 # breaks some systems' header files.
2259 # AIX -qlanglvl=ansi
2260 # Ultrix and OSF/1 -std1
2261 # HP-UX 10.20 and later -Ae
2262 # HP-UX older versions -Aa -D_HPUX_SOURCE
2263 # SVR4 -Xc -D__EXTENSIONS__
2264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2266 CC="$ac_save_CC $ac_arg"
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>conftest.er1
2271 grep -v '^ *+' conftest.er1 >conftest.err
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -z "$ac_c_werror_flag"
2277 || test ! -s conftest.err'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 ac_cv_prog_cc_stdc=$ac_arg
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2296 rm -f conftest.err conftest.$ac_objext
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2303 case "x$ac_cv_prog_cc_stdc" in
2305 echo "$as_me:$LINENO: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310 CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 # Some people use a C++ compiler to compile C. Since we use `exit',
2314 # in C++ we need to declare it. In case someone uses the same compiler
2315 # for both compiling C and C++ we need to have the C++ compiler decide
2316 # the declaration of exit, since it's the most demanding environment.
2317 cat >conftest.$ac_ext <<_ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 for ac_declaration in \
2346 'extern "C" void std::exit (int) throw (); using std::exit;' \
2347 'extern "C" void std::exit (int); using std::exit;' \
2348 'extern "C" void exit (int) throw ();' \
2349 'extern "C" void exit (int);' \
2352 cat >conftest.$ac_ext <<_ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag"
2378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 cat >conftest.$ac_ext <<_ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 if test -n "$ac_declaration"; then
2445 echo '#ifdef __cplusplus' >>confdefs.h
2446 echo $ac_declaration >>confdefs.h
2447 echo '#endif' >>confdefs.h
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 ac_cpp='$CXXCPP $CPPFLAGS'
2464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CXX+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$CXX"; then
2478 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 if test -n "$CXX"; then
2498 echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6
2501 echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2505 test -n "$CXX" && break
2508 if test -z "$CXX"; then
2510 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2512 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$ac_ct_CXX"; then
2520 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_CXX="$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2539 if test -n "$ac_ct_CXX"; then
2540 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2541 echo "${ECHO_T}$ac_ct_CXX" >&6
2543 echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2547 test -n "$ac_ct_CXX" && break
2549 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2555 # Provide some information about the compiler.
2556 echo "$as_me:$LINENO:" \
2557 "checking for C++ compiler version" >&5
2558 ac_compiler=`set X $ac_compile; echo $2`
2559 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2560 (eval $ac_compiler --version </dev/null >&5) 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2565 (eval $ac_compiler -v </dev/null >&5) 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2570 (eval $ac_compiler -V </dev/null >&5) 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2575 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2576 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_cxx_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2631 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2633 GXX=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CXXFLAGS=${CXXFLAGS+set}
2635 ac_save_CXXFLAGS=$CXXFLAGS
2637 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2638 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cxx_g+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1 >conftest.err
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_cxx_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 ac_cv_prog_cxx_g=yes
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2690 if test "$ac_test_CXXFLAGS" = set; then
2691 CXXFLAGS=$ac_save_CXXFLAGS
2692 elif test $ac_cv_prog_cxx_g = yes; then
2693 if test "$GXX" = yes; then
2699 if test "$GXX" = yes; then
2705 for ac_declaration in \
2707 'extern "C" void std::exit (int) throw (); using std::exit;' \
2708 'extern "C" void std::exit (int); using std::exit;' \
2709 'extern "C" void exit (int) throw ();' \
2710 'extern "C" void exit (int);' \
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_cxx_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_cxx_werror_flag"
2784 || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 if test -n "$ac_declaration"; then
2806 echo '#ifdef __cplusplus' >>confdefs.h
2807 echo $ac_declaration >>confdefs.h
2808 echo '#endif' >>confdefs.h
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 if test "x$CC" != xcc; then
2818 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2819 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2821 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2822 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2824 set dummy $CC; ac_cc=`echo $2 |
2825 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2826 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2844 # Make sure it works both with $CC and with simple cc.
2845 # We do the test twice because some compilers refuse to overwrite an
2846 # existing .o file with -o, though they will create one.
2847 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); };
2859 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2860 if test "x$CC" != xcc; then
2861 # Test first that cc exists at all.
2862 if { ac_try='cc -c conftest.$ac_ext >&5'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2869 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); };
2883 # cc exists but doesn't like -o.
2884 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2889 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2895 echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2901 cat >>confdefs.h <<\_ACEOF
2902 #define NO_MINUS_C_MINUS_O 1
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2913 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2914 # On Suns, sometimes $CPP names a directory.
2915 if test -n "$CPP" && test -d "$CPP"; then
2918 if test -z "$CPP"; then
2919 if test "${ac_cv_prog_CPP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 # Double quotes because CPP needs to be expanded
2923 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926 for ac_c_preproc_warn_flag in '' yes
2928 # Use a header file that comes with gcc, so configuring glibc
2929 # with a fresh cross-compiler works.
2930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2931 # <limits.h> exists even on freestanding compilers.
2932 # On the NeXT, cc -E runs the code through the compiler's parser,
2933 # not just through cpp. "Syntax error" is here to catch this case.
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2941 # include <limits.h>
2943 # include <assert.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 if test -z "$ac_cpp_err"; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Broken: fails on valid input.
2973 rm -f conftest.err conftest.$ac_ext
2975 # OK, works on sane cases. Now check whether non-existent headers
2976 # can be detected and how.
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <ac_nonexistent.h>
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null; then
2993 if test -s conftest.err; then
2994 ac_cpp_err=$ac_c_preproc_warn_flag
2995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 if test -z "$ac_cpp_err"; then
3003 # Broken: success on invalid input.
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Passes both tests.
3013 rm -f conftest.err conftest.$ac_ext
3016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017 rm -f conftest.err conftest.$ac_ext
3018 if $ac_preproc_ok; then
3030 echo "$as_me:$LINENO: result: $CPP" >&5
3031 echo "${ECHO_T}$CPP" >&6
3033 for ac_c_preproc_warn_flag in '' yes
3035 # Use a header file that comes with gcc, so configuring glibc
3036 # with a fresh cross-compiler works.
3037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038 # <limits.h> exists even on freestanding compilers.
3039 # On the NeXT, cc -E runs the code through the compiler's parser,
3040 # not just through cpp. "Syntax error" is here to catch this case.
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3048 # include <limits.h>
3050 # include <assert.h>
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057 grep -v '^ *+' conftest.er1 >conftest.err
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } >/dev/null; then
3062 if test -s conftest.err; then
3063 ac_cpp_err=$ac_c_preproc_warn_flag
3064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 if test -z "$ac_cpp_err"; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 # Broken: fails on valid input.
3080 rm -f conftest.err conftest.$ac_ext
3082 # OK, works on sane cases. Now check whether non-existent headers
3083 # can be detected and how.
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <ac_nonexistent.h>
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_c_preproc_warn_flag
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 if test -z "$ac_cpp_err"; then
3110 # Broken: success on invalid input.
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 # Passes both tests.
3120 rm -f conftest.err conftest.$ac_ext
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3128 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 echo "$as_me:$LINENO: checking for egrep" >&5
3143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3144 if test "${ac_cv_prog_egrep+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3148 then ac_cv_prog_egrep='grep -E'
3149 else ac_cv_prog_egrep='egrep'
3152 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3153 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3154 EGREP=$ac_cv_prog_egrep
3157 if test $ac_cv_c_compiler_gnu = yes; then
3158 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3159 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3160 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 ac_pattern="Autoconf.*'x'"
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3175 ac_cv_prog_gcc_traditional=yes
3177 ac_cv_prog_gcc_traditional=no
3182 if test $ac_cv_prog_gcc_traditional = no; then
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3194 ac_cv_prog_gcc_traditional=yes
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3201 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3202 if test $ac_cv_prog_gcc_traditional = yes; then
3203 CC="$CC -traditional"
3207 if test "x$CC" = xgcc; then
3208 cat >>confdefs.h <<\_ACEOF
3213 # Extract the first word of "$CXX", so it can be a program name with args.
3214 set dummy $CXX; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_path_CXX+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3245 if test -n "$CXX"; then
3246 echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 if test ! -e $CXX; then
3254 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3255 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3256 { (exit 1); exit 1; }; }
3259 # Find a good install program. We prefer a C program (faster),
3260 # so one script is as good as another. But avoid the broken or
3261 # incompatible versions:
3262 # SysV /etc/install, /usr/sbin/install
3263 # SunOS /usr/etc/install
3264 # IRIX /sbin/install
3266 # AmigaOS /C/install, which installs bootblocks on floppy discs
3267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3270 # OS/2's system install, which has a completely different semantic
3271 # ./install, which can be erroneously created by make from ./install.sh.
3272 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3274 if test -z "$INSTALL"; then
3275 if test "${ac_cv_path_install+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 # Account for people who put trailing slashes in PATH elements.
3285 ./ | .// | /cC/* | \
3286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3287 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3290 # OSF1 and SCO ODT 3.0 have their own names for install.
3291 # Don't use installbsd from OSF since it installs stuff as root
3293 for ac_prog in ginstall scoinst install; do
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3296 if test $ac_prog = install &&
3297 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3298 # AIX install. It has an incompatible calling convention.
3300 elif test $ac_prog = install &&
3301 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3302 # program-specific install script used by HP pwplus--don't use.
3305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3317 if test "${ac_cv_path_install+set}" = set; then
3318 INSTALL=$ac_cv_path_install
3320 # As a last resort, use the slow shell script. We don't cache a
3321 # path for INSTALL within a source directory, because that will
3322 # break other packages using the cache if that directory is
3323 # removed, or if the path is relative.
3324 INSTALL=$ac_install_sh
3327 echo "$as_me:$LINENO: result: $INSTALL" >&5
3328 echo "${ECHO_T}$INSTALL" >&6
3330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3331 # It thinks the first close brace ends the variable substitution.
3332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3338 if test -n "$ac_tool_prefix"; then
3339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_RANLIB+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 if test -n "$RANLIB"; then
3347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 RANLIB=$ac_cv_prog_RANLIB
3366 if test -n "$RANLIB"; then
3367 echo "$as_me:$LINENO: result: $RANLIB" >&5
3368 echo "${ECHO_T}$RANLIB" >&6
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3375 if test -z "$ac_cv_prog_RANLIB"; then
3376 ac_ct_RANLIB=$RANLIB
3377 # Extract the first word of "ranlib", so it can be a program name with args.
3378 set dummy ranlib; ac_word=$2
3379 echo "$as_me:$LINENO: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 if test -n "$ac_ct_RANLIB"; then
3385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_ac_ct_RANLIB="ranlib"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3405 if test -n "$ac_ct_RANLIB"; then
3406 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3407 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3409 echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3413 RANLIB=$ac_ct_RANLIB
3415 RANLIB="$ac_cv_prog_RANLIB"
3418 # Extract the first word of "mv", so it can be a program name with args.
3419 set dummy mv; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_MV+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3450 if test -n "$MV"; then
3451 echo "$as_me:$LINENO: result: $MV" >&5
3452 echo "${ECHO_T}$MV" >&6
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3458 # Extract the first word of "rm", so it can be a program name with args.
3459 set dummy rm; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_RM+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3490 if test -n "$RM"; then
3491 echo "$as_me:$LINENO: result: $RM" >&5
3492 echo "${ECHO_T}$RM" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 # Extract the first word of "cp", so it can be a program name with args.
3499 set dummy cp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CP+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3530 if test -n "$CP"; then
3531 echo "$as_me:$LINENO: result: $CP" >&5
3532 echo "${ECHO_T}$CP" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 # Extract the first word of "sed", so it can be a program name with args.
3539 set dummy sed; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_SED+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3570 if test -n "$SED"; then
3571 echo "$as_me:$LINENO: result: $SED" >&5
3572 echo "${ECHO_T}$SED" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 # Extract the first word of "echo", so it can be a program name with args.
3579 set dummy echo; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_ECHO+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3608 ECHO=$ac_cv_path_ECHO
3610 if test -n "$ECHO"; then
3611 echo "$as_me:$LINENO: result: $ECHO" >&5
3612 echo "${ECHO_T}$ECHO" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 # Extract the first word of "cmp", so it can be a program name with args.
3619 set dummy cmp; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_CMP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3650 if test -n "$CMP"; then
3651 echo "$as_me:$LINENO: result: $CMP" >&5
3652 echo "${ECHO_T}$CMP" >&6
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3658 # Extract the first word of "tbl", so it can be a program name with args.
3659 set dummy tbl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_TBL+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3690 if test -n "$TBL"; then
3691 echo "$as_me:$LINENO: result: $TBL" >&5
3692 echo "${ECHO_T}$TBL" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 # Extract the first word of "ar", so it can be a program name with args.
3699 set dummy ar; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_AR+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3730 if test -n "$AR"; then
3731 echo "$as_me:$LINENO: result: $AR" >&5
3732 echo "${ECHO_T}$AR" >&6
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3738 # Extract the first word of "openssl", so it can be a program name with args.
3739 set dummy openssl; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_OPENSSL+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3768 OPENSSL=$ac_cv_path_OPENSSL
3770 if test -n "$OPENSSL"; then
3771 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3772 echo "${ECHO_T}$OPENSSL" >&6
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # Extract the first word of "mtx", so it can be a program name with args.
3779 set dummy mtx; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_path_MTX+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3810 if test -n "$MTX"; then
3811 echo "$as_me:$LINENO: result: $MTX" >&5
3812 echo "${ECHO_T}$MTX" >&6
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3818 # Extract the first word of "df", so it can be a program name with args.
3819 set dummy df; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_path_DF+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3850 if test -n "$DF"; then
3851 echo "$as_me:$LINENO: result: $DF" >&5
3852 echo "${ECHO_T}$DF" >&6
3854 echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3858 # Extract the first word of "mkisofs", so it can be a program name with args.
3859 set dummy mkisofs; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_path_MKISOFS+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3888 MKISOFS=$ac_cv_path_MKISOFS
3890 if test -n "$MKISOFS"; then
3891 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3892 echo "${ECHO_T}$MKISOFS" >&6
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3898 # Extract the first word of "python", so it can be a program name with args.
3899 set dummy python; ac_word=$2
3900 echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_path_PYTHON+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3928 PYTHON=$ac_cv_path_PYTHON
3930 if test -n "$PYTHON"; then
3931 echo "$as_me:$LINENO: result: $PYTHON" >&5
3932 echo "${ECHO_T}$PYTHON" >&6
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3938 # Extract the first word of "growisofs", so it can be a program name with args.
3939 set dummy growisofs; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3968 GROWISOFS=$ac_cv_path_GROWISOFS
3970 if test -n "$GROWISOFS"; then
3971 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3972 echo "${ECHO_T}$GROWISOFS" >&6
3974 echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3978 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3979 set dummy dvd+rw-mediainfo; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 case $DVDRWMEDIAINFO in
3987 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4008 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4010 if test -n "$DVDRWMEDIAINFO"; then
4011 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4012 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4014 echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4018 # Extract the first word of "pkg-config", so it can be a program name with args.
4019 set dummy pkg-config; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4048 PKGCONFIG=$ac_cv_path_PKGCONFIG
4050 if test -n "$PKGCONFIG"; then
4051 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4052 echo "${ECHO_T}$PKGCONFIG" >&6
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4059 if test "x$WXCONFIG" = x; then
4062 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4063 set dummy ${WXCONFIG}; ac_word=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 test -z "$as_dir" && as_dir=.
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4092 WXCONFIG=$ac_cv_path_WXCONFIG
4094 if test -n "$WXCONFIG"; then
4095 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4096 echo "${ECHO_T}$WXCONFIG" >&6
4098 echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4103 # Extract the first word of "cdrecord", so it can be a program name with args.
4104 set dummy cdrecord; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_CDRECORD+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4133 CDRECORD=$ac_cv_path_CDRECORD
4135 if test -n "$CDRECORD"; then
4136 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4137 echo "${ECHO_T}$CDRECORD" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 # Extract the first word of "pidof", so it can be a program name with args.
4144 set dummy pidof; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_PIDOF+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4173 PIDOF=$ac_cv_path_PIDOF
4175 if test -n "$PIDOF"; then
4176 echo "$as_me:$LINENO: result: $PIDOF" >&5
4177 echo "${ECHO_T}$PIDOF" >&6
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4183 for ac_prog in gawk mawk nawk awk
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_AWK+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 if test -n "$AWK"; then
4193 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_AWK="$ac_prog"
4203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 if test -n "$AWK"; then
4213 echo "$as_me:$LINENO: result: $AWK" >&5
4214 echo "${ECHO_T}$AWK" >&6
4216 echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6
4220 test -n "$AWK" && break
4223 # Some AWK programs fail, so test it and warn the user
4224 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4225 { if ((prog == $2) || (("(" prog ")") == $2) ||
4226 (("" prog "") == $2) ||
4227 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4229 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4230 The regex engine of $AWK is too broken to be used you
4231 might want to install GNU AWK.
4232 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4233 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4234 The regex engine of $AWK is too broken to be used you
4235 might want to install GNU AWK.
4236 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4237 { (exit 1); exit 1; }; }
4240 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4241 set dummy $THE_AWK; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_path_AWK+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4272 if test -n "$AWK"; then
4273 echo "$as_me:$LINENO: result: $AWK" >&5
4274 echo "${ECHO_T}$AWK" >&6
4276 echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4281 test -n "$ARFLAG" || ARFLAGS="cr"
4292 # Make sure we can run config.sub.
4293 $ac_config_sub sun4 >/dev/null 2>&1 ||
4294 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4295 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4296 { (exit 1); exit 1; }; }
4298 echo "$as_me:$LINENO: checking build system type" >&5
4299 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4300 if test "${ac_cv_build+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 ac_cv_build_alias=$build_alias
4304 test -z "$ac_cv_build_alias" &&
4305 ac_cv_build_alias=`$ac_config_guess`
4306 test -z "$ac_cv_build_alias" &&
4307 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4308 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4309 { (exit 1); exit 1; }; }
4310 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4311 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4312 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4313 { (exit 1); exit 1; }; }
4316 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4317 echo "${ECHO_T}$ac_cv_build" >&6
4319 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4320 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4321 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4325 echo "$as_me:$LINENO: checking host system type" >&5
4326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4327 if test "${ac_cv_host+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 ac_cv_host_alias=$host_alias
4331 test -z "$ac_cv_host_alias" &&
4332 ac_cv_host_alias=$ac_cv_build_alias
4333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4336 { (exit 1); exit 1; }; }
4339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4340 echo "${ECHO_T}$ac_cv_host" >&6
4342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4348 *cygwin* ) CYGWIN=yes;;
4352 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4358 HAVE_SUN_OS_FALSE='#'
4360 HAVE_SUN_OS_TRUE='#'
4363 cat >>confdefs.h <<\_ACEOF
4364 #define HAVE_SUN_OS 1
4372 HAVE_SUN_OS_FALSE='#'
4374 HAVE_SUN_OS_TRUE='#'
4379 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4385 HAVE_OSF1_OS_FALSE='#'
4387 HAVE_OSF1_OS_TRUE='#'
4390 cat >>confdefs.h <<\_ACEOF
4391 #define HAVE_OSF1_OS 1
4399 HAVE_OSF1_OS_FALSE='#'
4401 HAVE_OSF1_OS_TRUE='#'
4406 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4412 HAVE_AIX_OS_FALSE='#'
4414 HAVE_AIX_OS_TRUE='#'
4417 cat >>confdefs.h <<\_ACEOF
4418 #define HAVE_AIX_OS 1
4426 HAVE_AIX_OS_FALSE='#'
4428 HAVE_AIX_OS_TRUE='#'
4433 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4439 HAVE_HPUX_OS_FALSE='#'
4441 HAVE_HPUX_OS_TRUE='#'
4444 cat >>confdefs.h <<\_ACEOF
4445 #define HAVE_HPUX_OS 1
4453 HAVE_HPUX_OS_FALSE='#'
4455 HAVE_HPUX_OS_TRUE='#'
4460 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4466 HAVE_LINUX_OS_FALSE='#'
4468 HAVE_LINUX_OS_TRUE='#'
4469 HAVE_LINUX_OS_FALSE=
4471 cat >>confdefs.h <<\_ACEOF
4472 #define HAVE_LINUX_OS 1
4480 HAVE_LINUX_OS_FALSE='#'
4482 HAVE_LINUX_OS_TRUE='#'
4483 HAVE_LINUX_OS_FALSE=
4487 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4492 HAVE_FREEBSD_OS_TRUE=
4493 HAVE_FREEBSD_OS_FALSE='#'
4495 HAVE_FREEBSD_OS_TRUE='#'
4496 HAVE_FREEBSD_OS_FALSE=
4498 cat >>confdefs.h <<\_ACEOF
4499 #define HAVE_FREEBSD_OS 1
4506 HAVE_FREEBSD_OS_TRUE=
4507 HAVE_FREEBSD_OS_FALSE='#'
4509 HAVE_FREEBSD_OS_TRUE='#'
4510 HAVE_FREEBSD_OS_FALSE=
4514 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4519 HAVE_NETBSD_OS_TRUE=
4520 HAVE_NETBSD_OS_FALSE='#'
4522 HAVE_NETBSD_OS_TRUE='#'
4523 HAVE_NETBSD_OS_FALSE=
4525 cat >>confdefs.h <<\_ACEOF
4526 #define HAVE_NETBSD_OS 1
4533 HAVE_NETBSD_OS_TRUE=
4534 HAVE_NETBSD_OS_FALSE='#'
4536 HAVE_NETBSD_OS_TRUE='#'
4537 HAVE_NETBSD_OS_FALSE=
4541 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4546 HAVE_OPENBSD_OS_TRUE=
4547 HAVE_OPENBSD_OS_FALSE='#'
4549 HAVE_OPENBSD_OS_TRUE='#'
4550 HAVE_OPENBSD_OS_FALSE=
4552 cat >>confdefs.h <<\_ACEOF
4553 #define HAVE_OPENBSD_OS 1
4560 HAVE_OPENBSD_OS_TRUE=
4561 HAVE_OPENBSD_OS_FALSE='#'
4563 HAVE_OPENBSD_OS_TRUE='#'
4564 HAVE_OPENBSD_OS_FALSE=
4568 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4574 HAVE_BSDI_OS_FALSE='#'
4576 HAVE_BSDI_OS_TRUE='#'
4579 cat >>confdefs.h <<\_ACEOF
4580 #define HAVE_BSDI_OS 1
4588 HAVE_BSDI_OS_FALSE='#'
4590 HAVE_BSDI_OS_TRUE='#'
4595 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4601 HAVE_SGI_OS_FALSE='#'
4603 HAVE_SGI_OS_TRUE='#'
4606 cat >>confdefs.h <<\_ACEOF
4607 #define HAVE_SGI_OS 1
4615 HAVE_SGI_OS_FALSE='#'
4617 HAVE_SGI_OS_TRUE='#'
4622 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4628 HAVE_IRIX_OS_FALSE='#'
4630 HAVE_IRIX_OS_TRUE='#'
4633 cat >>confdefs.h <<\_ACEOF
4634 #define HAVE_IRIX_OS 1
4642 HAVE_IRIX_OS_FALSE='#'
4644 HAVE_IRIX_OS_TRUE='#'
4649 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4654 HAVE_DARWIN_OS_TRUE=
4655 HAVE_DARWIN_OS_FALSE='#'
4657 HAVE_DARWIN_OS_TRUE='#'
4658 HAVE_DARWIN_OS_FALSE=
4660 cat >>confdefs.h <<\_ACEOF
4661 #define HAVE_DARWIN_OS 1
4668 HAVE_DARWIN_OS_TRUE=
4669 HAVE_DARWIN_OS_FALSE='#'
4671 HAVE_DARWIN_OS_TRUE='#'
4672 HAVE_DARWIN_OS_FALSE=
4677 # -----------------------------------------------------------
4678 # ----------------------------------------------------------
4679 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4680 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4681 if test "x$DISTNAME" != "x"
4683 echo "distname set to $DISTNAME"
4684 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4687 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4690 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4693 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4696 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4699 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4702 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4705 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4708 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4711 elif test -f /etc/SuSE-release
4714 elif test -d /etc/SuSEconfig
4717 elif test -f /etc/mandrake-release
4720 elif test -f /etc/whitebox-release
4723 elif test -f /etc/redhat-release
4726 elif test -f /etc/gentoo-release
4729 elif test -f /etc/debian_version
4732 elif test -f /etc/slackware-version
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4738 elif test -f /etc/engarde-version
4741 elif test "$CYGWIN" = yes
4744 cat >>confdefs.h <<\_ACEOF
4745 #define HAVE_CYGWIN 1
4751 echo "$as_me:$LINENO: result: done" >&5
4752 echo "${ECHO_T}done" >&6
4755 # --------------------------------------------------
4756 # Suppport for gettext (translations)
4757 # By default, $datadir is ${prefix}/share
4758 # --------------------------------------------------
4759 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4760 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4761 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4762 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.make <<\_ACEOF
4767 @echo 'ac_maketemp="$(MAKE)"'
4769 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4770 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4771 if test -n "$ac_maketemp"; then
4772 eval ac_cv_prog_make_${ac_make}_set=yes
4774 eval ac_cv_prog_make_${ac_make}_set=no
4778 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4779 echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6
4783 echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6
4785 SET_MAKE="MAKE=${MAKE-make}"
4791 if test -n "$ac_aux_dir"; then
4792 case "$ac_aux_dir" in
4793 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4794 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4797 if test -z "$MKINSTALLDIRS"; then
4798 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4803 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4804 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4805 # Check whether --enable-nls or --disable-nls was given.
4806 if test "${enable_nls+set}" = set; then
4807 enableval="$enable_nls"
4812 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4813 echo "${ECHO_T}$USE_NLS" >&6
4820 # Prepare PATH_SEPARATOR.
4821 # The user is always right.
4822 if test "${PATH_SEPARATOR+set}" != set; then
4823 echo "#! /bin/sh" >conf$$.sh
4824 echo "exit 0" >>conf$$.sh
4826 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4834 # Find out how to test for executable files. Don't use a zero-byte file,
4835 # as systems may use methods other than mode bits to determine executability.
4836 cat >conf$$.file <<_ASEOF
4840 chmod +x conf$$.file
4841 if test -x conf$$.file >/dev/null 2>&1; then
4842 ac_executable_p="test -x"
4844 ac_executable_p="test -f"
4848 # Extract the first word of "msgfmt", so it can be a program name with args.
4849 set dummy msgfmt; ac_word=$2
4850 echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_path_MSGFMT+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4860 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH; do
4863 test -z "$ac_dir" && ac_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4866 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4867 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4868 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4869 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4876 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4880 MSGFMT="$ac_cv_path_MSGFMT"
4881 if test "$MSGFMT" != ":"; then
4882 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4883 echo "${ECHO_T}$MSGFMT" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4890 set dummy gmsgfmt; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4919 GMSGFMT=$ac_cv_path_GMSGFMT
4921 if test -n "$GMSGFMT"; then
4922 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4923 echo "${ECHO_T}$GMSGFMT" >&6
4925 echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4931 # Prepare PATH_SEPARATOR.
4932 # The user is always right.
4933 if test "${PATH_SEPARATOR+set}" != set; then
4934 echo "#! /bin/sh" >conf$$.sh
4935 echo "exit 0" >>conf$$.sh
4937 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4945 # Find out how to test for executable files. Don't use a zero-byte file,
4946 # as systems may use methods other than mode bits to determine executability.
4947 cat >conf$$.file <<_ASEOF
4951 chmod +x conf$$.file
4952 if test -x conf$$.file >/dev/null 2>&1; then
4953 ac_executable_p="test -x"
4955 ac_executable_p="test -f"
4959 # Extract the first word of "xgettext", so it can be a program name with args.
4960 set dummy xgettext; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4971 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4972 for ac_dir in $PATH; do
4974 test -z "$ac_dir" && ac_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4977 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4978 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4979 (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
4980 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4987 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4991 XGETTEXT="$ac_cv_path_XGETTEXT"
4992 if test "$XGETTEXT" != ":"; then
4993 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4994 echo "${ECHO_T}$XGETTEXT" >&6
4996 echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
5003 # Prepare PATH_SEPARATOR.
5004 # The user is always right.
5005 if test "${PATH_SEPARATOR+set}" != set; then
5006 echo "#! /bin/sh" >conf$$.sh
5007 echo "exit 0" >>conf$$.sh
5009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5017 # Find out how to test for executable files. Don't use a zero-byte file,
5018 # as systems may use methods other than mode bits to determine executability.
5019 cat >conf$$.file <<_ASEOF
5023 chmod +x conf$$.file
5024 if test -x conf$$.file >/dev/null 2>&1; then
5025 ac_executable_p="test -x"
5027 ac_executable_p="test -f"
5031 # Extract the first word of "msgmerge", so it can be a program name with args.
5032 set dummy msgmerge; ac_word=$2
5033 echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5035 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5043 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5044 for ac_dir in $PATH; do
5046 test -z "$ac_dir" && ac_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5049 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5050 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5051 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5058 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5062 MSGMERGE="$ac_cv_path_MSGMERGE"
5063 if test "$MSGMERGE" != ":"; then
5064 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5065 echo "${ECHO_T}$MSGMERGE" >&6
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5072 if test "$GMSGFMT" != ":"; then
5073 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5074 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5077 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5078 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5079 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5084 if test "$XGETTEXT" != ":"; then
5085 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5086 (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
5089 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5090 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5096 ac_config_commands="$ac_config_commands default-1"
5100 if test "X$prefix" = "XNONE"; then
5101 acl_final_prefix="$ac_default_prefix"
5103 acl_final_prefix="$prefix"
5105 if test "X$exec_prefix" = "XNONE"; then
5106 acl_final_exec_prefix='${prefix}'
5108 acl_final_exec_prefix="$exec_prefix"
5110 acl_save_prefix="$prefix"
5111 prefix="$acl_final_prefix"
5112 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5113 prefix="$acl_save_prefix"
5116 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5117 if test "${with_gnu_ld+set}" = set; then
5118 withval="$with_gnu_ld"
5119 test "$withval" = no || with_gnu_ld=yes
5123 # Prepare PATH_SEPARATOR.
5124 # The user is always right.
5125 if test "${PATH_SEPARATOR+set}" != set; then
5126 echo "#! /bin/sh" >conf$$.sh
5127 echo "exit 0" >>conf$$.sh
5129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5137 if test "$GCC" = yes; then
5138 # Check if gcc -print-prog-name=ld gives a path.
5139 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5140 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5143 # gcc leaves a trailing carriage return which upsets mingw
5144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5149 # Accept absolute paths.
5150 [\\/]* | [A-Za-z]:[\\/]*)
5151 re_direlt='/[^/][^/]*/\.\./'
5152 # Canonicalize the path of ld
5153 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5154 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5155 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5157 test -z "$LD" && LD="$ac_prog"
5160 # If it fails, then pretend we aren't using GCC.
5164 # If it is relative, then search for the first ld in PATH.
5168 elif test "$with_gnu_ld" = yes; then
5169 echo "$as_me:$LINENO: checking for GNU ld" >&5
5170 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5172 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5173 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5175 if test "${acl_cv_path_LD+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 if test -z "$LD"; then
5179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5180 for ac_dir in $PATH; do
5181 test -z "$ac_dir" && ac_dir=.
5182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5183 acl_cv_path_LD="$ac_dir/$ac_prog"
5184 # Check to see if the program is GNU ld. I'd rather use --version,
5185 # but apparently some GNU ld's only accept -v.
5186 # Break only if it was the GNU/non-GNU ld that we prefer.
5187 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5188 *GNU* | *'with BFD'*)
5189 test "$with_gnu_ld" != no && break ;;
5191 test "$with_gnu_ld" != yes && break ;;
5197 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5201 LD="$acl_cv_path_LD"
5202 if test -n "$LD"; then
5203 echo "$as_me:$LINENO: result: $LD" >&5
5204 echo "${ECHO_T}$LD" >&6
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5211 { (exit 1); exit 1; }; }
5212 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5214 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5218 case `$LD -v 2>&1 </dev/null` in
5219 *GNU* | *'with BFD'*)
5220 acl_cv_prog_gnu_ld=yes ;;
5222 acl_cv_prog_gnu_ld=no ;;
5225 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5226 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5227 with_gnu_ld=$acl_cv_prog_gnu_ld
5232 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5233 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5234 if test "${acl_cv_rpath+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5239 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5245 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5246 echo "${ECHO_T}$acl_cv_rpath" >&6
5248 libext="$acl_cv_libext"
5249 shlibext="$acl_cv_shlibext"
5250 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5251 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5252 hardcode_direct="$acl_cv_hardcode_direct"
5253 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5254 # Check whether --enable-rpath or --disable-rpath was given.
5255 if test "${enable_rpath+set}" = set; then
5256 enableval="$enable_rpath"
5270 acl_save_prefix="$prefix"
5271 prefix="$acl_final_prefix"
5272 acl_save_exec_prefix="$exec_prefix"
5273 exec_prefix="$acl_final_exec_prefix"
5275 eval additional_includedir=\"$includedir\"
5276 eval additional_libdir=\"$libdir\"
5278 exec_prefix="$acl_save_exec_prefix"
5279 prefix="$acl_save_prefix"
5282 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5283 if test "${with_libiconv_prefix+set}" = set; then
5284 withval="$with_libiconv_prefix"
5286 if test "X$withval" = "Xno"; then
5289 if test "X$withval" = "X"; then
5291 acl_save_prefix="$prefix"
5292 prefix="$acl_final_prefix"
5293 acl_save_exec_prefix="$exec_prefix"
5294 exec_prefix="$acl_final_exec_prefix"
5296 eval additional_includedir=\"$includedir\"
5297 eval additional_libdir=\"$libdir\"
5299 exec_prefix="$acl_save_exec_prefix"
5300 prefix="$acl_save_prefix"
5303 additional_includedir="$withval/include"
5304 additional_libdir="$withval/lib"
5314 names_already_handled=
5315 names_next_round='iconv '
5316 while test -n "$names_next_round"; do
5317 names_this_round="$names_next_round"
5319 for name in $names_this_round; do
5321 for n in $names_already_handled; do
5322 if test "$n" = "$name"; then
5327 if test -z "$already_handled"; then
5328 names_already_handled="$names_already_handled $name"
5329 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5330 eval value=\"\$HAVE_LIB$uppername\"
5331 if test -n "$value"; then
5332 if test "$value" = yes; then
5333 eval value=\"\$LIB$uppername\"
5334 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5335 eval value=\"\$LTLIB$uppername\"
5336 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5345 if test $use_additional = yes; then
5346 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5347 found_dir="$additional_libdir"
5348 found_so="$additional_libdir/lib$name.$shlibext"
5349 if test -f "$additional_libdir/lib$name.la"; then
5350 found_la="$additional_libdir/lib$name.la"
5353 if test -f "$additional_libdir/lib$name.$libext"; then
5354 found_dir="$additional_libdir"
5355 found_a="$additional_libdir/lib$name.$libext"
5356 if test -f "$additional_libdir/lib$name.la"; then
5357 found_la="$additional_libdir/lib$name.la"
5362 if test "X$found_dir" = "X"; then
5363 for x in $LDFLAGS $LTLIBICONV; do
5365 acl_save_prefix="$prefix"
5366 prefix="$acl_final_prefix"
5367 acl_save_exec_prefix="$exec_prefix"
5368 exec_prefix="$acl_final_exec_prefix"
5370 exec_prefix="$acl_save_exec_prefix"
5371 prefix="$acl_save_prefix"
5375 dir=`echo "X$x" | sed -e 's/^X-L//'`
5376 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5378 found_so="$dir/lib$name.$shlibext"
5379 if test -f "$dir/lib$name.la"; then
5380 found_la="$dir/lib$name.la"
5383 if test -f "$dir/lib$name.$libext"; then
5385 found_a="$dir/lib$name.$libext"
5386 if test -f "$dir/lib$name.la"; then
5387 found_la="$dir/lib$name.la"
5393 if test "X$found_dir" != "X"; then
5398 if test "X$found_dir" != "X"; then
5399 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5400 if test "X$found_so" != "X"; then
5401 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5405 for x in $ltrpathdirs; do
5406 if test "X$x" = "X$found_dir"; then
5411 if test -z "$haveit"; then
5412 ltrpathdirs="$ltrpathdirs $found_dir"
5414 if test "$hardcode_direct" = yes; then
5415 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5417 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5418 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5420 for x in $rpathdirs; do
5421 if test "X$x" = "X$found_dir"; then
5426 if test -z "$haveit"; then
5427 rpathdirs="$rpathdirs $found_dir"
5431 for x in $LDFLAGS $LIBICONV; do
5433 acl_save_prefix="$prefix"
5434 prefix="$acl_final_prefix"
5435 acl_save_exec_prefix="$exec_prefix"
5436 exec_prefix="$acl_final_exec_prefix"
5438 exec_prefix="$acl_save_exec_prefix"
5439 prefix="$acl_save_prefix"
5441 if test "X$x" = "X-L$found_dir"; then
5446 if test -z "$haveit"; then
5447 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5449 if test "$hardcode_minus_L" != no; then
5450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5452 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5458 if test "X$found_a" != "X"; then
5459 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5461 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5464 additional_includedir=
5465 case "$found_dir" in
5467 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5468 additional_includedir="$basedir/include"
5471 if test "X$additional_includedir" != "X"; then
5472 if test "X$additional_includedir" != "X/usr/include"; then
5474 if test "X$additional_includedir" = "X/usr/local/include"; then
5475 if test -n "$GCC"; then
5477 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5481 if test -z "$haveit"; then
5482 for x in $CPPFLAGS $INCICONV; do
5484 acl_save_prefix="$prefix"
5485 prefix="$acl_final_prefix"
5486 acl_save_exec_prefix="$exec_prefix"
5487 exec_prefix="$acl_final_exec_prefix"
5489 exec_prefix="$acl_save_exec_prefix"
5490 prefix="$acl_save_prefix"
5492 if test "X$x" = "X-I$additional_includedir"; then
5497 if test -z "$haveit"; then
5498 if test -d "$additional_includedir"; then
5499 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5505 if test -n "$found_la"; then
5506 save_libdir="$libdir"
5508 */* | *\\*) . "$found_la" ;;
5509 *) . "./$found_la" ;;
5511 libdir="$save_libdir"
5512 for dep in $dependency_libs; do
5515 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5516 if test "X$additional_libdir" != "X/usr/lib"; then
5518 if test "X$additional_libdir" = "X/usr/local/lib"; then
5519 if test -n "$GCC"; then
5521 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5525 if test -z "$haveit"; then
5527 for x in $LDFLAGS $LIBICONV; do
5529 acl_save_prefix="$prefix"
5530 prefix="$acl_final_prefix"
5531 acl_save_exec_prefix="$exec_prefix"
5532 exec_prefix="$acl_final_exec_prefix"
5534 exec_prefix="$acl_save_exec_prefix"
5535 prefix="$acl_save_prefix"
5537 if test "X$x" = "X-L$additional_libdir"; then
5542 if test -z "$haveit"; then
5543 if test -d "$additional_libdir"; then
5544 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5548 for x in $LDFLAGS $LTLIBICONV; do
5550 acl_save_prefix="$prefix"
5551 prefix="$acl_final_prefix"
5552 acl_save_exec_prefix="$exec_prefix"
5553 exec_prefix="$acl_final_exec_prefix"
5555 exec_prefix="$acl_save_exec_prefix"
5556 prefix="$acl_save_prefix"
5558 if test "X$x" = "X-L$additional_libdir"; then
5563 if test -z "$haveit"; then
5564 if test -d "$additional_libdir"; then
5565 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5572 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5573 if test "$enable_rpath" != no; then
5575 for x in $rpathdirs; do
5576 if test "X$x" = "X$dir"; then
5581 if test -z "$haveit"; then
5582 rpathdirs="$rpathdirs $dir"
5585 for x in $ltrpathdirs; do
5586 if test "X$x" = "X$dir"; then
5591 if test -z "$haveit"; then
5592 ltrpathdirs="$ltrpathdirs $dir"
5597 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5603 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5604 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5610 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5611 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5617 if test "X$rpathdirs" != "X"; then
5618 if test -n "$hardcode_libdir_separator"; then
5620 for found_dir in $rpathdirs; do
5621 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5623 acl_save_libdir="$libdir"
5625 eval flag=\"$hardcode_libdir_flag_spec\"
5626 libdir="$acl_save_libdir"
5627 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5629 for found_dir in $rpathdirs; do
5630 acl_save_libdir="$libdir"
5632 eval flag=\"$hardcode_libdir_flag_spec\"
5633 libdir="$acl_save_libdir"
5634 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5638 if test "X$ltrpathdirs" != "X"; then
5639 for found_dir in $ltrpathdirs; do
5640 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5661 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5662 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5663 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 gt_save_CPPFLAGS="$CPPFLAGS"
5667 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5668 gt_save_LIBS="$LIBS"
5669 LIBS="$LIBS -framework CoreFoundation"
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 #include <CFPreferences.h>
5680 CFPreferencesCopyAppValue(NULL, NULL)
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5687 (eval $ac_link) 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest$ac_exeext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 gt_cv_func_CFPreferencesCopyAppValue=yes
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 gt_cv_func_CFPreferencesCopyAppValue=no
5714 rm -f conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716 CPPFLAGS="$gt_save_CPPFLAGS"
5717 LIBS="$gt_save_LIBS"
5719 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5720 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5721 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5723 cat >>confdefs.h <<\_ACEOF
5724 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5728 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5729 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5730 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 gt_save_CPPFLAGS="$CPPFLAGS"
5734 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5735 gt_save_LIBS="$LIBS"
5736 LIBS="$LIBS -framework CoreFoundation"
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 #include <CFLocale.h>
5747 CFLocaleCopyCurrent();
5752 rm -f conftest.$ac_objext conftest$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754 (eval $ac_link) 2>conftest.er1
5756 grep -v '^ *+' conftest.er1 >conftest.err
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest$ac_exeext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 gt_cv_func_CFLocaleCopyCurrent=yes
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 gt_cv_func_CFLocaleCopyCurrent=no
5781 rm -f conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5783 CPPFLAGS="$gt_save_CPPFLAGS"
5784 LIBS="$gt_save_LIBS"
5786 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5787 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5788 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5790 cat >>confdefs.h <<\_ACEOF
5791 #define HAVE_CFLOCALECOPYCURRENT 1
5796 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5797 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5803 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5804 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5805 # Check whether --enable-nls or --disable-nls was given.
5806 if test "${enable_nls+set}" = set; then
5807 enableval="$enable_nls"
5812 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5813 echo "${ECHO_T}$USE_NLS" >&6
5822 if test "$USE_NLS" = "yes"; then
5823 gt_use_preinstalled_gnugettext=no
5830 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5831 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5832 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 #include <libintl.h>
5842 extern int _nl_msg_cat_cntr;
5843 extern int *_nl_domain_bindings;
5847 bindtextdomain ("", "");
5848 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855 (eval $ac_link) 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest$ac_exeext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 gt_cv_func_gnugettext1_libc=yes
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 gt_cv_func_gnugettext1_libc=no
5882 rm -f conftest.err conftest.$ac_objext \
5883 conftest$ac_exeext conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5886 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5888 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5894 am_save_CPPFLAGS="$CPPFLAGS"
5896 for element in $INCICONV; do
5898 for x in $CPPFLAGS; do
5900 acl_save_prefix="$prefix"
5901 prefix="$acl_final_prefix"
5902 acl_save_exec_prefix="$exec_prefix"
5903 exec_prefix="$acl_final_exec_prefix"
5905 exec_prefix="$acl_save_exec_prefix"
5906 prefix="$acl_save_prefix"
5908 if test "X$x" = "X$element"; then
5913 if test -z "$haveit"; then
5914 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5919 echo "$as_me:$LINENO: checking for iconv" >&5
5920 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5921 if test "${am_cv_func_iconv+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 am_cv_func_iconv="no, consider installing GNU libiconv"
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5938 iconv_t cd = iconv_open("","");
5939 iconv(cd,NULL,NULL,NULL,NULL);
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest$ac_exeext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 am_cv_func_iconv=yes
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5973 rm -f conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975 if test "$am_cv_func_iconv" != yes; then
5976 am_save_LIBS="$LIBS"
5977 LIBS="$LIBS $LIBICONV"
5978 cat >conftest.$ac_ext <<_ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5989 iconv_t cd = iconv_open("","");
5990 iconv(cd,NULL,NULL,NULL,NULL);
5996 rm -f conftest.$ac_objext conftest$ac_exeext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5998 (eval $ac_link) 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -z "$ac_c_werror_flag"
6006 || test ! -s conftest.err'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try='test -s conftest$ac_exeext'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6019 am_cv_func_iconv=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6025 rm -f conftest.err conftest.$ac_objext \
6026 conftest$ac_exeext conftest.$ac_ext
6027 LIBS="$am_save_LIBS"
6031 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6032 echo "${ECHO_T}$am_cv_func_iconv" >&6
6033 if test "$am_cv_func_iconv" = yes; then
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HAVE_ICONV 1
6040 if test "$am_cv_lib_iconv" = yes; then
6041 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6042 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6043 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6044 echo "${ECHO_T}$LIBICONV" >&6
6046 CPPFLAGS="$am_save_CPPFLAGS"
6058 acl_save_prefix="$prefix"
6059 prefix="$acl_final_prefix"
6060 acl_save_exec_prefix="$exec_prefix"
6061 exec_prefix="$acl_final_exec_prefix"
6063 eval additional_includedir=\"$includedir\"
6064 eval additional_libdir=\"$libdir\"
6066 exec_prefix="$acl_save_exec_prefix"
6067 prefix="$acl_save_prefix"
6070 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6071 if test "${with_libintl_prefix+set}" = set; then
6072 withval="$with_libintl_prefix"
6074 if test "X$withval" = "Xno"; then
6077 if test "X$withval" = "X"; then
6079 acl_save_prefix="$prefix"
6080 prefix="$acl_final_prefix"
6081 acl_save_exec_prefix="$exec_prefix"
6082 exec_prefix="$acl_final_exec_prefix"
6084 eval additional_includedir=\"$includedir\"
6085 eval additional_libdir=\"$libdir\"
6087 exec_prefix="$acl_save_exec_prefix"
6088 prefix="$acl_save_prefix"
6091 additional_includedir="$withval/include"
6092 additional_libdir="$withval/lib"
6102 names_already_handled=
6103 names_next_round='intl '
6104 while test -n "$names_next_round"; do
6105 names_this_round="$names_next_round"
6107 for name in $names_this_round; do
6109 for n in $names_already_handled; do
6110 if test "$n" = "$name"; then
6115 if test -z "$already_handled"; then
6116 names_already_handled="$names_already_handled $name"
6117 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6118 eval value=\"\$HAVE_LIB$uppername\"
6119 if test -n "$value"; then
6120 if test "$value" = yes; then
6121 eval value=\"\$LIB$uppername\"
6122 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6123 eval value=\"\$LTLIB$uppername\"
6124 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6133 if test $use_additional = yes; then
6134 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6135 found_dir="$additional_libdir"
6136 found_so="$additional_libdir/lib$name.$shlibext"
6137 if test -f "$additional_libdir/lib$name.la"; then
6138 found_la="$additional_libdir/lib$name.la"
6141 if test -f "$additional_libdir/lib$name.$libext"; then
6142 found_dir="$additional_libdir"
6143 found_a="$additional_libdir/lib$name.$libext"
6144 if test -f "$additional_libdir/lib$name.la"; then
6145 found_la="$additional_libdir/lib$name.la"
6150 if test "X$found_dir" = "X"; then
6151 for x in $LDFLAGS $LTLIBINTL; do
6153 acl_save_prefix="$prefix"
6154 prefix="$acl_final_prefix"
6155 acl_save_exec_prefix="$exec_prefix"
6156 exec_prefix="$acl_final_exec_prefix"
6158 exec_prefix="$acl_save_exec_prefix"
6159 prefix="$acl_save_prefix"
6163 dir=`echo "X$x" | sed -e 's/^X-L//'`
6164 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6166 found_so="$dir/lib$name.$shlibext"
6167 if test -f "$dir/lib$name.la"; then
6168 found_la="$dir/lib$name.la"
6171 if test -f "$dir/lib$name.$libext"; then
6173 found_a="$dir/lib$name.$libext"
6174 if test -f "$dir/lib$name.la"; then
6175 found_la="$dir/lib$name.la"
6181 if test "X$found_dir" != "X"; then
6186 if test "X$found_dir" != "X"; then
6187 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6188 if test "X$found_so" != "X"; then
6189 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6190 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6193 for x in $ltrpathdirs; do
6194 if test "X$x" = "X$found_dir"; then
6199 if test -z "$haveit"; then
6200 ltrpathdirs="$ltrpathdirs $found_dir"
6202 if test "$hardcode_direct" = yes; then
6203 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6205 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6206 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6208 for x in $rpathdirs; do
6209 if test "X$x" = "X$found_dir"; then
6214 if test -z "$haveit"; then
6215 rpathdirs="$rpathdirs $found_dir"
6219 for x in $LDFLAGS $LIBINTL; do
6221 acl_save_prefix="$prefix"
6222 prefix="$acl_final_prefix"
6223 acl_save_exec_prefix="$exec_prefix"
6224 exec_prefix="$acl_final_exec_prefix"
6226 exec_prefix="$acl_save_exec_prefix"
6227 prefix="$acl_save_prefix"
6229 if test "X$x" = "X-L$found_dir"; then
6234 if test -z "$haveit"; then
6235 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6237 if test "$hardcode_minus_L" != no; then
6238 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6240 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6246 if test "X$found_a" != "X"; then
6247 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6249 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6252 additional_includedir=
6253 case "$found_dir" in
6255 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6256 additional_includedir="$basedir/include"
6259 if test "X$additional_includedir" != "X"; then
6260 if test "X$additional_includedir" != "X/usr/include"; then
6262 if test "X$additional_includedir" = "X/usr/local/include"; then
6263 if test -n "$GCC"; then
6265 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6269 if test -z "$haveit"; then
6270 for x in $CPPFLAGS $INCINTL; do
6272 acl_save_prefix="$prefix"
6273 prefix="$acl_final_prefix"
6274 acl_save_exec_prefix="$exec_prefix"
6275 exec_prefix="$acl_final_exec_prefix"
6277 exec_prefix="$acl_save_exec_prefix"
6278 prefix="$acl_save_prefix"
6280 if test "X$x" = "X-I$additional_includedir"; then
6285 if test -z "$haveit"; then
6286 if test -d "$additional_includedir"; then
6287 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6293 if test -n "$found_la"; then
6294 save_libdir="$libdir"
6296 */* | *\\*) . "$found_la" ;;
6297 *) . "./$found_la" ;;
6299 libdir="$save_libdir"
6300 for dep in $dependency_libs; do
6303 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6304 if test "X$additional_libdir" != "X/usr/lib"; then
6306 if test "X$additional_libdir" = "X/usr/local/lib"; then
6307 if test -n "$GCC"; then
6309 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6313 if test -z "$haveit"; then
6315 for x in $LDFLAGS $LIBINTL; do
6317 acl_save_prefix="$prefix"
6318 prefix="$acl_final_prefix"
6319 acl_save_exec_prefix="$exec_prefix"
6320 exec_prefix="$acl_final_exec_prefix"
6322 exec_prefix="$acl_save_exec_prefix"
6323 prefix="$acl_save_prefix"
6325 if test "X$x" = "X-L$additional_libdir"; then
6330 if test -z "$haveit"; then
6331 if test -d "$additional_libdir"; then
6332 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6336 for x in $LDFLAGS $LTLIBINTL; do
6338 acl_save_prefix="$prefix"
6339 prefix="$acl_final_prefix"
6340 acl_save_exec_prefix="$exec_prefix"
6341 exec_prefix="$acl_final_exec_prefix"
6343 exec_prefix="$acl_save_exec_prefix"
6344 prefix="$acl_save_prefix"
6346 if test "X$x" = "X-L$additional_libdir"; then
6351 if test -z "$haveit"; then
6352 if test -d "$additional_libdir"; then
6353 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6360 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6361 if test "$enable_rpath" != no; then
6363 for x in $rpathdirs; do
6364 if test "X$x" = "X$dir"; then
6369 if test -z "$haveit"; then
6370 rpathdirs="$rpathdirs $dir"
6373 for x in $ltrpathdirs; do
6374 if test "X$x" = "X$dir"; then
6379 if test -z "$haveit"; then
6380 ltrpathdirs="$ltrpathdirs $dir"
6385 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6388 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6391 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6392 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6398 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6399 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6405 if test "X$rpathdirs" != "X"; then
6406 if test -n "$hardcode_libdir_separator"; then
6408 for found_dir in $rpathdirs; do
6409 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6411 acl_save_libdir="$libdir"
6413 eval flag=\"$hardcode_libdir_flag_spec\"
6414 libdir="$acl_save_libdir"
6415 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6417 for found_dir in $rpathdirs; do
6418 acl_save_libdir="$libdir"
6420 eval flag=\"$hardcode_libdir_flag_spec\"
6421 libdir="$acl_save_libdir"
6422 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6426 if test "X$ltrpathdirs" != "X"; then
6427 for found_dir in $ltrpathdirs; do
6428 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6432 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6433 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6434 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 gt_save_CPPFLAGS="$CPPFLAGS"
6438 CPPFLAGS="$CPPFLAGS $INCINTL"
6439 gt_save_LIBS="$LIBS"
6440 LIBS="$LIBS $LIBINTL"
6441 cat >conftest.$ac_ext <<_ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 #include <libintl.h>
6448 extern int _nl_msg_cat_cntr;
6453 const char *_nl_expand_alias (const char *);
6457 bindtextdomain ("", "");
6458 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465 (eval $ac_link) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest$ac_exeext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 gt_cv_func_gnugettext1_libintl=yes
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 gt_cv_func_gnugettext1_libintl=no
6492 rm -f conftest.err conftest.$ac_objext \
6493 conftest$ac_exeext conftest.$ac_ext
6494 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6495 LIBS="$LIBS $LIBICONV"
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <libintl.h>
6503 extern int _nl_msg_cat_cntr;
6508 const char *_nl_expand_alias (const char *);
6512 bindtextdomain ("", "");
6513 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520 (eval $ac_link) 2>conftest.er1
6522 grep -v '^ *+' conftest.er1 >conftest.err
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -z "$ac_c_werror_flag"
6528 || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 LIBINTL="$LIBINTL $LIBICONV"
6541 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6542 gt_cv_func_gnugettext1_libintl=yes
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6549 rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6552 CPPFLAGS="$gt_save_CPPFLAGS"
6553 LIBS="$gt_save_LIBS"
6555 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6556 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6559 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6560 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6561 && test "$PACKAGE" != gettext-runtime \
6562 && test "$PACKAGE" != gettext-tools; }; then
6563 gt_use_preinstalled_gnugettext=yes
6572 if test -n "$INTL_MACOSX_LIBS"; then
6573 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6574 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6575 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6576 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6580 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6581 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define ENABLE_NLS 1
6592 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6593 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6594 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6595 echo "${ECHO_T}$USE_NLS" >&6
6596 if test "$USE_NLS" = "yes"; then
6597 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6598 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6599 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6600 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6601 gt_source="external libintl"
6606 gt_source="included intl directory"
6608 echo "$as_me:$LINENO: result: $gt_source" >&5
6609 echo "${ECHO_T}$gt_source" >&6
6612 if test "$USE_NLS" = "yes"; then
6614 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6615 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6616 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6617 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6618 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6619 echo "${ECHO_T}$LIBINTL" >&6
6621 for element in $INCINTL; do
6623 for x in $CPPFLAGS; do
6625 acl_save_prefix="$prefix"
6626 prefix="$acl_final_prefix"
6627 acl_save_exec_prefix="$exec_prefix"
6628 exec_prefix="$acl_final_exec_prefix"
6630 exec_prefix="$acl_save_exec_prefix"
6631 prefix="$acl_save_prefix"
6633 if test "X$x" = "X$element"; then
6638 if test -z "$haveit"; then
6639 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6646 cat >>confdefs.h <<\_ACEOF
6647 #define HAVE_GETTEXT 1
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_DCGETTEXT 1
6669 if test x${prefix} = xNONE ; then
6670 if test `eval echo ${datadir}` = NONE/share ; then
6675 # ------------------------------------------------------------------
6676 # If the user has not set --prefix, we set our default to nothing.
6677 # In this case, if the user has not set --sysconfdir, we set it
6678 # to the package default of /etc/bacula. If either --prefix or
6679 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6680 # ------------------------------------------------------------------
6681 if test x${prefix} = xNONE ; then
6682 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6683 sysconfdir=/etc/bacula
6687 sysconfdir=`eval echo ${sysconfdir}`
6688 datadir=`eval echo ${datadir}`
6689 localedir=`eval echo ${datadir}/locale`
6690 cat >>confdefs.h <<_ACEOF
6691 #define LOCALEDIR "$localedir"
6695 # -------------------------------------------------------------------------
6696 # If the user has not set --exec-prefix, we default to ${prefix}
6697 # -------------------------------------------------------------------------
6698 if test x${exec_prefix} = xNONE ; then
6699 exec_prefix=${prefix}
6702 # ------------------------------------------------------------------
6703 # If the user has not set --sbindir, we set our default as /sbin
6704 # ------------------------------------------------------------------
6705 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6706 sbindir=${exec_prefix}/sbin
6708 sbindir=`eval echo ${sbindir}`
6710 # -------------------------------------------------------------------------
6711 # If the user has not set --mandir, we default to /usr/share/man
6712 # -------------------------------------------------------------------------
6713 if test x$mandir = x'${prefix}/man' ; then
6714 mandir=/usr/share/man
6718 # ------------------------------------------------------------------
6719 # All list of languages for which a translation exist. Each
6720 # language is separated by a space.
6721 # ------------------------------------------------------------------
6724 for ac_prog in msgfmt
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_path_MSGFMT+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 MSGFMT=$ac_cv_path_MSGFMT
6757 if test -n "$MSGFMT"; then
6758 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6759 echo "${ECHO_T}$MSGFMT" >&6
6761 echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6
6765 test -n "$MSGFMT" && break
6767 test -n "$MSGFMT" || MSGFMT="no"
6769 if test "$MSGFMT" = "no"
6771 echo 'msgfmt program not found, disabling NLS !'
6773 USE_INCLUDED_LIBINTL=no
6782 support_postgresql=no
6783 support_smartalloc=yes
6784 support_readline=yes
6787 support_wx_console=no
6791 support_static_tools=no
6792 support_static_fd=no
6793 support_static_sd=no
6794 support_static_dir=no
6795 support_static_cons=no
6797 build_client_only=no
6805 # -------------------------------------------
6806 # gnome (default off)
6807 # -------------------------------------------
6808 # Check whether --enable-gnome or --disable-gnome was given.
6809 if test "${enable_gnome+set}" = set; then
6810 enableval="$enable_gnome"
6811 if test x$enableval = xyes; then
6817 if test x$support_gnome = xyes; then
6818 abc=`$PKGCONFIG --exists libgnomeui-2.0`
6820 if test $pkg = 0; then
6821 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6822 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6823 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6824 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6829 GNOME_DIR=src/gnome2-console
6830 gnome_version="Version 2.x"
6832 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6833 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6834 { (exit 1); exit 1; }; }
6840 # -------------------------------------------
6841 # wx-console (default off)
6842 # -------------------------------------------
6843 # Check whether --enable-wx-console or --disable-wx-console was given.
6844 if test "${enable_wx_console+set}" = set; then
6845 enableval="$enable_wx_console"
6846 if test x$enableval = xyes; then
6847 support_wx_console=yes
6852 if test x$support_wx_console = xyes; then
6853 abc=`$WXCONFIG $WXFLAGS --cppflags`
6855 if test $pkg = 0; then
6856 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6857 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6858 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6862 WX_DIR=src/wx-console
6865 echo "wx-config program not found. wx-console disabled."
6867 support_wx_console=no
6873 # -------------------------------------------
6874 # tray-monitor (default off)
6875 # -------------------------------------------
6876 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6877 if test "${enable_tray_monitor+set}" = set; then
6878 enableval="$enable_tray_monitor"
6879 if test x$enableval = xyes; then
6880 support_tray_monitor=yes
6885 if test x$support_tray_monitor = xyes; then
6886 abc=`$PKGCONFIG --exists gtk+-2.0`
6888 if test $pkg = 0; then
6889 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6890 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6893 TRAY_MONITOR_DIR=src/tray-monitor
6894 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6896 if test $pkg = 0; then
6897 cat >>confdefs.h <<\_ACEOF
6898 #define HAVE_GTK_2_4 1
6906 # -------------------------------------------
6907 # smartalloc (default off)
6908 # -------------------------------------------
6909 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6910 if test "${enable_smartalloc+set}" = set; then
6911 enableval="$enable_smartalloc"
6912 if test x$enableval = xno; then
6913 support_smartalloc=no
6917 if test x$support_smartalloc = xyes; then
6918 cat >>confdefs.h <<\_ACEOF
6919 #define SMARTALLOC 1
6924 # -------------------------------------------
6925 # static-tools (default off)
6926 # -------------------------------------------
6927 # Check whether --enable-static-tools or --disable-static-tools was given.
6928 if test "${enable_static_tools+set}" = set; then
6929 enableval="$enable_static_tools"
6930 if test x$enableval = xyes; then
6931 support_static_tools=yes
6936 if test x$support_static_tools = xyes; then
6937 TTOOL_LDFLAGS="-static"
6941 # -------------------------------------------
6942 # static-fd (default off)
6943 # -------------------------------------------
6944 # Check whether --enable-static-fd or --disable-static-fd was given.
6945 if test "${enable_static_fd+set}" = set; then
6946 enableval="$enable_static_fd"
6947 if test x$enableval = xyes; then
6948 support_static_fd=yes
6953 if test x$support_static_fd = xyes; then
6954 STATIC_FD="static-bacula-fd"
6958 # -------------------------------------------
6959 # static-sd (default off)
6960 # -------------------------------------------
6961 # Check whether --enable-static-sd or --disable-static-sd was given.
6962 if test "${enable_static_sd+set}" = set; then
6963 enableval="$enable_static_sd"
6964 if test x$enableval = xyes; then
6965 support_static_sd=yes
6970 if test x$support_static_sd = xyes; then
6971 STATIC_SD="static-bacula-sd"
6975 # -------------------------------------------
6976 # static-dir (default off)
6977 # -------------------------------------------
6978 # Check whether --enable-static-dir or --disable-static-dir was given.
6979 if test "${enable_static_dir+set}" = set; then
6980 enableval="$enable_static_dir"
6981 if test x$enableval = xyes; then
6982 support_static_dir=yes
6987 if test x$support_static_dir = xyes; then
6988 STATIC_DIR="static-bacula-dir"
6992 # -------------------------------------------
6993 # static-cons (default off)
6994 # -------------------------------------------
6995 # Check whether --enable-static-cons or --disable-static-cons was given.
6996 if test "${enable_static_cons+set}" = set; then
6997 enableval="$enable_static_cons"
6998 if test x$enableval = xyes; then
6999 support_static_cons=yes
7006 if test x$support_static_cons = xyes; then
7007 STATIC_CONS="static-bconsole"
7008 STATIC_GNOME_CONS="static-gnome-console"
7009 STATIC_WX_CONS="static-wx-console"
7015 # -------------------------------------------
7016 # client_only (default off)
7017 # -------------------------------------------
7018 # Check whether --enable-client-only or --disable-client-only was given.
7019 if test "${enable_client_only+set}" = set; then
7020 enableval="$enable_client_only"
7021 if test x$enableval = xyes; then
7022 build_client_only=yes
7027 if test x$build_client_only = xno; then
7034 # -------------------------------------------
7035 # director (default on)
7036 # -------------------------------------------
7037 # Check whether --enable-build-dird or --disable-build-dird was given.
7038 if test "${enable_build_dird+set}" = set; then
7039 enableval="$enable_build_dird"
7040 if test x$enableval = xno; then
7044 if test x$build_dird = xyes; then
7046 DIR_TOOLS="DIRTOOLS"
7049 DIR_TOOLS="NODIRTOOLS"
7054 # -------------------------------------------
7055 # stored (default on)
7056 # -------------------------------------------
7057 # Check whether --enable-build-stored or --disable-build-stored was given.
7058 if test "${enable_build_stored+set}" = set; then
7059 enableval="$enable_build_stored"
7060 if test x$enableval = xno; then
7064 if test x$build_stored = xyes; then
7065 STORED_DIR="src/stored"
7071 # ---------------------------------------------------
7072 # Check for conio (Bacula readline substitute)(
7073 # ---------------------------------------------------
7074 # this allows you to turn it completely off
7075 # Check whether --enable-conio or --disable-conio was given.
7076 if test "${enable_conio+set}" = set; then
7077 enableval="$enable_conio"
7078 if test x$enableval = xno; then
7084 if test x$support_conio = xyes; then
7085 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7087 if test "${ac_cv_header_stdc+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest.$ac_objext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_header_stdc=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_cv_header_stdc=no
7138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7140 if test $ac_cv_header_stdc = yes; then
7141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7142 cat >conftest.$ac_ext <<_ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152 $EGREP "memchr" >/dev/null 2>&1; then
7155 ac_cv_header_stdc=no
7161 if test $ac_cv_header_stdc = yes; then
7162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7173 $EGREP "free" >/dev/null 2>&1; then
7176 ac_cv_header_stdc=no
7182 if test $ac_cv_header_stdc = yes; then
7183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7184 if test "$cross_compiling" = yes; then
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7194 #if ((' ' & 0x0FF) == 0x020)
7195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7198 # define ISLOWER(c) \
7199 (('a' <= (c) && (c) <= 'i') \
7200 || ('j' <= (c) && (c) <= 'r') \
7201 || ('s' <= (c) && (c) <= 'z'))
7202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7210 for (i = 0; i < 256; i++)
7211 if (XOR (islower (i), ISLOWER (i))
7212 || toupper (i) != TOUPPER (i))
7217 rm -f conftest$ac_exeext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219 (eval $ac_link) 2>&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7230 echo "$as_me: program exited with status $ac_status" >&5
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7235 ac_cv_header_stdc=no
7237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7241 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7242 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7243 if test $ac_cv_header_stdc = yes; then
7245 cat >>confdefs.h <<\_ACEOF
7246 #define STDC_HEADERS 1
7251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7262 inttypes.h stdint.h unistd.h
7264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7265 echo "$as_me:$LINENO: checking for $ac_header" >&5
7266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 cat >conftest.$ac_ext <<_ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 $ac_includes_default
7278 #include <$ac_header>
7280 rm -f conftest.$ac_objext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282 (eval $ac_compile) 2>conftest.er1
7284 grep -v '^ *+' conftest.er1 >conftest.err
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -z "$ac_c_werror_flag"
7290 || test ! -s conftest.err'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 eval "$as_ac_Header=yes"
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 eval "$as_ac_Header=no"
7309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7314 cat >>confdefs.h <<_ACEOF
7315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7323 if test "${ac_cv_header_termcap_h+set}" = set; then
7324 echo "$as_me:$LINENO: checking for termcap.h" >&5
7325 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7326 if test "${ac_cv_header_termcap_h+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7330 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7332 # Is the header compilable?
7333 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7334 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7335 cat >conftest.$ac_ext <<_ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 $ac_includes_default
7342 #include <termcap.h>
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_header_compiler=yes
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 ac_header_compiler=no
7373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7375 echo "${ECHO_T}$ac_header_compiler" >&6
7377 # Is the header present?
7378 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7379 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <termcap.h>
7388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } >/dev/null; then
7396 if test -s conftest.err; then
7397 ac_cpp_err=$ac_c_preproc_warn_flag
7398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7405 if test -z "$ac_cpp_err"; then
7406 ac_header_preproc=yes
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7411 ac_header_preproc=no
7413 rm -f conftest.err conftest.$ac_ext
7414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7415 echo "${ECHO_T}$ac_header_preproc" >&6
7417 # So? What about this header?
7418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7420 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7421 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7422 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7423 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7424 ac_header_preproc=yes
7427 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7428 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7429 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
7430 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
7431 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7432 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7433 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
7434 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7435 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7436 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7438 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7441 ## ------------------------------------------ ##
7442 ## Report this to the AC_PACKAGE_NAME lists. ##
7443 ## ------------------------------------------ ##
7446 sed "s/^/$as_me: WARNING: /" >&2
7449 echo "$as_me:$LINENO: checking for termcap.h" >&5
7450 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7451 if test "${ac_cv_header_termcap_h+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 ac_cv_header_termcap_h=$ac_header_preproc
7456 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7457 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7460 if test $ac_cv_header_termcap_h = yes; then
7461 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7462 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7463 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 ac_check_lib_save_LIBS=$LIBS
7467 LIBS="-ltermcap $LIBS"
7468 cat >conftest.$ac_ext <<_ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7475 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7490 rm -f conftest.$ac_objext conftest$ac_exeext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492 (eval $ac_link) 2>conftest.er1
7494 grep -v '^ *+' conftest.er1 >conftest.err
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest$ac_exeext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512 ac_cv_lib_termcap_tgetent=yes
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7517 ac_cv_lib_termcap_tgetent=no
7519 rm -f conftest.err conftest.$ac_objext \
7520 conftest$ac_exeext conftest.$ac_ext
7521 LIBS=$ac_check_lib_save_LIBS
7523 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7524 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7525 if test $ac_cv_lib_termcap_tgetent = yes; then
7526 CONS_LIBS="-ltermcap"
7532 cat >>confdefs.h <<\_ACEOF
7533 #define HAVE_CONIO 1
7538 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7539 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7540 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 ac_check_lib_save_LIBS=$LIBS
7544 LIBS="-lncurses $LIBS"
7545 cat >conftest.$ac_ext <<_ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7552 /* Override any gcc2 internal prototype to avoid an error. */
7556 /* We use char because int might match the return type of a gcc2
7557 builtin and then its argument prototype would still apply. */
7567 rm -f conftest.$ac_objext conftest$ac_exeext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569 (eval $ac_link) 2>conftest.er1
7571 grep -v '^ *+' conftest.er1 >conftest.err
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try='test -z "$ac_c_werror_flag"
7577 || test ! -s conftest.err'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; } &&
7583 { ac_try='test -s conftest$ac_exeext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7589 ac_cv_lib_ncurses_tgetent=yes
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7594 ac_cv_lib_ncurses_tgetent=no
7596 rm -f conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 LIBS=$ac_check_lib_save_LIBS
7600 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7601 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7602 if test $ac_cv_lib_ncurses_tgetent = yes; then
7603 CONS_LIBS="-lncurses"
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_CONIO 1
7623 for ac_header in curses.h
7625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7627 echo "$as_me:$LINENO: checking for $ac_header" >&5
7628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7635 # Is the header compilable?
7636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 #include <$ac_header>
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7651 grep -v '^ *+' conftest.er1 >conftest.err
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag"
7657 || test ! -s conftest.err'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_header_compiler=yes
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 ac_header_compiler=no
7676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7678 echo "${ECHO_T}$ac_header_compiler" >&6
7680 # Is the header present?
7681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 #include <$ac_header>
7691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7694 grep -v '^ *+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } >/dev/null; then
7699 if test -s conftest.err; then
7700 ac_cpp_err=$ac_c_preproc_warn_flag
7701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7708 if test -z "$ac_cpp_err"; then
7709 ac_header_preproc=yes
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 ac_header_preproc=no
7716 rm -f conftest.err conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7718 echo "${ECHO_T}$ac_header_preproc" >&6
7720 # So? What about this header?
7721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7727 ac_header_preproc=yes
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7744 ## ------------------------------------------ ##
7745 ## Report this to the AC_PACKAGE_NAME lists. ##
7746 ## ------------------------------------------ ##
7749 sed "s/^/$as_me: WARNING: /" >&2
7752 echo "$as_me:$LINENO: checking for $ac_header" >&5
7753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 eval "$as_ac_Header=\$ac_header_preproc"
7759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7764 cat >>confdefs.h <<_ACEOF
7765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772 echo "$as_me:$LINENO: checking for term.h" >&5
7773 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7774 if test "${ac_cv_header_term_h+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 cat >conftest.$ac_ext <<_ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7790 rm -f conftest.$ac_objext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7792 (eval $ac_compile) 2>conftest.er1
7794 grep -v '^ *+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } &&
7799 { ac_try='test -z "$ac_c_werror_flag"
7800 || test ! -s conftest.err'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; } &&
7806 { ac_try='test -s conftest.$ac_objext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 ac_cv_header_term_h=yes
7814 echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7817 ac_cv_header_term_h=no
7819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7822 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7823 if test $ac_cv_header_term_h = yes; then
7824 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7825 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7826 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 ac_check_lib_save_LIBS=$LIBS
7830 LIBS="-lcurses $LIBS"
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7838 /* Override any gcc2 internal prototype to avoid an error. */
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855 (eval $ac_link) 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -z "$ac_c_werror_flag"
7863 || test ! -s conftest.err'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; } &&
7869 { ac_try='test -s conftest$ac_exeext'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 ac_cv_lib_curses_tgetent=yes
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 ac_cv_lib_curses_tgetent=no
7882 rm -f conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7886 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7887 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7888 if test $ac_cv_lib_curses_tgetent = yes; then
7889 CONS_LIBS="-lcurses"
7895 cat >>confdefs.h <<\_ACEOF
7896 #define HAVE_CONIO 1
7904 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7915 # ---------------------------------------------------
7916 # Check for readline support/directory (default off)
7917 # ---------------------------------------------------
7918 # this allows you to turn it completely off
7919 # Check whether --enable-readline or --disable-readline was given.
7920 if test "${enable_readline+set}" = set; then
7921 enableval="$enable_readline"
7922 if test x$enableval = xno; then
7929 if test x$support_readline = xyes; then
7931 # Check whether --with-readline or --without-readline was given.
7932 if test "${with_readline+set}" = set; then
7933 withval="$with_readline"
7935 case "$with_readline" in
7938 if test -f ${with_readline}/readline.h; then
7939 CONS_INC="-I${with_readline}"
7940 CONS_LDFLAGS="-L$with_readline"
7941 elif test -f ${with_readline}/include/readline/readline.h; then
7942 CONS_INC="-I${with_readline}/include/readline"
7943 CONS_LDFLAGS="-L${with_readline}/lib"
7944 with_readline="${with_readline}/include/readline"
7946 with_readline="/usr/include/readline"
7948 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7951 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7958 # Is the header compilable?
7959 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7960 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7961 cat >conftest.$ac_ext <<_ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 $ac_includes_default
7968 #include <${with_readline}/readline.h>
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972 (eval $ac_compile) 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_c_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest.$ac_objext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 ac_header_compiler=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ac_header_compiler=no
7999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8001 echo "${ECHO_T}$ac_header_compiler" >&6
8003 # Is the header present?
8004 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
8005 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <${with_readline}/readline.h>
8014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8017 grep -v '^ *+' conftest.er1 >conftest.err
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } >/dev/null; then
8022 if test -s conftest.err; then
8023 ac_cpp_err=$ac_c_preproc_warn_flag
8024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8031 if test -z "$ac_cpp_err"; then
8032 ac_header_preproc=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_header_preproc=no
8039 rm -f conftest.err conftest.$ac_ext
8040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8041 echo "${ECHO_T}$ac_header_preproc" >&6
8043 # So? What about this header?
8044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8046 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8047 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
8049 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
8050 ac_header_preproc=yes
8053 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8054 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8055 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
8056 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8058 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8060 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8062 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8064 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8067 ## ------------------------------------------ ##
8068 ## Report this to the AC_PACKAGE_NAME lists. ##
8069 ## ------------------------------------------ ##
8072 sed "s/^/$as_me: WARNING: /" >&2
8075 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8076 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 eval "$as_ac_Header=\$ac_header_preproc"
8082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8087 cat >>confdefs.h <<\_ACEOF
8088 #define HAVE_READLINE 1
8091 CONS_LIBS="-lreadline -lhistory -ltermcap"
8096 echo "readline.h not found. readline turned off ..."
8108 # check for standard readline library
8109 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8110 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8111 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8112 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8116 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8118 # Is the header compilable?
8119 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8120 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #include </usr/include/readline/readline.h>
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_header_compiler=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_header_compiler=no
8159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8161 echo "${ECHO_T}$ac_header_compiler" >&6
8163 # Is the header present?
8164 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8165 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 #include </usr/include/readline/readline.h>
8174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } >/dev/null; then
8182 if test -s conftest.err; then
8183 ac_cpp_err=$ac_c_preproc_warn_flag
8184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8191 if test -z "$ac_cpp_err"; then
8192 ac_header_preproc=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_header_preproc=no
8199 rm -f conftest.err conftest.$ac_ext
8200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8201 echo "${ECHO_T}$ac_header_preproc" >&6
8203 # So? What about this header?
8204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8206 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8207 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8208 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8209 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8210 ac_header_preproc=yes
8213 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8214 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
8216 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8218 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8220 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8222 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8224 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8227 ## ------------------------------------------ ##
8228 ## Report this to the AC_PACKAGE_NAME lists. ##
8229 ## ------------------------------------------ ##
8232 sed "s/^/$as_me: WARNING: /" >&2
8235 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8236 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8237 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8242 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8243 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8246 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8247 cat >>confdefs.h <<\_ACEOF
8248 #define HAVE_READLINE 1
8252 CONS_INC="-I/usr/include/readline"
8253 CONS_LIBS="-lreadline -ltermcap"
8257 # Did not find standard library, so try Bacula's default
8258 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8261 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8268 # Is the header compilable?
8269 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8270 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 $ac_includes_default
8278 #include <${TOP_DIR}/depkgs/readline/readline.h>
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282 (eval $ac_compile) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_header_compiler=yes
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_header_compiler=no
8309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8311 echo "${ECHO_T}$ac_header_compiler" >&6
8313 # Is the header present?
8314 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8315 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <${TOP_DIR}/depkgs/readline/readline.h>
8324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8327 grep -v '^ *+' conftest.er1 >conftest.err
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } >/dev/null; then
8332 if test -s conftest.err; then
8333 ac_cpp_err=$ac_c_preproc_warn_flag
8334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8341 if test -z "$ac_cpp_err"; then
8342 ac_header_preproc=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_header_preproc=no
8349 rm -f conftest.err conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6
8353 # So? What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8356 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8359 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8360 ac_header_preproc=yes
8363 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8370 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8374 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8377 ## ------------------------------------------ ##
8378 ## Report this to the AC_PACKAGE_NAME lists. ##
8379 ## ------------------------------------------ ##
8382 sed "s/^/$as_me: WARNING: /" >&2
8385 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8386 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 eval "$as_ac_Header=\$ac_header_preproc"
8392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_READLINE 1
8402 CONS_INC="-I${TOP_DIR}/depkgs/readline"
8403 CONS_LIBS="-lreadline -lhistory -ltermcap"
8404 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8405 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8409 echo "readline.h not found. readline turned off ..."
8435 # Minimal stuff for readline Makefile configuration
8438 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8439 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8440 if test "${ac_cv_header_stat_broken+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 #include <sys/types.h>
8450 #include <sys/stat.h>
8452 #if defined(S_ISBLK) && defined(S_IFDIR)
8453 # if S_ISBLK (S_IFDIR)
8458 #if defined(S_ISBLK) && defined(S_IFCHR)
8459 # if S_ISBLK (S_IFCHR)
8464 #if defined(S_ISLNK) && defined(S_IFREG)
8465 # if S_ISLNK (S_IFREG)
8470 #if defined(S_ISSOCK) && defined(S_IFREG)
8471 # if S_ISSOCK (S_IFREG)
8477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478 $EGREP "You lose" >/dev/null 2>&1; then
8479 ac_cv_header_stat_broken=yes
8481 ac_cv_header_stat_broken=no
8486 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8487 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8488 if test $ac_cv_header_stat_broken = yes; then
8490 cat >>confdefs.h <<\_ACEOF
8491 #define STAT_MACROS_BROKEN 1
8502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8503 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8504 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8505 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 #include <sys/types.h>
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 eval "$as_ac_Header=yes"
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 eval "$as_ac_Header=no"
8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561 cat >>confdefs.h <<_ACEOF
8562 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8565 ac_header_dirent=$ac_hdr; break
8569 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8570 if test $ac_header_dirent = dirent.h; then
8571 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8572 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8573 if test "${ac_cv_search_opendir+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 ac_func_search_save_LIBS=$LIBS
8577 ac_cv_search_opendir=no
8578 cat >conftest.$ac_ext <<_ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8585 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_search_opendir="none required"
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8628 rm -f conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8630 if test "$ac_cv_search_opendir" = no; then
8631 for ac_lib in dir; do
8632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8640 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8657 (eval $ac_link) 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try='test -z "$ac_c_werror_flag"
8665 || test ! -s conftest.err'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; } &&
8671 { ac_try='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_cv_search_opendir="-l$ac_lib"
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8684 rm -f conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8688 LIBS=$ac_func_search_save_LIBS
8690 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8691 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8692 if test "$ac_cv_search_opendir" != no; then
8693 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8698 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8699 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8700 if test "${ac_cv_search_opendir+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 ac_func_search_save_LIBS=$LIBS
8704 ac_cv_search_opendir=no
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8712 /* Override any gcc2 internal prototype to avoid an error. */
8716 /* We use char because int might match the return type of a gcc2
8717 builtin and then its argument prototype would still apply. */
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729 (eval $ac_link) 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag"
8737 || test ! -s conftest.err'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest$ac_exeext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_search_opendir="none required"
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8755 rm -f conftest.err conftest.$ac_objext \
8756 conftest$ac_exeext conftest.$ac_ext
8757 if test "$ac_cv_search_opendir" = no; then
8759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8760 cat >conftest.$ac_ext <<_ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8767 /* Override any gcc2 internal prototype to avoid an error. */
8771 /* We use char because int might match the return type of a gcc2
8772 builtin and then its argument prototype would still apply. */
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784 (eval $ac_link) 2>conftest.er1
8786 grep -v '^ *+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -z "$ac_c_werror_flag"
8792 || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 ac_cv_search_opendir="-l$ac_lib"
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8811 rm -f conftest.err conftest.$ac_objext \
8812 conftest$ac_exeext conftest.$ac_ext
8815 LIBS=$ac_func_search_save_LIBS
8817 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8818 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8819 if test "$ac_cv_search_opendir" != no; then
8820 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8833 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
8835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8836 echo "$as_me:$LINENO: checking for $ac_func" >&5
8837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8838 if eval "test \"\${$as_ac_var+set}\" = set"; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8849 #define $ac_func innocuous_$ac_func
8851 /* System header to define __stub macros and hopefully few prototypes,
8852 which can conflict with char $ac_func (); below.
8853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8854 <limits.h> exists even on freestanding compilers. */
8857 # include <limits.h>
8859 # include <assert.h>
8864 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8872 /* The GNU C library defines this for functions which it implements
8873 to always fail with ENOSYS. Some functions are actually named
8874 something starting with __ and the normal name is an alias. */
8875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8878 char (*f) () = $ac_func;
8887 return f != $ac_func;
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894 (eval $ac_link) 2>conftest.er1
8896 grep -v '^ *+' conftest.er1 >conftest.err
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -z "$ac_c_werror_flag"
8902 || test ! -s conftest.err'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 eval "$as_ac_var=yes"
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 eval "$as_ac_var=no"
8921 rm -f conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8926 if test `eval echo '${'$as_ac_var'}'` = yes; then
8927 cat >>confdefs.h <<_ACEOF
8928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8936 for ac_func in nanosleep nl_langinfo
8938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8939 echo "$as_me:$LINENO: checking for $ac_func" >&5
8940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_var+set}\" = set"; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 cat >conftest.$ac_ext <<_ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8952 #define $ac_func innocuous_$ac_func
8954 /* System header to define __stub macros and hopefully few prototypes,
8955 which can conflict with char $ac_func (); below.
8956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957 <limits.h> exists even on freestanding compilers. */
8960 # include <limits.h>
8962 # include <assert.h>
8967 /* Override any gcc2 internal prototype to avoid an error. */
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8975 /* The GNU C library defines this for functions which it implements
8976 to always fail with ENOSYS. Some functions are actually named
8977 something starting with __ and the normal name is an alias. */
8978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8981 char (*f) () = $ac_func;
8990 return f != $ac_func;
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8999 grep -v '^ *+' conftest.er1 >conftest.err
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 eval "$as_ac_var=yes"
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 eval "$as_ac_var=no"
9024 rm -f conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9029 if test `eval echo '${'$as_ac_var'}'` = yes; then
9030 cat >>confdefs.h <<_ACEOF
9031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9038 for ac_header in varargs.h
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042 echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050 # Is the header compilable?
9051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9060 #include <$ac_header>
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_header_compiler=yes
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_header_compiler=no
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9093 echo "${ECHO_T}$ac_header_compiler" >&6
9095 # Is the header present?
9096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 #include <$ac_header>
9106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9109 grep -v '^ *+' conftest.er1 >conftest.err
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } >/dev/null; then
9114 if test -s conftest.err; then
9115 ac_cpp_err=$ac_c_preproc_warn_flag
9116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9123 if test -z "$ac_cpp_err"; then
9124 ac_header_preproc=yes
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 ac_header_preproc=no
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142 ac_header_preproc=yes
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159 ## ------------------------------------------ ##
9160 ## Report this to the AC_PACKAGE_NAME lists. ##
9161 ## ------------------------------------------ ##
9164 sed "s/^/$as_me: WARNING: /" >&2
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 eval "$as_ac_Header=\$ac_header_preproc"
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179 cat >>confdefs.h <<_ACEOF
9180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9188 # End of readline/conio stuff
9189 # -----------------------------------------------------------------------
9191 # -----------------------------------------------------------------------
9192 # Check for Python support
9194 echo "$as_me:$LINENO: checking for Python support" >&5
9195 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9197 # Check whether --with-python or --without-python was given.
9198 if test "${with_python+set}" = set; then
9199 withval="$with_python"
9203 if test "$withval" != "no"; then
9204 if test "$withval" = "yes"; then
9205 for python_root in /usr /usr/local; do
9206 if test -f $python_root/include/python2.2/Python.h; then
9207 PYTHON_INCDIR=-I$python_root/include/python2.2
9208 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9210 elif test -f $python_root/include/python2.3/Python.h; then
9211 PYTHON_INCDIR=-I$python_root/include/python2.3
9212 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9214 elif test -f $python_root/include/python2.4/Python.h; then
9215 PYTHON_INCDIR=-I$python_root/include/python2.4
9216 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9220 if test x$PYTHON_INCDIR = x; then
9221 if test -f $prefix/include/Python.h; then
9222 PYTHON_INCDIR=-I$prefix/include
9223 PYTHON_LIBS="-L$prefix/lib/config -lpython"
9225 echo "$as_me:$LINENO: result: no" >&5
9226 echo "${ECHO_T}no" >&6
9227 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9228 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9229 { (exit 1); exit 1; }; }
9233 if test -f $withval/Python.h; then
9234 PYTHON_INCDIR=-I$withval
9235 PYTHON_LIBS="-L$withval/config -lpython"
9236 elif test -f $withval/include/Python.h; then
9237 PYTHON_INCDIR=-I$withval/include
9238 PYTHON_LIBS="-L$withval/lib/config -lpython"
9239 elif test -f $withval/include/python/Python.h; then
9240 PYTHON_INCDIR=-I$withval/include/python
9241 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9243 echo "$as_me:$LINENO: result: no" >&5
9244 echo "${ECHO_T}no" >&6
9245 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9246 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9247 { (exit 1); exit 1; }; }
9250 cat >>confdefs.h <<\_ACEOF
9251 #define HAVE_PYTHON 1
9254 echo "$as_me:$LINENO: result: yes" >&5
9255 echo "${ECHO_T}yes" >&6
9257 { echo "$as_me:$LINENO: checking for more Python libs" >&5
9258 echo "$as_me: checking for more Python libs" >&6;}
9259 saved_LIBS="$LIBS"; LIBS=
9260 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9261 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9262 if test "${ac_cv_search_shm_open+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 ac_func_search_save_LIBS=$LIBS
9266 ac_cv_search_shm_open=no
9267 cat >conftest.$ac_ext <<_ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9274 /* Override any gcc2 internal prototype to avoid an error. */
9278 /* We use char because int might match the return type of a gcc2
9279 builtin and then its argument prototype would still apply. */
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag"
9299 || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_search_shm_open="none required"
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9317 rm -f conftest.err conftest.$ac_objext \
9318 conftest$ac_exeext conftest.$ac_ext
9319 if test "$ac_cv_search_shm_open" = no; then
9320 for ac_lib in rt; do
9321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9329 /* Override any gcc2 internal prototype to avoid an error. */
9333 /* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag"
9354 || test ! -s conftest.err'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; } &&
9360 { ac_try='test -s conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_search_shm_open="-l$ac_lib"
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9373 rm -f conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9377 LIBS=$ac_func_search_save_LIBS
9379 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9380 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9381 if test "$ac_cv_search_shm_open" != no; then
9382 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9387 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9388 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9389 if test "${ac_cv_lib_util_openpty+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 ac_check_lib_save_LIBS=$LIBS
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9401 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_cv_lib_util_openpty=yes
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_cv_lib_util_openpty=no
9445 rm -f conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9450 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9451 if test $ac_cv_lib_util_openpty = yes; then
9452 cat >>confdefs.h <<_ACEOF
9453 #define HAVE_LIBUTIL 1
9460 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9463 echo "$as_me:$LINENO: result: no" >&5
9464 echo "${ECHO_T}no" >&6
9469 echo "$as_me:$LINENO: result: no" >&5
9470 echo "${ECHO_T}no" >&6
9478 # Find where sockets are (especially for Solaris)
9479 # Do this before the TCP Wrappers test since tcp wrappers
9480 # uses the socket library and some linkers are stupid.
9482 echo "$as_me:$LINENO: checking for socket" >&5
9483 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9484 if test "${ac_cv_func_socket+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9495 #define socket innocuous_socket
9497 /* System header to define __stub macros and hopefully few prototypes,
9498 which can conflict with char socket (); below.
9499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9500 <limits.h> exists even on freestanding compilers. */
9503 # include <limits.h>
9505 # include <assert.h>
9510 /* Override any gcc2 internal prototype to avoid an error. */
9515 /* We use char because int might match the return type of a gcc2
9516 builtin and then its argument prototype would still apply. */
9518 /* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
9521 #if defined (__stub_socket) || defined (__stub___socket)
9524 char (*f) () = socket;
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9540 (eval $ac_link) 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -z "$ac_c_werror_flag"
9548 || test ! -s conftest.err'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try='test -s conftest$ac_exeext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_func_socket=yes
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_cv_func_socket=no
9567 rm -f conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9570 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9571 echo "${ECHO_T}$ac_cv_func_socket" >&6
9572 if test $ac_cv_func_socket = yes; then
9573 echo "$as_me:$LINENO: result: using libc's socket" >&5
9574 echo "${ECHO_T}using libc's socket" >&6
9577 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9578 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9579 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 ac_check_lib_save_LIBS=$LIBS
9584 cat >conftest.$ac_ext <<_ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9591 /* Override any gcc2 internal prototype to avoid an error. */
9595 /* We use char because int might match the return type of a gcc2
9596 builtin and then its argument prototype would still apply. */
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag"
9616 || test ! -s conftest.err'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; } &&
9622 { ac_try='test -s conftest$ac_exeext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 ac_cv_lib_xnet_socket=yes
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9633 ac_cv_lib_xnet_socket=no
9635 rm -f conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9639 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9640 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9641 if test $ac_cv_lib_xnet_socket = yes; then
9642 cat >>confdefs.h <<_ACEOF
9643 #define HAVE_LIBXNET 1
9651 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9652 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9653 if test "${ac_cv_lib_socket_socket+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-lsocket $LIBS"
9658 cat >conftest.$ac_ext <<_ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9665 /* Override any gcc2 internal prototype to avoid an error. */
9669 /* We use char because int might match the return type of a gcc2
9670 builtin and then its argument prototype would still apply. */
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>conftest.er1
9684 grep -v '^ *+' conftest.er1 >conftest.err
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag"
9690 || test ! -s conftest.err'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 ac_cv_lib_socket_socket=yes
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 ac_cv_lib_socket_socket=no
9709 rm -f conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9713 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9714 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9715 if test $ac_cv_lib_socket_socket = yes; then
9716 cat >>confdefs.h <<_ACEOF
9717 #define HAVE_LIBSOCKET 1
9720 LIBS="-lsocket $LIBS"
9725 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9726 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9727 if test "${ac_cv_lib_inet_socket+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 ac_check_lib_save_LIBS=$LIBS
9732 cat >conftest.$ac_ext <<_ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9739 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_lib_inet_socket=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_cv_lib_inet_socket=no
9783 rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 LIBS=$ac_check_lib_save_LIBS
9787 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9788 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9789 if test $ac_cv_lib_inet_socket = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791 #define HAVE_LIBINET 1
9802 # -----------------------------------------------------------
9803 # Check whether user wants TCP wrappers support (default off)
9804 # -----------------------------------------------------------
9807 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9808 if test "${with_tcp_wrappers+set}" = set; then
9809 withval="$with_tcp_wrappers"
9811 if test "x$withval" != "xno" ; then
9813 LIBS="$saved_LIBS -lwrap"
9814 echo "$as_me:$LINENO: checking for libwrap" >&5
9815 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9823 int deny_severity = 0;
9824 int allow_severity = 0;
9825 struct request_info *req;
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9838 grep -v '^ *+' conftest.er1 >conftest.err
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9857 echo "$as_me:$LINENO: result: yes" >&5
9858 echo "${ECHO_T}yes" >&6
9859 cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_LIBWRAP 1
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9870 LIBS="$saved_LIBS -lwrap -lnsl"
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9878 int deny_severity = 0;
9879 int allow_severity = 0;
9880 struct request_info *req;
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
9893 grep -v '^ *+' conftest.er1 >conftest.err
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9912 echo "$as_me:$LINENO: result: yes" >&5
9913 echo "${ECHO_T}yes" >&6
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_LIBWRAP 1
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9924 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9925 echo "$as_me: error: *** libwrap missing" >&2;}
9926 { (exit 1); exit 1; }; }
9929 rm -f conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9933 rm -f conftest.err conftest.$ac_objext \
9934 conftest$ac_exeext conftest.$ac_ext
9940 # -----------------------------------------------------------
9941 # Check whether OpenSSL is available
9942 # -----------------------------------------------------------
9943 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9944 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9946 # Check whether --with-openssl or --without-openssl was given.
9947 if test "${with_openssl+set}" = set; then
9948 withval="$with_openssl"
9949 with_openssl_directory=${withval}
9952 if test "x$with_openssl_directory" != "x"; then
9953 OPENSSL_LIBS="-lssl -lcrypto"
9956 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
9957 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
9958 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
9962 saved_CFLAGS="$CFLAGS"
9963 LIBS="$saved_LIBS $OPENSSL_LIBS"
9964 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
9966 cat >conftest.$ac_ext <<_ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972 #include <openssl/ssl.h>
9976 CRYPTO_set_id_callback(NULL);
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9983 (eval $ac_link) 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10011 rm -f conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10015 CFLAGS="$saved_CFLAGS"
10017 if test "$support_tls" = "yes"; then
10019 cat >>confdefs.h <<\_ACEOF
10020 #define HAVE_OPENSSL 1
10024 cat >>confdefs.h <<\_ACEOF
10035 echo "$as_me:$LINENO: result: $support_tls" >&5
10036 echo "${ECHO_T}$support_tls" >&6
10041 # -----------------------------------------------------------
10042 # Python and OpenSSL are using dlopen
10043 # -----------------------------------------------------------
10045 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
10046 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10047 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10048 if test "${ac_cv_search_dlopen+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_func_search_save_LIBS=$LIBS
10052 ac_cv_search_dlopen=no
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 /* Override any gcc2 internal prototype to avoid an error. */
10064 /* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10077 (eval $ac_link) 2>conftest.er1
10079 grep -v '^ *+' conftest.er1 >conftest.err
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } &&
10084 { ac_try='test -z "$ac_c_werror_flag"
10085 || test ! -s conftest.err'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_cv_search_dlopen="none required"
10099 echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10103 rm -f conftest.err conftest.$ac_objext \
10104 conftest$ac_exeext conftest.$ac_ext
10105 if test "$ac_cv_search_dlopen" = no; then
10106 for ac_lib in dl; do
10107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10108 cat >conftest.$ac_ext <<_ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10115 /* Override any gcc2 internal prototype to avoid an error. */
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>conftest.er1
10134 grep -v '^ *+' conftest.er1 >conftest.err
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -z "$ac_c_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 ac_cv_search_dlopen="-l$ac_lib"
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10159 rm -f conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_func_search_save_LIBS
10165 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10167 if test "$ac_cv_search_dlopen" != no; then
10168 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10174 # ------------------------------------------
10175 # Where to place working dir
10176 # ------------------------------------------
10177 working_dir=`eval echo ${prefix}/var/bacula/working`
10179 # Check whether --with-working-dir or --without-working-dir was given.
10180 if test "${with_working_dir+set}" = set; then
10181 withval="$with_working_dir"
10183 if test "x$withval" != "xno" ; then
10184 working_dir=$withval
10193 # ------------------------------------------
10194 # Where to place scriptdir (script files)
10195 # ------------------------------------------
10196 scriptdir=`eval echo ${sysconfdir}`
10198 # Check whether --with-scriptdir or --without-scriptdir was given.
10199 if test "${with_scriptdir+set}" = set; then
10200 withval="$with_scriptdir"
10202 if test "x$withval" != "xno" ; then
10212 # ------------------------------------------
10213 # Where to send dump email
10214 # ------------------------------------------
10215 dump_email=root@localhost
10217 # Check whether --with-dump-email or --without-dump-email was given.
10218 if test "${with_dump_email+set}" = set; then
10219 withval="$with_dump_email"
10221 if test "x$withval" != "xno" ; then
10222 dump_email=$withval
10230 # ------------------------------------------
10231 # Where to send job email
10232 # ------------------------------------------
10233 job_email=root@localhost
10235 # Check whether --with-job-email or --without-job-email was given.
10236 if test "${with_job_email+set}" = set; then
10237 withval="$with_job_email"
10239 if test "x$withval" != "xno" ; then
10248 # ------------------------------------------
10249 # Where to find smtp host
10250 # ------------------------------------------
10251 smtp_host=localhost
10253 # Check whether --with-smtp_host or --without-smtp_host was given.
10254 if test "${with_smtp_host+set}" = set; then
10255 withval="$with_smtp_host"
10257 if test "x$withval" != "xno" ; then
10267 # ------------------------------------
10268 # Where to place pid files
10269 # ------------------------------------
10272 # Check whether --with-pid-dir or --without-pid-dir was given.
10273 if test "${with_pid_dir+set}" = set; then
10274 withval="$with_pid_dir"
10276 if test "x$withval" != "xno" ; then
10283 cat >>confdefs.h <<_ACEOF
10284 #define _PATH_BACULA_PIDDIR "$piddir"
10290 # ------------------------------------
10291 # Where to place subsys "lock file"
10292 # ------------------------------------
10293 subsysdir=/var/run/subsys
10295 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10296 if test "${with_subsys_dir+set}" = set; then
10297 withval="$with_subsys_dir"
10299 if test "x$withval" != "xno" ; then
10310 # ------------------------------------
10311 # Where to start assigning ports
10312 # ------------------------------------
10315 # Check whether --with-baseport or --without-baseport was given.
10316 if test "${with_baseport+set}" = set; then
10317 withval="$with_baseport"
10319 if test "x$withval" != "xno" ; then
10327 dir_port=`expr $baseport`
10328 fd_port=`expr $baseport + 1`
10329 sd_port=`expr $fd_port + 1`
10336 # ------------------------------------------
10337 # Generate passwords
10338 # ------------------------------------------
10341 # Check whether --with-dir-password or --without-dir-password was given.
10342 if test "${with_dir_password+set}" = set; then
10343 withval="$with_dir_password"
10345 if test "x$withval" != "xno" ; then
10346 dir_password=$withval
10352 if test "x$dir_password" = "x" ; then
10353 if test "x$OPENSSL" = "xnone" ; then
10354 key=`autoconf/randpass 33`
10356 key=`openssl rand -base64 33`
10363 # Check whether --with-fd-password or --without-fd-password was given.
10364 if test "${with_fd_password+set}" = set; then
10365 withval="$with_fd_password"
10367 if test "x$withval" != "xno" ; then
10368 fd_password=$withval
10374 if test "x$fd_password" = "x" ; then
10375 if test "x$OPENSSL" = "xnone" ; then
10376 key=`autoconf/randpass 37`
10378 key=`openssl rand -base64 33`
10385 # Check whether --with-sd-password or --without-sd-password was given.
10386 if test "${with_sd_password+set}" = set; then
10387 withval="$with_sd_password"
10389 if test "x$withval" != "xno" ; then
10390 sd_password=$withval
10396 if test "x$sd_password" = "x" ; then
10397 if test "x$OPENSSL" = "xnone" ; then
10398 key=`autoconf/randpass 41`
10400 key=`openssl rand -base64 33`
10407 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10408 if test "${with_mon_dir_password+set}" = set; then
10409 withval="$with_mon_dir_password"
10411 if test "x$withval" != "xno" ; then
10412 mon_dir_password=$withval
10418 if test "x$mon_dir_password" = "x" ; then
10419 if test "x$OPENSSL" = "xnone" ; then
10420 key=`autoconf/randpass 33`
10422 key=`openssl rand -base64 33`
10424 mon_dir_password=$key
10429 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10430 if test "${with_mon_fd_password+set}" = set; then
10431 withval="$with_mon_fd_password"
10433 if test "x$withval" != "xno" ; then
10434 mon_fd_password=$withval
10440 if test "x$mon_fd_password" = "x" ; then
10441 if test "x$OPENSSL" = "xnone" ; then
10442 key=`autoconf/randpass 37`
10444 key=`openssl rand -base64 33`
10446 mon_fd_password=$key
10451 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10452 if test "${with_mon_sd_password+set}" = set; then
10453 withval="$with_mon_sd_password"
10455 if test "x$withval" != "xno" ; then
10456 mon_sd_password=$withval
10462 if test "x$mon_sd_password" = "x" ; then
10463 if test "x$OPENSSL" = "xnone" ; then
10464 key=`autoconf/randpass 41`
10466 key=`openssl rand -base64 33`
10468 mon_sd_password=$key
10480 # Handle users and groups for each daemon
10484 # Check whether --with-dir_user or --without-dir_user was given.
10485 if test "${with_dir_user+set}" = set; then
10486 withval="$with_dir_user"
10488 if test "x$withval" != "x" ; then
10497 # Check whether --with-dir_group or --without-dir_group was given.
10498 if test "${with_dir_group+set}" = set; then
10499 withval="$with_dir_group"
10501 if test "x$withval" != "x" ; then
10510 # Check whether --with-sd_user or --without-sd_user was given.
10511 if test "${with_sd_user+set}" = set; then
10512 withval="$with_sd_user"
10514 if test "x$withval" != "x" ; then
10523 # Check whether --with-sd_group or --without-sd_group was given.
10524 if test "${with_sd_group+set}" = set; then
10525 withval="$with_sd_group"
10527 if test "x$withval" != "x" ; then
10536 # Check whether --with-fd_user or --without-fd_user was given.
10537 if test "${with_fd_user+set}" = set; then
10538 withval="$with_fd_user"
10540 if test "x$withval" != "x" ; then
10549 # Check whether --with-fd_group or --without-fd_group was given.
10550 if test "${with_fd_group+set}" = set; then
10551 withval="$with_fd_group"
10553 if test "x$withval" != "x" ; then
10571 # allow setting default executable permissions
10575 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10576 if test "${with_sbin_perm+set}" = set; then
10577 withval="$with_sbin_perm"
10579 if test "x$withval" != "x" ; then
10588 # ------------------------------------------------
10589 # Bacula check for various SQL database engines
10590 # ------------------------------------------------
10593 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10594 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10596 # Check whether --with-postgresql or --without-postgresql was given.
10597 if test "${with_postgresql+set}" = set; then
10598 withval="$with_postgresql"
10600 if test "$withval" != "no"; then
10601 if test "$db_found" = "yes"; then
10602 echo "$as_me:$LINENO: result: error" >&5
10603 echo "${ECHO_T}error" >&6
10604 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10605 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10606 { (exit 1); exit 1; }; };
10608 if test "$withval" = "yes"; then
10609 if test -f /usr/local/include/libpq-fe.h; then
10610 POSTGRESQL_INCDIR=/usr/local/include
10611 POSTGRESQL_LIBDIR=/usr/local/lib
10612 POSTGRESQL_BINDIR=/usr/local/bin
10613 elif test -f /usr/include/libpq-fe.h; then
10614 POSTGRESQL_INCDIR=/usr/include
10615 POSTGRESQL_LIBDIR=/usr/lib
10616 POSTGRESQL_BINDIR=/usr/bin
10617 elif test -f /usr/include/pgsql/libpq-fe.h; then
10618 POSTGRESQL_INCDIR=/usr/include/pgsql
10619 POSTGRESQL_LIBDIR=/usr/lib/pgsql
10620 POSTGRESQL_BINDIR=/usr/bin
10621 elif test -f /usr/include/postgresql/libpq-fe.h; then
10622 POSTGRESQL_INCDIR=/usr/include/postgresql
10623 POSTGRESQL_LIBDIR=/usr/lib/postgresql
10624 POSTGRESQL_BINDIR=/usr/bin
10626 echo "$as_me:$LINENO: result: no" >&5
10627 echo "${ECHO_T}no" >&6
10628 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10629 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10630 { (exit 1); exit 1; }; }
10632 elif test -f $withval/include/libpq-fe.h; then
10633 POSTGRESQL_INCDIR=$withval/include
10634 POSTGRESQL_LIBDIR=$withval/lib
10635 POSTGRESQL_BINDIR=$withval/bin
10636 elif test -f $withval/include/postgresql/libpq-fe.h; then
10637 POSTGRESQL_INCDIR=$withval/include/postgresql
10638 POSTGRESQL_LIBDIR=$withval/lib
10639 POSTGRESQL_BINDIR=$withval/bin
10641 echo "$as_me:$LINENO: result: no" >&5
10642 echo "${ECHO_T}no" >&6
10643 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10644 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10645 { (exit 1); exit 1; }; }
10647 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10648 echo "$as_me:$LINENO: checking for crypt" >&5
10649 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10650 if test "${ac_cv_func_crypt+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 cat >conftest.$ac_ext <<_ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10661 #define crypt innocuous_crypt
10663 /* System header to define __stub macros and hopefully few prototypes,
10664 which can conflict with char crypt (); below.
10665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10666 <limits.h> exists even on freestanding compilers. */
10669 # include <limits.h>
10671 # include <assert.h>
10676 /* Override any gcc2 internal prototype to avoid an error. */
10681 /* We use char because int might match the return type of a gcc2
10682 builtin and then its argument prototype would still apply. */
10684 /* The GNU C library defines this for functions which it implements
10685 to always fail with ENOSYS. Some functions are actually named
10686 something starting with __ and the normal name is an alias. */
10687 #if defined (__stub_crypt) || defined (__stub___crypt)
10690 char (*f) () = crypt;
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 (eval $ac_link) 2>conftest.er1
10708 grep -v '^ *+' conftest.er1 >conftest.err
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -z "$ac_c_werror_flag"
10714 || test ! -s conftest.err'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 ac_cv_func_crypt=yes
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10731 ac_cv_func_crypt=no
10733 rm -f conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10736 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10737 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10738 if test $ac_cv_func_crypt = yes; then
10741 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10742 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10743 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 ac_check_lib_save_LIBS=$LIBS
10747 LIBS="-lcrypt $LIBS"
10748 cat >conftest.$ac_ext <<_ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10755 /* Override any gcc2 internal prototype to avoid an error. */
10759 /* We use char because int might match the return type of a gcc2
10760 builtin and then its argument prototype would still apply. */
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772 (eval $ac_link) 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag"
10780 || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_lib_crypt_crypt=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_cv_lib_crypt_crypt=no
10799 rm -f conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10803 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10804 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10805 if test $ac_cv_lib_crypt_crypt = yes; then
10806 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10811 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10812 SQL_LFLAGS=$POSTGRESQL_LFLAGS
10813 SQL_BINDIR=$POSTGRESQL_BINDIR
10814 cat >>confdefs.h <<\_ACEOF
10815 #define HAVE_POSTGRESQL 1
10818 echo "$as_me:$LINENO: result: yes" >&5
10819 echo "${ECHO_T}yes" >&6
10821 support_postgresql=yes
10825 echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6
10831 echo "$as_me:$LINENO: result: no" >&5
10832 echo "${ECHO_T}no" >&6
10843 echo "$as_me:$LINENO: checking for MySQL support" >&5
10844 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10846 # Check whether --with-mysql or --without-mysql was given.
10847 if test "${with_mysql+set}" = set; then
10848 withval="$with_mysql"
10850 if test "$withval" != "no"; then
10851 if test "$withval" = "yes"; then
10852 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10853 MYSQL_INCDIR=/usr/local/mysql/include/mysql
10854 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10855 MYSQL_BINDIR=/usr/local/mysql/bin
10856 elif test -f /usr/include/mysql/mysql.h; then
10857 MYSQL_INCDIR=/usr/include/mysql
10858 MYSQL_LIBDIR=/usr/lib/mysql
10859 MYSQL_BINDIR=/usr/bin
10860 elif test -f /usr/include/mysql.h; then
10861 MYSQL_INCDIR=/usr/include
10862 MYSQL_LIBDIR=/usr/lib
10863 MYSQL_BINDIR=/usr/bin
10864 elif test -f /usr/local/include/mysql/mysql.h; then
10865 MYSQL_INCDIR=/usr/local/include/mysql
10866 MYSQL_LIBDIR=/usr/local/lib/mysql
10867 MYSQL_BINDIR=/usr/local/bin
10868 elif test -f /usr/local/include/mysql.h; then
10869 MYSQL_INCDIR=/usr/local/include
10870 MYSQL_LIBDIR=/usr/local/lib
10871 MYSQL_BINDIR=/usr/local/bin
10873 echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6
10875 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10876 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10877 { (exit 1); exit 1; }; }
10880 if test -f $withval/include/mysql/mysql.h; then
10881 MYSQL_INCDIR=$withval/include/mysql
10882 MYSQL_LIBDIR=$withval/lib/mysql
10883 MYSQL_BINDIR=$withval/bin
10884 elif test -f $withval/include/mysql.h; then
10885 MYSQL_INCDIR=$withval/include
10886 MYSQL_LIBDIR=$withval/lib
10887 MYSQL_BINDIR=$withval/bin
10889 echo "$as_me:$LINENO: result: no" >&5
10890 echo "${ECHO_T}no" >&6
10891 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10892 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10893 { (exit 1); exit 1; }; }
10896 SQL_INCLUDE=-I$MYSQL_INCDIR
10897 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
10898 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
10899 cat >>confdefs.h <<\_ACEOF
10900 #define HAVE_THREAD_SAFE_MYSQL 1
10904 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
10906 SQL_BINDIR=$MYSQL_BINDIR
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_MYSQL 1
10912 echo "$as_me:$LINENO: result: yes" >&5
10913 echo "${ECHO_T}yes" >&6
10920 echo "$as_me:$LINENO: result: no" >&5
10921 echo "${ECHO_T}no" >&6
10928 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
10929 if test "${with_embedded_mysql+set}" = set; then
10930 withval="$with_embedded_mysql"
10932 if test "$withval" != "no"; then
10933 if test "$withval" = "yes"; then
10934 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10935 MYSQL_INCDIR=/usr/local/mysql/include/mysql
10936 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10937 MYSQL_BINDIR=/usr/local/mysql/bin
10938 elif test -f /usr/include/mysql/mysql.h; then
10939 MYSQL_INCDIR=/usr/include/mysql
10940 MYSQL_LIBDIR=/usr/lib/mysql
10941 MYSQL_BINDIR=/usr/bin
10942 elif test -f /usr/include/mysql.h; then
10943 MYSQL_INCDIR=/usr/include
10944 MYSQL_LIBDIR=/usr/lib
10945 MYSQL_BINDIR=/usr/bin
10946 elif test -f /usr/local/include/mysql/mysql.h; then
10947 MYSQL_INCDIR=/usr/local/include/mysql
10948 MYSQL_LIBDIR=/usr/local/lib/mysql
10949 MYSQL_BINDIR=/usr/local/bin
10950 elif test -f /usr/local/include/mysql.h; then
10951 MYSQL_INCDIR=/usr/local/include
10952 MYSQL_LIBDIR=/usr/local/lib
10953 MYSQL_BINDIR=/usr/local/bin
10955 echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10957 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10958 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10959 { (exit 1); exit 1; }; }
10962 if test -f $withval/include/mysql/mysql.h; then
10963 MYSQL_INCDIR=$withval/include/mysql
10964 MYSQL_LIBDIR=$withval/lib/mysql
10965 MYSQL_BINDIR=$withval/bin
10966 elif test -f $withval/include/mysql.h; then
10967 MYSQL_INCDIR=$withval/include
10968 MYSQL_LIBDIR=$withval/lib
10969 MYSQL_BINDIR=$withval/bin
10971 echo "$as_me:$LINENO: result: no" >&5
10972 echo "${ECHO_T}no" >&6
10973 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10974 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10975 { (exit 1); exit 1; }; }
10978 SQL_INCLUDE=-I$MYSQL_INCDIR
10979 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
10980 SQL_BINDIR=$MYSQL_BINDIR
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_MYSQL 1
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_EMBEDDED_MYSQL 1
10990 echo "$as_me:$LINENO: result: yes" >&5
10991 echo "${ECHO_T}yes" >&6
10998 echo "$as_me:$LINENO: result: no" >&5
10999 echo "${ECHO_T}no" >&6
11014 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
11015 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
11017 # Check whether --with-sqlite3 or --without-sqlite3 was given.
11018 if test "${with_sqlite3+set}" = set; then
11019 withval="$with_sqlite3"
11021 if test "$withval" != "no"; then
11022 if test "$withval" = "yes"; then
11023 if test -f /usr/local/include/sqlite3.h; then
11024 SQLITE_INCDIR=/usr/local/include
11025 SQLITE_LIBDIR=/usr/local/lib
11026 SQLITE_BINDIR=/usr/local/bin
11027 elif test -f /usr/include/sqlite3.h; then
11028 SQLITE_INCDIR=/usr/include
11029 SQLITE_LIBDIR=/usr/lib
11030 SQLITE_BINDIR=/usr/bin
11031 elif test -f $prefix/include/sqlite3.h; then
11032 SQLITE_INCDIR=$prefix/include
11033 SQLITE_LIBDIR=$prefix/lib
11034 SQLITE_BINDIR=$prefix/bin
11036 echo "$as_me:$LINENO: result: no" >&5
11037 echo "${ECHO_T}no" >&6
11038 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
11039 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
11040 { (exit 1); exit 1; }; }
11043 if test -f $withval/sqlite3.h; then
11044 SQLITE_INCDIR=$withval
11045 SQLITE_LIBDIR=$withval
11046 SQLITE_BINDIR=$withval
11047 elif test -f $withval/include/sqlite3.h; then
11048 SQLITE_INCDIR=$withval/include
11049 SQLITE_LIBDIR=$withval/lib
11050 SQLITE_BINDIR=$withval/bin
11052 echo "$as_me:$LINENO: result: no" >&5
11053 echo "${ECHO_T}no" >&6
11054 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11055 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11056 { (exit 1); exit 1; }; }
11059 SQL_INCLUDE=-I$SQLITE_INCDIR
11060 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11061 SQL_BINDIR=$SQLITE_BINDIR
11063 cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_SQLITE3 1
11067 echo "$as_me:$LINENO: result: yes" >&5
11068 echo "${ECHO_T}yes" >&6
11070 support_sqlite3=yes
11075 echo "$as_me:$LINENO: result: no" >&5
11076 echo "${ECHO_T}no" >&6
11081 echo "$as_me:$LINENO: result: no" >&5
11082 echo "${ECHO_T}no" >&6
11093 echo "$as_me:$LINENO: checking for SQLite support" >&5
11094 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11096 # Check whether --with-sqlite or --without-sqlite was given.
11097 if test "${with_sqlite+set}" = set; then
11098 withval="$with_sqlite"
11100 if test "$withval" != "no"; then
11101 if test "$withval" = "yes"; then
11102 if test -f /usr/local/include/sqlite.h; then
11103 SQLITE_INCDIR=/usr/local/include
11104 SQLITE_LIBDIR=/usr/local/lib
11105 SQLITE_BINDIR=/usr/local/bin
11106 elif test -f /usr/include/sqlite.h; then
11107 SQLITE_INCDIR=/usr/include
11108 SQLITE_LIBDIR=/usr/lib
11109 SQLITE_BINDIR=/usr/bin
11110 elif test -f $prefix/include/sqlite.h; then
11111 SQLITE_INCDIR=$prefix/include
11112 SQLITE_LIBDIR=$prefix/lib
11113 SQLITE_BINDIR=$prefix/bin
11115 echo "$as_me:$LINENO: result: no" >&5
11116 echo "${ECHO_T}no" >&6
11117 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11118 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11119 { (exit 1); exit 1; }; }
11122 if test -f $withval/sqlite.h; then
11123 SQLITE_INCDIR=$withval
11124 SQLITE_LIBDIR=$withval
11125 SQLITE_BINDIR=$withval
11126 elif test -f $withval/include/sqlite.h; then
11127 SQLITE_INCDIR=$withval/include
11128 SQLITE_LIBDIR=$withval/lib
11129 SQLITE_BINDIR=$withval/bin
11131 echo "$as_me:$LINENO: result: no" >&5
11132 echo "${ECHO_T}no" >&6
11133 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11134 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11135 { (exit 1); exit 1; }; }
11138 SQL_INCLUDE=-I$SQLITE_INCDIR
11139 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11140 SQL_BINDIR=$SQLITE_BINDIR
11142 cat >>confdefs.h <<\_ACEOF
11143 #define HAVE_SQLITE 1
11146 echo "$as_me:$LINENO: result: yes" >&5
11147 echo "${ECHO_T}yes" >&6
11154 echo "$as_me:$LINENO: result: no" >&5
11155 echo "${ECHO_T}no" >&6
11160 echo "$as_me:$LINENO: result: no" >&5
11161 echo "${ECHO_T}no" >&6
11173 cat >>confdefs.h <<\_ACEOF
11174 #define PROTOTYPES 1
11178 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11179 if test -z "$CCOPTS"; then
11180 CCOPTS='-g -O2 -Wall'
11188 largefile_support="no"
11190 # Check whether --enable-largefile or --disable-largefile was given.
11191 if test "${enable_largefile+set}" = set; then
11192 enableval="$enable_largefile"
11195 if test "$enable_largefile" != no; then
11196 if test -n "$ac_tool_prefix"; then
11197 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11198 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11199 echo "$as_me:$LINENO: checking for $ac_word" >&5
11200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11201 if test "${ac_cv_prog_GETCONF+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 if test -n "$GETCONF"; then
11205 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11214 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 GETCONF=$ac_cv_prog_GETCONF
11224 if test -n "$GETCONF"; then
11225 echo "$as_me:$LINENO: result: $GETCONF" >&5
11226 echo "${ECHO_T}$GETCONF" >&6
11228 echo "$as_me:$LINENO: result: no" >&5
11229 echo "${ECHO_T}no" >&6
11233 if test -z "$ac_cv_prog_GETCONF"; then
11234 ac_ct_GETCONF=$GETCONF
11235 # Extract the first word of "getconf", so it can be a program name with args.
11236 set dummy getconf; ac_word=$2
11237 echo "$as_me:$LINENO: checking for $ac_word" >&5
11238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11239 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 if test -n "$ac_ct_GETCONF"; then
11243 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11249 test -z "$as_dir" && as_dir=.
11250 for ac_exec_ext in '' $ac_executable_extensions; do
11251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252 ac_cv_prog_ac_ct_GETCONF="getconf"
11253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11261 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11262 if test -n "$ac_ct_GETCONF"; then
11263 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11264 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11266 echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6
11270 GETCONF=$ac_ct_GETCONF
11272 GETCONF="$ac_cv_prog_GETCONF"
11275 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11276 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11277 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11281 ac_cv_sys_largefile_CFLAGS=no
11283 # IRIX 6.2 and later require cc -n32.
11284 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11285 if test "$GCC" != yes; then
11286 ac_cv_sys_largefile_CFLAGS=-n32
11289 CC="$CC $ac_cv_sys_largefile_CFLAGS"
11290 cat >conftest.$ac_ext <<_ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307 (eval $ac_link) 2>conftest.er1
11309 grep -v '^ *+' conftest.er1 >conftest.err
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -z "$ac_c_werror_flag"
11315 || test ! -s conftest.err'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; } &&
11321 { ac_try='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_cv_sys_largefile_CFLAGS=no
11334 rm -f conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11340 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11341 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11342 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11343 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11344 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11348 ac_cv_sys_largefile_LDFLAGS=no
11352 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11353 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11354 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11355 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11356 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11360 ac_cv_sys_largefile_LIBS=no
11364 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11365 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11367 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11370 -D_FILE_OFFSET_BITS=*) ;;
11371 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11372 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11377 case "$CPPFLAGS" in
11378 '') CPPFLAGS="$ac_flag" ;;
11379 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11387 '') CFLAGS="$ac_flag" ;;
11388 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11393 case "$ac_cv_sys_largefile_LDFLAGS" in
11397 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11398 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11401 case "$ac_cv_sys_largefile_LIBS" in
11405 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11406 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11409 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11410 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11411 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 ac_cv_sys_file_offset_bits=no
11415 ac_cv_sys_file_offset_bits=64
11416 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11418 -D_FILE_OFFSET_BITS)
11419 ac_cv_sys_file_offset_bits=1 ;;
11420 -D_FILE_OFFSET_BITS=*)
11421 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11426 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11427 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11428 if test "$ac_cv_sys_file_offset_bits" != no; then
11430 cat >>confdefs.h <<_ACEOF
11431 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11435 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11436 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11437 if test "${ac_cv_sys_largefile_source+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 ac_cv_sys_largefile_source=no
11441 ac_cv_sys_largefile_source=1
11442 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11444 -D_LARGEFILE_SOURCE)
11445 ac_cv_sys_largefile_source=1 ;;
11446 -D_LARGEFILE_SOURCE=*)
11447 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11452 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11453 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11454 if test "$ac_cv_sys_largefile_source" != no; then
11456 cat >>confdefs.h <<_ACEOF
11457 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11461 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11462 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11463 if test "${ac_cv_sys_large_files+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 ac_cv_sys_large_files=no
11467 ac_cv_sys_large_files=1
11468 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11471 ac_cv_sys_large_files=1 ;;
11473 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11478 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11479 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11480 if test "$ac_cv_sys_large_files" != no; then
11482 cat >>confdefs.h <<_ACEOF
11483 #define _LARGE_FILES $ac_cv_sys_large_files
11491 echo "$as_me:$LINENO: checking for X" >&5
11492 echo $ECHO_N "checking for X... $ECHO_C" >&6
11495 # Check whether --with-x or --without-x was given.
11496 if test "${with_x+set}" = set; then
11500 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11501 if test "x$with_x" = xno; then
11502 # The user explicitly disabled X.
11505 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11506 # Both variables are already set.
11509 if test "${ac_cv_have_x+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 # One or both of the vars are not set, and there is no cached value.
11513 ac_x_includes=no ac_x_libraries=no
11514 rm -fr conftest.dir
11515 if mkdir conftest.dir; then
11517 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11518 cat >Imakefile <<'_ACEOF'
11520 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11522 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11523 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11524 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11525 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11526 for ac_extension in a so sl; do
11527 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11528 test -f $ac_im_libdir/libX11.$ac_extension; then
11529 ac_im_usrlibdir=$ac_im_libdir; break
11532 # Screen out bogus values from the imake configuration. They are
11533 # bogus both because they are the default anyway, and because
11534 # using them would break gcc on systems where it needs fixed includes.
11535 case $ac_im_incroot in
11537 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11539 case $ac_im_usrlibdir in
11540 /usr/lib | /lib) ;;
11541 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11545 rm -fr conftest.dir
11548 # Standard set of common directories for X headers.
11549 # Check X11 before X11Rn because it is often a symlink to the current release.
11561 /usr/local/X11/include
11562 /usr/local/X11R6/include
11563 /usr/local/X11R5/include
11564 /usr/local/X11R4/include
11566 /usr/local/include/X11
11567 /usr/local/include/X11R6
11568 /usr/local/include/X11R5
11569 /usr/local/include/X11R4
11573 /usr/XFree86/include/X11
11577 /usr/unsupported/include
11578 /usr/athena/include
11579 /usr/local/x11r5/include
11580 /usr/lpp/Xamples/include
11582 /usr/openwin/include
11583 /usr/openwin/share/include'
11585 if test "$ac_x_includes" = no; then
11586 # Guess where to find include files, by looking for Intrinsic.h.
11587 # First, try using that file with no special directory specified.
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 #include <X11/Intrinsic.h>
11596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11599 grep -v '^ *+' conftest.er1 >conftest.err
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } >/dev/null; then
11604 if test -s conftest.err; then
11605 ac_cpp_err=$ac_c_preproc_warn_flag
11606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11613 if test -z "$ac_cpp_err"; then
11614 # We can compile using X headers with no special include directory.
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 for ac_dir in $ac_x_header_dirs; do
11621 if test -r "$ac_dir/X11/Intrinsic.h"; then
11622 ac_x_includes=$ac_dir
11627 rm -f conftest.err conftest.$ac_ext
11628 fi # $ac_x_includes = no
11630 if test "$ac_x_libraries" = no; then
11631 # Check for the libraries.
11632 # See if we find them without any special options.
11633 # Don't add to $LIBS permanently.
11636 cat >conftest.$ac_ext <<_ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 #include <X11/Intrinsic.h>
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>conftest.er1
11655 grep -v '^ *+' conftest.er1 >conftest.err
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -z "$ac_c_werror_flag"
11661 || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11674 # We can link X programs with no special library path.
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11681 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11683 # Don't even attempt the hair of trying to link an X program!
11684 for ac_extension in a so sl; do
11685 if test -r $ac_dir/libXt.$ac_extension; then
11686 ac_x_libraries=$ac_dir
11692 rm -f conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694 fi # $ac_x_libraries = no
11696 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11697 # Didn't find X anywhere. Cache the known absence of X.
11698 ac_cv_have_x="have_x=no"
11700 # Record where we found X for the cache.
11701 ac_cv_have_x="have_x=yes \
11702 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11707 eval "$ac_cv_have_x"
11710 if test "$have_x" != yes; then
11711 echo "$as_me:$LINENO: result: $have_x" >&5
11712 echo "${ECHO_T}$have_x" >&6
11715 # If each of the values was on the command line, it overrides each guess.
11716 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11717 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11718 # Update the cache value to reflect the command line values.
11719 ac_cv_have_x="have_x=yes \
11720 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11721 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11722 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11725 if test "$no_x" = yes; then
11726 # Not all programs may use this symbol, but it does not hurt to define it.
11728 cat >>confdefs.h <<\_ACEOF
11729 #define X_DISPLAY_MISSING 1
11732 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11734 if test -n "$x_includes"; then
11735 X_CFLAGS="$X_CFLAGS -I$x_includes"
11738 # It would also be nice to do this for all -L options, not just this one.
11739 if test -n "$x_libraries"; then
11740 X_LIBS="$X_LIBS -L$x_libraries"
11741 # For Solaris; some versions of Sun CC require a space after -R and
11742 # others require no space. Words are not sufficient . . . .
11743 case `(uname -sr) 2>/dev/null` in
11745 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11746 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11747 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11748 cat >conftest.$ac_ext <<_ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11765 (eval $ac_link) 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag"
11773 || test ! -s conftest.err'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest$ac_exeext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11792 rm -f conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 if test $ac_R_nospace = yes; then
11795 echo "$as_me:$LINENO: result: no" >&5
11796 echo "${ECHO_T}no" >&6
11797 X_LIBS="$X_LIBS -R$x_libraries"
11799 LIBS="$ac_xsave_LIBS -R $x_libraries"
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11817 (eval $ac_link) 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_c_werror_flag"
11825 || test ! -s conftest.err'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11844 rm -f conftest.err conftest.$ac_objext \
11845 conftest$ac_exeext conftest.$ac_ext
11846 if test $ac_R_space = yes; then
11847 echo "$as_me:$LINENO: result: yes" >&5
11848 echo "${ECHO_T}yes" >&6
11849 X_LIBS="$X_LIBS -R $x_libraries"
11851 echo "$as_me:$LINENO: result: neither works" >&5
11852 echo "${ECHO_T}neither works" >&6
11855 LIBS=$ac_xsave_LIBS
11859 # Check for system-dependent libraries X programs must link with.
11860 # Do this before checking for the system-independent R6 libraries
11861 # (-lICE), since we may need -lsocket or whatever for X linking.
11863 if test "$ISC" = yes; then
11864 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11866 # Martyn Johnson says this is needed for Ultrix, if the X
11867 # libraries were built with DECnet support. And Karl Berry says
11868 # the Alpha needs dnet_stub (dnet does not exist).
11869 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11877 /* Override any gcc2 internal prototype to avoid an error. */
11881 /* We use char because int might match the return type of a gcc2
11882 builtin and then its argument prototype would still apply. */
11883 char XOpenDisplay ();
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894 (eval $ac_link) 2>conftest.er1
11896 grep -v '^ *+' conftest.er1 >conftest.err
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try='test -z "$ac_c_werror_flag"
11902 || test ! -s conftest.err'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } &&
11908 { ac_try='test -s conftest$ac_exeext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11920 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11921 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 ac_check_lib_save_LIBS=$LIBS
11925 LIBS="-ldnet $LIBS"
11926 cat >conftest.$ac_ext <<_ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11933 /* Override any gcc2 internal prototype to avoid an error. */
11937 /* We use char because int might match the return type of a gcc2
11938 builtin and then its argument prototype would still apply. */
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950 (eval $ac_link) 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag"
11958 || test ! -s conftest.err'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 ac_cv_lib_dnet_dnet_ntoa=yes
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 ac_cv_lib_dnet_dnet_ntoa=no
11977 rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11982 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11983 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11984 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11987 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11988 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11989 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11990 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-ldnet_stub $LIBS"
11995 cat >conftest.$ac_ext <<_ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12002 /* Override any gcc2 internal prototype to avoid an error. */
12006 /* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>conftest.er1
12021 grep -v '^ *+' conftest.er1 >conftest.err
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag"
12027 || test ! -s conftest.err'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12044 ac_cv_lib_dnet_stub_dnet_ntoa=no
12046 rm -f conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12050 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12051 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12052 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12053 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12058 rm -f conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS="$ac_xsave_LIBS"
12062 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12063 # to get the SysV transport functions.
12064 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12066 # The nsl library prevents programs from opening the X display
12067 # on Irix 5.2, according to T.E. Dickey.
12068 # The functions gethostbyname, getservbyname, and inet_addr are
12069 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12070 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12071 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12072 if test "${ac_cv_func_gethostbyname+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12083 #define gethostbyname innocuous_gethostbyname
12085 /* System header to define __stub macros and hopefully few prototypes,
12086 which can conflict with char gethostbyname (); below.
12087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12088 <limits.h> exists even on freestanding compilers. */
12091 # include <limits.h>
12093 # include <assert.h>
12096 #undef gethostbyname
12098 /* Override any gcc2 internal prototype to avoid an error. */
12103 /* We use char because int might match the return type of a gcc2
12104 builtin and then its argument prototype would still apply. */
12105 char gethostbyname ();
12106 /* The GNU C library defines this for functions which it implements
12107 to always fail with ENOSYS. Some functions are actually named
12108 something starting with __ and the normal name is an alias. */
12109 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12112 char (*f) () = gethostbyname;
12121 return f != gethostbyname;
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_c_werror_flag"
12136 || test ! -s conftest.err'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } &&
12142 { ac_try='test -s conftest$ac_exeext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_func_gethostbyname=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ac_cv_func_gethostbyname=no
12155 rm -f conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12159 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12161 if test $ac_cv_func_gethostbyname = no; then
12162 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12163 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12164 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 ac_check_lib_save_LIBS=$LIBS
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12176 /* Override any gcc2 internal prototype to avoid an error. */
12180 /* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12182 char gethostbyname ();
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>conftest.er1
12195 grep -v '^ *+' conftest.er1 >conftest.err
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag"
12201 || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest$ac_exeext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_lib_nsl_gethostbyname=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_cv_lib_nsl_gethostbyname=no
12220 rm -f conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 LIBS=$ac_check_lib_save_LIBS
12224 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12225 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12226 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12230 if test $ac_cv_lib_nsl_gethostbyname = no; then
12231 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12232 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12233 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 ac_check_lib_save_LIBS=$LIBS
12238 cat >conftest.$ac_ext <<_ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12245 /* Override any gcc2 internal prototype to avoid an error. */
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12251 char gethostbyname ();
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262 (eval $ac_link) 2>conftest.er1
12264 grep -v '^ *+' conftest.er1 >conftest.err
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -z "$ac_c_werror_flag"
12270 || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest$ac_exeext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_lib_bsd_gethostbyname=yes
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ac_cv_lib_bsd_gethostbyname=no
12289 rm -f conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12293 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12294 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12295 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12302 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12303 # socket/setsockopt and other routines are undefined under SCO ODT
12304 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12305 # on later versions), says Simon Leinen: it contains gethostby*
12306 # variants that don't use the name server (or something). -lsocket
12307 # must be given before -lnsl if both are needed. We assume that
12308 # if connect needs -lnsl, so does gethostbyname.
12309 echo "$as_me:$LINENO: checking for connect" >&5
12310 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12311 if test "${ac_cv_func_connect+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 cat >conftest.$ac_ext <<_ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12322 #define connect innocuous_connect
12324 /* System header to define __stub macros and hopefully few prototypes,
12325 which can conflict with char connect (); below.
12326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12327 <limits.h> exists even on freestanding compilers. */
12330 # include <limits.h>
12332 # include <assert.h>
12337 /* Override any gcc2 internal prototype to avoid an error. */
12342 /* We use char because int might match the return type of a gcc2
12343 builtin and then its argument prototype would still apply. */
12345 /* The GNU C library defines this for functions which it implements
12346 to always fail with ENOSYS. Some functions are actually named
12347 something starting with __ and the normal name is an alias. */
12348 #if defined (__stub_connect) || defined (__stub___connect)
12351 char (*f) () = connect;
12360 return f != connect;
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12367 (eval $ac_link) 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -z "$ac_c_werror_flag"
12375 || test ! -s conftest.err'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest$ac_exeext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 ac_cv_func_connect=yes
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12392 ac_cv_func_connect=no
12394 rm -f conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12397 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12398 echo "${ECHO_T}$ac_cv_func_connect" >&6
12400 if test $ac_cv_func_connect = no; then
12401 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12402 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12403 if test "${ac_cv_lib_socket_connect+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12415 /* Override any gcc2 internal prototype to avoid an error. */
12419 /* We use char because int might match the return type of a gcc2
12420 builtin and then its argument prototype would still apply. */
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
12439 { ac_try='test -z "$ac_c_werror_flag"
12440 || test ! -s conftest.err'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest$ac_exeext'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_lib_socket_connect=yes
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12457 ac_cv_lib_socket_connect=no
12459 rm -f conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12463 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12464 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12465 if test $ac_cv_lib_socket_connect = yes; then
12466 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12471 # Guillermo Gomez says -lposix is necessary on A/UX.
12472 echo "$as_me:$LINENO: checking for remove" >&5
12473 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12474 if test "${ac_cv_func_remove+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12483 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12485 #define remove innocuous_remove
12487 /* System header to define __stub macros and hopefully few prototypes,
12488 which can conflict with char remove (); below.
12489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12490 <limits.h> exists even on freestanding compilers. */
12493 # include <limits.h>
12495 # include <assert.h>
12500 /* Override any gcc2 internal prototype to avoid an error. */
12505 /* We use char because int might match the return type of a gcc2
12506 builtin and then its argument prototype would still apply. */
12508 /* The GNU C library defines this for functions which it implements
12509 to always fail with ENOSYS. Some functions are actually named
12510 something starting with __ and the normal name is an alias. */
12511 #if defined (__stub_remove) || defined (__stub___remove)
12514 char (*f) () = remove;
12523 return f != remove;
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530 (eval $ac_link) 2>conftest.er1
12532 grep -v '^ *+' conftest.er1 >conftest.err
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -z "$ac_c_werror_flag"
12538 || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_func_remove=yes
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_cv_func_remove=no
12557 rm -f conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12560 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12561 echo "${ECHO_T}$ac_cv_func_remove" >&6
12563 if test $ac_cv_func_remove = no; then
12564 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12565 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12566 if test "${ac_cv_lib_posix_remove+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lposix $LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12578 /* Override any gcc2 internal prototype to avoid an error. */
12582 /* We use char because int might match the return type of a gcc2
12583 builtin and then its argument prototype would still apply. */
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595 (eval $ac_link) 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try='test -z "$ac_c_werror_flag"
12603 || test ! -s conftest.err'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_lib_posix_remove=yes
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12620 ac_cv_lib_posix_remove=no
12622 rm -f conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624 LIBS=$ac_check_lib_save_LIBS
12626 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12627 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12628 if test $ac_cv_lib_posix_remove = yes; then
12629 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12634 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12635 echo "$as_me:$LINENO: checking for shmat" >&5
12636 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12637 if test "${ac_cv_func_shmat+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 cat >conftest.$ac_ext <<_ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h. */
12646 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12648 #define shmat innocuous_shmat
12650 /* System header to define __stub macros and hopefully few prototypes,
12651 which can conflict with char shmat (); below.
12652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12653 <limits.h> exists even on freestanding compilers. */
12656 # include <limits.h>
12658 # include <assert.h>
12663 /* Override any gcc2 internal prototype to avoid an error. */
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12671 /* The GNU C library defines this for functions which it implements
12672 to always fail with ENOSYS. Some functions are actually named
12673 something starting with __ and the normal name is an alias. */
12674 #if defined (__stub_shmat) || defined (__stub___shmat)
12677 char (*f) () = shmat;
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693 (eval $ac_link) 2>conftest.er1
12695 grep -v '^ *+' conftest.er1 >conftest.err
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_c_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_func_shmat=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_cv_func_shmat=no
12720 rm -f conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12723 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12724 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12726 if test $ac_cv_func_shmat = no; then
12727 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12728 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12729 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 ac_check_lib_save_LIBS=$LIBS
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12741 /* Override any gcc2 internal prototype to avoid an error. */
12745 /* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12758 (eval $ac_link) 2>conftest.er1
12760 grep -v '^ *+' conftest.er1 >conftest.err
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -z "$ac_c_werror_flag"
12766 || test ! -s conftest.err'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest$ac_exeext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_cv_lib_ipc_shmat=yes
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12783 ac_cv_lib_ipc_shmat=no
12785 rm -f conftest.err conftest.$ac_objext \
12786 conftest$ac_exeext conftest.$ac_ext
12787 LIBS=$ac_check_lib_save_LIBS
12789 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12790 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12791 if test $ac_cv_lib_ipc_shmat = yes; then
12792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12798 # Check for libraries that X11R6 Xt/Xaw programs need.
12799 ac_save_LDFLAGS=$LDFLAGS
12800 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12801 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12802 # check for ICE first), but we must link in the order -lSM -lICE or
12803 # we get undefined symbols. So assume we have SM if we have ICE.
12804 # These have to be linked with before -lX11, unlike the other
12805 # libraries we check for below, so use a different variable.
12806 # John Interrante, Karl Berry
12807 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12808 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12809 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12821 /* Override any gcc2 internal prototype to avoid an error. */
12825 /* We use char because int might match the return type of a gcc2
12826 builtin and then its argument prototype would still apply. */
12827 char IceConnectionNumber ();
12831 IceConnectionNumber ();
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest$ac_exeext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_cv_lib_ICE_IceConnectionNumber=yes
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_cv_lib_ICE_IceConnectionNumber=no
12865 rm -f conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_check_lib_save_LIBS
12869 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12870 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12871 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12872 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12875 LDFLAGS=$ac_save_LDFLAGS
12937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12939 echo "$as_me:$LINENO: checking for $ac_header" >&5
12940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12947 # Is the header compilable?
12948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12950 cat >conftest.$ac_ext <<_ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12956 $ac_includes_default
12957 #include <$ac_header>
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>conftest.er1
12963 grep -v '^ *+' conftest.er1 >conftest.err
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -z "$ac_c_werror_flag"
12969 || test ! -s conftest.err'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_header_compiler=yes
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_header_compiler=no
12988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12990 echo "${ECHO_T}$ac_header_compiler" >&6
12992 # Is the header present?
12993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12995 cat >conftest.$ac_ext <<_ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13001 #include <$ac_header>
13003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13006 grep -v '^ *+' conftest.er1 >conftest.err
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } >/dev/null; then
13011 if test -s conftest.err; then
13012 ac_cpp_err=$ac_c_preproc_warn_flag
13013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13020 if test -z "$ac_cpp_err"; then
13021 ac_header_preproc=yes
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ac_header_preproc=no
13028 rm -f conftest.err conftest.$ac_ext
13029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13030 echo "${ECHO_T}$ac_header_preproc" >&6
13032 # So? What about this header?
13033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13039 ac_header_preproc=yes
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13056 ## ------------------------------------------ ##
13057 ## Report this to the AC_PACKAGE_NAME lists. ##
13058 ## ------------------------------------------ ##
13061 sed "s/^/$as_me: WARNING: /" >&2
13064 echo "$as_me:$LINENO: checking for $ac_header" >&5
13065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 eval "$as_ac_Header=\$ac_header_preproc"
13071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13076 cat >>confdefs.h <<_ACEOF
13077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13084 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13085 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13086 if test "${ac_cv_header_stdc+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 cat >conftest.$ac_ext <<_ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13095 #include <stdlib.h>
13096 #include <stdarg.h>
13097 #include <string.h>
13108 rm -f conftest.$ac_objext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110 (eval $ac_compile) 2>conftest.er1
13112 grep -v '^ *+' conftest.er1 >conftest.err
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -z "$ac_c_werror_flag"
13118 || test ! -s conftest.err'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try='test -s conftest.$ac_objext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_header_stdc=yes
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_cv_header_stdc=no
13137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13139 if test $ac_cv_header_stdc = yes; then
13140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <string.h>
13150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13151 $EGREP "memchr" >/dev/null 2>&1; then
13154 ac_cv_header_stdc=no
13160 if test $ac_cv_header_stdc = yes; then
13161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 #include <stdlib.h>
13171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13172 $EGREP "free" >/dev/null 2>&1; then
13175 ac_cv_header_stdc=no
13181 if test $ac_cv_header_stdc = yes; then
13182 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13183 if test "$cross_compiling" = yes; then
13186 cat >conftest.$ac_ext <<_ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13193 #if ((' ' & 0x0FF) == 0x020)
13194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13197 # define ISLOWER(c) \
13198 (('a' <= (c) && (c) <= 'i') \
13199 || ('j' <= (c) && (c) <= 'r') \
13200 || ('s' <= (c) && (c) <= 'z'))
13201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13209 for (i = 0; i < 256; i++)
13210 if (XOR (islower (i), ISLOWER (i))
13211 || toupper (i) != TOUPPER (i))
13216 rm -f conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13229 echo "$as_me: program exited with status $ac_status" >&5
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ( exit $ac_status )
13234 ac_cv_header_stdc=no
13236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13240 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13241 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13242 if test $ac_cv_header_stdc = yes; then
13244 cat >>confdefs.h <<\_ACEOF
13245 #define STDC_HEADERS 1
13250 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13251 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13252 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 cat >conftest.$ac_ext <<_ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13261 #include <sys/types.h>
13265 return makedev(0, 0);
13270 rm -f conftest.$ac_objext conftest$ac_exeext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13272 (eval $ac_link) 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -z "$ac_c_werror_flag"
13280 || test ! -s conftest.err'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest$ac_exeext'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_header_sys_types_h_makedev=yes
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ac_cv_header_sys_types_h_makedev=no
13299 rm -f conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13303 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13304 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13306 if test $ac_cv_header_sys_types_h_makedev = no; then
13307 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13308 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13309 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13310 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13314 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13316 # Is the header compilable?
13317 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13318 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13319 cat >conftest.$ac_ext <<_ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 $ac_includes_default
13326 #include <sys/mkdev.h>
13328 rm -f conftest.$ac_objext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330 (eval $ac_compile) 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag"
13338 || test ! -s conftest.err'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest.$ac_objext'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13350 ac_header_compiler=yes
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13355 ac_header_compiler=no
13357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13359 echo "${ECHO_T}$ac_header_compiler" >&6
13361 # Is the header present?
13362 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13363 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 #include <sys/mkdev.h>
13372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13375 grep -v '^ *+' conftest.er1 >conftest.err
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } >/dev/null; then
13380 if test -s conftest.err; then
13381 ac_cpp_err=$ac_c_preproc_warn_flag
13382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13389 if test -z "$ac_cpp_err"; then
13390 ac_header_preproc=yes
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ac_header_preproc=no
13397 rm -f conftest.err conftest.$ac_ext
13398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13399 echo "${ECHO_T}$ac_header_preproc" >&6
13401 # So? What about this header?
13402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13404 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13405 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13407 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13408 ac_header_preproc=yes
13411 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13412 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
13414 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13416 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
13418 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13420 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13421 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13422 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13425 ## ------------------------------------------ ##
13426 ## Report this to the AC_PACKAGE_NAME lists. ##
13427 ## ------------------------------------------ ##
13430 sed "s/^/$as_me: WARNING: /" >&2
13433 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13434 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13435 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 ac_cv_header_sys_mkdev_h=$ac_header_preproc
13440 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13441 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13444 if test $ac_cv_header_sys_mkdev_h = yes; then
13446 cat >>confdefs.h <<\_ACEOF
13447 #define MAJOR_IN_MKDEV 1
13454 if test $ac_cv_header_sys_mkdev_h = no; then
13455 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13456 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13457 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13458 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13462 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13464 # Is the header compilable?
13465 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13466 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13467 cat >conftest.$ac_ext <<_ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 $ac_includes_default
13474 #include <sys/sysmacros.h>
13476 rm -f conftest.$ac_objext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>conftest.er1
13480 grep -v '^ *+' conftest.er1 >conftest.err
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_header_compiler=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_compiler=no
13505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6
13509 # Is the header present?
13510 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13511 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 #include <sys/sysmacros.h>
13520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13523 grep -v '^ *+' conftest.er1 >conftest.err
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev/null; then
13528 if test -s conftest.err; then
13529 ac_cpp_err=$ac_c_preproc_warn_flag
13530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13537 if test -z "$ac_cpp_err"; then
13538 ac_header_preproc=yes
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_header_preproc=no
13545 rm -f conftest.err conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13552 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13559 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13573 ## ------------------------------------------ ##
13574 ## Report this to the AC_PACKAGE_NAME lists. ##
13575 ## ------------------------------------------ ##
13578 sed "s/^/$as_me: WARNING: /" >&2
13581 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13582 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13583 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13588 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13589 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13592 if test $ac_cv_header_sys_sysmacros_h = yes; then
13594 cat >>confdefs.h <<\_ACEOF
13595 #define MAJOR_IN_SYSMACROS 1
13609 ac_header_dirent=no
13610 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13611 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13612 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13613 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 #include <sys/types.h>
13635 rm -f conftest.$ac_objext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13637 (eval $ac_compile) 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 eval "$as_ac_Header=yes"
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 eval "$as_ac_Header=no"
13664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13669 cat >>confdefs.h <<_ACEOF
13670 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13673 ac_header_dirent=$ac_hdr; break
13677 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13678 if test $ac_header_dirent = dirent.h; then
13679 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13680 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13681 if test "${ac_cv_search_opendir+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 ac_func_search_save_LIBS=$LIBS
13685 ac_cv_search_opendir=no
13686 cat >conftest.$ac_ext <<_ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13693 /* Override any gcc2 internal prototype to avoid an error. */
13697 /* We use char because int might match the return type of a gcc2
13698 builtin and then its argument prototype would still apply. */
13708 rm -f conftest.$ac_objext conftest$ac_exeext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13710 (eval $ac_link) 2>conftest.er1
13712 grep -v '^ *+' conftest.er1 >conftest.err
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try='test -z "$ac_c_werror_flag"
13718 || test ! -s conftest.err'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest$ac_exeext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_cv_search_opendir="none required"
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13736 rm -f conftest.err conftest.$ac_objext \
13737 conftest$ac_exeext conftest.$ac_ext
13738 if test "$ac_cv_search_opendir" = no; then
13739 for ac_lib in dir; do
13740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13741 cat >conftest.$ac_ext <<_ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13748 /* Override any gcc2 internal prototype to avoid an error. */
13752 /* We use char because int might match the return type of a gcc2
13753 builtin and then its argument prototype would still apply. */
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765 (eval $ac_link) 2>conftest.er1
13767 grep -v '^ *+' conftest.er1 >conftest.err
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_cv_search_opendir="-l$ac_lib"
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13792 rm -f conftest.err conftest.$ac_objext \
13793 conftest$ac_exeext conftest.$ac_ext
13796 LIBS=$ac_func_search_save_LIBS
13798 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13799 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13800 if test "$ac_cv_search_opendir" != no; then
13801 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13806 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13808 if test "${ac_cv_search_opendir+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 ac_func_search_save_LIBS=$LIBS
13812 ac_cv_search_opendir=no
13813 cat >conftest.$ac_ext <<_ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13820 /* Override any gcc2 internal prototype to avoid an error. */
13824 /* We use char because int might match the return type of a gcc2
13825 builtin and then its argument prototype would still apply. */
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>conftest.er1
13839 grep -v '^ *+' conftest.er1 >conftest.err
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag"
13845 || test ! -s conftest.err'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest$ac_exeext'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 ac_cv_search_opendir="none required"
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13863 rm -f conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 if test "$ac_cv_search_opendir" = no; then
13866 for ac_lib in x; do
13867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13868 cat >conftest.$ac_ext <<_ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13875 /* Override any gcc2 internal prototype to avoid an error. */
13879 /* We use char because int might match the return type of a gcc2
13880 builtin and then its argument prototype would still apply. */
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892 (eval $ac_link) 2>conftest.er1
13894 grep -v '^ *+' conftest.er1 >conftest.err
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_c_werror_flag"
13900 || test ! -s conftest.err'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; } &&
13906 { ac_try='test -s conftest$ac_exeext'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 ac_cv_search_opendir="-l$ac_lib"
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13919 rm -f conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13923 LIBS=$ac_func_search_save_LIBS
13925 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13926 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13927 if test "$ac_cv_search_opendir" != no; then
13928 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13934 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13935 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13936 if test "${ac_cv_header_stat_broken+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 #include <sys/types.h>
13946 #include <sys/stat.h>
13948 #if defined(S_ISBLK) && defined(S_IFDIR)
13949 # if S_ISBLK (S_IFDIR)
13954 #if defined(S_ISBLK) && defined(S_IFCHR)
13955 # if S_ISBLK (S_IFCHR)
13960 #if defined(S_ISLNK) && defined(S_IFREG)
13961 # if S_ISLNK (S_IFREG)
13966 #if defined(S_ISSOCK) && defined(S_IFREG)
13967 # if S_ISSOCK (S_IFREG)
13973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13974 $EGREP "You lose" >/dev/null 2>&1; then
13975 ac_cv_header_stat_broken=yes
13977 ac_cv_header_stat_broken=no
13982 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13983 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13984 if test $ac_cv_header_stat_broken = yes; then
13986 cat >>confdefs.h <<\_ACEOF
13987 #define STAT_MACROS_BROKEN 1
13992 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13993 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13994 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 cat >conftest.$ac_ext <<_ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 #include <sys/types.h>
14004 #include <sys/wait.h>
14005 #ifndef WEXITSTATUS
14006 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14017 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest.$ac_objext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_header_sys_wait_h=yes
14046 echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_cv_header_sys_wait_h=no
14051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14054 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14055 if test $ac_cv_header_sys_wait_h = yes; then
14057 cat >>confdefs.h <<\_ACEOF
14058 #define HAVE_SYS_WAIT_H 1
14063 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14064 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14065 if test "${ac_cv_header_time+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 #include <sys/types.h>
14075 #include <sys/time.h>
14081 if ((struct tm *) 0)
14087 rm -f conftest.$ac_objext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14089 (eval $ac_compile) 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest.$ac_objext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_cv_header_time=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_cv_header_time=no
14116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14118 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14119 echo "${ECHO_T}$ac_cv_header_time" >&6
14120 if test $ac_cv_header_time = yes; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define TIME_WITH_SYS_TIME 1
14129 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14130 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14131 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 $ac_includes_default
14144 static struct stat ac_aggr;
14145 if (ac_aggr.st_blksize)
14151 rm -f conftest.$ac_objext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153 (eval $ac_compile) 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag"
14161 || test ! -s conftest.err'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest.$ac_objext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 ac_cv_member_struct_stat_st_blksize=yes
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 cat >conftest.$ac_ext <<_ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 $ac_includes_default
14188 static struct stat ac_aggr;
14189 if (sizeof ac_aggr.st_blksize)
14195 rm -f conftest.$ac_objext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197 (eval $ac_compile) 2>conftest.er1
14199 grep -v '^ *+' conftest.er1 >conftest.err
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -z "$ac_c_werror_flag"
14205 || test ! -s conftest.err'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest.$ac_objext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_cv_member_struct_stat_st_blksize=yes
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 ac_cv_member_struct_stat_st_blksize=no
14224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14228 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14229 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14230 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14237 cat >>confdefs.h <<\_ACEOF
14238 #define HAVE_ST_BLKSIZE 1
14244 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14245 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14246 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 cat >conftest.$ac_ext <<_ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14259 static struct stat ac_aggr;
14260 if (ac_aggr.st_blocks)
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268 (eval $ac_compile) 2>conftest.er1
14270 grep -v '^ *+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -z "$ac_c_werror_flag"
14276 || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest.$ac_objext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 ac_cv_member_struct_stat_st_blocks=yes
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 cat >conftest.$ac_ext <<_ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 $ac_includes_default
14303 static struct stat ac_aggr;
14304 if (sizeof ac_aggr.st_blocks)
14310 rm -f conftest.$ac_objext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312 (eval $ac_compile) 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag"
14320 || test ! -s conftest.err'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_member_struct_stat_st_blocks=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_cv_member_struct_stat_st_blocks=no
14339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14343 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14344 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14345 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14347 cat >>confdefs.h <<_ACEOF
14348 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14352 cat >>confdefs.h <<\_ACEOF
14353 #define HAVE_ST_BLOCKS 1
14358 "fileblocks.$ac_objext" | \
14359 *" fileblocks.$ac_objext" | \
14360 "fileblocks.$ac_objext "* | \
14361 *" fileblocks.$ac_objext "* ) ;;
14362 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14368 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14369 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14370 if test "${ac_cv_struct_tm+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 #include <sys/types.h>
14385 struct tm *tp; tp->tm_sec;
14390 rm -f conftest.$ac_objext
14391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14392 (eval $ac_compile) 2>conftest.er1
14394 grep -v '^ *+' conftest.er1 >conftest.err
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -z "$ac_c_werror_flag"
14400 || test ! -s conftest.err'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; } &&
14406 { ac_try='test -s conftest.$ac_objext'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 ac_cv_struct_tm=time.h
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14417 ac_cv_struct_tm=sys/time.h
14419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14421 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14422 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14423 if test $ac_cv_struct_tm = sys/time.h; then
14425 cat >>confdefs.h <<\_ACEOF
14426 #define TM_IN_SYS_TIME 1
14431 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14432 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14433 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 cat >conftest.$ac_ext <<_ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 #include <sys/types.h>
14443 #include <$ac_cv_struct_tm>
14449 static struct tm ac_aggr;
14450 if (ac_aggr.tm_zone)
14456 rm -f conftest.$ac_objext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458 (eval $ac_compile) 2>conftest.er1
14460 grep -v '^ *+' conftest.er1 >conftest.err
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
14465 { ac_try='test -z "$ac_c_werror_flag"
14466 || test ! -s conftest.err'
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); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_cv_member_struct_tm_tm_zone=yes
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14483 cat >conftest.$ac_ext <<_ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489 #include <sys/types.h>
14490 #include <$ac_cv_struct_tm>
14496 static struct tm ac_aggr;
14497 if (sizeof ac_aggr.tm_zone)
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505 (eval $ac_compile) 2>conftest.er1
14507 grep -v '^ *+' conftest.er1 >conftest.err
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag"
14513 || test ! -s conftest.err'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest.$ac_objext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 ac_cv_member_struct_tm_tm_zone=yes
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 ac_cv_member_struct_tm_tm_zone=no
14532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14536 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14537 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14538 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14540 cat >>confdefs.h <<_ACEOF
14541 #define HAVE_STRUCT_TM_TM_ZONE 1
14547 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14549 cat >>confdefs.h <<\_ACEOF
14550 #define HAVE_TM_ZONE 1
14554 echo "$as_me:$LINENO: checking for tzname" >&5
14555 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14556 if test "${ac_cv_var_tzname+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 cat >conftest.$ac_ext <<_ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14566 #ifndef tzname /* For SGI. */
14567 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14580 (eval $ac_link) 2>conftest.er1
14582 grep -v '^ *+' conftest.er1 >conftest.err
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag"
14588 || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest$ac_exeext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_cv_var_tzname=yes
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 ac_cv_var_tzname=no
14607 rm -f conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14610 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14611 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14612 if test $ac_cv_var_tzname = yes; then
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_TZNAME 1
14622 echo "$as_me:$LINENO: checking for utime.h" >&5
14623 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14624 if test "${ba_cv_header_utime_h+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 cat >conftest.$ac_ext <<_ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14634 #include <sys/types.h>
14644 rm -f conftest.$ac_objext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646 (eval $ac_compile) 2>conftest.er1
14648 grep -v '^ *+' conftest.er1 >conftest.err
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -z "$ac_c_werror_flag"
14654 || test ! -s conftest.err'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 ba_cv_header_utime_h=yes
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 ba_cv_header_utime_h=no
14673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14675 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14676 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14677 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14678 #define HAVE_UTIME_H 1
14682 echo "$as_me:$LINENO: checking for socklen_t" >&5
14683 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14684 if test "${ba_cv_header_socklen_t+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14694 #include <sys/types.h>
14695 #include <sys/socket.h>
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706 (eval $ac_compile) 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_c_werror_flag"
14714 || test ! -s conftest.err'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ba_cv_header_socklen_t=yes
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 ba_cv_header_socklen_t=no
14733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14735 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14736 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14737 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_SOCKLEN_T 1
14742 echo "$as_me:$LINENO: checking for bigendian" >&5
14743 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14744 if test "${ba_cv_bigendian+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 if test "$cross_compiling" = yes; then
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14758 rm -f conftest$ac_exeext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14760 (eval $ac_link) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ba_cv_bigendian=yes
14771 echo "$as_me: program exited with status $ac_status" >&5
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 ( exit $ac_status )
14778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14781 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14782 echo "${ECHO_T}$ba_cv_bigendian" >&6
14783 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14784 #define HAVE_BIGENDIAN 1
14789 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14790 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14791 if test "${ac_cv_c_const+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 cat >conftest.$ac_ext <<_ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14804 /* FIXME: Include the comments suggested by Paul. */
14805 #ifndef __cplusplus
14806 /* Ultrix mips cc rejects this. */
14807 typedef int charset[2];
14809 /* SunOS 4.1.1 cc rejects this. */
14810 char const *const *ccp;
14812 /* NEC SVR4.0.2 mips cc rejects this. */
14813 struct point {int x, y;};
14814 static struct point const zero = {0,0};
14815 /* AIX XL C 1.02.0.0 rejects this.
14816 It does not let you subtract one const X* pointer from another in
14817 an arm of an if-expression whose if-part is not a constant
14819 const char *g = "string";
14820 ccp = &g + (g ? g-g : 0);
14821 /* HPUX 7.0 cc rejects these. */
14824 ccp = (char const *const *) p;
14825 { /* SCO 3.2v4 cc rejects this. */
14827 char const *s = 0 ? (char *) 0 : (char const *) 0;
14831 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14832 int x[] = {25, 17};
14833 const int *foo = &x[0];
14836 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14837 typedef const int *iptr;
14841 { /* AIX XL C 1.02.0.0 rejects this saying
14842 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14843 struct s { int j; const int *ap[3]; };
14844 struct s *b; b->j = 5;
14846 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14847 const int foo = 10;
14855 rm -f conftest.$ac_objext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857 (eval $ac_compile) 2>conftest.er1
14859 grep -v '^ *+' conftest.er1 >conftest.err
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -z "$ac_c_werror_flag"
14865 || test ! -s conftest.err'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14886 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14887 echo "${ECHO_T}$ac_cv_c_const" >&6
14888 if test $ac_cv_c_const = no; then
14890 cat >>confdefs.h <<\_ACEOF
14898 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
14899 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
14901 # The order of these tests is important.
14902 cat >conftest.$ac_ext <<_ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 #include <sys/statvfs.h>
14909 #include <sys/fstyp.h>
14911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14914 grep -v '^ *+' conftest.er1 >conftest.err
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } >/dev/null; then
14919 if test -s conftest.err; then
14920 ac_cpp_err=$ac_c_preproc_warn_flag
14921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14928 if test -z "$ac_cpp_err"; then
14929 cat >>confdefs.h <<\_ACEOF
14930 #define FSTYPE_STATVFS 1
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14939 rm -f conftest.err conftest.$ac_ext
14940 if test $fstype = no; then
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include <sys/statfs.h>
14948 #include <sys/fstyp.h>
14950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14953 grep -v '^ *+' conftest.er1 >conftest.err
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } >/dev/null; then
14958 if test -s conftest.err; then
14959 ac_cpp_err=$ac_c_preproc_warn_flag
14960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14967 if test -z "$ac_cpp_err"; then
14968 cat >>confdefs.h <<\_ACEOF
14969 #define FSTYPE_USG_STATFS 1
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14978 rm -f conftest.err conftest.$ac_ext
14980 if test $fstype = no; then
14981 cat >conftest.$ac_ext <<_ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 #include <sys/statfs.h>
14988 #include <sys/vmount.h>
14990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } >/dev/null; then
14998 if test -s conftest.err; then
14999 ac_cpp_err=$ac_c_preproc_warn_flag
15000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15007 if test -z "$ac_cpp_err"; then
15008 cat >>confdefs.h <<\_ACEOF
15009 #define FSTYPE_AIX_STATFS 1
15013 echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15018 rm -f conftest.err conftest.$ac_ext
15020 if test $fstype = no; then
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 #include <mntent.h>
15029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15032 grep -v '^ *+' conftest.er1 >conftest.err
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } >/dev/null; then
15037 if test -s conftest.err; then
15038 ac_cpp_err=$ac_c_preproc_warn_flag
15039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15046 if test -z "$ac_cpp_err"; then
15047 cat >>confdefs.h <<\_ACEOF
15048 #define FSTYPE_MNTENT 1
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15057 rm -f conftest.err conftest.$ac_ext
15059 if test $fstype = no; then
15060 cat >conftest.$ac_ext <<_ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15066 #include <sys/mount.h>
15069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15070 $EGREP "f_type;" >/dev/null 2>&1; then
15071 cat >>confdefs.h <<\_ACEOF
15072 #define FSTYPE_STATFS 1
15079 if test $fstype = no; then
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 #include <sys/mount.h>
15087 #include <sys/fs_types.h>
15089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15092 grep -v '^ *+' conftest.er1 >conftest.err
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } >/dev/null; then
15097 if test -s conftest.err; then
15098 ac_cpp_err=$ac_c_preproc_warn_flag
15099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15106 if test -z "$ac_cpp_err"; then
15107 cat >>confdefs.h <<\_ACEOF
15108 #define FSTYPE_GETMNT 1
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15117 rm -f conftest.err conftest.$ac_ext
15119 echo "$as_me:$LINENO: result: $fstype" >&5
15120 echo "${ECHO_T}$fstype" >&6
15122 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15123 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15124 if test "${ac_cv_type_signal+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 cat >conftest.$ac_ext <<_ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15133 #include <sys/types.h>
15134 #include <signal.h>
15139 extern "C" void (*signal (int, void (*)(int)))(int);
15141 void (*signal ()) ();
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest.$ac_objext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_type_signal=void
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15179 ac_cv_type_signal=int
15181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15183 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15184 echo "${ECHO_T}$ac_cv_type_signal" >&6
15186 cat >>confdefs.h <<_ACEOF
15187 #define RETSIGTYPE $ac_cv_type_signal
15192 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15193 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15194 if test "${bash_cv_signal_vintage+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 cat >conftest.$ac_ext <<_ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15204 #include <signal.h>
15210 struct sigaction sa;
15211 sigemptyset(&ss); sigsuspend(&ss);
15212 sigaction(SIGINT, &sa, (struct sigaction *) 0);
15213 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15219 rm -f conftest.$ac_objext conftest$ac_exeext
15220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15221 (eval $ac_link) 2>conftest.er1
15223 grep -v '^ *+' conftest.er1 >conftest.err
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } &&
15228 { ac_try='test -z "$ac_c_werror_flag"
15229 || test ! -s conftest.err'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest$ac_exeext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 bash_cv_signal_vintage=posix
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15247 cat >conftest.$ac_ext <<_ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 #include <signal.h>
15258 int mask = sigmask(SIGINT);
15259 sigsetmask(mask); sigblock(mask); sigpause(mask);
15265 rm -f conftest.$ac_objext conftest$ac_exeext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15267 (eval $ac_link) 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -z "$ac_c_werror_flag"
15275 || test ! -s conftest.err'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest$ac_exeext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 bash_cv_signal_vintage=4.2bsd
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15300 #include <signal.h>
15301 RETSIGTYPE foo() { }
15306 int mask = sigmask(SIGINT);
15307 sigset(SIGINT, foo); sigrelse(SIGINT);
15308 sighold(SIGINT); sigpause(SIGINT);
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15316 (eval $ac_link) 2>conftest.er1
15318 grep -v '^ *+' conftest.er1 >conftest.err
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -z "$ac_c_werror_flag"
15324 || test ! -s conftest.err'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try='test -s conftest$ac_exeext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 bash_cv_signal_vintage=svr3
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 bash_cv_signal_vintage=v7
15344 rm -f conftest.err conftest.$ac_objext \
15345 conftest$ac_exeext conftest.$ac_ext
15348 rm -f conftest.err conftest.$ac_objext \
15349 conftest$ac_exeext conftest.$ac_ext
15352 rm -f conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15357 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15358 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15359 if test "$bash_cv_signal_vintage" = posix; then
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_POSIX_SIGNALS 1
15364 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE_BSD_SIGNALS 1
15369 elif test "$bash_cv_signal_vintage" = svr3; then
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE_USG_SIGHOLD 1
15376 echo "$as_me:$LINENO: checking for mode_t" >&5
15377 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15378 if test "${ac_cv_type_mode_t+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 $ac_includes_default
15393 if (sizeof (mode_t))
15399 rm -f conftest.$ac_objext
15400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15401 (eval $ac_compile) 2>conftest.er1
15403 grep -v '^ *+' conftest.er1 >conftest.err
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
15408 { ac_try='test -z "$ac_c_werror_flag"
15409 || test ! -s conftest.err'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15421 ac_cv_type_mode_t=yes
15423 echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15426 ac_cv_type_mode_t=no
15428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15430 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15431 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15432 if test $ac_cv_type_mode_t = yes; then
15436 cat >>confdefs.h <<_ACEOF
15442 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15443 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15444 if test "${ac_cv_type_uid_t+set}" = set; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 cat >conftest.$ac_ext <<_ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 #include <sys/types.h>
15456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15457 $EGREP "uid_t" >/dev/null 2>&1; then
15458 ac_cv_type_uid_t=yes
15460 ac_cv_type_uid_t=no
15465 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15466 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15467 if test $ac_cv_type_uid_t = no; then
15469 cat >>confdefs.h <<\_ACEOF
15474 cat >>confdefs.h <<\_ACEOF
15480 echo "$as_me:$LINENO: checking for size_t" >&5
15481 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15482 if test "${ac_cv_type_size_t+set}" = set; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 cat >conftest.$ac_ext <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491 $ac_includes_default
15497 if (sizeof (size_t))
15503 rm -f conftest.$ac_objext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505 (eval $ac_compile) 2>conftest.er1
15507 grep -v '^ *+' conftest.er1 >conftest.err
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } &&
15512 { ac_try='test -z "$ac_c_werror_flag"
15513 || test ! -s conftest.err'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; } &&
15519 { ac_try='test -s conftest.$ac_objext'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; }; then
15525 ac_cv_type_size_t=yes
15527 echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15530 ac_cv_type_size_t=no
15532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15534 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15535 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15536 if test $ac_cv_type_size_t = yes; then
15540 cat >>confdefs.h <<_ACEOF
15541 #define size_t unsigned
15546 echo "$as_me:$LINENO: checking for pid_t" >&5
15547 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15548 if test "${ac_cv_type_pid_t+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 $ac_includes_default
15563 if (sizeof (pid_t))
15569 rm -f conftest.$ac_objext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571 (eval $ac_compile) 2>conftest.er1
15573 grep -v '^ *+' conftest.er1 >conftest.err
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
15578 { ac_try='test -z "$ac_c_werror_flag"
15579 || test ! -s conftest.err'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 ac_cv_type_pid_t=yes
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ac_cv_type_pid_t=no
15598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15600 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15601 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15602 if test $ac_cv_type_pid_t = yes; then
15606 cat >>confdefs.h <<_ACEOF
15612 echo "$as_me:$LINENO: checking for off_t" >&5
15613 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15614 if test "${ac_cv_type_off_t+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 cat >conftest.$ac_ext <<_ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 $ac_includes_default
15629 if (sizeof (off_t))
15635 rm -f conftest.$ac_objext
15636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15637 (eval $ac_compile) 2>conftest.er1
15639 grep -v '^ *+' conftest.er1 >conftest.err
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -z "$ac_c_werror_flag"
15645 || test ! -s conftest.err'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; } &&
15651 { ac_try='test -s conftest.$ac_objext'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_cv_type_off_t=yes
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_cv_type_off_t=no
15664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15666 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15667 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15668 if test $ac_cv_type_off_t = yes; then
15672 cat >>confdefs.h <<_ACEOF
15678 echo "$as_me:$LINENO: checking for ino_t" >&5
15679 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15680 if test "${ac_cv_type_ino_t+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 $ac_includes_default
15695 if (sizeof (ino_t))
15701 rm -f conftest.$ac_objext
15702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703 (eval $ac_compile) 2>conftest.er1
15705 grep -v '^ *+' conftest.er1 >conftest.err
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
15710 { ac_try='test -z "$ac_c_werror_flag"
15711 || test ! -s conftest.err'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; } &&
15717 { ac_try='test -s conftest.$ac_objext'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
15723 ac_cv_type_ino_t=yes
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15728 ac_cv_type_ino_t=no
15730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15732 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15733 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15734 if test $ac_cv_type_ino_t = yes; then
15738 cat >>confdefs.h <<_ACEOF
15739 #define ino_t unsigned long
15744 echo "$as_me:$LINENO: checking for dev_t" >&5
15745 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15746 if test "${ac_cv_type_dev_t+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 cat >conftest.$ac_ext <<_ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 $ac_includes_default
15761 if (sizeof (dev_t))
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>conftest.er1
15771 grep -v '^ *+' conftest.er1 >conftest.err
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
15776 { ac_try='test -z "$ac_c_werror_flag"
15777 || test ! -s conftest.err'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_cv_type_dev_t=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 ac_cv_type_dev_t=no
15796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15799 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15800 if test $ac_cv_type_dev_t = yes; then
15804 cat >>confdefs.h <<_ACEOF
15805 #define dev_t unsigned long
15810 echo "$as_me:$LINENO: checking for daddr_t" >&5
15811 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15812 if test "${ac_cv_type_daddr_t+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 $ac_includes_default
15827 if (sizeof (daddr_t))
15833 rm -f conftest.$ac_objext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835 (eval $ac_compile) 2>conftest.er1
15837 grep -v '^ *+' conftest.er1 >conftest.err
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -z "$ac_c_werror_flag"
15843 || test ! -s conftest.err'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_cv_type_daddr_t=yes
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ac_cv_type_daddr_t=no
15862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15864 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15865 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15866 if test $ac_cv_type_daddr_t = yes; then
15870 cat >>confdefs.h <<_ACEOF
15871 #define daddr_t long
15876 echo "$as_me:$LINENO: checking for major_t" >&5
15877 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
15878 if test "${ac_cv_type_major_t+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 $ac_includes_default
15893 if (sizeof (major_t))
15899 rm -f conftest.$ac_objext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901 (eval $ac_compile) 2>conftest.er1
15903 grep -v '^ *+' conftest.er1 >conftest.err
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
15908 { ac_try='test -z "$ac_c_werror_flag"
15909 || test ! -s conftest.err'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; } &&
15915 { ac_try='test -s conftest.$ac_objext'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; }; then
15921 ac_cv_type_major_t=yes
15923 echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15926 ac_cv_type_major_t=no
15928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15930 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
15931 echo "${ECHO_T}$ac_cv_type_major_t" >&6
15932 if test $ac_cv_type_major_t = yes; then
15936 cat >>confdefs.h <<_ACEOF
15937 #define major_t int
15942 echo "$as_me:$LINENO: checking for minor_t" >&5
15943 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
15944 if test "${ac_cv_type_minor_t+set}" = set; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 cat >conftest.$ac_ext <<_ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 $ac_includes_default
15959 if (sizeof (minor_t))
15965 rm -f conftest.$ac_objext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15967 (eval $ac_compile) 2>conftest.er1
15969 grep -v '^ *+' conftest.er1 >conftest.err
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try='test -z "$ac_c_werror_flag"
15975 || test ! -s conftest.err'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try='test -s conftest.$ac_objext'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15987 ac_cv_type_minor_t=yes
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 ac_cv_type_minor_t=no
15994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15996 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
15997 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
15998 if test $ac_cv_type_minor_t = yes; then
16002 cat >>confdefs.h <<_ACEOF
16003 #define minor_t int
16008 echo "$as_me:$LINENO: checking for ssize_t" >&5
16009 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16010 if test "${ac_cv_type_ssize_t+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16013 cat >conftest.$ac_ext <<_ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 $ac_includes_default
16025 if (sizeof (ssize_t))
16031 rm -f conftest.$ac_objext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16033 (eval $ac_compile) 2>conftest.er1
16035 grep -v '^ *+' conftest.er1 >conftest.err
16037 cat conftest.err >&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
16040 { ac_try='test -z "$ac_c_werror_flag"
16041 || test ! -s conftest.err'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; } &&
16047 { ac_try='test -s conftest.$ac_objext'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; }; then
16053 ac_cv_type_ssize_t=yes
16055 echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16058 ac_cv_type_ssize_t=no
16060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16062 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16063 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16064 if test $ac_cv_type_ssize_t = yes; then
16068 cat >>confdefs.h <<_ACEOF
16069 #define ssize_t int
16074 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16075 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16076 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16079 cat >conftest.$ac_ext <<_ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 $ac_includes_default
16089 static struct stat ac_aggr;
16090 if (ac_aggr.st_blocks)
16096 rm -f conftest.$ac_objext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098 (eval $ac_compile) 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest.$ac_objext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 ac_cv_member_struct_stat_st_blocks=yes
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 $ac_includes_default
16133 static struct stat ac_aggr;
16134 if (sizeof ac_aggr.st_blocks)
16140 rm -f conftest.$ac_objext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16142 (eval $ac_compile) 2>conftest.er1
16144 grep -v '^ *+' conftest.er1 >conftest.err
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_cv_member_struct_stat_st_blocks=yes
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 ac_cv_member_struct_stat_st_blocks=no
16169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16173 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16174 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16175 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16177 cat >>confdefs.h <<_ACEOF
16178 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_ST_BLOCKS 1
16188 "fileblocks.$ac_objext" | \
16189 *" fileblocks.$ac_objext" | \
16190 "fileblocks.$ac_objext "* | \
16191 *" fileblocks.$ac_objext "* ) ;;
16192 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16199 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16200 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16201 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16214 static struct stat ac_aggr;
16215 if (ac_aggr.st_rdev)
16221 rm -f conftest.$ac_objext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223 (eval $ac_compile) 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_member_struct_stat_st_rdev=yes
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 cat >conftest.$ac_ext <<_ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h. */
16254 $ac_includes_default
16258 static struct stat ac_aggr;
16259 if (sizeof ac_aggr.st_rdev)
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag"
16275 || test ! -s conftest.err'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try='test -s conftest.$ac_objext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_cv_member_struct_stat_st_rdev=yes
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_cv_member_struct_stat_st_rdev=no
16294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16298 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16299 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16300 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_STRUCT_STAT_ST_RDEV 1
16307 cat >>confdefs.h <<\_ACEOF
16308 #define HAVE_ST_RDEV 1
16314 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16315 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16316 if test "${ac_cv_struct_tm+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <sys/types.h>
16331 struct tm *tp; tp->tm_sec;
16336 rm -f conftest.$ac_objext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338 (eval $ac_compile) 2>conftest.er1
16340 grep -v '^ *+' conftest.er1 >conftest.err
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -z "$ac_c_werror_flag"
16346 || test ! -s conftest.err'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_cv_struct_tm=time.h
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_cv_struct_tm=sys/time.h
16365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16367 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16368 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16369 if test $ac_cv_struct_tm = sys/time.h; then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define TM_IN_SYS_TIME 1
16377 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16378 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16379 if test "${ac_cv_c_const+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16392 /* FIXME: Include the comments suggested by Paul. */
16393 #ifndef __cplusplus
16394 /* Ultrix mips cc rejects this. */
16395 typedef int charset[2];
16397 /* SunOS 4.1.1 cc rejects this. */
16398 char const *const *ccp;
16400 /* NEC SVR4.0.2 mips cc rejects this. */
16401 struct point {int x, y;};
16402 static struct point const zero = {0,0};
16403 /* AIX XL C 1.02.0.0 rejects this.
16404 It does not let you subtract one const X* pointer from another in
16405 an arm of an if-expression whose if-part is not a constant
16407 const char *g = "string";
16408 ccp = &g + (g ? g-g : 0);
16409 /* HPUX 7.0 cc rejects these. */
16412 ccp = (char const *const *) p;
16413 { /* SCO 3.2v4 cc rejects this. */
16415 char const *s = 0 ? (char *) 0 : (char const *) 0;
16419 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16420 int x[] = {25, 17};
16421 const int *foo = &x[0];
16424 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16425 typedef const int *iptr;
16429 { /* AIX XL C 1.02.0.0 rejects this saying
16430 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16431 struct s { int j; const int *ap[3]; };
16432 struct s *b; b->j = 5;
16434 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16435 const int foo = 10;
16443 rm -f conftest.$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445 (eval $ac_compile) 2>conftest.er1
16447 grep -v '^ *+' conftest.er1 >conftest.err
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -z "$ac_c_werror_flag"
16453 || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest.$ac_objext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16474 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16475 echo "${ECHO_T}$ac_cv_c_const" >&6
16476 if test $ac_cv_c_const = no; then
16478 cat >>confdefs.h <<\_ACEOF
16486 echo "$as_me:$LINENO: checking for char" >&5
16487 echo $ECHO_N "checking for char... $ECHO_C" >&6
16488 if test "${ac_cv_type_char+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 cat >conftest.$ac_ext <<_ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16497 $ac_includes_default
16509 rm -f conftest.$ac_objext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16511 (eval $ac_compile) 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag"
16519 || test ! -s conftest.err'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest.$ac_objext'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 ac_cv_type_char=yes
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16540 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16541 echo "${ECHO_T}$ac_cv_type_char" >&6
16543 echo "$as_me:$LINENO: checking size of char" >&5
16544 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16545 if test "${ac_cv_sizeof_char+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 if test "$ac_cv_type_char" = yes; then
16549 # The cast to unsigned long works around a bug in the HP C Compiler
16550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16552 # This bug is HP SR number 8606223364.
16553 if test "$cross_compiling" = yes; then
16554 # Depending upon the size, compute the lo and hi bounds.
16555 cat >conftest.$ac_ext <<_ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 $ac_includes_default
16565 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16572 rm -f conftest.$ac_objext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16574 (eval $ac_compile) 2>conftest.er1
16576 grep -v '^ *+' conftest.er1 >conftest.err
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -z "$ac_c_werror_flag"
16582 || test ! -s conftest.err'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest.$ac_objext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16596 cat >conftest.$ac_ext <<_ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 $ac_includes_default
16606 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615 (eval $ac_compile) 2>conftest.er1
16617 grep -v '^ *+' conftest.er1 >conftest.err
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -z "$ac_c_werror_flag"
16623 || test ! -s conftest.err'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try='test -s conftest.$ac_objext'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16635 ac_hi=$ac_mid; break
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 ac_lo=`expr $ac_mid + 1`
16641 if test $ac_lo -le $ac_mid; then
16645 ac_mid=`expr 2 '*' $ac_mid + 1`
16647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 $ac_includes_default
16663 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672 (eval $ac_compile) 2>conftest.er1
16674 grep -v '^ *+' conftest.er1 >conftest.err
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -z "$ac_c_werror_flag"
16680 || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest.$ac_objext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16694 cat >conftest.$ac_ext <<_ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 $ac_includes_default
16704 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16711 rm -f conftest.$ac_objext
16712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16713 (eval $ac_compile) 2>conftest.er1
16715 grep -v '^ *+' conftest.er1 >conftest.err
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -z "$ac_c_werror_flag"
16721 || test ! -s conftest.err'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; } &&
16727 { ac_try='test -s conftest.$ac_objext'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_lo=$ac_mid; break
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 ac_hi=`expr '(' $ac_mid ')' - 1`
16739 if test $ac_mid -le $ac_hi; then
16743 ac_mid=`expr 2 '*' $ac_mid`
16745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16756 # Binary search between lo and hi bounds.
16757 while test "x$ac_lo" != "x$ac_hi"; do
16758 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 $ac_includes_default
16769 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>conftest.er1
16780 grep -v '^ *+' conftest.er1 >conftest.err
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag"
16786 || test ! -s conftest.err'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_lo=`expr '(' $ac_mid ')' + 1`
16805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16808 ?*) ac_cv_sizeof_char=$ac_lo;;
16809 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16810 See \`config.log' for more details." >&5
16811 echo "$as_me: error: cannot compute sizeof (char), 77
16812 See \`config.log' for more details." >&2;}
16813 { (exit 1); exit 1; }; } ;;
16816 if test "$cross_compiling" = yes; then
16817 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16818 See \`config.log' for more details." >&5
16819 echo "$as_me: error: cannot run test program while cross compiling
16820 See \`config.log' for more details." >&2;}
16821 { (exit 1); exit 1; }; }
16823 cat >conftest.$ac_ext <<_ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16829 $ac_includes_default
16830 long longval () { return (long) (sizeof (char)); }
16831 unsigned long ulongval () { return (long) (sizeof (char)); }
16833 #include <stdlib.h>
16838 FILE *f = fopen ("conftest.val", "w");
16841 if (((long) (sizeof (char))) < 0)
16843 long i = longval ();
16844 if (i != ((long) (sizeof (char))))
16846 fprintf (f, "%ld\n", i);
16850 unsigned long i = ulongval ();
16851 if (i != ((long) (sizeof (char))))
16853 fprintf (f, "%lu\n", i);
16855 exit (ferror (f) || fclose (f) != 0);
16861 rm -f conftest$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_sizeof_char=`cat conftest.val`
16874 echo "$as_me: program exited with status $ac_status" >&5
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 ( exit $ac_status )
16879 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16880 See \`config.log' for more details." >&5
16881 echo "$as_me: error: cannot compute sizeof (char), 77
16882 See \`config.log' for more details." >&2;}
16883 { (exit 1); exit 1; }; }
16885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16890 ac_cv_sizeof_char=0
16893 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16894 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16895 cat >>confdefs.h <<_ACEOF
16896 #define SIZEOF_CHAR $ac_cv_sizeof_char
16900 echo "$as_me:$LINENO: checking for short int" >&5
16901 echo $ECHO_N "checking for short int... $ECHO_C" >&6
16902 if test "${ac_cv_type_short_int+set}" = set; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 $ac_includes_default
16915 if ((short int *) 0)
16917 if (sizeof (short int))
16923 rm -f conftest.$ac_objext
16924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16925 (eval $ac_compile) 2>conftest.er1
16927 grep -v '^ *+' conftest.er1 >conftest.err
16929 cat conftest.err >&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } &&
16932 { ac_try='test -z "$ac_c_werror_flag"
16933 || test ! -s conftest.err'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; } &&
16939 { ac_try='test -s conftest.$ac_objext'
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; }; then
16945 ac_cv_type_short_int=yes
16947 echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16950 ac_cv_type_short_int=no
16952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16954 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
16955 echo "${ECHO_T}$ac_cv_type_short_int" >&6
16957 echo "$as_me:$LINENO: checking size of short int" >&5
16958 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
16959 if test "${ac_cv_sizeof_short_int+set}" = set; then
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 if test "$ac_cv_type_short_int" = yes; then
16963 # The cast to unsigned long works around a bug in the HP C Compiler
16964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16966 # This bug is HP SR number 8606223364.
16967 if test "$cross_compiling" = yes; then
16968 # Depending upon the size, compute the lo and hi bounds.
16969 cat >conftest.$ac_ext <<_ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975 $ac_includes_default
16979 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
16986 rm -f conftest.$ac_objext
16987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16988 (eval $ac_compile) 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag"
16996 || test ! -s conftest.err'
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; } &&
17002 { ac_try='test -s conftest.$ac_objext'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 $ac_includes_default
17020 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17027 rm -f conftest.$ac_objext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17029 (eval $ac_compile) 2>conftest.er1
17031 grep -v '^ *+' conftest.er1 >conftest.err
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try='test -z "$ac_c_werror_flag"
17037 || test ! -s conftest.err'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try='test -s conftest.$ac_objext'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_hi=$ac_mid; break
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 ac_lo=`expr $ac_mid + 1`
17055 if test $ac_lo -le $ac_mid; then
17059 ac_mid=`expr 2 '*' $ac_mid + 1`
17061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 cat >conftest.$ac_ext <<_ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17073 $ac_includes_default
17077 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17084 rm -f conftest.$ac_objext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17086 (eval $ac_compile) 2>conftest.er1
17088 grep -v '^ *+' conftest.er1 >conftest.err
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try='test -z "$ac_c_werror_flag"
17094 || test ! -s conftest.err'
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest.$ac_objext'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17108 cat >conftest.$ac_ext <<_ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 $ac_includes_default
17118 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17125 rm -f conftest.$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_lo=$ac_mid; break
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ac_hi=`expr '(' $ac_mid ')' - 1`
17153 if test $ac_mid -le $ac_hi; then
17157 ac_mid=`expr 2 '*' $ac_mid`
17159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17170 # Binary search between lo and hi bounds.
17171 while test "x$ac_lo" != "x$ac_hi"; do
17172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179 $ac_includes_default
17183 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17190 rm -f conftest.$ac_objext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17192 (eval $ac_compile) 2>conftest.er1
17194 grep -v '^ *+' conftest.er1 >conftest.err
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
17199 { ac_try='test -z "$ac_c_werror_flag"
17200 || test ! -s conftest.err'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } &&
17206 { ac_try='test -s conftest.$ac_objext'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 ac_lo=`expr '(' $ac_mid ')' + 1`
17219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17222 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17223 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17224 See \`config.log' for more details." >&5
17225 echo "$as_me: error: cannot compute sizeof (short int), 77
17226 See \`config.log' for more details." >&2;}
17227 { (exit 1); exit 1; }; } ;;
17230 if test "$cross_compiling" = yes; then
17231 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17232 See \`config.log' for more details." >&5
17233 echo "$as_me: error: cannot run test program while cross compiling
17234 See \`config.log' for more details." >&2;}
17235 { (exit 1); exit 1; }; }
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17243 $ac_includes_default
17244 long longval () { return (long) (sizeof (short int)); }
17245 unsigned long ulongval () { return (long) (sizeof (short int)); }
17247 #include <stdlib.h>
17252 FILE *f = fopen ("conftest.val", "w");
17255 if (((long) (sizeof (short int))) < 0)
17257 long i = longval ();
17258 if (i != ((long) (sizeof (short int))))
17260 fprintf (f, "%ld\n", i);
17264 unsigned long i = ulongval ();
17265 if (i != ((long) (sizeof (short int))))
17267 fprintf (f, "%lu\n", i);
17269 exit (ferror (f) || fclose (f) != 0);
17275 rm -f conftest$ac_exeext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17277 (eval $ac_link) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 ac_cv_sizeof_short_int=`cat conftest.val`
17288 echo "$as_me: program exited with status $ac_status" >&5
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 ( exit $ac_status )
17293 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17294 See \`config.log' for more details." >&5
17295 echo "$as_me: error: cannot compute sizeof (short int), 77
17296 See \`config.log' for more details." >&2;}
17297 { (exit 1); exit 1; }; }
17299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17304 ac_cv_sizeof_short_int=0
17307 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17308 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17309 cat >>confdefs.h <<_ACEOF
17310 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17314 echo "$as_me:$LINENO: checking for int" >&5
17315 echo $ECHO_N "checking for int... $ECHO_C" >&6
17316 if test "${ac_cv_type_int+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 cat >conftest.$ac_ext <<_ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 $ac_includes_default
17337 rm -f conftest.$ac_objext
17338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17339 (eval $ac_compile) 2>conftest.er1
17341 grep -v '^ *+' conftest.er1 >conftest.err
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -z "$ac_c_werror_flag"
17347 || test ! -s conftest.err'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; } &&
17353 { ac_try='test -s conftest.$ac_objext'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17361 echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17368 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17369 echo "${ECHO_T}$ac_cv_type_int" >&6
17371 echo "$as_me:$LINENO: checking size of int" >&5
17372 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17373 if test "${ac_cv_sizeof_int+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 if test "$ac_cv_type_int" = yes; then
17377 # The cast to unsigned long works around a bug in the HP C Compiler
17378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17380 # This bug is HP SR number 8606223364.
17381 if test "$cross_compiling" = yes; then
17382 # Depending upon the size, compute the lo and hi bounds.
17383 cat >conftest.$ac_ext <<_ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 $ac_includes_default
17393 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17400 rm -f conftest.$ac_objext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17402 (eval $ac_compile) 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -z "$ac_c_werror_flag"
17410 || test ! -s conftest.err'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest.$ac_objext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 $ac_includes_default
17434 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17441 rm -f conftest.$ac_objext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443 (eval $ac_compile) 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_c_werror_flag"
17451 || test ! -s conftest.err'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest.$ac_objext'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463 ac_hi=$ac_mid; break
17465 echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17468 ac_lo=`expr $ac_mid + 1`
17469 if test $ac_lo -le $ac_mid; then
17473 ac_mid=`expr 2 '*' $ac_mid + 1`
17475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 cat >conftest.$ac_ext <<_ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 $ac_includes_default
17491 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17498 rm -f conftest.$ac_objext
17499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17500 (eval $ac_compile) 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -z "$ac_c_werror_flag"
17508 || test ! -s conftest.err'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest.$ac_objext'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17522 cat >conftest.$ac_ext <<_ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17528 $ac_includes_default
17532 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17539 rm -f conftest.$ac_objext
17540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17541 (eval $ac_compile) 2>conftest.er1
17543 grep -v '^ *+' conftest.er1 >conftest.err
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag"
17549 || test ! -s conftest.err'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; } &&
17555 { ac_try='test -s conftest.$ac_objext'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 ac_lo=$ac_mid; break
17563 echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 ac_hi=`expr '(' $ac_mid ')' - 1`
17567 if test $ac_mid -le $ac_hi; then
17571 ac_mid=`expr 2 '*' $ac_mid`
17573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17584 # Binary search between lo and hi bounds.
17585 while test "x$ac_lo" != "x$ac_hi"; do
17586 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 $ac_includes_default
17597 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17604 rm -f conftest.$ac_objext
17605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17606 (eval $ac_compile) 2>conftest.er1
17608 grep -v '^ *+' conftest.er1 >conftest.err
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 { ac_try='test -z "$ac_c_werror_flag"
17614 || test ! -s conftest.err'
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest.$ac_objext'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17631 ac_lo=`expr '(' $ac_mid ')' + 1`
17633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17636 ?*) ac_cv_sizeof_int=$ac_lo;;
17637 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17638 See \`config.log' for more details." >&5
17639 echo "$as_me: error: cannot compute sizeof (int), 77
17640 See \`config.log' for more details." >&2;}
17641 { (exit 1); exit 1; }; } ;;
17644 if test "$cross_compiling" = yes; then
17645 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17646 See \`config.log' for more details." >&5
17647 echo "$as_me: error: cannot run test program while cross compiling
17648 See \`config.log' for more details." >&2;}
17649 { (exit 1); exit 1; }; }
17651 cat >conftest.$ac_ext <<_ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 $ac_includes_default
17658 long longval () { return (long) (sizeof (int)); }
17659 unsigned long ulongval () { return (long) (sizeof (int)); }
17661 #include <stdlib.h>
17666 FILE *f = fopen ("conftest.val", "w");
17669 if (((long) (sizeof (int))) < 0)
17671 long i = longval ();
17672 if (i != ((long) (sizeof (int))))
17674 fprintf (f, "%ld\n", i);
17678 unsigned long i = ulongval ();
17679 if (i != ((long) (sizeof (int))))
17681 fprintf (f, "%lu\n", i);
17683 exit (ferror (f) || fclose (f) != 0);
17689 rm -f conftest$ac_exeext
17690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17691 (eval $ac_link) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 ac_cv_sizeof_int=`cat conftest.val`
17702 echo "$as_me: program exited with status $ac_status" >&5
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17706 ( exit $ac_status )
17707 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17708 See \`config.log' for more details." >&5
17709 echo "$as_me: error: cannot compute sizeof (int), 77
17710 See \`config.log' for more details." >&2;}
17711 { (exit 1); exit 1; }; }
17713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17721 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17722 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17723 cat >>confdefs.h <<_ACEOF
17724 #define SIZEOF_INT $ac_cv_sizeof_int
17728 echo "$as_me:$LINENO: checking for long int" >&5
17729 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17730 if test "${ac_cv_type_long_int+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 $ac_includes_default
17743 if ((long int *) 0)
17745 if (sizeof (long int))
17751 rm -f conftest.$ac_objext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17753 (eval $ac_compile) 2>conftest.er1
17755 grep -v '^ *+' conftest.er1 >conftest.err
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_type_long_int=yes
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 ac_cv_type_long_int=no
17780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17782 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17783 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17785 echo "$as_me:$LINENO: checking size of long int" >&5
17786 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17787 if test "${ac_cv_sizeof_long_int+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 if test "$ac_cv_type_long_int" = yes; then
17791 # The cast to unsigned long works around a bug in the HP C Compiler
17792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17794 # This bug is HP SR number 8606223364.
17795 if test "$cross_compiling" = yes; then
17796 # Depending upon the size, compute the lo and hi bounds.
17797 cat >conftest.$ac_ext <<_ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17803 $ac_includes_default
17807 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17814 rm -f conftest.$ac_objext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag"
17824 || test ! -s conftest.err'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 $ac_includes_default
17848 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17855 rm -f conftest.$ac_objext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
17859 grep -v '^ *+' conftest.er1 >conftest.err
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17877 ac_hi=$ac_mid; break
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17882 ac_lo=`expr $ac_mid + 1`
17883 if test $ac_lo -le $ac_mid; then
17887 ac_mid=`expr 2 '*' $ac_mid + 1`
17889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 $ac_includes_default
17905 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
17912 rm -f conftest.$ac_objext
17913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17914 (eval $ac_compile) 2>conftest.er1
17916 grep -v '^ *+' conftest.er1 >conftest.err
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } &&
17921 { ac_try='test -z "$ac_c_werror_flag"
17922 || test ! -s conftest.err'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; } &&
17928 { ac_try='test -s conftest.$ac_objext'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17936 cat >conftest.$ac_ext <<_ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h. */
17942 $ac_includes_default
17946 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
17953 rm -f conftest.$ac_objext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17955 (eval $ac_compile) 2>conftest.er1
17957 grep -v '^ *+' conftest.er1 >conftest.err
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -z "$ac_c_werror_flag"
17963 || test ! -s conftest.err'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest.$ac_objext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 ac_lo=$ac_mid; break
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 ac_hi=`expr '(' $ac_mid ')' - 1`
17981 if test $ac_mid -le $ac_hi; then
17985 ac_mid=`expr 2 '*' $ac_mid`
17987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17998 # Binary search between lo and hi bounds.
17999 while test "x$ac_lo" != "x$ac_hi"; do
18000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18001 cat >conftest.$ac_ext <<_ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 $ac_includes_default
18011 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
18018 rm -f conftest.$ac_objext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18020 (eval $ac_compile) 2>conftest.er1
18022 grep -v '^ *+' conftest.er1 >conftest.err
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -z "$ac_c_werror_flag"
18028 || test ! -s conftest.err'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; } &&
18034 { ac_try='test -s conftest.$ac_objext'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18042 echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18045 ac_lo=`expr '(' $ac_mid ')' + 1`
18047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18050 ?*) ac_cv_sizeof_long_int=$ac_lo;;
18051 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18052 See \`config.log' for more details." >&5
18053 echo "$as_me: error: cannot compute sizeof (long int), 77
18054 See \`config.log' for more details." >&2;}
18055 { (exit 1); exit 1; }; } ;;
18058 if test "$cross_compiling" = yes; then
18059 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18060 See \`config.log' for more details." >&5
18061 echo "$as_me: error: cannot run test program while cross compiling
18062 See \`config.log' for more details." >&2;}
18063 { (exit 1); exit 1; }; }
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 $ac_includes_default
18072 long longval () { return (long) (sizeof (long int)); }
18073 unsigned long ulongval () { return (long) (sizeof (long int)); }
18075 #include <stdlib.h>
18080 FILE *f = fopen ("conftest.val", "w");
18083 if (((long) (sizeof (long int))) < 0)
18085 long i = longval ();
18086 if (i != ((long) (sizeof (long int))))
18088 fprintf (f, "%ld\n", i);
18092 unsigned long i = ulongval ();
18093 if (i != ((long) (sizeof (long int))))
18095 fprintf (f, "%lu\n", i);
18097 exit (ferror (f) || fclose (f) != 0);
18103 rm -f conftest$ac_exeext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18105 (eval $ac_link) 2>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18114 ac_cv_sizeof_long_int=`cat conftest.val`
18116 echo "$as_me: program exited with status $ac_status" >&5
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18120 ( exit $ac_status )
18121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18122 See \`config.log' for more details." >&5
18123 echo "$as_me: error: cannot compute sizeof (long int), 77
18124 See \`config.log' for more details." >&2;}
18125 { (exit 1); exit 1; }; }
18127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18132 ac_cv_sizeof_long_int=0
18135 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18136 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18137 cat >>confdefs.h <<_ACEOF
18138 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18142 echo "$as_me:$LINENO: checking for long long int" >&5
18143 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18144 if test "${ac_cv_type_long_long_int+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 cat >conftest.$ac_ext <<_ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 $ac_includes_default
18157 if ((long long int *) 0)
18159 if (sizeof (long long int))
18165 rm -f conftest.$ac_objext
18166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18167 (eval $ac_compile) 2>conftest.er1
18169 grep -v '^ *+' conftest.er1 >conftest.err
18171 cat conftest.err >&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); } &&
18174 { ac_try='test -z "$ac_c_werror_flag"
18175 || test ! -s conftest.err'
18176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177 (eval $ac_try) 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest.$ac_objext'
18182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18183 (eval $ac_try) 2>&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; }; then
18187 ac_cv_type_long_long_int=yes
18189 echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 ac_cv_type_long_long_int=no
18194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18196 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18197 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18199 echo "$as_me:$LINENO: checking size of long long int" >&5
18200 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18201 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 if test "$ac_cv_type_long_long_int" = yes; then
18205 # The cast to unsigned long works around a bug in the HP C Compiler
18206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18208 # This bug is HP SR number 8606223364.
18209 if test "$cross_compiling" = yes; then
18210 # Depending upon the size, compute the lo and hi bounds.
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18217 $ac_includes_default
18221 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18228 rm -f conftest.$ac_objext
18229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18230 (eval $ac_compile) 2>conftest.er1
18232 grep -v '^ *+' conftest.er1 >conftest.err
18234 cat conftest.err >&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } &&
18237 { ac_try='test -z "$ac_c_werror_flag"
18238 || test ! -s conftest.err'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest.$ac_objext'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18252 cat >conftest.$ac_ext <<_ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 $ac_includes_default
18262 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18269 rm -f conftest.$ac_objext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18271 (eval $ac_compile) 2>conftest.er1
18273 grep -v '^ *+' conftest.er1 >conftest.err
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -z "$ac_c_werror_flag"
18279 || test ! -s conftest.err'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest.$ac_objext'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_hi=$ac_mid; break
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_lo=`expr $ac_mid + 1`
18297 if test $ac_lo -le $ac_mid; then
18301 ac_mid=`expr 2 '*' $ac_mid + 1`
18303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18309 cat >conftest.$ac_ext <<_ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 $ac_includes_default
18319 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18326 rm -f conftest.$ac_objext
18327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18328 (eval $ac_compile) 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_c_werror_flag"
18336 || test ! -s conftest.err'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; } &&
18342 { ac_try='test -s conftest.$ac_objext'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 $ac_includes_default
18360 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18367 rm -f conftest.$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>conftest.er1
18371 grep -v '^ *+' conftest.er1 >conftest.err
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag"
18377 || test ! -s conftest.err'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; } &&
18383 { ac_try='test -s conftest.$ac_objext'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18389 ac_lo=$ac_mid; break
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_hi=`expr '(' $ac_mid ')' - 1`
18395 if test $ac_mid -le $ac_hi; then
18399 ac_mid=`expr 2 '*' $ac_mid`
18401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18412 # Binary search between lo and hi bounds.
18413 while test "x$ac_lo" != "x$ac_hi"; do
18414 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 $ac_includes_default
18425 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18432 rm -f conftest.$ac_objext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18434 (eval $ac_compile) 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag"
18442 || test ! -s conftest.err'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; } &&
18448 { ac_try='test -s conftest.$ac_objext'
18449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450 (eval $ac_try) 2>&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; }; then
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ac_lo=`expr '(' $ac_mid ')' + 1`
18461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18464 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18466 See \`config.log' for more details." >&5
18467 echo "$as_me: error: cannot compute sizeof (long long int), 77
18468 See \`config.log' for more details." >&2;}
18469 { (exit 1); exit 1; }; } ;;
18472 if test "$cross_compiling" = yes; then
18473 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18474 See \`config.log' for more details." >&5
18475 echo "$as_me: error: cannot run test program while cross compiling
18476 See \`config.log' for more details." >&2;}
18477 { (exit 1); exit 1; }; }
18479 cat >conftest.$ac_ext <<_ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18485 $ac_includes_default
18486 long longval () { return (long) (sizeof (long long int)); }
18487 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18489 #include <stdlib.h>
18494 FILE *f = fopen ("conftest.val", "w");
18497 if (((long) (sizeof (long long int))) < 0)
18499 long i = longval ();
18500 if (i != ((long) (sizeof (long long int))))
18502 fprintf (f, "%ld\n", i);
18506 unsigned long i = ulongval ();
18507 if (i != ((long) (sizeof (long long int))))
18509 fprintf (f, "%lu\n", i);
18511 exit (ferror (f) || fclose (f) != 0);
18517 rm -f conftest$ac_exeext
18518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18519 (eval $ac_link) 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_sizeof_long_long_int=`cat conftest.val`
18530 echo "$as_me: program exited with status $ac_status" >&5
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 ( exit $ac_status )
18535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18536 See \`config.log' for more details." >&5
18537 echo "$as_me: error: cannot compute sizeof (long long int), 77
18538 See \`config.log' for more details." >&2;}
18539 { (exit 1); exit 1; }; }
18541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18546 ac_cv_sizeof_long_long_int=0
18549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18550 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18551 cat >>confdefs.h <<_ACEOF
18552 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18556 echo "$as_me:$LINENO: checking for int *" >&5
18557 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18558 if test "${ac_cv_type_int_p+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 $ac_includes_default
18573 if (sizeof (int *))
18579 rm -f conftest.$ac_objext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18581 (eval $ac_compile) 2>conftest.er1
18583 grep -v '^ *+' conftest.er1 >conftest.err
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
18588 { ac_try='test -z "$ac_c_werror_flag"
18589 || test ! -s conftest.err'
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest.$ac_objext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_type_int_p=yes
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 ac_cv_type_int_p=no
18608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18610 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18611 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18613 echo "$as_me:$LINENO: checking size of int *" >&5
18614 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18615 if test "${ac_cv_sizeof_int_p+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 if test "$ac_cv_type_int_p" = yes; then
18619 # The cast to unsigned long works around a bug in the HP C Compiler
18620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18622 # This bug is HP SR number 8606223364.
18623 if test "$cross_compiling" = yes; then
18624 # Depending upon the size, compute the lo and hi bounds.
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18631 $ac_includes_default
18635 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18642 rm -f conftest.$ac_objext
18643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18644 (eval $ac_compile) 2>conftest.er1
18646 grep -v '^ *+' conftest.er1 >conftest.err
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } &&
18651 { ac_try='test -z "$ac_c_werror_flag"
18652 || test ! -s conftest.err'
18653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; } &&
18658 { ac_try='test -s conftest.$ac_objext'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; }; then
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 $ac_includes_default
18676 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18683 rm -f conftest.$ac_objext
18684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18685 (eval $ac_compile) 2>conftest.er1
18687 grep -v '^ *+' conftest.er1 >conftest.err
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
18692 { ac_try='test -z "$ac_c_werror_flag"
18693 || test ! -s conftest.err'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } &&
18699 { ac_try='test -s conftest.$ac_objext'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 ac_hi=$ac_mid; break
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 ac_lo=`expr $ac_mid + 1`
18711 if test $ac_lo -le $ac_mid; then
18715 ac_mid=`expr 2 '*' $ac_mid + 1`
18717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18720 echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729 $ac_includes_default
18733 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18740 rm -f conftest.$ac_objext
18741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18742 (eval $ac_compile) 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag"
18750 || test ! -s conftest.err'
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest.$ac_objext'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 $ac_includes_default
18774 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18781 rm -f conftest.$ac_objext
18782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18783 (eval $ac_compile) 2>conftest.er1
18785 grep -v '^ *+' conftest.er1 >conftest.err
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
18790 { ac_try='test -z "$ac_c_werror_flag"
18791 || test ! -s conftest.err'
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; } &&
18797 { ac_try='test -s conftest.$ac_objext'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
18803 ac_lo=$ac_mid; break
18805 echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18808 ac_hi=`expr '(' $ac_mid ')' - 1`
18809 if test $ac_mid -le $ac_hi; then
18813 ac_mid=`expr 2 '*' $ac_mid`
18815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18826 # Binary search between lo and hi bounds.
18827 while test "x$ac_lo" != "x$ac_hi"; do
18828 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18839 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18846 rm -f conftest.$ac_objext
18847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18848 (eval $ac_compile) 2>conftest.er1
18850 grep -v '^ *+' conftest.er1 >conftest.err
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
18855 { ac_try='test -z "$ac_c_werror_flag"
18856 || test ! -s conftest.err'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest.$ac_objext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_lo=`expr '(' $ac_mid ')' + 1`
18875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18878 ?*) ac_cv_sizeof_int_p=$ac_lo;;
18879 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18880 See \`config.log' for more details." >&5
18881 echo "$as_me: error: cannot compute sizeof (int *), 77
18882 See \`config.log' for more details." >&2;}
18883 { (exit 1); exit 1; }; } ;;
18886 if test "$cross_compiling" = yes; then
18887 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18888 See \`config.log' for more details." >&5
18889 echo "$as_me: error: cannot run test program while cross compiling
18890 See \`config.log' for more details." >&2;}
18891 { (exit 1); exit 1; }; }
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 $ac_includes_default
18900 long longval () { return (long) (sizeof (int *)); }
18901 unsigned long ulongval () { return (long) (sizeof (int *)); }
18903 #include <stdlib.h>
18908 FILE *f = fopen ("conftest.val", "w");
18911 if (((long) (sizeof (int *))) < 0)
18913 long i = longval ();
18914 if (i != ((long) (sizeof (int *))))
18916 fprintf (f, "%ld\n", i);
18920 unsigned long i = ulongval ();
18921 if (i != ((long) (sizeof (int *))))
18923 fprintf (f, "%lu\n", i);
18925 exit (ferror (f) || fclose (f) != 0);
18931 rm -f conftest$ac_exeext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18933 (eval $ac_link) 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 ac_cv_sizeof_int_p=`cat conftest.val`
18944 echo "$as_me: program exited with status $ac_status" >&5
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 ( exit $ac_status )
18949 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18950 See \`config.log' for more details." >&5
18951 echo "$as_me: error: cannot compute sizeof (int *), 77
18952 See \`config.log' for more details." >&2;}
18953 { (exit 1); exit 1; }; }
18955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18960 ac_cv_sizeof_int_p=0
18963 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
18964 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
18965 cat >>confdefs.h <<_ACEOF
18966 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
18971 # Check for sys/types.h types
18972 echo "$as_me:$LINENO: checking for u_int type" >&5
18973 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
18974 if test "${ac_cv_have_u_int+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 cat >conftest.$ac_ext <<_ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 #include <sys/types.h>
18993 rm -f conftest.$ac_objext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18995 (eval $ac_compile) 2>conftest.er1
18997 grep -v '^ *+' conftest.er1 >conftest.err
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -z "$ac_c_werror_flag"
19003 || test ! -s conftest.err'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; } &&
19009 { ac_try='test -s conftest.$ac_objext'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 ac_cv_have_u_int="yes"
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_have_u_int="no"
19023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19026 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
19027 echo "${ECHO_T}$ac_cv_have_u_int" >&6
19028 if test "x$ac_cv_have_u_int" = "xyes" ; then
19029 cat >>confdefs.h <<\_ACEOF
19030 #define HAVE_U_INT 1
19036 echo "$as_me:$LINENO: checking for intmax_t type" >&5
19037 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
19038 if test "${ac_cv_have_intmax_t+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 cat >conftest.$ac_ext <<_ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 #include <sys/types.h>
19057 rm -f conftest.$ac_objext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19059 (eval $ac_compile) 2>conftest.er1
19061 grep -v '^ *+' conftest.er1 >conftest.err
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
19066 { ac_try='test -z "$ac_c_werror_flag"
19067 || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_have_intmax_t="yes"
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 #include <stdint.h>
19100 rm -f conftest.$ac_objext
19101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102 (eval $ac_compile) 2>conftest.er1
19104 grep -v '^ *+' conftest.er1 >conftest.err
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -z "$ac_c_werror_flag"
19110 || test ! -s conftest.err'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19122 ac_cv_have_intmax_t="yes"
19124 echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19127 ac_cv_have_intmax_t="no"
19130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19138 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19139 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19140 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_INTMAX_T 1
19149 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19150 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19151 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 #include <sys/types.h>
19165 u_intmax_t a; a = 1;
19170 rm -f conftest.$ac_objext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19172 (eval $ac_compile) 2>conftest.er1
19174 grep -v '^ *+' conftest.er1 >conftest.err
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_c_werror_flag"
19180 || test ! -s conftest.err'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest.$ac_objext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_have_u_intmax_t="yes"
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19198 cat >conftest.$ac_ext <<_ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19204 #include <stdint.h>
19208 u_intmax_t a; a = 1;
19213 rm -f conftest.$ac_objext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19215 (eval $ac_compile) 2>conftest.er1
19217 grep -v '^ *+' conftest.er1 >conftest.err
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_c_werror_flag"
19223 || test ! -s conftest.err'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 ac_cv_have_u_intmax_t="yes"
19237 echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19240 ac_cv_have_u_intmax_t="no"
19243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19251 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19252 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19253 cat >>confdefs.h <<\_ACEOF
19254 #define HAVE_U_INTMAX_T 1
19261 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19262 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19263 if test "${ac_cv_have_intxx_t+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 cat >conftest.$ac_ext <<_ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 #include <sys/types.h>
19277 int8_t a; int16_t b; int32_t c; a = b = c = 1;
19282 rm -f conftest.$ac_objext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19284 (eval $ac_compile) 2>conftest.er1
19286 grep -v '^ *+' conftest.er1 >conftest.err
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest.$ac_objext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_have_intxx_t="yes"
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_cv_have_intxx_t="no"
19312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19315 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19316 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19317 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19318 cat >>confdefs.h <<\_ACEOF
19319 #define HAVE_INTXX_T 1
19325 echo "$as_me:$LINENO: checking for int64_t type" >&5
19326 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19327 if test "${ac_cv_have_int64_t+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19337 #include <sys/types.h>
19346 rm -f conftest.$ac_objext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19348 (eval $ac_compile) 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 ac_cv_have_int64_t="yes"
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 ac_cv_have_int64_t="no"
19376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19379 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19380 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19381 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19382 cat >>confdefs.h <<\_ACEOF
19383 #define HAVE_INT64_T 1
19389 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19390 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19391 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 #include <sys/types.h>
19405 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19410 rm -f conftest.$ac_objext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19412 (eval $ac_compile) 2>conftest.er1
19414 grep -v '^ *+' conftest.er1 >conftest.err
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
19419 { ac_try='test -z "$ac_c_werror_flag"
19420 || test ! -s conftest.err'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest.$ac_objext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_have_u_intxx_t="yes"
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_have_u_intxx_t="no"
19440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19443 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19444 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19445 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19446 cat >>confdefs.h <<\_ACEOF
19447 #define HAVE_U_INTXX_T 1
19453 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19454 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19455 if test "${ac_cv_have_u_int64_t+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 #include <sys/types.h>
19469 u_int64_t a; a = 1;
19474 rm -f conftest.$ac_objext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476 (eval $ac_compile) 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest.$ac_objext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 ac_cv_have_u_int64_t="yes"
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 ac_cv_have_u_int64_t="no"
19504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19507 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19508 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19509 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19510 cat >>confdefs.h <<\_ACEOF
19511 #define HAVE_U_INT64_T 1
19517 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19518 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19520 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19521 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19522 cat >conftest.$ac_ext <<_ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19528 #include <sys/bitypes.h>
19532 int8_t a; int16_t b; int32_t c;
19533 u_int8_t e; u_int16_t f; u_int32_t g;
19534 a = b = c = e = f = g = 1;
19539 rm -f conftest.$ac_objext
19540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19541 (eval $ac_compile) 2>conftest.er1
19543 grep -v '^ *+' conftest.er1 >conftest.err
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag"
19549 || test ! -s conftest.err'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 cat >>confdefs.h <<\_ACEOF
19562 #define HAVE_U_INTXX_T 1
19565 cat >>confdefs.h <<\_ACEOF
19566 #define HAVE_INTXX_T 1
19569 cat >>confdefs.h <<\_ACEOF
19570 #define HAVE_SYS_BITYPES_H 1
19573 echo "$as_me:$LINENO: result: yes" >&5
19574 echo "${ECHO_T}yes" >&6
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 echo "$as_me:$LINENO: result: no" >&5
19580 echo "${ECHO_T}no" >&6
19583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19586 if test -z "$have_u_intxx_t" ; then
19587 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19588 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19589 if test "${ac_cv_have_uintxx_t+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 #include <sys/types.h>
19603 uint8_t a; uint16_t b;
19604 uint32_t c; a = b = c = 1;
19609 rm -f conftest.$ac_objext
19610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19611 (eval $ac_compile) 2>conftest.er1
19613 grep -v '^ *+' conftest.er1 >conftest.err
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
19618 { ac_try='test -z "$ac_c_werror_flag"
19619 || test ! -s conftest.err'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; } &&
19625 { ac_try='test -s conftest.$ac_objext'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_cv_have_uintxx_t="yes"
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_cv_have_uintxx_t="no"
19639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19643 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19644 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19645 cat >>confdefs.h <<\_ACEOF
19646 #define HAVE_UINTXX_T 1
19652 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19653 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19655 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19656 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19657 cat >conftest.$ac_ext <<_ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 #include <sys/bitypes.h>
19667 int64_t a; u_int64_t b;
19673 rm -f conftest.$ac_objext
19674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19675 (eval $ac_compile) 2>conftest.er1
19677 grep -v '^ *+' conftest.er1 >conftest.err
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
19682 { ac_try='test -z "$ac_c_werror_flag"
19683 || test ! -s conftest.err'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_U_INT64_T 1
19699 cat >>confdefs.h <<\_ACEOF
19700 #define HAVE_INT64_T 1
19703 echo "$as_me:$LINENO: result: yes" >&5
19704 echo "${ECHO_T}yes" >&6
19706 echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19709 echo "$as_me:$LINENO: result: no" >&5
19710 echo "${ECHO_T}no" >&6
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 if (test -z "$have_uintxx_t" && \
19717 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19719 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19720 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19721 cat >conftest.$ac_ext <<_ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #include <sys/bitypes.h>
19731 uint8_t a; uint16_t b;
19732 uint32_t c; a = b = c = 1;
19737 rm -f conftest.$ac_objext
19738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19739 (eval $ac_compile) 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } &&
19746 { ac_try='test -z "$ac_c_werror_flag"
19747 || test ! -s conftest.err'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 cat >>confdefs.h <<\_ACEOF
19760 #define HAVE_UINTXX_T 1
19763 echo "$as_me:$LINENO: result: yes" >&5
19764 echo "${ECHO_T}yes" >&6
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 echo "$as_me:$LINENO: result: no" >&5
19770 echo "${ECHO_T}no" >&6
19773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19810 echo "$as_me:$LINENO: checking for $ac_func" >&5
19811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19812 if eval "test \"\${$as_ac_var+set}\" = set"; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 cat >conftest.$ac_ext <<_ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19823 #define $ac_func innocuous_$ac_func
19825 /* System header to define __stub macros and hopefully few prototypes,
19826 which can conflict with char $ac_func (); below.
19827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19828 <limits.h> exists even on freestanding compilers. */
19831 # include <limits.h>
19833 # include <assert.h>
19838 /* Override any gcc2 internal prototype to avoid an error. */
19843 /* We use char because int might match the return type of a gcc2
19844 builtin and then its argument prototype would still apply. */
19846 /* The GNU C library defines this for functions which it implements
19847 to always fail with ENOSYS. Some functions are actually named
19848 something starting with __ and the normal name is an alias. */
19849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19852 char (*f) () = $ac_func;
19861 return f != $ac_func;
19866 rm -f conftest.$ac_objext conftest$ac_exeext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19868 (eval $ac_link) 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try='test -z "$ac_c_werror_flag"
19876 || test ! -s conftest.err'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest$ac_exeext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 eval "$as_ac_var=yes"
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 eval "$as_ac_var=no"
19895 rm -f conftest.err conftest.$ac_objext \
19896 conftest$ac_exeext conftest.$ac_ext
19898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19900 if test `eval echo '${'$as_ac_var'}'` = yes; then
19901 cat >>confdefs.h <<_ACEOF
19902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19906 echo 'configure: cannot find needed function.'; exit 1
19913 for ac_func in fchdir
19915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19916 echo "$as_me:$LINENO: checking for $ac_func" >&5
19917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19918 if eval "test \"\${$as_ac_var+set}\" = set"; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19929 #define $ac_func innocuous_$ac_func
19931 /* System header to define __stub macros and hopefully few prototypes,
19932 which can conflict with char $ac_func (); below.
19933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19934 <limits.h> exists even on freestanding compilers. */
19937 # include <limits.h>
19939 # include <assert.h>
19944 /* Override any gcc2 internal prototype to avoid an error. */
19949 /* We use char because int might match the return type of a gcc2
19950 builtin and then its argument prototype would still apply. */
19952 /* The GNU C library defines this for functions which it implements
19953 to always fail with ENOSYS. Some functions are actually named
19954 something starting with __ and the normal name is an alias. */
19955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19958 char (*f) () = $ac_func;
19967 return f != $ac_func;
19972 rm -f conftest.$ac_objext conftest$ac_exeext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19974 (eval $ac_link) 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -z "$ac_c_werror_flag"
19982 || test ! -s conftest.err'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; } &&
19988 { ac_try='test -s conftest$ac_exeext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 eval "$as_ac_var=yes"
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 eval "$as_ac_var=no"
20001 rm -f conftest.err conftest.$ac_objext \
20002 conftest$ac_exeext conftest.$ac_ext
20004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20006 if test `eval echo '${'$as_ac_var'}'` = yes; then
20007 cat >>confdefs.h <<_ACEOF
20008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20010 cat >>confdefs.h <<\_ACEOF
20011 #define HAVE_FCHDIR 1
20018 for ac_func in strtoll
20020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20021 echo "$as_me:$LINENO: checking for $ac_func" >&5
20022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20023 if eval "test \"\${$as_ac_var+set}\" = set"; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20034 #define $ac_func innocuous_$ac_func
20036 /* System header to define __stub macros and hopefully few prototypes,
20037 which can conflict with char $ac_func (); below.
20038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20039 <limits.h> exists even on freestanding compilers. */
20042 # include <limits.h>
20044 # include <assert.h>
20049 /* Override any gcc2 internal prototype to avoid an error. */
20054 /* We use char because int might match the return type of a gcc2
20055 builtin and then its argument prototype would still apply. */
20057 /* The GNU C library defines this for functions which it implements
20058 to always fail with ENOSYS. Some functions are actually named
20059 something starting with __ and the normal name is an alias. */
20060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20063 char (*f) () = $ac_func;
20072 return f != $ac_func;
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20079 (eval $ac_link) 2>conftest.er1
20081 grep -v '^ *+' conftest.er1 >conftest.err
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
20086 { ac_try='test -z "$ac_c_werror_flag"
20087 || test ! -s conftest.err'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try='test -s conftest$ac_exeext'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 eval "$as_ac_var=yes"
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 eval "$as_ac_var=no"
20106 rm -f conftest.err conftest.$ac_objext \
20107 conftest$ac_exeext conftest.$ac_ext
20109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20111 if test `eval echo '${'$as_ac_var'}'` = yes; then
20112 cat >>confdefs.h <<_ACEOF
20113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20115 cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_STRTOLL 1
20124 for ac_func in chflags
20126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20127 echo "$as_me:$LINENO: checking for $ac_func" >&5
20128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20129 if eval "test \"\${$as_ac_var+set}\" = set"; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 cat >conftest.$ac_ext <<_ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20140 #define $ac_func innocuous_$ac_func
20142 /* System header to define __stub macros and hopefully few prototypes,
20143 which can conflict with char $ac_func (); below.
20144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20145 <limits.h> exists even on freestanding compilers. */
20148 # include <limits.h>
20150 # include <assert.h>
20155 /* Override any gcc2 internal prototype to avoid an error. */
20160 /* We use char because int might match the return type of a gcc2
20161 builtin and then its argument prototype would still apply. */
20163 /* The GNU C library defines this for functions which it implements
20164 to always fail with ENOSYS. Some functions are actually named
20165 something starting with __ and the normal name is an alias. */
20166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20169 char (*f) () = $ac_func;
20178 return f != $ac_func;
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185 (eval $ac_link) 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag"
20193 || test ! -s conftest.err'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest$ac_exeext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 eval "$as_ac_var=yes"
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 eval "$as_ac_var=no"
20212 rm -f conftest.err conftest.$ac_objext \
20213 conftest$ac_exeext conftest.$ac_ext
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20217 if test `eval echo '${'$as_ac_var'}'` = yes; then
20218 cat >>confdefs.h <<_ACEOF
20219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20230 for ac_func in snprintf vsnprintf gethostid fseeko
20232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20233 echo "$as_me:$LINENO: checking for $ac_func" >&5
20234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20235 if eval "test \"\${$as_ac_var+set}\" = set"; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20246 #define $ac_func innocuous_$ac_func
20248 /* System header to define __stub macros and hopefully few prototypes,
20249 which can conflict with char $ac_func (); below.
20250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20251 <limits.h> exists even on freestanding compilers. */
20254 # include <limits.h>
20256 # include <assert.h>
20261 /* Override any gcc2 internal prototype to avoid an error. */
20266 /* We use char because int might match the return type of a gcc2
20267 builtin and then its argument prototype would still apply. */
20269 /* The GNU C library defines this for functions which it implements
20270 to always fail with ENOSYS. Some functions are actually named
20271 something starting with __ and the normal name is an alias. */
20272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20275 char (*f) () = $ac_func;
20284 return f != $ac_func;
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20291 (eval $ac_link) 2>conftest.er1
20293 grep -v '^ *+' conftest.er1 >conftest.err
20295 cat conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
20298 { ac_try='test -z "$ac_c_werror_flag"
20299 || test ! -s conftest.err'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest$ac_exeext'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 eval "$as_ac_var=yes"
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 eval "$as_ac_var=no"
20318 rm -f conftest.err conftest.$ac_objext \
20319 conftest$ac_exeext conftest.$ac_ext
20321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20323 if test `eval echo '${'$as_ac_var'}'` = yes; then
20324 cat >>confdefs.h <<_ACEOF
20325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20336 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20339 echo "$as_me:$LINENO: checking for $ac_func" >&5
20340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20341 if eval "test \"\${$as_ac_var+set}\" = set"; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20352 #define $ac_func innocuous_$ac_func
20354 /* System header to define __stub macros and hopefully few prototypes,
20355 which can conflict with char $ac_func (); below.
20356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20357 <limits.h> exists even on freestanding compilers. */
20360 # include <limits.h>
20362 # include <assert.h>
20367 /* Override any gcc2 internal prototype to avoid an error. */
20372 /* We use char because int might match the return type of a gcc2
20373 builtin and then its argument prototype would still apply. */
20375 /* The GNU C library defines this for functions which it implements
20376 to always fail with ENOSYS. Some functions are actually named
20377 something starting with __ and the normal name is an alias. */
20378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20381 char (*f) () = $ac_func;
20390 return f != $ac_func;
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20397 (eval $ac_link) 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag"
20405 || test ! -s conftest.err'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } &&
20411 { ac_try='test -s conftest$ac_exeext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 eval "$as_ac_var=yes"
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 eval "$as_ac_var=no"
20424 rm -f conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20429 if test `eval echo '${'$as_ac_var'}'` = yes; then
20430 cat >>confdefs.h <<_ACEOF
20431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20438 # If resolver functions are not in libc check for -lnsl or -lresolv.
20439 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20440 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20441 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20452 #define gethostbyname_r innocuous_gethostbyname_r
20454 /* System header to define __stub macros and hopefully few prototypes,
20455 which can conflict with char gethostbyname_r (); below.
20456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20457 <limits.h> exists even on freestanding compilers. */
20460 # include <limits.h>
20462 # include <assert.h>
20465 #undef gethostbyname_r
20467 /* Override any gcc2 internal prototype to avoid an error. */
20472 /* We use char because int might match the return type of a gcc2
20473 builtin and then its argument prototype would still apply. */
20474 char gethostbyname_r ();
20475 /* The GNU C library defines this for functions which it implements
20476 to always fail with ENOSYS. Some functions are actually named
20477 something starting with __ and the normal name is an alias. */
20478 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20481 char (*f) () = gethostbyname_r;
20490 return f != gethostbyname_r;
20495 rm -f conftest.$ac_objext conftest$ac_exeext
20496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20497 (eval $ac_link) 2>conftest.er1
20499 grep -v '^ *+' conftest.er1 >conftest.err
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
20504 { ac_try='test -z "$ac_c_werror_flag"
20505 || test ! -s conftest.err'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; } &&
20511 { ac_try='test -s conftest$ac_exeext'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_func_gethostbyname_r=yes
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ac_cv_func_gethostbyname_r=no
20524 rm -f conftest.err conftest.$ac_objext \
20525 conftest$ac_exeext conftest.$ac_ext
20527 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20528 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20529 if test $ac_cv_func_gethostbyname_r = yes; then
20530 echo "$as_me:$LINENO: result: using libc's resolver" >&5
20531 echo "${ECHO_T}using libc's resolver" >&6
20534 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20535 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20536 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 ac_check_lib_save_LIBS=$LIBS
20541 cat >conftest.$ac_ext <<_ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20548 /* Override any gcc2 internal prototype to avoid an error. */
20552 /* We use char because int might match the return type of a gcc2
20553 builtin and then its argument prototype would still apply. */
20554 char gethostbyname_r ();
20558 gethostbyname_r ();
20563 rm -f conftest.$ac_objext conftest$ac_exeext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20565 (eval $ac_link) 2>conftest.er1
20567 grep -v '^ *+' conftest.er1 >conftest.err
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
20572 { ac_try='test -z "$ac_c_werror_flag"
20573 || test ! -s conftest.err'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest$ac_exeext'
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }; then
20585 ac_cv_lib_nsl_gethostbyname_r=yes
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ac_cv_lib_nsl_gethostbyname_r=no
20592 rm -f conftest.err conftest.$ac_objext \
20593 conftest$ac_exeext conftest.$ac_ext
20594 LIBS=$ac_check_lib_save_LIBS
20596 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20597 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20598 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20599 cat >>confdefs.h <<_ACEOF
20600 #define HAVE_LIBNSL 1
20608 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20609 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20610 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 ac_check_lib_save_LIBS=$LIBS
20614 LIBS="-lresolv $LIBS"
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any gcc2 internal prototype to avoid an error. */
20626 /* We use char because int might match the return type of a gcc2
20627 builtin and then its argument prototype would still apply. */
20628 char gethostbyname_r ();
20632 gethostbyname_r ();
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639 (eval $ac_link) 2>conftest.er1
20641 grep -v '^ *+' conftest.er1 >conftest.err
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
20646 { ac_try='test -z "$ac_c_werror_flag"
20647 || test ! -s conftest.err'
20648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649 (eval $ac_try) 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; } &&
20653 { ac_try='test -s conftest$ac_exeext'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; }; then
20659 ac_cv_lib_resolv_gethostbyname_r=yes
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ac_cv_lib_resolv_gethostbyname_r=no
20666 rm -f conftest.err conftest.$ac_objext \
20667 conftest$ac_exeext conftest.$ac_ext
20668 LIBS=$ac_check_lib_save_LIBS
20670 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20671 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20672 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20673 cat >>confdefs.h <<_ACEOF
20674 #define HAVE_LIBRESOLV 1
20677 LIBS="-lresolv $LIBS"
20687 for ac_func in inet_pton
20689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20690 echo "$as_me:$LINENO: checking for $ac_func" >&5
20691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20692 if eval "test \"\${$as_ac_var+set}\" = set"; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 cat >conftest.$ac_ext <<_ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20703 #define $ac_func innocuous_$ac_func
20705 /* System header to define __stub macros and hopefully few prototypes,
20706 which can conflict with char $ac_func (); below.
20707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20708 <limits.h> exists even on freestanding compilers. */
20711 # include <limits.h>
20713 # include <assert.h>
20718 /* Override any gcc2 internal prototype to avoid an error. */
20723 /* We use char because int might match the return type of a gcc2
20724 builtin and then its argument prototype would still apply. */
20726 /* The GNU C library defines this for functions which it implements
20727 to always fail with ENOSYS. Some functions are actually named
20728 something starting with __ and the normal name is an alias. */
20729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20732 char (*f) () = $ac_func;
20741 return f != $ac_func;
20746 rm -f conftest.$ac_objext conftest$ac_exeext
20747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20748 (eval $ac_link) 2>conftest.er1
20750 grep -v '^ *+' conftest.er1 >conftest.err
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } &&
20755 { ac_try='test -z "$ac_c_werror_flag"
20756 || test ! -s conftest.err'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest$ac_exeext'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 eval "$as_ac_var=yes"
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 eval "$as_ac_var=no"
20775 rm -f conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20780 if test `eval echo '${'$as_ac_var'}'` = yes; then
20781 cat >>confdefs.h <<_ACEOF
20782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20784 cat >>confdefs.h <<\_ACEOF
20785 #define HAVE_INET_PTON 1
20792 for ac_func in inet_ntop
20794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20795 echo "$as_me:$LINENO: checking for $ac_func" >&5
20796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20797 if eval "test \"\${$as_ac_var+set}\" = set"; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20800 cat >conftest.$ac_ext <<_ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20808 #define $ac_func innocuous_$ac_func
20810 /* System header to define __stub macros and hopefully few prototypes,
20811 which can conflict with char $ac_func (); below.
20812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20813 <limits.h> exists even on freestanding compilers. */
20816 # include <limits.h>
20818 # include <assert.h>
20823 /* Override any gcc2 internal prototype to avoid an error. */
20828 /* We use char because int might match the return type of a gcc2
20829 builtin and then its argument prototype would still apply. */
20831 /* The GNU C library defines this for functions which it implements
20832 to always fail with ENOSYS. Some functions are actually named
20833 something starting with __ and the normal name is an alias. */
20834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20837 char (*f) () = $ac_func;
20846 return f != $ac_func;
20851 rm -f conftest.$ac_objext conftest$ac_exeext
20852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20853 (eval $ac_link) 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
20860 { ac_try='test -z "$ac_c_werror_flag"
20861 || test ! -s conftest.err'
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; } &&
20867 { ac_try='test -s conftest$ac_exeext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 eval "$as_ac_var=yes"
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 eval "$as_ac_var=no"
20880 rm -f conftest.err conftest.$ac_objext \
20881 conftest$ac_exeext conftest.$ac_ext
20883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20885 if test `eval echo '${'$as_ac_var'}'` = yes; then
20886 cat >>confdefs.h <<_ACEOF
20887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20889 cat >>confdefs.h <<\_ACEOF
20890 #define HAVE_INET_NTOP 1
20897 for ac_func in gethostbyname2
20899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20900 echo "$as_me:$LINENO: checking for $ac_func" >&5
20901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20902 if eval "test \"\${$as_ac_var+set}\" = set"; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20913 #define $ac_func innocuous_$ac_func
20915 /* System header to define __stub macros and hopefully few prototypes,
20916 which can conflict with char $ac_func (); below.
20917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20918 <limits.h> exists even on freestanding compilers. */
20921 # include <limits.h>
20923 # include <assert.h>
20928 /* Override any gcc2 internal prototype to avoid an error. */
20933 /* We use char because int might match the return type of a gcc2
20934 builtin and then its argument prototype would still apply. */
20936 /* The GNU C library defines this for functions which it implements
20937 to always fail with ENOSYS. Some functions are actually named
20938 something starting with __ and the normal name is an alias. */
20939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20942 char (*f) () = $ac_func;
20951 return f != $ac_func;
20956 rm -f conftest.$ac_objext conftest$ac_exeext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958 (eval $ac_link) 2>conftest.er1
20960 grep -v '^ *+' conftest.er1 >conftest.err
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } &&
20965 { ac_try='test -z "$ac_c_werror_flag"
20966 || test ! -s conftest.err'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; } &&
20972 { ac_try='test -s conftest$ac_exeext'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
20978 eval "$as_ac_var=yes"
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 eval "$as_ac_var=no"
20985 rm -f conftest.err conftest.$ac_objext \
20986 conftest$ac_exeext conftest.$ac_ext
20988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20990 if test `eval echo '${'$as_ac_var'}'` = yes; then
20991 cat >>confdefs.h <<_ACEOF
20992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20994 cat >>confdefs.h <<\_ACEOF
20995 #define HAVE_GETHOSTBYNAME2 1
21002 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
21003 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
21004 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 cat >conftest.$ac_ext <<_ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h. */
21013 #include <sys/socket.h>
21017 struct sockaddr s; s.sa_len;
21022 rm -f conftest.$ac_objext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024 (eval $ac_compile) 2>conftest.er1
21026 grep -v '^ *+' conftest.er1 >conftest.err
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
21031 { ac_try='test -z "$ac_c_werror_flag"
21032 || test ! -s conftest.err'
21033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; } &&
21038 { ac_try='test -s conftest.$ac_objext'
21039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040 (eval $ac_try) 2>&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; }; then
21044 ac_cv_struct_sockaddr_sa_len=yes
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 ac_cv_struct_sockaddr_sa_len=no
21051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21053 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21054 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21056 if test $ac_cv_struct_sockaddr_sa_len = yes; then
21058 cat >>confdefs.h <<\_ACEOF
21059 #define HAVE_SA_LEN 1
21065 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21066 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21067 if test "${ac_cv_ipv6_support+set}" = set; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <sys/types.h>
21077 #include <sys/socket.h>
21078 #include <netinet/in.h>
21082 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21088 rm -f conftest.$ac_objext conftest$ac_exeext
21089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21090 (eval $ac_link) 2>conftest.er1
21092 grep -v '^ *+' conftest.er1 >conftest.err
21094 cat conftest.err >&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } &&
21097 { ac_try='test -z "$ac_c_werror_flag"
21098 || test ! -s conftest.err'
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; } &&
21104 { ac_try='test -s conftest$ac_exeext'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ac_cv_ipv6_support=yes
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 ac_cv_ipv6_support=no
21117 rm -f conftest.err conftest.$ac_objext \
21118 conftest$ac_exeext conftest.$ac_ext
21120 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21121 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21123 if test "$ac_cv_ipv6_support" = yes; then
21125 cat >>confdefs.h <<\_ACEOF
21126 #define HAVE_IPV6 1
21134 for ac_func in strftime
21136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21137 echo "$as_me:$LINENO: checking for $ac_func" >&5
21138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21139 if eval "test \"\${$as_ac_var+set}\" = set"; then
21140 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21150 #define $ac_func innocuous_$ac_func
21152 /* System header to define __stub macros and hopefully few prototypes,
21153 which can conflict with char $ac_func (); below.
21154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21155 <limits.h> exists even on freestanding compilers. */
21158 # include <limits.h>
21160 # include <assert.h>
21165 /* Override any gcc2 internal prototype to avoid an error. */
21170 /* We use char because int might match the return type of a gcc2
21171 builtin and then its argument prototype would still apply. */
21173 /* The GNU C library defines this for functions which it implements
21174 to always fail with ENOSYS. Some functions are actually named
21175 something starting with __ and the normal name is an alias. */
21176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21179 char (*f) () = $ac_func;
21188 return f != $ac_func;
21193 rm -f conftest.$ac_objext conftest$ac_exeext
21194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21195 (eval $ac_link) 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } &&
21202 { ac_try='test -z "$ac_c_werror_flag"
21203 || test ! -s conftest.err'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; } &&
21209 { ac_try='test -s conftest$ac_exeext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 eval "$as_ac_var=yes"
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 eval "$as_ac_var=no"
21222 rm -f conftest.err conftest.$ac_objext \
21223 conftest$ac_exeext conftest.$ac_ext
21225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21227 if test `eval echo '${'$as_ac_var'}'` = yes; then
21228 cat >>confdefs.h <<_ACEOF
21229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21233 # strftime is in -lintl on SCO UNIX.
21234 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21235 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21236 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21237 echo $ECHO_N "(cached) $ECHO_C" >&6
21239 ac_check_lib_save_LIBS=$LIBS
21240 LIBS="-lintl $LIBS"
21241 cat >conftest.$ac_ext <<_ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21248 /* Override any gcc2 internal prototype to avoid an error. */
21252 /* We use char because int might match the return type of a gcc2
21253 builtin and then its argument prototype would still apply. */
21263 rm -f conftest.$ac_objext conftest$ac_exeext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21265 (eval $ac_link) 2>conftest.er1
21267 grep -v '^ *+' conftest.er1 >conftest.err
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } &&
21272 { ac_try='test -z "$ac_c_werror_flag"
21273 || test ! -s conftest.err'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest$ac_exeext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_cv_lib_intl_strftime=yes
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21290 ac_cv_lib_intl_strftime=no
21292 rm -f conftest.err conftest.$ac_objext \
21293 conftest$ac_exeext conftest.$ac_ext
21294 LIBS=$ac_check_lib_save_LIBS
21296 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21297 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21298 if test $ac_cv_lib_intl_strftime = yes; then
21299 cat >>confdefs.h <<\_ACEOF
21300 #define HAVE_STRFTIME 1
21303 LIBS="-lintl $LIBS"
21310 for ac_func in vprintf
21312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21313 echo "$as_me:$LINENO: checking for $ac_func" >&5
21314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21315 if eval "test \"\${$as_ac_var+set}\" = set"; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 cat >conftest.$ac_ext <<_ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21326 #define $ac_func innocuous_$ac_func
21328 /* System header to define __stub macros and hopefully few prototypes,
21329 which can conflict with char $ac_func (); below.
21330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21331 <limits.h> exists even on freestanding compilers. */
21334 # include <limits.h>
21336 # include <assert.h>
21341 /* Override any gcc2 internal prototype to avoid an error. */
21346 /* We use char because int might match the return type of a gcc2
21347 builtin and then its argument prototype would still apply. */
21349 /* The GNU C library defines this for functions which it implements
21350 to always fail with ENOSYS. Some functions are actually named
21351 something starting with __ and the normal name is an alias. */
21352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21355 char (*f) () = $ac_func;
21364 return f != $ac_func;
21369 rm -f conftest.$ac_objext conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371 (eval $ac_link) 2>conftest.er1
21373 grep -v '^ *+' conftest.er1 >conftest.err
21375 cat conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } &&
21378 { ac_try='test -z "$ac_c_werror_flag"
21379 || test ! -s conftest.err'
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; } &&
21385 { ac_try='test -s conftest$ac_exeext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 eval "$as_ac_var=yes"
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 eval "$as_ac_var=no"
21398 rm -f conftest.err conftest.$ac_objext \
21399 conftest$ac_exeext conftest.$ac_ext
21401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21403 if test `eval echo '${'$as_ac_var'}'` = yes; then
21404 cat >>confdefs.h <<_ACEOF
21405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21408 echo "$as_me:$LINENO: checking for _doprnt" >&5
21409 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21410 if test "${ac_cv_func__doprnt+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 cat >conftest.$ac_ext <<_ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21419 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21421 #define _doprnt innocuous__doprnt
21423 /* System header to define __stub macros and hopefully few prototypes,
21424 which can conflict with char _doprnt (); below.
21425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21426 <limits.h> exists even on freestanding compilers. */
21429 # include <limits.h>
21431 # include <assert.h>
21436 /* Override any gcc2 internal prototype to avoid an error. */
21441 /* We use char because int might match the return type of a gcc2
21442 builtin and then its argument prototype would still apply. */
21444 /* The GNU C library defines this for functions which it implements
21445 to always fail with ENOSYS. Some functions are actually named
21446 something starting with __ and the normal name is an alias. */
21447 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21450 char (*f) () = _doprnt;
21459 return f != _doprnt;
21464 rm -f conftest.$ac_objext conftest$ac_exeext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21466 (eval $ac_link) 2>conftest.er1
21468 grep -v '^ *+' conftest.er1 >conftest.err
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest$ac_exeext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 ac_cv_func__doprnt=yes
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_cv_func__doprnt=no
21493 rm -f conftest.err conftest.$ac_objext \
21494 conftest$ac_exeext conftest.$ac_ext
21496 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21497 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21498 if test $ac_cv_func__doprnt = yes; then
21500 cat >>confdefs.h <<\_ACEOF
21501 #define HAVE_DOPRNT 1
21510 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21511 # for constant arguments. Useless!
21512 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21513 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21514 if test "${ac_cv_working_alloca_h+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 cat >conftest.$ac_ext <<_ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 #include <alloca.h>
21527 char *p = (char *) alloca (2 * sizeof (int));
21532 rm -f conftest.$ac_objext conftest$ac_exeext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21534 (eval $ac_link) 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
21541 { ac_try='test -z "$ac_c_werror_flag"
21542 || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest$ac_exeext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_working_alloca_h=yes
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ac_cv_working_alloca_h=no
21561 rm -f conftest.err conftest.$ac_objext \
21562 conftest$ac_exeext conftest.$ac_ext
21564 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21565 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21566 if test $ac_cv_working_alloca_h = yes; then
21568 cat >>confdefs.h <<\_ACEOF
21569 #define HAVE_ALLOCA_H 1
21574 echo "$as_me:$LINENO: checking for alloca" >&5
21575 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21576 if test "${ac_cv_func_alloca_works+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21586 # define alloca __builtin_alloca
21589 # include <malloc.h>
21590 # define alloca _alloca
21593 # include <alloca.h>
21598 # ifndef alloca /* predefined by HP cc +Olibcalls */
21609 char *p = (char *) alloca (1);
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21616 (eval $ac_link) 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } &&
21623 { ac_try='test -z "$ac_c_werror_flag"
21624 || test ! -s conftest.err'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; } &&
21630 { ac_try='test -s conftest$ac_exeext'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 ac_cv_func_alloca_works=yes
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 ac_cv_func_alloca_works=no
21643 rm -f conftest.err conftest.$ac_objext \
21644 conftest$ac_exeext conftest.$ac_ext
21646 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21647 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21649 if test $ac_cv_func_alloca_works = yes; then
21651 cat >>confdefs.h <<\_ACEOF
21652 #define HAVE_ALLOCA 1
21656 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21657 # that cause trouble. Some versions do not even contain alloca or
21658 # contain a buggy version. If you still want to use their alloca,
21659 # use ar to extract alloca.o from them instead of compiling alloca.c.
21661 ALLOCA=alloca.$ac_objext
21663 cat >>confdefs.h <<\_ACEOF
21668 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21669 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21670 if test "${ac_cv_os_cray+set}" = set; then
21671 echo $ECHO_N "(cached) $ECHO_C" >&6
21673 cat >conftest.$ac_ext <<_ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h. */
21679 #if defined(CRAY) && ! defined(CRAY2)
21686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21687 $EGREP "webecray" >/dev/null 2>&1; then
21695 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21696 echo "${ECHO_T}$ac_cv_os_cray" >&6
21697 if test $ac_cv_os_cray = yes; then
21698 for ac_func in _getb67 GETB67 getb67; do
21699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21700 echo "$as_me:$LINENO: checking for $ac_func" >&5
21701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21702 if eval "test \"\${$as_ac_var+set}\" = set"; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21713 #define $ac_func innocuous_$ac_func
21715 /* System header to define __stub macros and hopefully few prototypes,
21716 which can conflict with char $ac_func (); below.
21717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21718 <limits.h> exists even on freestanding compilers. */
21721 # include <limits.h>
21723 # include <assert.h>
21728 /* Override any gcc2 internal prototype to avoid an error. */
21733 /* We use char because int might match the return type of a gcc2
21734 builtin and then its argument prototype would still apply. */
21736 /* The GNU C library defines this for functions which it implements
21737 to always fail with ENOSYS. Some functions are actually named
21738 something starting with __ and the normal name is an alias. */
21739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21742 char (*f) () = $ac_func;
21751 return f != $ac_func;
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21758 (eval $ac_link) 2>conftest.er1
21760 grep -v '^ *+' conftest.er1 >conftest.err
21762 cat conftest.err >&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } &&
21765 { ac_try='test -z "$ac_c_werror_flag"
21766 || test ! -s conftest.err'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; } &&
21772 { ac_try='test -s conftest$ac_exeext'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }; then
21778 eval "$as_ac_var=yes"
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 eval "$as_ac_var=no"
21785 rm -f conftest.err conftest.$ac_objext \
21786 conftest$ac_exeext conftest.$ac_ext
21788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21790 if test `eval echo '${'$as_ac_var'}'` = yes; then
21792 cat >>confdefs.h <<_ACEOF
21793 #define CRAY_STACKSEG_END $ac_func
21802 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21803 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21804 if test "${ac_cv_c_stack_direction+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 if test "$cross_compiling" = yes; then
21808 ac_cv_c_stack_direction=0
21810 cat >conftest.$ac_ext <<_ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h. */
21817 find_stack_direction ()
21819 static char *addr = 0;
21824 return find_stack_direction ();
21827 return (&dummy > addr) ? 1 : -1;
21833 exit (find_stack_direction () < 0);
21836 rm -f conftest$ac_exeext
21837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21838 (eval $ac_link) 2>&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843 (eval $ac_try) 2>&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; }; then
21847 ac_cv_c_stack_direction=1
21849 echo "$as_me: program exited with status $ac_status" >&5
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21853 ( exit $ac_status )
21854 ac_cv_c_stack_direction=-1
21856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21859 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21860 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21862 cat >>confdefs.h <<_ACEOF
21863 #define STACK_DIRECTION $ac_cv_c_stack_direction
21869 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21870 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21871 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21872 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21875 ac_check_lib_save_LIBS=$LIBS
21877 cat >conftest.$ac_ext <<_ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h. */
21884 /* Override any gcc2 internal prototype to avoid an error. */
21888 /* We use char because int might match the return type of a gcc2
21889 builtin and then its argument prototype would still apply. */
21899 rm -f conftest.$ac_objext conftest$ac_exeext
21900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21901 (eval $ac_link) 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } &&
21908 { ac_try='test -z "$ac_c_werror_flag"
21909 || test ! -s conftest.err'
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; } &&
21915 { ac_try='test -s conftest$ac_exeext'
21916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917 (eval $ac_try) 2>&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); }; }; then
21921 ac_cv_lib_sun_getmntent=yes
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21926 ac_cv_lib_sun_getmntent=no
21928 rm -f conftest.err conftest.$ac_objext \
21929 conftest$ac_exeext conftest.$ac_ext
21930 LIBS=$ac_check_lib_save_LIBS
21932 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
21933 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
21934 if test $ac_cv_lib_sun_getmntent = yes; then
21937 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
21938 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
21939 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21942 ac_check_lib_save_LIBS=$LIBS
21944 cat >conftest.$ac_ext <<_ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21951 /* Override any gcc2 internal prototype to avoid an error. */
21955 /* We use char because int might match the return type of a gcc2
21956 builtin and then its argument prototype would still apply. */
21966 rm -f conftest.$ac_objext conftest$ac_exeext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968 (eval $ac_link) 2>conftest.er1
21970 grep -v '^ *+' conftest.er1 >conftest.err
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } &&
21975 { ac_try='test -z "$ac_c_werror_flag"
21976 || test ! -s conftest.err'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; } &&
21982 { ac_try='test -s conftest$ac_exeext'
21983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984 (eval $ac_try) 2>&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 ac_cv_lib_seq_getmntent=yes
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21993 ac_cv_lib_seq_getmntent=no
21995 rm -f conftest.err conftest.$ac_objext \
21996 conftest$ac_exeext conftest.$ac_ext
21997 LIBS=$ac_check_lib_save_LIBS
21999 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
22000 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
22001 if test $ac_cv_lib_seq_getmntent = yes; then
22004 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
22005 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
22006 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 ac_check_lib_save_LIBS=$LIBS
22011 cat >conftest.$ac_ext <<_ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22018 /* Override any gcc2 internal prototype to avoid an error. */
22022 /* We use char because int might match the return type of a gcc2
22023 builtin and then its argument prototype would still apply. */
22033 rm -f conftest.$ac_objext conftest$ac_exeext
22034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22035 (eval $ac_link) 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } &&
22042 { ac_try='test -z "$ac_c_werror_flag"
22043 || test ! -s conftest.err'
22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045 (eval $ac_try) 2>&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; } &&
22049 { ac_try='test -s conftest$ac_exeext'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 ac_cv_lib_gen_getmntent=yes
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 ac_cv_lib_gen_getmntent=no
22062 rm -f conftest.err conftest.$ac_objext \
22063 conftest$ac_exeext conftest.$ac_ext
22064 LIBS=$ac_check_lib_save_LIBS
22066 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22067 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22068 if test $ac_cv_lib_gen_getmntent = yes; then
22077 for ac_func in getmntent
22079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22080 echo "$as_me:$LINENO: checking for $ac_func" >&5
22081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22082 if eval "test \"\${$as_ac_var+set}\" = set"; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 cat >conftest.$ac_ext <<_ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22093 #define $ac_func innocuous_$ac_func
22095 /* System header to define __stub macros and hopefully few prototypes,
22096 which can conflict with char $ac_func (); below.
22097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22098 <limits.h> exists even on freestanding compilers. */
22101 # include <limits.h>
22103 # include <assert.h>
22108 /* Override any gcc2 internal prototype to avoid an error. */
22113 /* We use char because int might match the return type of a gcc2
22114 builtin and then its argument prototype would still apply. */
22116 /* The GNU C library defines this for functions which it implements
22117 to always fail with ENOSYS. Some functions are actually named
22118 something starting with __ and the normal name is an alias. */
22119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22122 char (*f) () = $ac_func;
22131 return f != $ac_func;
22136 rm -f conftest.$ac_objext conftest$ac_exeext
22137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22138 (eval $ac_link) 2>conftest.er1
22140 grep -v '^ *+' conftest.er1 >conftest.err
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } &&
22145 { ac_try='test -z "$ac_c_werror_flag"
22146 || test ! -s conftest.err'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest$ac_exeext'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 eval "$as_ac_var=yes"
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22163 eval "$as_ac_var=no"
22165 rm -f conftest.err conftest.$ac_objext \
22166 conftest$ac_exeext conftest.$ac_ext
22168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22170 if test `eval echo '${'$as_ac_var'}'` = yes; then
22171 cat >>confdefs.h <<_ACEOF
22172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22179 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22180 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22181 if test "${ac_cv_func_closedir_void+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22184 if test "$cross_compiling" = yes; then
22185 ac_cv_func_closedir_void=yes
22187 cat >conftest.$ac_ext <<_ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 $ac_includes_default
22194 #include <$ac_header_dirent>
22195 #ifndef __cplusplus
22202 exit (closedir (opendir (".")) != 0);
22207 rm -f conftest$ac_exeext
22208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22209 (eval $ac_link) 2>&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214 (eval $ac_try) 2>&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); }; }; then
22218 ac_cv_func_closedir_void=no
22220 echo "$as_me: program exited with status $ac_status" >&5
22221 echo "$as_me: failed program was:" >&5
22222 sed 's/^/| /' conftest.$ac_ext >&5
22224 ( exit $ac_status )
22225 ac_cv_func_closedir_void=yes
22227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22230 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22231 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22232 if test $ac_cv_func_closedir_void = yes; then
22234 cat >>confdefs.h <<\_ACEOF
22235 #define CLOSEDIR_VOID 1
22240 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22241 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22242 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 if test "$cross_compiling" = yes; then
22246 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22247 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22248 { (exit 1); exit 1; }; }
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22257 # include <unistd.h>
22263 /* If this system has a BSD-style setpgrp which takes arguments,
22264 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22265 exit successfully. */
22266 exit (setpgrp (1,1) == -1 ? 0 : 1);
22271 rm -f conftest$ac_exeext
22272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22273 (eval $ac_link) 2>&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 ac_cv_func_setpgrp_void=no
22284 echo "$as_me: program exited with status $ac_status" >&5
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22288 ( exit $ac_status )
22289 ac_cv_func_setpgrp_void=yes
22291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22294 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22295 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22296 if test $ac_cv_func_setpgrp_void = yes; then
22298 cat >>confdefs.h <<\_ACEOF
22299 #define SETPGRP_VOID 1
22303 # AC_FUNC_FNMATCH dnl use local version
22306 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22307 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22308 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 ac_check_lib_save_LIBS=$LIBS
22312 LIBS="-lxpg4 $LIBS"
22313 cat >conftest.$ac_ext <<_ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h. */
22320 /* Override any gcc2 internal prototype to avoid an error. */
22324 /* We use char because int might match the return type of a gcc2
22325 builtin and then its argument prototype would still apply. */
22335 rm -f conftest.$ac_objext conftest$ac_exeext
22336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22337 (eval $ac_link) 2>conftest.er1
22339 grep -v '^ *+' conftest.er1 >conftest.err
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } &&
22344 { ac_try='test -z "$ac_c_werror_flag"
22345 || test ! -s conftest.err'
22346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22347 (eval $ac_try) 2>&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); }; } &&
22351 { ac_try='test -s conftest$ac_exeext'
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; }; then
22357 ac_cv_lib_xpg4_setlocale=yes
22359 echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22362 ac_cv_lib_xpg4_setlocale=no
22364 rm -f conftest.err conftest.$ac_objext \
22365 conftest$ac_exeext conftest.$ac_ext
22366 LIBS=$ac_check_lib_save_LIBS
22368 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22369 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22370 if test $ac_cv_lib_xpg4_setlocale = yes; then
22371 LIBS="$LIBS -lxpg4"
22377 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22378 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22379 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22382 ac_check_lib_save_LIBS=$LIBS
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22391 /* Override any gcc2 internal prototype to avoid an error. */
22395 /* We use char because int might match the return type of a gcc2
22396 builtin and then its argument prototype would still apply. */
22406 rm -f conftest.$ac_objext conftest$ac_exeext
22407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22408 (eval $ac_link) 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } &&
22415 { ac_try='test -z "$ac_c_werror_flag"
22416 || test ! -s conftest.err'
22417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22418 (eval $ac_try) 2>&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); }; } &&
22422 { ac_try='test -s conftest$ac_exeext'
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; }; then
22428 ac_cv_lib_sun_getpwnam=yes
22430 echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22433 ac_cv_lib_sun_getpwnam=no
22435 rm -f conftest.err conftest.$ac_objext \
22436 conftest$ac_exeext conftest.$ac_ext
22437 LIBS=$ac_check_lib_save_LIBS
22439 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22440 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22441 if test $ac_cv_lib_sun_getpwnam = yes; then
22442 cat >>confdefs.h <<_ACEOF
22443 #define HAVE_LIBSUN 1
22452 for ac_header in zlib.h
22454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22456 echo "$as_me:$LINENO: checking for $ac_header" >&5
22457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22464 # Is the header compilable?
22465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22467 cat >conftest.$ac_ext <<_ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 $ac_includes_default
22474 #include <$ac_header>
22476 rm -f conftest.$ac_objext
22477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22478 (eval $ac_compile) 2>conftest.er1
22480 grep -v '^ *+' conftest.er1 >conftest.err
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } &&
22485 { ac_try='test -z "$ac_c_werror_flag"
22486 || test ! -s conftest.err'
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; } &&
22492 { ac_try='test -s conftest.$ac_objext'
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; }; then
22498 ac_header_compiler=yes
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 ac_header_compiler=no
22505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22507 echo "${ECHO_T}$ac_header_compiler" >&6
22509 # Is the header present?
22510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22512 cat >conftest.$ac_ext <<_ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22518 #include <$ac_header>
22520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22523 grep -v '^ *+' conftest.er1 >conftest.err
22525 cat conftest.err >&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } >/dev/null; then
22528 if test -s conftest.err; then
22529 ac_cpp_err=$ac_c_preproc_warn_flag
22530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22537 if test -z "$ac_cpp_err"; then
22538 ac_header_preproc=yes
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22543 ac_header_preproc=no
22545 rm -f conftest.err conftest.$ac_ext
22546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22547 echo "${ECHO_T}$ac_header_preproc" >&6
22549 # So? What about this header?
22550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22556 ac_header_preproc=yes
22559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22573 ## ------------------------------------------ ##
22574 ## Report this to the AC_PACKAGE_NAME lists. ##
22575 ## ------------------------------------------ ##
22578 sed "s/^/$as_me: WARNING: /" >&2
22581 echo "$as_me:$LINENO: checking for $ac_header" >&5
22582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22586 eval "$as_ac_Header=\$ac_header_preproc"
22588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22593 cat >>confdefs.h <<_ACEOF
22594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22601 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22602 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22603 if test "${ac_cv_lib_z_deflate+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22606 ac_check_lib_save_LIBS=$LIBS
22608 cat >conftest.$ac_ext <<_ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22615 /* Override any gcc2 internal prototype to avoid an error. */
22619 /* We use char because int might match the return type of a gcc2
22620 builtin and then its argument prototype would still apply. */
22630 rm -f conftest.$ac_objext conftest$ac_exeext
22631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22632 (eval $ac_link) 2>conftest.er1
22634 grep -v '^ *+' conftest.er1 >conftest.err
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); } &&
22639 { ac_try='test -z "$ac_c_werror_flag"
22640 || test ! -s conftest.err'
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; } &&
22646 { ac_try='test -s conftest$ac_exeext'
22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648 (eval $ac_try) 2>&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; }; then
22652 ac_cv_lib_z_deflate=yes
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ac_cv_lib_z_deflate=no
22659 rm -f conftest.err conftest.$ac_objext \
22660 conftest$ac_exeext conftest.$ac_ext
22661 LIBS=$ac_check_lib_save_LIBS
22663 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22664 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22665 if test $ac_cv_lib_z_deflate = yes; then
22670 if test x$FDLIBS = x-lz; then
22671 cat >>confdefs.h <<\_ACEOF
22672 #define HAVE_LIBZ 1
22679 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22680 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22681 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22682 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22683 echo $ECHO_N "(cached) $ECHO_C" >&6
22685 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22686 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22688 # Is the header compilable?
22689 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22690 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22691 cat >conftest.$ac_ext <<_ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 $ac_includes_default
22698 #include <sys/acl.h>
22700 rm -f conftest.$ac_objext
22701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22702 (eval $ac_compile) 2>conftest.er1
22704 grep -v '^ *+' conftest.er1 >conftest.err
22706 cat conftest.err >&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } &&
22709 { ac_try='test -z "$ac_c_werror_flag"
22710 || test ! -s conftest.err'
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; } &&
22716 { ac_try='test -s conftest.$ac_objext'
22717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718 (eval $ac_try) 2>&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); }; }; then
22722 ac_header_compiler=yes
22724 echo "$as_me: failed program was:" >&5
22725 sed 's/^/| /' conftest.$ac_ext >&5
22727 ac_header_compiler=no
22729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22731 echo "${ECHO_T}$ac_header_compiler" >&6
22733 # Is the header present?
22734 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22735 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22736 cat >conftest.$ac_ext <<_ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h. */
22742 #include <sys/acl.h>
22744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22747 grep -v '^ *+' conftest.er1 >conftest.err
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } >/dev/null; then
22752 if test -s conftest.err; then
22753 ac_cpp_err=$ac_c_preproc_warn_flag
22754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22761 if test -z "$ac_cpp_err"; then
22762 ac_header_preproc=yes
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ac_header_preproc=no
22769 rm -f conftest.err conftest.$ac_ext
22770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22771 echo "${ECHO_T}$ac_header_preproc" >&6
22773 # So? What about this header?
22774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22776 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22777 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22778 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22779 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22780 ac_header_preproc=yes
22783 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22784 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22785 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
22786 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
22787 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22788 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22789 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
22790 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22791 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22792 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22793 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22794 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22797 ## ------------------------------------------ ##
22798 ## Report this to the AC_PACKAGE_NAME lists. ##
22799 ## ------------------------------------------ ##
22802 sed "s/^/$as_me: WARNING: /" >&2
22805 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22806 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22807 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22808 echo $ECHO_N "(cached) $ECHO_C" >&6
22810 ac_cv_header_sys_acl_h=$ac_header_preproc
22812 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22813 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22818 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22819 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22820 if test "${ac_cv_func_acl_get_file+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22829 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22831 #define acl_get_file innocuous_acl_get_file
22833 /* System header to define __stub macros and hopefully few prototypes,
22834 which can conflict with char acl_get_file (); below.
22835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22836 <limits.h> exists even on freestanding compilers. */
22839 # include <limits.h>
22841 # include <assert.h>
22844 #undef acl_get_file
22846 /* Override any gcc2 internal prototype to avoid an error. */
22851 /* We use char because int might match the return type of a gcc2
22852 builtin and then its argument prototype would still apply. */
22853 char acl_get_file ();
22854 /* The GNU C library defines this for functions which it implements
22855 to always fail with ENOSYS. Some functions are actually named
22856 something starting with __ and the normal name is an alias. */
22857 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22860 char (*f) () = acl_get_file;
22869 return f != acl_get_file;
22874 rm -f conftest.$ac_objext conftest$ac_exeext
22875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22876 (eval $ac_link) 2>conftest.er1
22878 grep -v '^ *+' conftest.er1 >conftest.err
22880 cat conftest.err >&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } &&
22883 { ac_try='test -z "$ac_c_werror_flag"
22884 || test ! -s conftest.err'
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; } &&
22890 { ac_try='test -s conftest$ac_exeext'
22891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892 (eval $ac_try) 2>&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); }; }; then
22896 ac_cv_func_acl_get_file=yes
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ac_cv_func_acl_get_file=no
22903 rm -f conftest.err conftest.$ac_objext \
22904 conftest$ac_exeext conftest.$ac_ext
22906 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
22907 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
22908 if test $ac_cv_func_acl_get_file = yes; then
22911 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22912 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22913 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 ac_check_lib_save_LIBS=$LIBS
22918 cat >conftest.$ac_ext <<_ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22925 /* Override any gcc2 internal prototype to avoid an error. */
22929 /* We use char because int might match the return type of a gcc2
22930 builtin and then its argument prototype would still apply. */
22931 char acl_get_file ();
22940 rm -f conftest.$ac_objext conftest$ac_exeext
22941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22942 (eval $ac_link) 2>conftest.er1
22944 grep -v '^ *+' conftest.er1 >conftest.err
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } &&
22949 { ac_try='test -z "$ac_c_werror_flag"
22950 || test ! -s conftest.err'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; } &&
22956 { ac_try='test -s conftest$ac_exeext'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; }; then
22962 ac_cv_lib_acl_acl_get_file=yes
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22967 ac_cv_lib_acl_acl_get_file=no
22969 rm -f conftest.err conftest.$ac_objext \
22970 conftest$ac_exeext conftest.$ac_ext
22971 LIBS=$ac_check_lib_save_LIBS
22973 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22974 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22975 if test $ac_cv_lib_acl_acl_get_file = yes; then
22976 have_acl=yes; FDLIBS="-lacl $FDLIBS"
22982 if test $have_acl = yes; then
22983 cat >>confdefs.h <<\_ACEOF
22990 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22991 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
22992 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22993 echo $ECHO_N "(cached) $ECHO_C" >&6
22995 ac_check_lib_save_LIBS=$LIBS
22996 LIBS="-lpthread $LIBS"
22997 cat >conftest.$ac_ext <<_ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23004 /* Override any gcc2 internal prototype to avoid an error. */
23008 /* We use char because int might match the return type of a gcc2
23009 builtin and then its argument prototype would still apply. */
23010 char pthread_create ();
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021 (eval $ac_link) 2>conftest.er1
23023 grep -v '^ *+' conftest.er1 >conftest.err
23025 cat conftest.err >&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); } &&
23028 { ac_try='test -z "$ac_c_werror_flag"
23029 || test ! -s conftest.err'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; } &&
23035 { ac_try='test -s conftest$ac_exeext'
23036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037 (eval $ac_try) 2>&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); }; }; then
23041 ac_cv_lib_pthread_pthread_create=yes
23043 echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23046 ac_cv_lib_pthread_pthread_create=no
23048 rm -f conftest.err conftest.$ac_objext \
23049 conftest$ac_exeext conftest.$ac_ext
23050 LIBS=$ac_check_lib_save_LIBS
23052 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23053 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23054 if test $ac_cv_lib_pthread_pthread_create = yes; then
23055 PTHREAD_LIB="-lpthread"
23057 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23058 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23059 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
23062 ac_check_lib_save_LIBS=$LIBS
23063 LIBS="-lpthreads $LIBS"
23064 cat >conftest.$ac_ext <<_ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23071 /* Override any gcc2 internal prototype to avoid an error. */
23075 /* We use char because int might match the return type of a gcc2
23076 builtin and then its argument prototype would still apply. */
23077 char pthread_create ();
23086 rm -f conftest.$ac_objext conftest$ac_exeext
23087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23088 (eval $ac_link) 2>conftest.er1
23090 grep -v '^ *+' conftest.er1 >conftest.err
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } &&
23095 { ac_try='test -z "$ac_c_werror_flag"
23096 || test ! -s conftest.err'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } &&
23102 { ac_try='test -s conftest$ac_exeext'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; }; then
23108 ac_cv_lib_pthreads_pthread_create=yes
23110 echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23113 ac_cv_lib_pthreads_pthread_create=no
23115 rm -f conftest.err conftest.$ac_objext \
23116 conftest$ac_exeext conftest.$ac_ext
23117 LIBS=$ac_check_lib_save_LIBS
23119 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23120 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23121 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23122 PTHREAD_LIB="-lpthreads"
23124 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23125 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23126 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 ac_check_lib_save_LIBS=$LIBS
23131 cat >conftest.$ac_ext <<_ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h. */
23138 /* Override any gcc2 internal prototype to avoid an error. */
23142 /* We use char because int might match the return type of a gcc2
23143 builtin and then its argument prototype would still apply. */
23144 char pthread_create ();
23153 rm -f conftest.$ac_objext conftest$ac_exeext
23154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23155 (eval $ac_link) 2>conftest.er1
23157 grep -v '^ *+' conftest.er1 >conftest.err
23159 cat conftest.err >&5
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); } &&
23162 { ac_try='test -z "$ac_c_werror_flag"
23163 || test ! -s conftest.err'
23164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165 (eval $ac_try) 2>&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); }; } &&
23169 { ac_try='test -s conftest$ac_exeext'
23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171 (eval $ac_try) 2>&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; }; then
23175 ac_cv_lib_c_r_pthread_create=yes
23177 echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ac_cv_lib_c_r_pthread_create=no
23182 rm -f conftest.err conftest.$ac_objext \
23183 conftest$ac_exeext conftest.$ac_ext
23184 LIBS=$ac_check_lib_save_LIBS
23186 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23187 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23188 if test $ac_cv_lib_c_r_pthread_create = yes; then
23189 PTHREAD_LIB="-lc_r"
23191 echo "$as_me:$LINENO: checking for pthread_create" >&5
23192 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23193 if test "${ac_cv_func_pthread_create+set}" = set; then
23194 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 cat >conftest.$ac_ext <<_ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23204 #define pthread_create innocuous_pthread_create
23206 /* System header to define __stub macros and hopefully few prototypes,
23207 which can conflict with char pthread_create (); below.
23208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23209 <limits.h> exists even on freestanding compilers. */
23212 # include <limits.h>
23214 # include <assert.h>
23217 #undef pthread_create
23219 /* Override any gcc2 internal prototype to avoid an error. */
23224 /* We use char because int might match the return type of a gcc2
23225 builtin and then its argument prototype would still apply. */
23226 char pthread_create ();
23227 /* The GNU C library defines this for functions which it implements
23228 to always fail with ENOSYS. Some functions are actually named
23229 something starting with __ and the normal name is an alias. */
23230 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23233 char (*f) () = pthread_create;
23242 return f != pthread_create;
23247 rm -f conftest.$ac_objext conftest$ac_exeext
23248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249 (eval $ac_link) 2>conftest.er1
23251 grep -v '^ *+' conftest.er1 >conftest.err
23253 cat conftest.err >&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } &&
23256 { ac_try='test -z "$ac_c_werror_flag"
23257 || test ! -s conftest.err'
23258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 (eval $ac_try) 2>&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); }; } &&
23263 { ac_try='test -s conftest$ac_exeext'
23264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265 (eval $ac_try) 2>&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); }; }; then
23269 ac_cv_func_pthread_create=yes
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ac_cv_func_pthread_create=no
23276 rm -f conftest.err conftest.$ac_objext \
23277 conftest$ac_exeext conftest.$ac_ext
23279 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23280 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23293 cat >>confdefs.h <<\_ACEOF
23299 CFLAGS=${CFLAGS--O}
23300 LDFLAGS=${LDFLAGS--O}
23301 DB_LIBS="${SQL_LFLAGS}"
23303 CPPFLAGS="$CPPFLAGS"
23329 # Finally we set appropriate distribution specific
23330 # variables and defaults
23332 # PFILES are platform specific files
23333 PFILES="platforms/Makefile"
23337 hostname=`uname -n | cut -d '.' -f 1`
23338 case "$DISTNAME" in
23341 PSCMD="ps -e -o pid,comm"
23342 PFILES="${PFILES} \
23343 platforms/aix/Makefile"
23344 TAPEDRIVE="/dev/rmt0.1"
23348 PTHREAD_LIB="-lpthread -lexc"
23349 if test "${CC}" = "gcc" ; then
23356 TAPEDRIVE="/dev/nrmt0"
23359 DISTVER=`uname -a |awk '{print $3}'`
23360 TAPEDRIVE="/dev/nrmt0"
23361 PTHREAD_LIB="-pthread"
23362 CFLAGS="${CFLAGS} -pthread"
23363 PSCMD="ps -ax -o pid,command"
23366 PFILES="${PFILES} \
23367 platforms/bsdi/Makefile \
23368 platforms/bsdi/bacula-fd \
23369 platforms/bsdi/bacula-sd \
23370 platforms/bsdi/bacula-dir"
23371 largefile_support="yes"
23374 DISTVER=`uname -a |awk '{print $3}'`
23375 TAPEDRIVE="/dev/nrst0"
23377 WCFLAGS="-mwindows"
23378 WLDFLAGS="-mwindows"
23382 TAPEDRIVE="/dev/nst0"
23383 PSCMD="ps -e -o pid,command"
23385 PFILES="${PFILES} \
23386 platforms/darwin/Makefile"
23389 DISTVER=`cat /etc/debian_version`
23390 TAPEDRIVE="/dev/nrst0"
23391 PSCMD="ps -e -o pid,command"
23394 DISTVER=`uname -a |awk '{print $3}'`
23395 VER=`echo $DISTVER | cut -c 1`
23396 if test x$VER = x4 ; then
23397 PTHREAD_LIB="-pthread"
23398 CFLAGS="${CFLAGS} -pthread"
23402 TAPEDRIVE="/dev/nrsa0"
23403 PSCMD="ps -ax -o pid,command"
23404 PFILES="${PFILES} \
23405 platforms/freebsd/Makefile \
23406 platforms/freebsd/bacula-fd \
23407 platforms/freebsd/bacula-sd \
23408 platforms/freebsd/bacula-dir"
23409 largefile_support="yes"
23412 PSCMD="UNIX95=1 ps -e -o pid,comm"
23413 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23415 TAPEDRIVE="/dev/rmt/0hnb"
23416 PTHREAD_LIB="-lpthread"
23417 cat >>confdefs.h <<\_ACEOF
23418 #define _INCLUDE_LONGLONG 1
23424 TAPEDRIVE="/dev/rmt/0cbn"
23425 PSCMD="ps -e -o pid,comm"
23426 PFILES="${PFILES} \
23427 platforms/irix/Makefile \
23428 platforms/irix/bacula-fd \
23429 platforms/irix/bacula-sd \
23430 platforms/irix/bacula-dir"
23433 DISTVER=`uname -a |awk '{print $3}'`
23436 TAPEDRIVE="/dev/nrst0"
23437 PSCMD="ps -ax -o pid,command"
23438 PTHREAD_LIB="-pthread"
23439 CFLAGS="${CFLAGS} -pthread"
23442 DISTVER=`uname -a |awk '{print $3}'`
23445 TAPEDRIVE="/dev/nrst0"
23446 PSCMD="ps -ax -o pid,command"
23447 PTHREAD_LIB="-pthread"
23448 CFLAGS="${CFLAGS} -pthread"
23449 PFILES="${PFILES} \
23450 platforms/openbsd/Makefile \
23451 platforms/openbsd/bacula-fd \
23452 platforms/openbsd/bacula-sd \
23453 platforms/openbsd/bacula-dir"
23456 if test -f /etc/whitebox-release ; then
23457 f=/etc/whitebox-release
23459 f=/etc/redhat-release
23461 if test `cat $f | grep release |\
23462 cut -f 3 -d ' '`x = "Enterprise"x ; then
23463 DISTVER="Enterprise "`cat $f | grep release |\
23466 DISTVER=`cat /etc/redhat-release | grep release |\
23469 TAPEDRIVE="/dev/nst0"
23470 PSCMD="ps -e -o pid,command"
23471 PFILES="${PFILES} \
23472 platforms/redhat/Makefile \
23473 platforms/redhat/bacula-fd \
23474 platforms/redhat/bacula-sd \
23475 platforms/redhat/bacula-dir \
23476 platforms/redhat/bacula.spec \
23478 hostname=`hostname -s`
23481 DISTVER=`cat /etc/mandrake-release | grep release |\
23483 TAPEDRIVE="/dev/nst0"
23484 PSCMD="ps -e -o pid,command"
23485 PFILES="${PFILES} \
23486 platforms/mandrake/Makefile \
23487 platforms/mandrake/bacula-fd \
23488 platforms/mandrake/bacula-sd \
23489 platforms/mandrake/bacula-dir \
23490 platforms/mandrake/bacula.spec \
23494 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23495 TAPEDRIVE="/dev/nst0"
23496 PSCMD="ps -e -o pid,command"
23497 PFILES="${PFILES} \
23498 platforms/gentoo/Makefile \
23499 platforms/gentoo/bacula-init \
23500 platforms/gentoo/bacula-fd \
23501 platforms/gentoo/bacula-sd \
23502 platforms/gentoo/bacula-dir"
23505 DISTVER=`cat /etc/slackware-version`
23506 TAPEDRIVE="/dev/nst0"
23507 PSCMD="ps -e -o pid,command"
23508 PFILES="${PFILES} \
23509 platforms/slackware/Makefile \
23510 platforms/slackware/rc.bacula-fd \
23511 platforms/slackware/rc.bacula-sd \
23512 platforms/slackware/rc.bacula-dir\
23513 platforms/slackware/functions.bacula"
23517 TAPEDRIVE="/dev/rmt/0cbn"
23518 PSCMD="ps -e -o pid,comm"
23519 PFILES="${PFILES} \
23520 platforms/solaris/Makefile \
23521 platforms/solaris/bacula-fd \
23522 platforms/solaris/bacula-sd \
23523 platforms/solaris/bacula-dir"
23524 if test x$DISTVER = x5.6 ; then
23525 cat >>confdefs.h <<\_ACEOF
23526 #define HAVE_OLD_SOCKOPT 1
23530 LIBS="$LIBS -lresolv"
23533 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23535 TAPEDRIVE="/dev/nst0"
23536 PSCMD="ps -e -o pid,command"
23537 PFILES="${PFILES} \
23538 platforms/suse/Makefile \
23539 platforms/suse/bacula-fd \
23540 platforms/suse/bacula-sd \
23541 platforms/suse/bacula-dir \
23542 platforms/suse/bacula \
23543 platforms/suse/bacula.spec"
23548 TAPEDRIVE="/dev/nst0"
23549 PSCMD="ps -e -o pid,command"
23550 PFILES="${PFILES} \
23551 platforms/suse/Makefile \
23552 platforms/suse/bacula-fd \
23553 platforms/suse/bacula-sd \
23554 platforms/suse/bacula-dir"
23558 TAPEDRIVE="/dev/nst0"
23561 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23567 LIBS="$PTHREAD_LIB $LIBS"
23569 cat >>confdefs.h <<_ACEOF
23573 cat >>confdefs.h <<_ACEOF
23584 MCOMMON=./autoconf/Make.common
23587 if test "x${subsysdir}" = "x${sbindir}" ; then
23590 echo "You have set both --sbindir and --with-subsys-dir"
23591 echo " equal to: ${subsysdir} "
23592 echo "This is not permitted. Please reconfigure."
23594 echo "Aborting configuration ..."
23600 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"
23601 ac_config_commands="$ac_config_commands default"
23602 cat >confcache <<\_ACEOF
23603 # This file is a shell script that caches the results of configure
23604 # tests run on this system so they can be shared between configure
23605 # scripts and configure runs, see configure's option --config-cache.
23606 # It is not useful on other systems. If it contains results you don't
23607 # want to keep, you may remove or edit it.
23609 # config.status only pays attention to the cache file if you give it
23610 # the --recheck option to rerun configure.
23612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23614 # following values.
23618 # The following way of writing the cache mishandles newlines in values,
23619 # but we know of no workaround that is simple, portable, and efficient.
23620 # So, don't put newlines in cache variables' values.
23621 # Ultrix sh set writes to stderr and can't be redirected directly,
23622 # and sets the high bit in the cache file unless we assign to the vars.
23625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23627 # `set' does not quote correctly, so add quotes (double-quote
23628 # substitution turns \\\\ into \\, and sed turns \\ into \).
23631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23634 # `set' quotes correctly as required by POSIX, so do not add quotes.
23636 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23645 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23647 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23648 if test -w $cache_file; then
23649 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23650 cat confcache >$cache_file
23652 echo "not updating unwritable cache $cache_file"
23657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23658 # Let make expand exec_prefix.
23659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23661 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23662 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23663 # trailing colons and then remove the whole line if VPATH becomes empty
23664 # (actually we leave an empty line to preserve line numbers).
23665 if test "x$srcdir" = x.; then
23666 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23667 s/:*\$(srcdir):*/:/;
23668 s/:*\${srcdir}:*/:/;
23670 s/^\([^=]*=[ ]*\):*/\1/;
23676 DEFS=-DHAVE_CONFIG_H
23680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23681 # 1. Remove the extension, and $U if already installed.
23682 ac_i=`echo "$ac_i" |
23683 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23685 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23686 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23688 LIBOBJS=$ac_libobjs
23690 LTLIBOBJS=$ac_ltlibobjs
23694 : ${CONFIG_STATUS=./config.status}
23695 ac_clean_files_save=$ac_clean_files
23696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23697 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23698 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23699 cat >$CONFIG_STATUS <<_ACEOF
23701 # Generated by $as_me.
23702 # Run this file to recreate the current configuration.
23703 # Compiler output produced by configure, useful for debugging
23704 # configure, is in config.log if it exists.
23707 ac_cs_recheck=false
23709 SHELL=\${CONFIG_SHELL-$SHELL}
23712 cat >>$CONFIG_STATUS <<\_ACEOF
23713 ## --------------------- ##
23714 ## M4sh Initialization. ##
23715 ## --------------------- ##
23717 # Be Bourne compatible
23718 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23721 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23722 # is contrary to our usage. Disable this feature.
23723 alias -g '${1+"$@"}'='"$@"'
23724 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23727 DUALCASE=1; export DUALCASE # for MKS sh
23729 # Support unset when possible.
23730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23737 # Work around bugs in pre-3.0 UWIN ksh.
23738 $as_unset ENV MAIL MAILPATH
23745 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23746 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23747 LC_TELEPHONE LC_TIME
23749 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23750 eval $as_var=C; export $as_var
23756 # Required to use basename.
23757 if expr a : '\(a\)' >/dev/null 2>&1; then
23763 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23764 as_basename=basename
23770 # Name of the executable.
23771 as_me=`$as_basename "$0" ||
23772 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23773 X"$0" : 'X\(//\)$' \| \
23774 X"$0" : 'X\(/\)$' \| \
23775 . : '\(.\)' 2>/dev/null ||
23777 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23778 /^X\/\(\/\/\)$/{ s//\1/; q; }
23779 /^X\/\(\/\).*/{ s//\1/; q; }
23783 # PATH needs CR, and LINENO needs CR and PATH.
23784 # Avoid depending upon Character Ranges.
23785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23788 as_cr_digits='0123456789'
23789 as_cr_alnum=$as_cr_Letters$as_cr_digits
23791 # The user is always right.
23792 if test "${PATH_SEPARATOR+set}" != set; then
23793 echo "#! /bin/sh" >conf$$.sh
23794 echo "exit 0" >>conf$$.sh
23796 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23805 as_lineno_1=$LINENO
23806 as_lineno_2=$LINENO
23807 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23808 test "x$as_lineno_1" != "x$as_lineno_2" &&
23809 test "x$as_lineno_3" = "x$as_lineno_2" || {
23810 # Find who we are. Look in the path if we contain no path at all
23813 *[\\/]* ) as_myself=$0 ;;
23814 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23815 for as_dir in $PATH
23818 test -z "$as_dir" && as_dir=.
23819 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23824 # We did not find ourselves, most probably we were run as `sh COMMAND'
23825 # in which case we are not to be found in the path.
23826 if test "x$as_myself" = x; then
23829 if test ! -f "$as_myself"; then
23830 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23831 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23832 { (exit 1); exit 1; }; }
23834 case $CONFIG_SHELL in
23836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23837 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23840 test -z "$as_dir" && as_dir=.
23841 for as_base in sh bash ksh sh5; do
23844 if ("$as_dir/$as_base" -c '
23845 as_lineno_1=$LINENO
23846 as_lineno_2=$LINENO
23847 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23848 test "x$as_lineno_1" != "x$as_lineno_2" &&
23849 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23850 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23851 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23852 CONFIG_SHELL=$as_dir/$as_base
23853 export CONFIG_SHELL
23854 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23862 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23863 # uniformly replaced by the line number. The first 'sed' inserts a
23864 # line-number line before each line; the second 'sed' does the real
23865 # work. The second script uses 'N' to pair each line-number line
23866 # with the numbered line, and appends trailing '-' during
23867 # substitution so that $LINENO is not a special case at line end.
23868 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23869 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23870 sed '=' <$as_myself |
23875 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23878 s,^['$as_cr_digits']*\n,,
23879 ' >$as_me.lineno &&
23880 chmod +x $as_me.lineno ||
23881 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23882 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23883 { (exit 1); exit 1; }; }
23885 # Don't try to exec as it changes $[0], causing all sort of problems
23886 # (the dirname of $[0] is not the place where we might find the
23887 # original and so on. Autoconf is especially sensible to this).
23889 # Exit status is that of the last command.
23894 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23895 *c*,-n*) ECHO_N= ECHO_C='
23897 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23898 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23901 if expr a : '\(a\)' >/dev/null 2>&1; then
23907 rm -f conf$$ conf$$.exe conf$$.file
23909 if ln -s conf$$.file conf$$ 2>/dev/null; then
23910 # We could just check for DJGPP; but this test a) works b) is more generic
23911 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23912 if test -f conf$$.exe; then
23913 # Don't use ln at all; we don't have any links
23918 elif ln conf$$.file conf$$ 2>/dev/null; then
23923 rm -f conf$$ conf$$.exe conf$$.file
23925 if mkdir -p . 2>/dev/null; then
23928 test -d ./-p && rmdir ./-p
23932 as_executable_p="test -f"
23934 # Sed expression to map a string onto a valid CPP name.
23935 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23937 # Sed expression to map a string onto a valid variable name.
23938 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23942 # We need space, tab and new line, in precisely that order.
23952 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23953 # report actual input values of CONFIG_FILES etc. instead of their
23954 # values after options handling. Logging --version etc. is OK.
23958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23959 ## Running $as_me. ##
23964 This file was extended by $as_me, which was
23965 generated by GNU Autoconf 2.59. Invocation command line was
23967 CONFIG_FILES = $CONFIG_FILES
23968 CONFIG_HEADERS = $CONFIG_HEADERS
23969 CONFIG_LINKS = $CONFIG_LINKS
23970 CONFIG_COMMANDS = $CONFIG_COMMANDS
23974 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23978 # Files that config.status was made for.
23979 if test -n "$ac_config_files"; then
23980 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23983 if test -n "$ac_config_headers"; then
23984 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23987 if test -n "$ac_config_links"; then
23988 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23991 if test -n "$ac_config_commands"; then
23992 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23995 cat >>$CONFIG_STATUS <<\_ACEOF
23998 \`$as_me' instantiates files from templates according to the
23999 current configuration.
24001 Usage: $0 [OPTIONS] [FILE]...
24003 -h, --help print this help, then exit
24004 -V, --version print version number, then exit
24005 -q, --quiet do not print progress messages
24006 -d, --debug don't remove temporary files
24007 --recheck update $as_me by reconfiguring in the same conditions
24008 --file=FILE[:TEMPLATE]
24009 instantiate the configuration file FILE
24010 --header=FILE[:TEMPLATE]
24011 instantiate the configuration header FILE
24013 Configuration files:
24016 Configuration headers:
24019 Configuration commands:
24022 Report bugs to <bug-autoconf@gnu.org>."
24025 cat >>$CONFIG_STATUS <<_ACEOF
24028 configured by $0, generated by GNU Autoconf 2.59,
24029 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24031 Copyright (C) 2003 Free Software Foundation, Inc.
24032 This config.status script is free software; the Free Software Foundation
24033 gives unlimited permission to copy, distribute and modify it."
24038 cat >>$CONFIG_STATUS <<\_ACEOF
24039 # If no file are specified by the user, then we need to provide default
24040 # value. By we need to know if files were specified by the user.
24046 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24047 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24055 *) # This is not an option, so the user has probably given explicit
24058 ac_need_defaults=false;;
24062 # Handling of the options.
24064 cat >>$CONFIG_STATUS <<\_ACEOF
24065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24067 --version | --vers* | -V )
24068 echo "$ac_cs_version"; exit 0 ;;
24070 # Conflict between --help and --header
24071 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24072 Try \`$0 --help' for more information." >&5
24073 echo "$as_me: error: ambiguous option: $1
24074 Try \`$0 --help' for more information." >&2;}
24075 { (exit 1); exit 1; }; };;
24076 --help | --hel | -h )
24077 echo "$ac_cs_usage"; exit 0 ;;
24078 --debug | --d* | -d )
24080 --file | --fil | --fi | --f )
24082 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24083 ac_need_defaults=false;;
24084 --header | --heade | --head | --hea )
24086 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24087 ac_need_defaults=false;;
24088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24089 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24092 # This is an error.
24093 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24094 Try \`$0 --help' for more information." >&5
24095 echo "$as_me: error: unrecognized option: $1
24096 Try \`$0 --help' for more information." >&2;}
24097 { (exit 1); exit 1; }; } ;;
24099 *) ac_config_targets="$ac_config_targets $1" ;;
24105 ac_configure_extra_args=
24107 if $ac_cs_silent; then
24109 ac_configure_extra_args="$ac_configure_extra_args --silent"
24113 cat >>$CONFIG_STATUS <<_ACEOF
24114 if \$ac_cs_recheck; then
24115 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24116 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24121 cat >>$CONFIG_STATUS <<_ACEOF
24123 # INIT-COMMANDS section.
24126 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24127 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24129 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24130 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24131 LINGUAS="${LINGUAS-%UNSET%}"
24138 cat >>$CONFIG_STATUS <<\_ACEOF
24139 for ac_config_target in $ac_config_targets
24141 case "$ac_config_target" in
24142 # Handling of arguments.
24143 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24144 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24145 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24146 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24147 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24148 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24149 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24150 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24151 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24152 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24153 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24154 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24155 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24156 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24157 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24158 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24159 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24160 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24161 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24162 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24163 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24164 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24165 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24166 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24167 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24168 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24169 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24170 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24171 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24172 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24173 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24174 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24175 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24176 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24177 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24178 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24179 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24180 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24181 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24182 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24183 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24184 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24185 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24186 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24187 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24188 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24189 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24190 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24191 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24192 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24193 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24194 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24195 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24196 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24197 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24198 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24199 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24200 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24201 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24202 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24203 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24204 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24205 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24206 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24207 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24208 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24209 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24210 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24211 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24212 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24213 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24214 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24215 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24216 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24217 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24218 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24219 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24220 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24221 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24222 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24223 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24224 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24225 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24226 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24227 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24228 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24229 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24230 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24231 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24232 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24233 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24234 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24235 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24236 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24237 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24238 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24239 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24240 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24241 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24242 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24243 { (exit 1); exit 1; }; };;
24247 # If the user did not use the arguments to specify the items to instantiate,
24248 # then the envvar interface is used. Set only those that are not.
24249 # We use the long form for the default assignment because of an extremely
24250 # bizarre bug on SunOS 4.1.3.
24251 if $ac_need_defaults; then
24252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24257 # Have a temporary directory for convenience. Make it in the build tree
24258 # simply because there is no reason to put it here, and in addition,
24259 # creating and moving files from /tmp can sometimes cause problems.
24260 # Create a temporary directory, and hook for its removal unless debugging.
24263 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24264 trap '{ (exit 1); exit 1; }' 1 2 13 15
24267 # Create a (secure) tmp directory for tmp files.
24270 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24271 test -n "$tmp" && test -d "$tmp"
24274 tmp=./confstat$$-$RANDOM
24275 (umask 077 && mkdir $tmp)
24278 echo "$me: cannot create a temporary directory in ." >&2
24279 { (exit 1); exit 1; }
24284 cat >>$CONFIG_STATUS <<_ACEOF
24287 # CONFIG_FILES section.
24290 # No need to generate the scripts if there are no CONFIG_FILES.
24291 # This happens for instance when ./config.status config.h
24292 if test -n "\$CONFIG_FILES"; then
24293 # Protect against being on the right side of a sed subst in config.status.
24294 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24295 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24296 s,@SHELL@,$SHELL,;t t
24297 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24298 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24299 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24300 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24301 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24302 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24303 s,@exec_prefix@,$exec_prefix,;t t
24304 s,@prefix@,$prefix,;t t
24305 s,@program_transform_name@,$program_transform_name,;t t
24306 s,@bindir@,$bindir,;t t
24307 s,@sbindir@,$sbindir,;t t
24308 s,@libexecdir@,$libexecdir,;t t
24309 s,@datadir@,$datadir,;t t
24310 s,@sysconfdir@,$sysconfdir,;t t
24311 s,@sharedstatedir@,$sharedstatedir,;t t
24312 s,@localstatedir@,$localstatedir,;t t
24313 s,@libdir@,$libdir,;t t
24314 s,@includedir@,$includedir,;t t
24315 s,@oldincludedir@,$oldincludedir,;t t
24316 s,@infodir@,$infodir,;t t
24317 s,@mandir@,$mandir,;t t
24318 s,@build_alias@,$build_alias,;t t
24319 s,@host_alias@,$host_alias,;t t
24320 s,@target_alias@,$target_alias,;t t
24321 s,@DEFS@,$DEFS,;t t
24322 s,@ECHO_C@,$ECHO_C,;t t
24323 s,@ECHO_N@,$ECHO_N,;t t
24324 s,@ECHO_T@,$ECHO_T,;t t
24325 s,@LIBS@,$LIBS,;t t
24326 s,@BUILD_DIR@,$BUILD_DIR,;t t
24327 s,@TRUEPRG@,$TRUEPRG,;t t
24328 s,@FALSEPRG@,$FALSEPRG,;t t
24329 s,@VERSION@,$VERSION,;t t
24330 s,@DATE@,$DATE,;t t
24331 s,@LSMDATE@,$LSMDATE,;t t
24333 s,@CFLAGS@,$CFLAGS,;t t
24334 s,@LDFLAGS@,$LDFLAGS,;t t
24335 s,@CPPFLAGS@,$CPPFLAGS,;t t
24336 s,@ac_ct_CC@,$ac_ct_CC,;t t
24337 s,@EXEEXT@,$EXEEXT,;t t
24338 s,@OBJEXT@,$OBJEXT,;t t
24340 s,@CXXFLAGS@,$CXXFLAGS,;t t
24341 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24343 s,@EGREP@,$EGREP,;t t
24344 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24345 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24346 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24347 s,@RANLIB@,$RANLIB,;t t
24348 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24353 s,@ECHO@,$ECHO,;t t
24357 s,@OPENSSL@,$OPENSSL,;t t
24360 s,@MKISOFS@,$MKISOFS,;t t
24361 s,@PYTHON@,$PYTHON,;t t
24362 s,@GROWISOFS@,$GROWISOFS,;t t
24363 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24364 s,@PKGCONFIG@,$PKGCONFIG,;t t
24365 s,@WXCONFIG@,$WXCONFIG,;t t
24366 s,@WXFLAGS@,$WXFLAGS,;t t
24367 s,@CDRECORD@,$CDRECORD,;t t
24368 s,@PIDOF@,$PIDOF,;t t
24370 s,@ARFLAGS@,$ARFLAGS,;t t
24371 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24372 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24373 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24374 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24375 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24376 s,@build@,$build,;t t
24377 s,@build_cpu@,$build_cpu,;t t
24378 s,@build_vendor@,$build_vendor,;t t
24379 s,@build_os@,$build_os,;t t
24380 s,@host@,$host,;t t
24381 s,@host_cpu@,$host_cpu,;t t
24382 s,@host_vendor@,$host_vendor,;t t
24383 s,@host_os@,$host_os,;t t
24384 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24385 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24386 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24387 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24388 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24389 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24390 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24391 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24392 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24393 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24394 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24395 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24396 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24397 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24398 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24399 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24400 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24401 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24402 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24403 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24404 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24405 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24406 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24407 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24408 s,@SET_MAKE@,$SET_MAKE,;t t
24409 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24410 s,@USE_NLS@,$USE_NLS,;t t
24411 s,@MSGFMT@,$MSGFMT,;t t
24412 s,@GMSGFMT@,$GMSGFMT,;t t
24413 s,@XGETTEXT@,$XGETTEXT,;t t
24414 s,@MSGMERGE@,$MSGMERGE,;t t
24415 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24416 s,@LIBICONV@,$LIBICONV,;t t
24417 s,@LTLIBICONV@,$LTLIBICONV,;t t
24418 s,@INTLLIBS@,$INTLLIBS,;t t
24419 s,@LIBINTL@,$LIBINTL,;t t
24420 s,@LTLIBINTL@,$LTLIBINTL,;t t
24421 s,@POSUB@,$POSUB,;t t
24422 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24423 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24424 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24425 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24426 s,@GNOME_DIR@,$GNOME_DIR,;t t
24427 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24428 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24429 s,@WX_DIR@,$WX_DIR,;t t
24430 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24431 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24432 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24433 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24434 s,@STATIC_FD@,$STATIC_FD,;t t
24435 s,@STATIC_SD@,$STATIC_SD,;t t
24436 s,@STATIC_DIR@,$STATIC_DIR,;t t
24437 s,@STATIC_CONS@,$STATIC_CONS,;t t
24438 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24439 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24440 s,@ALL_DIRS@,$ALL_DIRS,;t t
24441 s,@DIRD_DIR@,$DIRD_DIR,;t t
24442 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
24443 s,@STORED_DIR@,$STORED_DIR,;t t
24444 s,@CONS_INC@,$CONS_INC,;t t
24445 s,@CONS_OBJ@,$CONS_OBJ,;t t
24446 s,@CONS_SRC@,$CONS_SRC,;t t
24447 s,@CONS_LIBS@,$CONS_LIBS,;t t
24448 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24449 s,@READLINE_SRC@,$READLINE_SRC,;t t
24450 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24451 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24452 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24453 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24454 s,@working_dir@,$working_dir,;t t
24455 s,@scriptdir@,$scriptdir,;t t
24456 s,@dump_email@,$dump_email,;t t
24457 s,@job_email@,$job_email,;t t
24458 s,@smtp_host@,$smtp_host,;t t
24459 s,@piddir@,$piddir,;t t
24460 s,@subsysdir@,$subsysdir,;t t
24461 s,@baseport@,$baseport,;t t
24462 s,@dir_port@,$dir_port,;t t
24463 s,@fd_port@,$fd_port,;t t
24464 s,@sd_port@,$sd_port,;t t
24465 s,@dir_password@,$dir_password,;t t
24466 s,@fd_password@,$fd_password,;t t
24467 s,@sd_password@,$sd_password,;t t
24468 s,@mon_dir_password@,$mon_dir_password,;t t
24469 s,@mon_fd_password@,$mon_fd_password,;t t
24470 s,@mon_sd_password@,$mon_sd_password,;t t
24471 s,@dir_user@,$dir_user,;t t
24472 s,@dir_group@,$dir_group,;t t
24473 s,@sd_user@,$sd_user,;t t
24474 s,@sd_group@,$sd_group,;t t
24475 s,@fd_user@,$fd_user,;t t
24476 s,@fd_group@,$fd_group,;t t
24477 s,@SBINPERM@,$SBINPERM,;t t
24478 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24479 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24480 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24481 s,@cats@,$cats,;t t
24482 s,@DB_NAME@,$DB_NAME,;t t
24483 s,@GETCONF@,$GETCONF,;t t
24484 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24485 s,@X_CFLAGS@,$X_CFLAGS,;t t
24486 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24487 s,@X_LIBS@,$X_LIBS,;t t
24488 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24489 s,@LIBOBJS@,$LIBOBJS,;t t
24490 s,@ALLOCA@,$ALLOCA,;t t
24491 s,@FDLIBS@,$FDLIBS,;t t
24492 s,@DEBUG@,$DEBUG,;t t
24493 s,@DINCLUDE@,$DINCLUDE,;t t
24494 s,@DLIB@,$DLIB,;t t
24495 s,@DB_LIBS@,$DB_LIBS,;t t
24496 s,@WCFLAGS@,$WCFLAGS,;t t
24497 s,@WLDFLAGS@,$WLDFLAGS,;t t
24498 s,@OBJLIST@,$OBJLIST,;t t
24499 s,@hostname@,$hostname,;t t
24500 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24501 s,@PSCMD@,$PSCMD,;t t
24502 s,@WIN32@,$WIN32,;t t
24503 s,@MACOSX@,$MACOSX,;t t
24504 s,@DISTNAME@,$DISTNAME,;t t
24505 s,@DISTVER@,$DISTVER,;t t
24506 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24507 /@MCOMMON@/r $MCOMMON
24513 cat >>$CONFIG_STATUS <<\_ACEOF
24514 # Split the substitutions into bite-sized pieces for seds with
24515 # small command number limits, like on Digital OSF/1 and HP-UX.
24516 ac_max_sed_lines=48
24517 ac_sed_frag=1 # Number of current file.
24518 ac_beg=1 # First line for current file.
24519 ac_end=$ac_max_sed_lines # Line after last line for current file.
24522 while $ac_more_lines; do
24523 if test $ac_beg -gt 1; then
24524 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24526 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24528 if test ! -s $tmp/subs.frag; then
24529 ac_more_lines=false
24531 # The purpose of the label and of the branching condition is to
24532 # speed up the sed processing (if there are no `@' at all, there
24533 # is no need to browse any of the substitutions).
24534 # These are the two extra sed commands mentioned above.
24536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24537 if test -z "$ac_sed_cmds"; then
24538 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24540 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24542 ac_sed_frag=`expr $ac_sed_frag + 1`
24544 ac_end=`expr $ac_end + $ac_max_sed_lines`
24547 if test -z "$ac_sed_cmds"; then
24550 fi # test -n "$CONFIG_FILES"
24553 cat >>$CONFIG_STATUS <<\_ACEOF
24554 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24557 - | *:- | *:-:* ) # input from stdin
24559 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24561 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24563 * ) ac_file_in=$ac_file.in ;;
24566 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24567 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24569 X"$ac_file" : 'X\(//\)[^/]' \| \
24570 X"$ac_file" : 'X\(//\)$' \| \
24571 X"$ac_file" : 'X\(/\)' \| \
24572 . : '\(.\)' 2>/dev/null ||
24574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24576 /^X\(\/\/\)$/{ s//\1/; q; }
24577 /^X\(\/\).*/{ s//\1/; q; }
24579 { if $as_mkdir_p; then
24584 while test ! -d "$as_dir"; do
24585 as_dirs="$as_dir $as_dirs"
24586 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24588 X"$as_dir" : 'X\(//\)[^/]' \| \
24589 X"$as_dir" : 'X\(//\)$' \| \
24590 X"$as_dir" : 'X\(/\)' \| \
24591 . : '\(.\)' 2>/dev/null ||
24593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24595 /^X\(\/\/\)$/{ s//\1/; q; }
24596 /^X\(\/\).*/{ s//\1/; q; }
24599 test ! -n "$as_dirs" || mkdir $as_dirs
24600 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24602 { (exit 1); exit 1; }; }; }
24606 if test "$ac_dir" != .; then
24607 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24608 # A "../" for each directory in $ac_dir_suffix.
24609 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24611 ac_dir_suffix= ac_top_builddir=
24615 .) # No --srcdir option. We are building in place.
24617 if test -z "$ac_top_builddir"; then
24620 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24622 [\\/]* | ?:[\\/]* ) # Absolute path.
24623 ac_srcdir=$srcdir$ac_dir_suffix;
24624 ac_top_srcdir=$srcdir ;;
24625 *) # Relative path.
24626 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24627 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24630 # Do not use `cd foo && pwd` to compute absolute paths, because
24631 # the directories may not exist.
24633 .) ac_abs_builddir="$ac_dir";;
24636 .) ac_abs_builddir=`pwd`;;
24637 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24638 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24641 case $ac_abs_builddir in
24642 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24644 case ${ac_top_builddir}. in
24645 .) ac_abs_top_builddir=$ac_abs_builddir;;
24646 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24647 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24650 case $ac_abs_builddir in
24651 .) ac_abs_srcdir=$ac_srcdir;;
24654 .) ac_abs_srcdir=$ac_abs_builddir;;
24655 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24656 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24659 case $ac_abs_builddir in
24660 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24662 case $ac_top_srcdir in
24663 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24664 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24665 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24672 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24675 if test x"$ac_file" != x-; then
24676 { echo "$as_me:$LINENO: creating $ac_file" >&5
24677 echo "$as_me: creating $ac_file" >&6;}
24680 # Let's still pretend it is `configure' which instantiates (i.e., don't
24681 # use $as_me), people would be surprised to read:
24682 # /* config.h. Generated by config.status. */
24683 if test x"$ac_file" = x-; then
24686 configure_input="$ac_file. "
24688 configure_input=$configure_input"Generated from `echo $ac_file_in |
24689 sed 's,.*/,,'` by configure."
24691 # First look for the input files in the build tree, otherwise in the
24693 ac_file_inputs=`IFS=:
24694 for f in $ac_file_in; do
24696 -) echo $tmp/stdin ;;
24698 # Absolute (can't be DOS-style, as IFS=:)
24699 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24700 echo "$as_me: error: cannot find input file: $f" >&2;}
24701 { (exit 1); exit 1; }; }
24704 if test -f "$f"; then
24707 elif test -f "$srcdir/$f"; then
24712 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24713 echo "$as_me: error: cannot find input file: $f" >&2;}
24714 { (exit 1); exit 1; }; }
24717 done` || { (exit 1); exit 1; }
24719 cat >>$CONFIG_STATUS <<_ACEOF
24723 cat >>$CONFIG_STATUS <<\_ACEOF
24725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24726 s,@configure_input@,$configure_input,;t t
24727 s,@srcdir@,$ac_srcdir,;t t
24728 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24729 s,@top_srcdir@,$ac_top_srcdir,;t t
24730 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24731 s,@builddir@,$ac_builddir,;t t
24732 s,@abs_builddir@,$ac_abs_builddir,;t t
24733 s,@top_builddir@,$ac_top_builddir,;t t
24734 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24735 s,@INSTALL@,$ac_INSTALL,;t t
24736 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24738 if test x"$ac_file" != x-; then
24739 mv $tmp/out $ac_file
24747 cat >>$CONFIG_STATUS <<\_ACEOF
24750 # CONFIG_HEADER section.
24753 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24754 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24756 # ac_d sets the value in "#define NAME VALUE" lines.
24757 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24758 ac_dB='[ ].*$,\1#\2'
24761 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24762 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24763 ac_uB='$,\1#\2define\3'
24767 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24770 - | *:- | *:-:* ) # input from stdin
24772 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24774 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24776 * ) ac_file_in=$ac_file.in ;;
24779 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24780 echo "$as_me: creating $ac_file" >&6;}
24782 # First look for the input files in the build tree, otherwise in the
24784 ac_file_inputs=`IFS=:
24785 for f in $ac_file_in; do
24787 -) echo $tmp/stdin ;;
24789 # Absolute (can't be DOS-style, as IFS=:)
24790 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24791 echo "$as_me: error: cannot find input file: $f" >&2;}
24792 { (exit 1); exit 1; }; }
24793 # Do quote $f, to prevent DOS paths from being IFS'd.
24796 if test -f "$f"; then
24799 elif test -f "$srcdir/$f"; then
24804 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24805 echo "$as_me: error: cannot find input file: $f" >&2;}
24806 { (exit 1); exit 1; }; }
24809 done` || { (exit 1); exit 1; }
24810 # Remove the trailing spaces.
24811 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24815 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24816 # `conftest.undefs', that substitutes the proper values into
24817 # config.h.in to produce config.h. The first handles `#define'
24818 # templates, and the second `#undef' templates.
24819 # And first: Protect against being on the right side of a sed subst in
24820 # config.status. Protect against being in an unquoted here document
24821 # in config.status.
24822 rm -f conftest.defines conftest.undefs
24823 # Using a here document instead of a string reduces the quoting nightmare.
24824 # Putting comments in sed scripts is not portable.
24826 # `end' is used to avoid that the second main sed command (meant for
24827 # 0-ary CPP macros) applies to n-ary macro definitions.
24828 # See the Autoconf documentation for `clear'.
24829 cat >confdef2sed.sed <<\_ACEOF
24834 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24836 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24839 # If some macros were called several times there might be several times
24840 # the same #defines, which is useless. Nevertheless, we may not want to
24841 # sort them, since we want the *last* AC-DEFINE to be honored.
24842 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24843 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24844 rm -f confdef2sed.sed
24846 # This sed command replaces #undef with comments. This is necessary, for
24847 # example, in the case of _POSIX_SOURCE, which is predefined and required
24848 # on some systems where configure will not decide to define it.
24849 cat >>conftest.undefs <<\_ACEOF
24850 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24853 # Break up conftest.defines because some shells have a limit on the size
24854 # of here documents, and old seds have small limits too (100 cmds).
24855 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24856 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24857 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24858 echo ' :' >>$CONFIG_STATUS
24859 rm -f conftest.tail
24860 while grep . conftest.defines >/dev/null
24862 # Write a limited-size here document to $tmp/defines.sed.
24863 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24864 # Speed up: don't consider the non `#define' lines.
24865 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24866 # Work around the forget-to-reset-the-flag bug.
24867 echo 't clr' >>$CONFIG_STATUS
24868 echo ': clr' >>$CONFIG_STATUS
24869 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24871 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24873 mv $tmp/out $tmp/in
24875 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24876 rm -f conftest.defines
24877 mv conftest.tail conftest.defines
24879 rm -f conftest.defines
24880 echo ' fi # grep' >>$CONFIG_STATUS
24881 echo >>$CONFIG_STATUS
24883 # Break up conftest.undefs because some shells have a limit on the size
24884 # of here documents, and old seds have small limits too (100 cmds).
24885 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24886 rm -f conftest.tail
24887 while grep . conftest.undefs >/dev/null
24889 # Write a limited-size here document to $tmp/undefs.sed.
24890 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24891 # Speed up: don't consider the non `#undef'
24892 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24893 # Work around the forget-to-reset-the-flag bug.
24894 echo 't clr' >>$CONFIG_STATUS
24895 echo ': clr' >>$CONFIG_STATUS
24896 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24898 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24900 mv $tmp/out $tmp/in
24902 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24903 rm -f conftest.undefs
24904 mv conftest.tail conftest.undefs
24906 rm -f conftest.undefs
24908 cat >>$CONFIG_STATUS <<\_ACEOF
24909 # Let's still pretend it is `configure' which instantiates (i.e., don't
24910 # use $as_me), people would be surprised to read:
24911 # /* config.h. Generated by config.status. */
24912 if test x"$ac_file" = x-; then
24913 echo "/* Generated by configure. */" >$tmp/config.h
24915 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24917 cat $tmp/in >>$tmp/config.h
24919 if test x"$ac_file" != x-; then
24920 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24921 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24922 echo "$as_me: $ac_file is unchanged" >&6;}
24924 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24926 X"$ac_file" : 'X\(//\)[^/]' \| \
24927 X"$ac_file" : 'X\(//\)$' \| \
24928 X"$ac_file" : 'X\(/\)' \| \
24929 . : '\(.\)' 2>/dev/null ||
24931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24933 /^X\(\/\/\)$/{ s//\1/; q; }
24934 /^X\(\/\).*/{ s//\1/; q; }
24936 { if $as_mkdir_p; then
24941 while test ! -d "$as_dir"; do
24942 as_dirs="$as_dir $as_dirs"
24943 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24945 X"$as_dir" : 'X\(//\)[^/]' \| \
24946 X"$as_dir" : 'X\(//\)$' \| \
24947 X"$as_dir" : 'X\(/\)' \| \
24948 . : '\(.\)' 2>/dev/null ||
24950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24952 /^X\(\/\/\)$/{ s//\1/; q; }
24953 /^X\(\/\).*/{ s//\1/; q; }
24956 test ! -n "$as_dirs" || mkdir $as_dirs
24957 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24959 { (exit 1); exit 1; }; }; }
24962 mv $tmp/config.h $ac_file
24966 rm -f $tmp/config.h
24970 cat >>$CONFIG_STATUS <<\_ACEOF
24973 # CONFIG_COMMANDS section.
24975 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24976 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24977 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24978 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24979 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24980 X"$ac_dest" : 'X\(//\)[^/]' \| \
24981 X"$ac_dest" : 'X\(//\)$' \| \
24982 X"$ac_dest" : 'X\(/\)' \| \
24983 . : '\(.\)' 2>/dev/null ||
24985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24987 /^X\(\/\/\)$/{ s//\1/; q; }
24988 /^X\(\/\).*/{ s//\1/; q; }
24990 { if $as_mkdir_p; then
24995 while test ! -d "$as_dir"; do
24996 as_dirs="$as_dir $as_dirs"
24997 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24999 X"$as_dir" : 'X\(//\)[^/]' \| \
25000 X"$as_dir" : 'X\(//\)$' \| \
25001 X"$as_dir" : 'X\(/\)' \| \
25002 . : '\(.\)' 2>/dev/null ||
25004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25006 /^X\(\/\/\)$/{ s//\1/; q; }
25007 /^X\(\/\).*/{ s//\1/; q; }
25010 test ! -n "$as_dirs" || mkdir $as_dirs
25011 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25012 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25013 { (exit 1); exit 1; }; }; }
25017 if test "$ac_dir" != .; then
25018 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25019 # A "../" for each directory in $ac_dir_suffix.
25020 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25022 ac_dir_suffix= ac_top_builddir=
25026 .) # No --srcdir option. We are building in place.
25028 if test -z "$ac_top_builddir"; then
25031 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25033 [\\/]* | ?:[\\/]* ) # Absolute path.
25034 ac_srcdir=$srcdir$ac_dir_suffix;
25035 ac_top_srcdir=$srcdir ;;
25036 *) # Relative path.
25037 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25038 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25041 # Do not use `cd foo && pwd` to compute absolute paths, because
25042 # the directories may not exist.
25044 .) ac_abs_builddir="$ac_dir";;
25047 .) ac_abs_builddir=`pwd`;;
25048 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25049 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25052 case $ac_abs_builddir in
25053 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25055 case ${ac_top_builddir}. in
25056 .) ac_abs_top_builddir=$ac_abs_builddir;;
25057 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25058 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25061 case $ac_abs_builddir in
25062 .) ac_abs_srcdir=$ac_srcdir;;
25065 .) ac_abs_srcdir=$ac_abs_builddir;;
25066 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25067 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25070 case $ac_abs_builddir in
25071 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25073 case $ac_top_srcdir in
25074 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25075 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25076 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25081 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25082 echo "$as_me: executing $ac_dest commands" >&6;}
25085 for ac_file in $CONFIG_FILES; do
25086 # Support "outfile[:infile[:infile...]]"
25088 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25090 # PO directories have a Makefile.in generated from Makefile.in.in.
25091 case "$ac_file" in */Makefile.in)
25092 # Adjust a relative srcdir.
25093 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25094 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25095 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25096 # In autoconf-2.13 it is called $ac_given_srcdir.
25097 # In autoconf-2.50 it is called $srcdir.
25098 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25099 case "$ac_given_srcdir" in
25100 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25101 /*) top_srcdir="$ac_given_srcdir" ;;
25102 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25104 # Treat a directory as a PO directory if and only if it has a
25105 # POTFILES.in file. This allows packages to have multiple PO
25106 # directories under different names or in different locations.
25107 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25108 rm -f "$ac_dir/POTFILES"
25109 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25110 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25111 POMAKEFILEDEPS="POTFILES.in"
25112 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25113 # on $ac_dir but don't depend on user-specified configuration
25115 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25116 # The LINGUAS file contains the set of available languages.
25117 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25118 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25120 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25121 # Hide the ALL_LINGUAS assigment from automake.
25122 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25123 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25125 # The set of available languages was given in configure.in.
25126 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25129 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25130 # Compute UPDATEPOFILES
25131 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25132 # Compute DUMMYPOFILES
25133 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25135 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25136 case "$ac_given_srcdir" in
25138 *) srcdirpre='$(srcdir)/' ;;
25144 for lang in $ALL_LINGUAS; do
25145 POFILES="$POFILES $srcdirpre$lang.po"
25146 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25147 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25148 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25150 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25151 # environment variable.
25153 if test -n "$ALL_LINGUAS"; then
25154 for presentlang in $ALL_LINGUAS; do
25156 if test "%UNSET%" != "$LINGUAS"; then
25157 desiredlanguages="$LINGUAS"
25159 desiredlanguages="$ALL_LINGUAS"
25161 for desiredlang in $desiredlanguages; do
25162 # Use the presentlang catalog if desiredlang is
25163 # a. equal to presentlang, or
25164 # b. a variant of presentlang (because in this case,
25165 # presentlang can be used as a fallback for messages
25166 # which are not translated in the desiredlang catalog).
25167 case "$desiredlang" in
25168 "$presentlang"*) useit=yes;;
25171 if test $useit = yes; then
25172 INST_LINGUAS="$INST_LINGUAS $presentlang"
25177 if test -n "$INST_LINGUAS"; then
25178 for lang in $INST_LINGUAS; do
25179 CATALOGS="$CATALOGS $lang.gmo"
25182 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25183 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"
25184 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25185 if test -f "$f"; then
25187 *.orig | *.bak | *~) ;;
25188 *) cat "$f" >> "$ac_dir/Makefile" ;;
25196 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25202 cat >>$CONFIG_STATUS <<\_ACEOF
25204 { (exit 0); exit 0; }
25206 chmod +x $CONFIG_STATUS
25207 ac_clean_files=$ac_clean_files_save
25210 # configure is writing to config.log, and then calls config.status.
25211 # config.status does its own redirection, appending to config.log.
25212 # Unfortunately, on DOS this fails, as config.log is still kept open
25213 # by configure, so config.status won't be able to write to it; its
25214 # output is simply discarded. So we exec the FD to /dev/null,
25215 # effectively closing config.log, so it can be properly (re)opened and
25216 # appended to by config.status. When coming back to configure, we
25217 # need to make the FD available again.
25218 if test "$no_create" != yes; then
25220 ac_config_status_args=
25221 test "$silent" = yes &&
25222 ac_config_status_args="$ac_config_status_args --quiet"
25224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25227 # would make configure fail if this is the last instruction.
25228 $ac_cs_success || { (exit 1); exit 1; }
25233 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25234 chmod 755 dvd-writepart dvd-freespace
25235 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25240 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
25241 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
25243 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
25244 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
25246 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
25247 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
25249 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
25250 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
25252 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
25253 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
25255 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25256 chmod 755 $c/sqlite
25259 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25260 largefile_support="yes"
25264 # A whole lot of hand springs to get the compiler version.
25265 # This is because gcc changed the output in version 3.0
25267 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25268 if test "x${CCVERSION}" = "x" ; then
25269 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25271 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25272 if test x"${CXXVERSION}" = x ; then
25273 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25276 if test "x${subsysdir}" = "x${sbindir}" ; then
25279 echo "You have set --sbindir and --with-subsys-dir"
25280 echo " both equal to: ${subsysdir} "
25281 echo " This is not permitted. Please reconfigure."
25283 echo "Aborting configuration ..."
25289 if test "x${db_name}" = "xInternal" ; then
25292 echo "You have not specified either --enable-client-only or one of the"
25293 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25294 echo " This is not permitted. Please reconfigure."
25296 echo "Aborting the configuration ..."
25303 Configuration on `date`:
25305 Host: $host -- ${DISTNAME} ${DISTVER}
25306 Bacula version: ${VERSION} (${DATE})
25307 Source code location: ${srcdir}
25308 Install binaries: ${sbindir}
25309 Install config files: ${sysconfdir}
25310 Scripts directory: ${scriptdir}
25311 Working directory: ${working_dir}
25312 PID directory: ${piddir}
25313 Subsys directory: ${subsysdir}
25314 Man directory: ${mandir}
25315 Data directory: ${datadir}
25316 C Compiler: ${CC} ${CCVERSION}
25317 C++ Compiler: ${CXX} ${CXXVERSION}
25318 Compiler flags: ${WCFLAGS} ${CFLAGS}
25319 Linker flags: ${WLDFLAGS} ${LDFLAGS}
25321 Statically Linked Tools: ${support_static_tools}
25322 Statically Linked FD: ${support_static_fd}
25323 Statically Linked SD: ${support_static_sd}
25324 Statically Linked DIR: ${support_static_dir}
25325 Statically Linked CONS: ${support_static_cons}
25326 Database type: ${db_name}
25327 Database lib: ${DB_LIBS}
25329 Job Output Email: ${job_email}
25330 Traceback Email: ${dump_email}
25331 SMTP Host Address: ${smtp_host}
25333 Director Port: ${dir_port}
25334 File daemon Port: ${fd_port}
25335 Storage daemon Port: ${sd_port}
25337 Director User: ${dir_user}
25338 Director Group: ${dir_group}
25339 Storage Daemon User: ${sd_user}
25340 Storage DaemonGroup: ${sd_group}
25341 File Daemon User: ${fd_user}
25342 File Daemon Group: ${fd_group}
25344 SQL binaries Directory ${SQL_BINDIR}
25346 Large file support: $largefile_support
25347 Bacula conio support: ${got_conio} ${CONS_LIBS}
25348 readline support: ${got_readline} ${PRTREADLINE_SRC}
25349 TCP Wrappers support: ${TCPW_MSG}
25350 TLS support: ${support_tls}
25351 ZLIB support: ${have_zlib}
25352 enable-smartalloc: ${support_smartalloc}
25353 enable-gnome: ${support_gnome} ${gnome_version}
25354 enable-wx-console: ${support_wx_console} ${wx_version}
25355 enable-tray-monitor: ${support_tray_monitor}
25356 client-only: ${build_client_only}
25357 build-dird: ${build_dird}
25358 build-stored: ${build_stored}
25359 ACL support: ${have_acl}
25360 Python support: ${support_python} ${PYTHON_LIBS}