distribute and modify it. ## --------------------- ## ## M4sh
Initialization. ## ## --------------------- ##
# Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS
sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null
2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;; esac
fi
# PATH needs CR # Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDE-
FGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits
# The user is always right. if test "${PATH_SEPARATOR+set}" !=
set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh fi
# Support unset when possible. if ( (MAIL=60; unset MAIL) || ex-
it) >/dev/null 2>&1; then
as_unset=unset else
as_unset=false fi
# IFS # We need space, tab and new line, in precisely that order.
Quoting is # there to prevent editors from complaining about
space-tab. # (If _AS_PATH_WALK were called with IFS unset, it
would disable word # splitting by setting IFS to empty value.)
as_nl=' IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory
separator. case $0 in
*[\/]* ) as_myself=$0 ;;
# Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL
MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset
$as_var done PS1='$ ' PS2='> ' PS4='+ '
# NLS nuisances. for as_var in LANG LANGUAGE LC_ADDRESS LC_ALL
LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MES-
SAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE
LC_TIME do
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`");
then
eval $as_var=C; export $as_var
else
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
fi done
# Required to use basename. if expr a : '' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*.'`" = X001; then
as_expr=expr else
as_expr=false fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- /
2>&1`" = "X/"; then
as_basename=basename else
as_basename=false fi
# Name of the executable. as_me=`$as_basename -- "$0" || $as_ex-
pr X/"$0" : '.*//][^/]*/*$' X"$0" : 'X$' X"$0" : 'X' .
2>/dev/null || echo X/"$0" |
sed '/^.*/][^/]**$/{ s//1/ q
} /^X$/{ s//1/ q }
/^X.*/{ s//1/ q }
s/.*/./; q'`
# CDPATH. $as_unset CDPATH
if test "x$CONFIG_SHELL" = x; then
if (eval ":") 2>/dev/null; then
as_have_required=yes else
as_have_required=no fi
if test $as_have_required = yes && (eval ": (as_func_return
() {
(exit ) } as_func_success () {
as_func_return 0 } as_func_failure () {
as_func_return 1 } as_func_ret_success () {
return 0 } as_func_ret_failure () {
return 1 }
exitcode=0 if as_func_success; then
: else
echo as_func_ret_failure succeeded. fi
if ( set x; as_func_ret_success y && test x =
: else
exitcode=1
echo positional parameters were not saved. fi
test xitcode = 0) || { (exit 1); exit 1; }
(
as_lineno_1=INENO
as_lineno_2=INENO
test
test ") 2> /dev/null; then
: else
as_candidate_shells=
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in
/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
case $as_dir in /*) for as_base in sh bash
ksh sh5; do as_candidate_shells="$as_candi-
date_shells $as_dir/$as_base" done;;
esac done IFS=$as_save_IFS
for as_shell in $as_candidate_shells $SHELL; do #
Try only shells that exist, to save several forks. if {
test -f "$as_shell" || test -f "$as_shell.exe"; } &&
{ ("$as_shell") 2> /dev/null <<_ASEOF if test -n
"${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;; esac
fi
: _ASEOF }; then
CONFIG_SHELL=$as_shell as_have_required=yes
if { "$as_shell" 2> /dev/null <<_ASEOF if test -n
"${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
exitcode=0 if as_func_success; then
: else
exitcode=1
echo as_func_success failed. fi
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded. fi
if as_func_ret_success; then
: else
exitcode=1
echo as_func_ret_success failed. fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded. fi
if ( set x; as_func_ret_success y && test x = "$1" ); then
: else
exitcode=1
echo positional parameters were not saved. fi
test $exitcode = 0) || { (exit 1); exit 1; }
(
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit
1); exit 1; }
_ASEOF }; then
break fi
fi
done
if test "x$CONFIG_SHELL" != x; then
for as_var in BASH_ENV ENV
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset
$as_var
done
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi
if test $as_have_required = no; then
echo This script requires a shell more modern than all the
echo shells that I found on your system. Please install a
echo modern shell, or manually run the script under such a
return 0 } as_func_ret_failure () {
return 1 }
exitcode=0 if as_func_success; then
: else
exitcode=1
echo as_func_success failed. fi
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded. fi
if as_func_ret_success; then
: else
exitcode=1
echo as_func_ret_success failed. fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded. fi
if ( set x; as_func_ret_success y && test x =
: else
exitcode=1
echo positional parameters were not saved. fi
test xitcode = 0") || {
echo No shell found that supports shell functions.
echo Please tell autoconf@gnu.org about your system,
echo including any error possibly output before this
echo message }
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
# Create $as_me.lineno as a copy of $as_myself, but with
$LINENO
# uniformly replaced by the line number. The first 'sed' in-
serts a
# line-number line after each line using $LINENO; the second
'sed'
# does the real work. The second script uses 'N' to pair each
# line-number line with the line containing $LINENO, and ap-
pends
# trailing '-' during substitution so that $LINENO is not a
special
# case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
t loop
s/-0*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ echo "$as_me: error: cannot create $as_me.lineno; rerun
with a POSIX shell" >&2
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of
problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to
this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit }
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null
2>&1; then
as_dirname=dirname else
as_dirname=false fi
ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*)
case `echo 'x *c*) ECHO_T=' ';; # ECHO_T is single tab
character.
*) ECHO_C=' esac;; *)
ECHO_N='-n';; esac
if expr a : '' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*.'`" = X001; then
as_expr=expr else
as_expr=false fi
rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file else
rm -f conf$$.dir
mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file
conf$$ 2>/dev/null; then
as_ln_s='ln -s'
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper
executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f
conf$$.exe ||
as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln else
as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe
conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null
if test -d "$1"; then
test -d "$1/.";
else case $1 in
-*)set "./$1";; esac; case `ls
-ld'$as_ls_L_option' "$1" 2>/dev/null` in
???[sx]*):;;*)false;;esac;fi
''' sh
' fi as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LET-
TERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
exec 7<&0 </dev/null 6>&1
# Name of the host. # hostname on some systems (SVR3.2, Linux)
returns a bogus exit status, # so uname gets run too. ac_host-
name=`(hostname || uname -n) 2>/dev/null | sed 1q`
# # Initializations. # ac_default_prefix=/usr/local
ac_clean_files= ac_config_libobj_dir=. LIB@&t@OBJS= cross_com-
piling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CON-
FIG_SHELL-/bin/sh}
# Identity of this package. PACKAGE_NAME='Box Backup' PACK-
AGE_TARNAME='box-backup' PACKAGE_VERSION='0.10' PACK-
AGE_STRING='Box Backup 0.10' PACKAGE_BUGREPORT='box@fluffy.co.uk'
ac_unique_file="lib/common/Box.h" # Factoring default headers for
most tests. ac_includes_default="#include <stdio.h> #ifdef
HAVE_SYS_TYPES_H # include <sys/types.h> #endif #ifdef
HAVE_SYS_STAT_H # include <sys/stat.h> #endif #ifdef STDC_HEADERS
# include <stdlib.h> # include <stddef.h> #else # ifdef
HAVE_STDLIB_H # include <stdlib.h> # endif #endif #ifdef
HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
# include <memory.h> # endif # include <string.h> #endif #ifdef
HAVE_STRINGS_H # include <strings.h> #endif #ifdef HAVE_INT-
TYPES_H # include <inttypes.h> #endif #ifdef HAVE_STDINT_H # in-
clude <stdint.h> #endif #ifdef HAVE_UNISTD_H # include <unistd.h>
#endif"
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME
PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix pre-
fix program_transform_name bindir sbindir libexecdir datarootdir
datadir sysconfdir sharedstatedir localstatedir includedir oldin-
cludedir docdir infodir htmldir dvidir pdfdir psdir libdir lo-
caledir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias
gram_transform_name=s,x,x, silent= site= srcdir= verbose= x_in-
cludes=NONE x_libraries=NONE
# Installation directory options. # These are left unexpanded so
users can "make install exec_prefix=/foo" # and all the variables
that are supposed to be based on exec_prefix # by default will
actually change. # Use braces instead of parens because sh,
perl, etc. also accept them. # (The list follows the same order
as the GNU Coding Standards.) bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share' datadir='${datarootdir}'
sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' local-
statedir='${prefix}/var' includedir='${prefix}/include' oldin-
cludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TAR-
NAME}' infodir='${datarootdir}/info' htmldir='${docdir}'
dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' lib-
dir='${exec_prefix}/lib' localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'
ac_prev= ac_dashdash= for ac_option do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval $ac_prev=c_option
ac_prev=
continue
fi
case $ac_option in
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*='` ;;
*) ac_optarg=yes ;;
esac
# Accept the important Cygnus configure options, so we can di-
agnose typos.
case $ac_dashdash$ac_option in
--)
ac_dashdash=yes ;;
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* |
--bi=*)
bindir=$ac_optarg ;;
-build | --build | --buil | --bui | --bu)
ac_prev=build_alias ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build_alias=$ac_optarg ;;
-cache-file | --cache-file | --cache-fil | --cache-fi |
--cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
-datarootdir | --datarootdir | --datarootdi | --datarootd |
--dataroot | --dataroo | --dataro | --datar)
ac_prev=datarootdir ;;
-datarootdir=* | --datarootdir=* | --datarootdi=* | --data-
rootd=* | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
datarootdir=$ac_optarg ;;
-disable-* | --disable-*)
ac_feature=`expr "x$ac_option" : 'x-*disable-'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature"
>&2
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
eval enable_$ac_feature=no ;;
-docdir | --docdir | --docdi | --doc | --do)
ac_prev=docdir ;;
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
docdir=$ac_optarg ;;
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
ac_prev=dvidir ;;
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |
--dv=*)
dvidir=$ac_optarg ;;
-enable-* | --enable-*)
ac_feature=`expr "x$ac_option" : 'x-*enable-=]*'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature"
>&2
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
eval enable_$ac_feature=c_optarg ;;
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi |
--exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- |
--exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-
prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-
p=* | --exec-=* | --exec=* | --exe=* | --ex=*)
exec_prefix=$ac_optarg ;;
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
-help | --help | --hel | --he | -h)
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* |
--htm=* | --ht=*)
htmldir=$ac_optarg ;;
-includedir | --includedir | --includedi | --included | --in-
clude | --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* |
--include=* | --includ=* | --inclu=* | --incl=* | --inc=*)
includedir=$ac_optarg ;;
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* |
--inf=*)
infodir=$ac_optarg ;;
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
libdir=$ac_optarg ;;
-libexecdir | --libexecdir | --libexecdi | --libexecd |
--libexec | --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* |
--libexec=* | --libexe=* | --libex=* | --libe=*)
libexecdir=$ac_optarg ;;
-localedir | --localedir | --localedi | --localed | --locale)
ac_prev=localedir ;;
-localedir=* | --localedir=* | --localedi=* | --localed=* |
--locale=*)
localedir=$ac_optarg ;;
-localstatedir | --localstatedir | --localstatedi | --local-
stated | --localstate | --localstat | --localsta | --localst |
--locals)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --lo-
calstated=* | --localstate=* | --localstat=* | --localsta=* |
--localst=* | --locals=*)
localstatedir=$ac_optarg ;;
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* |
--ma=* | --m=*)
mandir=$ac_optarg ;;
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* |
--oldincluded=* | --oldinclude=* | --oldinclud=* | --oldinclu=*
| --oldincl=* | --oldinc=* | --oldin=* | --oldi=* | --old=* |
--ol=* | --o=*)
oldincludedir=$ac_optarg ;;
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* |
--pr=* | --p=*)
prefix=$ac_optarg ;;
-program-prefix | --program-prefix | --program-prefi | --pro-
gram-pref | --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* |
--program-pref=* | --program-pre=* | --program-pr=* | --program-
p=*)
program_prefix=$ac_optarg ;;
-program-suffix | --program-suffix | --program-suffi | --pro-
gram-suff | --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* |
--program-suff=* | --program-suf=* | --program-su=* | --program-
s=*)
program_suffix=$ac_optarg ;;
-program-transform-name | --program-transform-name | --pro-
gram-transform-nam | --program-transform-na | --program-trans-
form-n | --program-transform- | --program-transform | --pro-
gram-transfor | --program-transfo | --program-transf | --pro-
gram-trans | --program-tran | --progr-tra | --program-tr |
--program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* |
--program-transform-nam=* | --program-transform-na=* | --pro-
gram-transform-n=* | --program-transform-=* | --program-trans-
form=* | --program-transfor=* | --program-transfo=* | --pro-
gram-transf=* | --program-trans=* | --program-tran=* | --pro-
gr-tra=* | --program-tr=* | --program-t=*)
program_transform_name=$ac_optarg ;;
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
ac_prev=pdfdir ;;
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* |
--pd=*)
pdfdir=$ac_optarg ;;
-psdir | --psdir | --psdi | --psd | --ps)
ac_prev=psdir ;;
-sharedstatedir | --sharedstatedir | --sharedstatedi |
--sharedstated | --sharedstate | --sharedstat | --sharedsta |
--sharedst | --shareds | --shared | --share | --shar | --sha |
--sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* |
--sharedstated=* | --sharedstate=* | --sharedstat=* | --shareds-
ta=* | --sharedst=* | --shareds=* | --shared=* | --share=* |
--shar=* | --sha=* | --sh=*)
sharedstatedir=$ac_optarg ;;
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
site=$ac_optarg ;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* |
--sr=*)
srcdir=$ac_optarg ;;
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd |
--sysconf | --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* |
--sysconf=* | --syscon=* | --sysco=* | --sysc=* | --sys=* |
--sy=*)
sysconfdir=$ac_optarg ;;
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target_alias ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* |
--ta=* | --t=*)
target_alias=$ac_optarg ;;
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
-with-* | --with-*)
ac_package=`expr "x$ac_option" : 'x-*with-=]*'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid package name: $ac_package"
>&2
{ (exit 1); exit 1; }; }
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
eval with_$ac_package=c_optarg ;;
-x-includes | --x-includes | --x-include | --x-includ | --x-in-
clu | --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* |
--x-inclu=* | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
x_includes=$ac_optarg ;;
-x-libraries | --x-libraries | --x-librarie | --x-librari |
--x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-li-
brari=* | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* |
--x-li=* | --x-l=*)
x_libraries=$ac_optarg ;;
-*) { echo "$as_me: error: unrecognized option: $ac_option Try
`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
;;
*=*)
ac_envvar=`expr "x$ac_option" : 'x=]*='`
# Reject names that are not valid shell variable names.
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid variable name: $ac_envvar"
>&2
{ (exit 1); exit 1; }; }
eval $ac_envvar=c_optarg
export $ac_envvar ;;
*)
# FIXME: should be removed in autoconf 3.0.
echo "$as_me: WARNING: you should use --build, --host, --tar-
get" >&2
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${tar-
get_alias=$ac_option}
;;
esac done
if test -n "$ac_prev"; then
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
{ echo "$as_me: error: missing argument to $ac_option" >&2
{ (exit 1); exit 1; }; } fi
# Be sure to have absolute directory names. for ac_var in ex-
ec_prefix prefix bindir sbindir libexecdir datarootdir
datadir sysconfdir sharedstatedir localstatedir in-
cludedir oldincludedir docdir infodir htmldir dvidir
pdfdir psdir libdir localedir mandir do
# FIXME: To remove some day. if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
echo "$as_me: WARNING: If you wanted to set the --build type,
don't use --host.
If a cross compiler is detected then cross compile mode will
be used." >&2
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi fi
ac_tool_prefix= test -n "$host_alias" && ac_tool_pre-
fix=$host_alias-
test "$silent" = yes && exec 6>/dev/null
ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
{ echo "$as_me: error: Working directory cannot be determined"
>&2
{ (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di"
||
{ echo "$as_me: error: pwd does not report name of working di-
rectory" >&2
{ (exit 1); exit 1; }; }
# Find the source files, if location was not specified. if test
-z "$srcdir"; then
ac_srcdir_defaulted=yes
# Try the directory containing this script, then the parent di-
rectory.
ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" :
'X[^/]//*[^/][^/]*/*$' X"$0" : 'X[^/]' X"$0" : 'X$'
X"$0" : 'X' . 2>/dev/null || echo X"$0" |
sed '/^X[^/]*[^/][^/]**$/{ s//1/ q
} /^X[^/].*/{ s//1/ q
} /^X$/{ s//1/ q
} /^X.*/{ s//1/ q
} s/.*/./; q'`
srcdir=$ac_confdir
if test ! -r "$srcdir/$ac_unique_file"; then
srcdir=..
fi else
ac_srcdir_defaulted=no fi if test ! -r "$sr-
cdir/$ac_unique_file"; then
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in
$srcdir" >&2
{ (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir,
but `cd $srcdir' does not work" ac_abs_confdir=`( cd
# # Report the --help message. # if test "$ac_init_help" =
"long"; then
# Omit some internal or obsolete options to make the list less
imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF `configure' configures Box Backup 0.10 to adapt to
many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify
them as VAR=VALUE. See below for descriptions of some of the
useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this pack-
age
--help=recursive display the short help of all the in-
cluded packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir
or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files
in PREFIX [$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in
EPREFIX [PREFIX]
By default, `make install' will install all the files in `$ac_de-
fault_prefix/bin', `$ac_default_prefix/lib' etc. You can specify
an installation prefix other than `$ac_default_prefix' using
`--prefix', for instance `--prefix=OME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PRE-
FIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PRE-
DIR/doc/box-backup@:>@
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR] _ACEOF
cat <<_ACEOF
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on
HOST [BUILD]
--target=TARGET configure for building compilers for TARGET
[HOST] _ACEOF fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of Box Backup
0.10:";;
esac
cat <<_ACEOF
Optional Features:
--disable-FEATURE do not include FEATURE (same as --en-
able-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-gnu-readline Use GNU readline if present (may vio-
late GNU
licence)
--enable-old-ssl Allow use of pre-0.9.7 Open SSL - NOT
RECOMMENDED,
read the documentation
--disable-largefile omit support for large files
--enable-static-bin Link binaries with static libraries
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-
PACKAGE=no)
--with-bdb-dir=DIR Berkeley DB installation directory
--with-ssl-headers=DIR SSL include files location
--with-ssl-lib=DIR SSL library location
--with-random=FILE Use FILE as random number seed [auto-
detected]
--with-tmp-dir=DIR Directory for temporary files [/tmp]
Some influential environment variables:
CXX C++ compiler command
CXXFLAGS C++ compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have li-
braries in a
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: &&
continue
test -d "$ac_dir" || continue
ac_builddir=.
case "$ac_dir" in *)
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^.[\/],,'`
# A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed
's,/[^\/]*,/..,g;s,/,,'`
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_build-
dir=$ac_pwd$ac_dir_suffix # for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
case $srcdir in
.) # We are building in place.
ac_srcdir=.
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\/]* | ?:[\/]* ) # Absolute name.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir
ac_abs_top_srcdir=$srcdir ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_sr-
cdir=$ac_abs_top_srcdir$ac_dir_suffix
cd "$ac_dir" || { ac_status=$?; continue; }
# Check for guested configure.
if test -f "$ac_srcdir/configure.gnu"; then
echo &&
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
elif test -f "$ac_srcdir/configure"; then
echo &&
$SHELL "$ac_srcdir/configure" --help=recursive
else
echo "$as_me: WARNING: no configuration information is in
$ac_dir" >&2
fi || ac_status=$?
cd "$ac_pwd" || { ac_status=$?; break; }
done fi
test -n "$ac_init_help" && exit $ac_status if $ac_init_version;
then
cat <<_ACEOF Box Backup configure 0.10 generated by GNU Auto-
$ $0 $@
_ACEOF exec 5>>config.log { cat <<_ASUNAME @%:@@%:@ ---------
@%:@@%:@ @%:@@%:@ Platform. @%:@@%:@ @%:@@%:@ --------- @%:@@%:@
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m
= `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r)
2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null
|| echo unknown` uname -v = `(uname -v) 2>/dev/null || echo un-
known`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo un-
known` /bin/uname -X = `(/bin/uname -X) 2>/dev/null ||
echo unknown`
/bin/arch = `(/bin/arch) 2>/dev/null ||
echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k)
2>/dev/null || echo unknown` /usr/convex/getsysinfo =
`(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null ||
echo unknown` /bin/machine = `(/bin/machine)
2>/dev/null || echo unknown` /usr/bin/oslevel =
`(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/uni-
verse = `(/bin/universe) 2>/dev/null || echo
unknown`
_ASUNAME
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
echo "PATH: $as_dir" done IFS=$as_save_IFS
} >&5
cat >&5 <<_ACEOF
@%:@@%:@ ----------- @%:@@%:@ @%:@@%:@ Core tests. @%:@@%:@
@%:@@%:@ ----------- @%:@@%:@
_ACEOF
# Keep a trace of the command line. # Strip out --no-create and
--no-recursion so they do not pile up. # Strip out --silent be-
cause we don't want to record it for future runs. # Also quote
any args containing shell meta-characters. # Make two passes to
allow for proper duplicate-argument suppression. ac_config-
ure_args= ac_configure_args0= ac_configure_args1=
ac_must_keep_next=false for ac_pass in 1 2 do
for ac_arg
if test $ac_must_keep_next = true; then
ac_must_keep_next=false # Got value, back to normal.
else case $ac_arg in *=* | --config-cache
| -C | -disable-* | --disable-* | -enable-* | --enable-* |
-gas | --g* | -nfp | --nf* | -q | -quiet | --q* | -silent
| --sil* | -v | -verb* | -with-* | --with-* | -without-* |
--without-* | --x) case "$ac_configure_args0 " in
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac ;; -* )
ac_must_keep_next=true ;; esac
fi
ac_configure_args="$ac_configure_args '$ac_arg'"
;;
esac
done done $as_unset ac_configure_args0 || test "${ac_config-
ure_args0+set}" != set || { ac_configure_args0=; export ac_con-
figure_args0; } $as_unset ac_configure_args1 || test "${ac_con-
figure_args1+set}" != set || { ac_configure_args1=; export
ac_configure_args1; }
# When interrupted or exit'd, cleanup temporary files, and com-
plete # config.log. We remove comments because anyway the quotes
in there # would cause problems or look ugly. # WARNING: Use '''
to represent an apostrophe within the trap. # WARNING: Do not
start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
# Save into config.log some information that might help in de-
bugging.
{
echo
cat <<_ASBOX @%:@@%:@ ---------------- @%:@@%:@ @%:@@%:@
Cache variables. @%:@@%:@ @%:@@%:@ ---------------- @%:@@%:@ _AS-
BOX
echo
# The following way of writing the cache mishandles newlines
in values, (
for ac_var in `(set) 2>&1 | sed -n '''s/^-zA-Z_][a-zA-
Z0-9_]*=.*/1/p'''`; do
eval ac_val=ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable
$ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache
variable $ac_var contains a newline." >&2;} ;;
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
*) $as_unset $ac_var ;;
esac ;;
esac
cat <<_ASBOX @%:@@%:@ ----------------- @%:@@%:@ @%:@@%:@
Output variables. @%:@@%:@ @%:@@%:@ ----------------- @%:@@%:@
_ASBOX
echo
for ac_var in $ac_subst_vars
do
eval ac_val=ac_var
case $ac_val in
*'''*) ac_val=`echo "$ac_val" | sed
"s/'''/'''\\\\''''''/g"`;;
esac
echo "$ac_var='''$ac_val'''"
done | sort
echo
if test -n "$ac_subst_files"; then
cat <<_ASBOX @%:@@%:@ ------------------- @%:@@%:@ @%:@@%:@
File substitutions. @%:@@%:@ @%:@@%:@ -------------------
@%:@@%:@ _ASBOX
echo
for ac_var in $ac_subst_files
do eval ac_val=ac_var case $ac_val in
*'''*) ac_val=`echo "$ac_val" | sed
"s/'''/'''\\\\''''''/g"`;; esac echo
"$ac_var='''$ac_val'''"
done | sort
echo
fi
if test -s confdefs.h; then
cat <<_ASBOX @%:@@%:@ ----------- @%:@@%:@ @%:@@%:@
confdefs.h. @%:@@%:@ @%:@@%:@ ----------- @%:@@%:@ _ASBOX
echo
cat confdefs.h
echo
fi
test "$ac_signal" != 0 &&
echo "$as_me: caught signal $ac_signal"
echo "$as_me: exit $exit_status"
} >&5
rm -f core *.core core.conftest.* &&
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done ac_signal=0
# confdefs.h avoids OS command line length limits that DEFS can
exceed. rm -f -r conftest* confdefs.h
# Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_NAME "$PACKAGE_NAME"
cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_BUGREPORT "$PACK-
AGE_BUGREPORT" _ACEOF
# Let the site file select an alternate cache file if it wants
to. # Prefer explicitly selected file to automatically selected
ones. if test -n "$CONFIG_SITE"; then
set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then
set x "$prefix/share/config.site" "$prefix/etc/config.site"
else
set x "$ac_default_prefix/share/config.site" "$ac_default_pre-
fix/etc/config.site" fi shift for ac_site_file do
if test -r "$ac_site_file"; then
{ echo "$as_me:$LINENO: loading site script $ac_site_file"
>&5 echo "$as_me: loading site script $ac_site_file" >&6;}
sed 's/^/| /' "$ac_site_file" >&5
. "$ac_site_file"
fi done
if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo
"$as_me: loading cache $cache_file" >&6;}
case $cache_file in
[\/]* | ?:[\/]* ) . "$cache_file";;
*) . "./$cache_file";;
esac
fi else
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo
"$as_me: creating cache $cache_file" >&6;}
>$cache_file fi
# Check that the precious variables saved in the cache have kept
the same # value. ac_cache_corrupted=false for ac_var in
$ac_precious_vars; do
eval ac_old_set=c_cv_env_${ac_var}_set
eval ac_new_set=c_env_${ac_var}_set
eval ac_old_val=c_cv_env_${ac_var}_value
eval ac_new_val=c_env_${ac_var}_value
case $ac_old_set,$ac_new_set in
set,)
{ echo "$as_me:$LINENO: error: `$ac_var' was set to
`$ac_old_val' in the previous run" >&5 echo "$as_me: error:
`$ac_var' was set to `$ac_old_val' in the previous run" >&2;}
ac_cache_corrupted=: ;;
,set)
{ echo "$as_me:$LINENO: error: `$ac_var' was not set in the
previous run" >&5 echo "$as_me: error: `$ac_var' was not set in
the previous run" >&2;}
if test "$ac_new_set" = set; then
case $ac_new_val in
*'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed
"s/'/'\\\\''/g"` ;;
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures
accuracy.
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
esac
fi done if $ac_cache_corrupted; then
{ echo "$as_me:$LINENO: error: changes in the environment can
compromise the build" >&5 echo "$as_me: error: changes in the en-
vironment can compromise the build" >&2;}
{ { echo "$as_me:$LINENO: error: run `make distclean' and/or
`rm $cache_file' and start over" >&5 echo "$as_me: error: run
`make distclean' and/or `rm $cache_file' and start over" >&2;}
{ (exit 1); exit 1; }; } fi
ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS
$CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exe-
ext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_config_headers="$ac_config_headers lib/common/BoxConfig.h"
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi done if test -z "$ac_aux_dir"; then
{ { echo "$as_me:$LINENO: error: cannot find install-sh or in-
stall.sh in echo "$as_me: error: cannot find install-sh or in-
stall.sh in
{ (exit 1); exit 1; }; } fi
# These three variables are undocumented and unsupported, # and
are intended to be withdrawn in a future Autoconf release. #
They can cause serious problems if a builder's source tree is in
a directory # whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't
use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" #
Please don't use this var. ac_configure="$SHELL $ac_aux_dir/con-
figure" # Please don't use this var.
# Make sure we can run config.sub. $SHELL "$ac_aux_dir/con-
fig.sub" sun4 >/dev/null 2>&1 ||
{ { echo "$as_me:$LINENO: error: cannot run $SHELL
$ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run
$SHELL $ac_aux_dir/config.sub" >&2;}
{ (exit 1); exit 1; }; }
{ echo "$as_me:$LINENO: checking build system type" >&5 echo
$ECHO_N "checking build system type... $ECHO_C" >&6; } if test
"${ac_cv_build+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_build_alias=$build_alias test "x$ac_build_alias" = x &&
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test
"x$ac_build_alias" = x &&
{ { echo "$as_me:$LINENO: error: cannot guess build type; you
must specify one" >&5 echo "$as_me: error: cannot guess build
type; you must specify one" >&2;}
{ (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/con-
fig.sub" $ac_build_alias` ||
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed" >&5 echo "$as_me: error: $SHELL
$ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
{ (exit 1); exit 1; }; }
fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo
"${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *)
{ { echo "$as_me:$LINENO: error: invalid value of canonical
build" >&5 echo "$as_me: error: invalid value of canonical build"
>&2;}
{ (exit 1); exit 1; }; };; esac build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1
build_vendor=$2 shift; shift # Remember, the first character of
IFS is used to create $*, # except with old shells: build_os=$*
IFS=$ac_save_IFS case $build_os in * *) build_os=`echo
fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo
"${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) {
{ echo "$as_me:$LINENO: error: invalid value of canonical host"
>&5 echo "$as_me: error: invalid value of canonical host" >&2;}
{ (exit 1); exit 1; }; };; esac host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1
host_vendor=$2 shift; shift # Remember, the first character of
IFS is used to create $*, # except with old shells: host_os=$*
IFS=$ac_save_IFS case $host_os in * *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
{ echo "$as_me:$LINENO: checking target system type" >&5 echo
$ECHO_N "checking target system type... $ECHO_C" >&6; } if test
"${ac_cv_target+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test "x$target_alias" = x; then
ac_cv_target=$ac_cv_host else
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/con-
fig.sub $target_alias failed" >&5 echo "$as_me: error: $SHELL
$ac_aux_dir/config.sub $target_alias failed" >&2;}
{ (exit 1); exit 1; }; } fi
fi { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 echo
"${ECHO_T}$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical
target" >&5 echo "$as_me: error: invalid value of canonical tar-
get" >&2;}
{ (exit 1); exit 1; }; };; esac target=$ac_cv_target
ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1
target_vendor=$2 shift; shift # Remember, the first character of
IFS is used to create $*, # except with old shells: target_os=$*
IFS=$ac_save_IFS case $target_os in * *) target_os=`echo "$tar-
get_os" | sed 's/ /-/g'`;; esac
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized. test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" =
NONENONEs,x,x, &&
program_prefix=${target_alias}- test -s install-sh || rm in-
stall-sh
### Checks for programs.
ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c
$CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o con-
ftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext
$LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for
$ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C"
>&6; } if test "${ac_cv_prog_CXX+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test -n "$CXX"; then
ac_cv_prog_CXX="$CXX" # Let the user override the test. else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x
"$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi done done IFS=$as_save_IFS
fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then
{ echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX"
>&6; } else
{ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6;
} fi
test -n "$CXX" && break
done fi if test -z "$CXX"; then
ac_ct_CXX=$CXX
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC
xlC_r xlC do
# Extract the first word of "$ac_prog", so it can be a program
name with args. set dummy $ac_prog; ac_word=$2 { echo
"$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "check-
ing for $ac_word... $ECHO_C" >&6; } if test
"${ac_cv_prog_ac_ct_CXX+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test -n "$ac_ct_CXX"; then
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the
test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in
$PATH do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x
"$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_ac_ct_CXX="$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi done done IFS=$as_save_IFS
fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX";
then
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo
autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Au-
toconf will not detect cross-tools whose name does not start with
the host triplet. If you think this configuration is useful to
you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes
;; esac
CXX=$ac_ct_CXX
fi fi
fi fi # Provide some information about the compiler. echo
"$as_me:$LINENO: checking for C++ compiler version" >&5 ac_com-
piler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --ver-
sion >&5" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compiler --version >&5") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compiler -v >&5") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compiler -V >&5") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
int main () {
;
return 0; } _ACEOF ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to cre-
ate an executable without -o first, disregard a.out. # It will
help us diagnose broken compilers, and finding out an intuition #
of exeext. { echo "$as_me:$LINENO: checking for C++ compiler de-
fault output file name" >&5 echo $ECHO_N "checking for C++ com-
piler default output file name... $ECHO_C" >&6; } ac_link_de-
fault=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List
of possible output files, starting from the most likely. # The
algorithm is not robust to junk in `.', hence go to wildcards
(a.*) # only as a last resort. b.out is created by i960 compil-
ers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.*
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; then
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. #
So ignore a value of `no', otherwise this would lead to `EXEEXT =
no' # in a Makefile. We should not override ac_cv_exeext if it
was cached, # so that the user can short-circuit this test for
compilers unknown to # Autoconf. for ac_file in $ac_files '' do
test -f "$ac_file" || continue
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb |
*.bbg | *.map | *.inf | *.o | *.obj ) ;;
[ab].out ) # We found the default executable, but ex-
eext='' is most # certainly right. break;;
*.* )
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exe-
ext" != no; then :; else ac_cv_exeext=`expr
"$ac_file" : '[^.]**'` fi # We set ac_cv_exeext
here because the later test for it is not # safe: cross
compilers may not add the suffix if given an `-o' # argu-
ment, so we may need to know it at that point already. #
Even if this section looks crufty: it has the advantage of
# actually working. break;;
* ) break;;
esac done test "$ac_cv_exeext" = no && ac_cv_exeext=
else
ac_file='' fi
{ echo "$as_me:$LINENO: result: $ac_file" >&5 echo
"${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create exe-
cutables See `config.log' for more details." >&5 echo "$as_me:
error: C++ compiler cannot create executables See `config.log'
for more details." >&2;}
{ (exit 77); exit 77; }; } fi
ac_exeext=$ac_cv_exeext
# Check that the compiler produces executables we can run. If
not, either # the compiler is broken, or we cross compile. {
echo "$as_me:$LINENO: checking whether the C++ compiler works"
>&5 echo $ECHO_N "checking whether the C++ compiler works...
$ECHO_C" >&6; } # FIXME: These cross compiler hacks should be re-
moved for Autoconf 3.0 # If not cross compiling, check that we
can run a simple program. if test "$cross_compiling" != yes;
then
if { ac_try='./$ac_file'
{ (case "(($ac_try" in
use `--host'. See `config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo
"${ECHO_T}yes" >&6; }
rm -f a.out a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save # Check that the compiler
produces executables we can run. If not, either # the compiler
is broken, or we cross compile. { echo "$as_me:$LINENO: checking
whether we are cross compiling" >&5 echo $ECHO_N "checking
whether we are cross compiling... $ECHO_C" >&6; } { echo
"$as_me:$LINENO: result: $cross_compiling" >&5 echo
"${ECHO_T}$cross_compiling" >&6; }
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6;
} if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; then
# If both `conftest.exe' and `conftest' are `present' (well,
observable) # catch `conftest.exe'. For instance with Cygwin,
`ls conftest' will # work properly (i.e., refer to `con-
ftest.exe'), while it won't with # `rm'. for ac_file in con-
ftest.exe conftest conftest.*; do
test -f "$ac_file" || continue
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb |
*.bbg | *.map | *.inf | *.o | *.obj ) ;;
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]**'`
break;;
* ) break;;
esac done else
{ { echo "$as_me:$LINENO: error: cannot compute suffix of exe-
cutables: cannot compile and link See `config.log' for more de-
tails." >&5 echo "$as_me: error: cannot compute suffix of exe-
cutables: cannot compile and link See `config.log' for more de-
tails." >&2;}
{ (exit 1); exit 1; }; } fi
rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result:
$ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; }
rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT {
echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C"
>&6; } if test "${ac_cv_objext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
(exit $ac_status); }; then
for ac_file in conftest.o conftest.obj conftest.*; do
test -f "$ac_file" || continue;
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb |
*.bbg | *.map | *.inf ) ;;
*) ac_cv_objext=`expr "$ac_file" : '.*.'`
break;;
esac done else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object
files: cannot compile See `config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: can-
not compile See `config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo
"$as_me:$LINENO: result: $ac_cv_objext" >&5 echo
"${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_ob-
jext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are us-
ing the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we
are using the GNU C++ compiler... $ECHO_C" >&6; } if test
"${ac_cv_cxx_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
int main () { #ifndef __GNUC__
choke me #endif
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_compiler_gnu=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_compiler_gnu=no fi
ac_cv_prog_cxx_g=no
CXXFLAGS="-g"
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
int main () {
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_prog_cxx_g=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
CXXFLAGS=""
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int main () {
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
: else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_prog_cxx_g=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo
"$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo
"${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" =
set; then
CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes;
then
if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
else
CXXFLAGS="-g"
fi else
if test "$GXX" = yes; then
CXXFLAGS="-O2"
else
CXXFLAGS=
fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c
$CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o con-
ftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext
$LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ echo "$as_me:$LINENO: checking whether the compiler supports
exceptions" >&5 echo $ECHO_N "checking whether the compiler sup-
ports exceptions... $ECHO_C" >&6; } if test "${ac_cv_cxx_excep-
tions+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c
$CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o con-
ftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext
$LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_cxx_exceptions=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_cxx_exceptions=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c
$CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o con-
ftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext
$LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_exceptions" >&5
echo "${ECHO_T}$ac_cv_cxx_exceptions" >&6; } if test
"$ac_cv_cxx_exceptions" = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_EXCEPTIONS _ACEOF
fi
{ echo "$as_me:$LINENO: checking whether the compiler implements
namespaces" >&5 echo $ECHO_N "checking whether the compiler im-
plements namespaces... $ECHO_C" >&6; } if test
"${ac_cv_cxx_namespaces+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c
$CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o con-
ftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext
$LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ namespace Outer { namespace Inner { int i =
0; }} int main () { using namespace Outer::Inner; return i;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } if test
"$ac_cv_cxx_namespaces" = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_NAMESPACES _ACEOF
fi
if test "x$ac_cv_cxx_exceptions" != "xyes" || test
"x$ac_cv_cxx_namespaces" != "xyes"; then
{ { echo "$as_me:$LINENO: error: basic compile checks failed,
the C++ compiler is broken" >&5 echo "$as_me: error: basic com-
pile checks failed, the C++ compiler is broken" >&2;}
{ (exit 1); exit 1; }; } fi if test "x$GXX" = "xyes"; then
# Use -Wall if we have gcc. This gives better warnings
CXXFLAGS_STRICT='-Wall'
# Use -rdynamic if we have gcc. This is needed for backtrace
LDADD_RDYNAMIC='-rdynamic'
fi # Extract the first word of "perl", so it can be a program
name with args. set dummy perl; ac_word=$2 { echo
"$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "check-
ing for $ac_word... $ECHO_C" >&6; } if test
"${ac_cv_path_PERL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
case $PERL in
[\/]* | ?:[\/]*)
ac_cv_path_PERL="$PERL" # Let the user override the test with a
path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x
"$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi done done IFS=$as_save_IFS
test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
;; esac fi PERL=$ac_cv_path_PERL if test -n "$PERL"; then
{ echo "$as_me:$LINENO: result: $PERL" >&5 echo
"${ECHO_T}$PERL" >&6; } else
{ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6;
} fi
if test "x$PERL" != "xno"; then
nanosleep" >&5 echo $ECHO_N "checking for library containing
nanosleep... $ECHO_C" >&6; } if test
"${ac_cv_search_nanosleep+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char nanosleep (); int main
() { return nanosleep ();
;
return 0; } _ACEOF for ac_lib in '' rt; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_search_nanosleep=$ac_res else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext
if test "${ac_cv_search_nanosleep+set}" = set; then
break fi done if test "${ac_cv_search_nanosleep+set}" = set;
then
: else
ac_cv_search_nanosleep=no fi rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result:
$ac_cv_search_nanosleep" >&5 echo
"${ECHO_T}$ac_cv_search_nanosleep" >&6; }
ac_res=$ac_cv_search_nanosleep if test "$ac_res" != no; then
ftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h
>>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end
confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char zlibVersion (); int
main () { return zlibVersion ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_z_zlibVersion=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_lib_z_zlibVersion=no fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result:
$ac_cv_lib_z_zlibVersion" >&5 echo "${ECHO_T}$ac_cv_lib_z_zlib-
Version" >&6; } if test $ac_cv_lib_z_zlibVersion = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBZ 1 _ACEOF
LIBS="-lz $LIBS"
else
{ { echo "$as_me:$LINENO: error: cannot find zlib" >&5 echo
"$as_me: error: cannot find zlib" >&2;}
{ (exit 1); exit 1; }; } fi
ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c
$CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o con-
ftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext
$LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo
"$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor...
$ECHO_C" >&6; } if test -z "$CXXCPP"; then
if test "${ac_cv_prog_CXXCPP+set}" = set; then
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ @%:@ifdef __STDC__ @%:@ include <limits.h>
@%:@else @%:@ include <assert.h> @%:@endif
Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
: else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
# Broken: fails on valid input. continue fi
rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether nonexistent head-
ers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ @%:@include <ac_nonexistent.h> _ACEOF if {
(ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
# Broken: success on invalid input. continue else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
# Passes both tests. ac_preproc_ok=: break fi
rm -f conftest.err conftest.$ac_ext
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's pars-
er,
# not just through cpp. "Syntax error" is here to catch this
case.
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ @%:@ifdef __STDC__ @%:@ include <limits.h>
@%:@else @%:@ include <assert.h> @%:@endif
Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
: else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
# Broken: fails on valid input. continue fi
rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether nonexistent head-
ers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ @%:@include <ac_nonexistent.h> _ACEOF if {
(ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
fig.log' for more details." >&5 echo "$as_me: error: C++ pre-
processor See `config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } fi
ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c
$CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o con-
ftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext
$LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ echo "$as_me:$LINENO: checking for grep that handles long lines
and -e" >&5 echo $ECHO_N "checking for grep that handles long
lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}"
= set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
# Extract the first word of "grep ggrep" to use in msg output
if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if
test "${ac_cv_path_GREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_path_GREP_found=false # Loop through the user's path and
test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPA-
RATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in grep ggrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
# Check for GNU ac_path_GREP and select it if it is found.
# Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version
2>&1` in *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *)
ac_count=0
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
echo 'GREP' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "con-
ftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ac_count=`expr $ac_count + 1`
if test $ac_count -gt ${ac_path_GREP_max-0}; then
# Best one so far, save it but keep looking for a better
one
ac_cv_path_GREP="$ac_path_GREP"
ac_path_GREP_max=$ac_count
fi
# 10*(2^10) chars as input seems more than enough
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name
could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo
"$as_me: error: no acceptable $ac_prog_name could be found in
$PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
{ (exit 1); exit 1; }; } fi
else
ac_cv_path_GREP=$GREP fi
fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo
"${ECHO_T}$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N
"checking for egrep... $ECHO_C" >&6; } if test
"${ac_cv_path_EGREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
then ac_cv_path_EGREP="$GREP -E"
else
# Extract the first word of "egrep" to use in msg output if
test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test
"${ac_cv_path_EGREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_path_EGREP_found=false # Loop through the user's path and
test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPA-
RATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in egrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; }
|| continue
# Check for GNU ac_path_EGREP and select it if it is found.
# Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version
2>&1` in *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *)
ac_count=0
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
echo 'EGREP' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out"
2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ac_count=`expr $ac_count + 1`
done IFS=$as_save_IFS
fi
EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name
could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo
"$as_me: error: no acceptable $ac_prog_name could be found in
$PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
{ (exit 1); exit 1; }; } fi
else
ac_cv_path_EGREP=$EGREP fi
fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
EGREP="$ac_cv_path_EGREP"
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <stdlib.h> #include <stdarg.h> #in-
clude <string.h> #include <float.h>
int main () {
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_header_stdc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_header_stdc=no fi
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <stdlib.h>
_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "free" >/dev/null 2>&1; then
: else
ac_cv_header_stdc=no fi rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using
-ansi.
if test "$cross_compiling" = yes; then
: else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <ctype.h> #include <stdlib.h> #if
((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c)
<= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') :
(c)) #else # define ISLOWER(c) (('a' <= (c) && (c)
<= 'i') || ('j' <= (c) && (c) <= 'r')
|| ('s' <= (c) && (c) <= 'z')) # define TOUP-
PER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () {
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) !=
TOUPPER (i))
return 2;
return 0; } _ACEOF rm -f conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
: else
fi
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memo-
ry.h strings.h inttypes.h stdint.h unistd.h do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo
"$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default
@%:@include <$ac_header> _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
eval "$as_ac_Header=yes" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
eval "$as_ac_Header=no" fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
ac_res=`eval echo '${'$as_ac_Header'}'` { echo
"$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res"
>&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
fi
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ORIG_LIBS="$LIBS"
vl_cv_lib_readline=""
for readline_lib in readline; do
for termcap_lib in "" termcap curses ncurses; do
if test -z "$termcap_lib"; then
TRY_LIB="-l$readline_lib"
else
TRY_LIB="-l$readline_lib -l$termcap_lib"
fi
LIBS="$ORIG_LIBS $TRY_LIB"
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char readline (); int main
() { return readline ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
vl_cv_lib_readline="$TRY_LIB" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext
if test -n "$vl_cv_lib_readline"; then
break
fi
done
if test -n "$vl_cv_lib_readline"; then
break
fi
done
as_var=$as_ac_Header; eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else
# Is the header compilable? { echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_compiler=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext {
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the compiler's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Au-
toconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
"$as_me: WARNING: $ac_header: section
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future,
the compiler will take precedence" >&5 echo "$as_me: WARNING:
$ac_header: in the future, the compiler will take precedence"
>&2;}
( cat <<_ASBOX @%:@@%:@ -------------------------------
@%:@@%:@ @%:@@%:@ Report this to box@fluffy.co.uk @%:@@%:@
@%:@@%:@ ------------------------------- @%:@@%:@ _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
vl_cv_lib_readline_compat_found=yes fi
done
fi
if test "x$vl_cv_lib_readline_compat_found" = "xyes"; then
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char add_history (); int
main () { return add_history ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
vl_cv_lib_readline_history=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext
fi { echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history"
>&5 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6; }
if test "x$vl_cv_lib_readline_history" = "xyes"; then
vl_cv_lib_readline_history=no
for ac_header in readline/history.h history.h do as_ac_Head-
er=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if {
as_var=$as_ac_Header; eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else
# Is the header compilable? { echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
ac_header_compiler=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext {
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the compiler's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
( cat <<_ASBOX @%:@@%:@ -------------------------------
@%:@@%:@ @%:@@%:@ Report this to box@fluffy.co.uk @%:@@%:@
@%:@@%:@ ------------------------------- @%:@@%:@ _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
cat >>confdefs.h <<_ACEOF @%:@define HAVE_READLINE_HISTORY 1
_ACEOF
fi
done
fi
else
LIBS="$ORIG_LIBS"
fi
fi
if test "x$vl_cv_lib_readline_compat_found" = "xno"; then
{ echo "$as_me:$LINENO: checking for editline library" >&5 echo
$ECHO_N "checking for editline library... $ECHO_C" >&6; } if test
"${vl_cv_lib_editline+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ORIG_LIBS="$LIBS"
vl_cv_lib_editline=""
for readline_lib in edit editline; do
for termcap_lib in "" termcap curses ncurses; do
if test -z "$termcap_lib"; then
TRY_LIB="-l$readline_lib"
else
TRY_LIB="-l$readline_lib -l$termcap_lib"
fi
LIBS="$ORIG_LIBS $TRY_LIB"
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
vl_cv_lib_editline="$TRY_LIB" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext
if test -n "$vl_cv_lib_editline"; then
break
fi
done
if test -n "$vl_cv_lib_editline"; then
break
fi
done
if test -z "$vl_cv_lib_editline"; then
vl_cv_lib_editline=no
LIBS="$ORIG_LIBS"
fi
fi { echo "$as_me:$LINENO: result: $vl_cv_lib_editline" >&5 echo
"${ECHO_T}$vl_cv_lib_editline" >&6; }
vl_cv_lib_readline_compat_found=no
if test "x$vl_cv_lib_editline" != "xno"; then
for ac_header in editline/readline.h do as_ac_Header=`echo
"ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header;
eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else
# Is the header compilable? { echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the compiler's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Au-
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
vl_cv_lib_readline_compat_found=yes fi
done
fi
if test "x$vl_cv_lib_readline_compat_found" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBREADLINE 1 _ACEOF
{ echo "$as_me:$LINENO: checking whether editline supports
history" >&5 echo $ECHO_N "checking whether editline supports
history... $ECHO_C" >&6; } if test "${vl_cv_lib_editline_histo-
ry+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
vl_cv_lib_editline_history=no
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char add_history (); int
main () { return add_history ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
for ac_header in editline/readline.h do as_ac_Header=`echo
"ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header;
eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else
# Is the header compilable? { echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_compiler=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext {
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the compiler's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Au-
toconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
"$as_me: WARNING: $ac_header: section
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future,
the compiler will take precedence" >&5 echo "$as_me: WARNING:
$ac_header: in the future, the compiler will take precedence"
>&2;}
( cat <<_ASBOX @%:@@%:@ -------------------------------
@%:@@%:@ @%:@@%:@ Report this to box@fluffy.co.uk @%:@@%:@
@%:@@%:@ ------------------------------- @%:@@%:@ _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
cat >>confdefs.h <<_ACEOF @%:@define HAVE_READLINE_HISTORY 1
_ACEOF
fi
## Check for Berkely DB. Restrict to certain versions
ax_path_bdb_ok=no
# Add --with-bdb-dir option to configure.
# Check whether --with-bdb-dir was given. if test
"${with_bdb_dir+set}" = set; then
withval=$with_bdb_dir; fi
# Check if --with-bdb-dir was specified.
if test "x$with_bdb_dir" = "x" ; then
# No option specified, so just search the system.
ax_path_bdb_no_options_ok=no
# Values to add to environment to use Berkeley DB.
BDB_VERSION=''
BDB_LIBS=''
BDB_CPPFLAGS=''
BDB_LDFLAGS=''
# Check cross compilation here.
if test "x$cross_compiling" = "xyes" ; then
# If cross compiling, can't use AC_RUN_IFELSE so do these
tests.
# The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
# and extracts the version number from it.
{ echo "$as_me:$LINENO: checking for db.h" >&5 echo $ECHO_N
"checking for db.h... $ECHO_C" >&6; }
ax_path_bdb_no_options_HEADER_VERSION=''
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <db.h> #ifdef DB_VERSION_MAJOR AX_PATH_BDB_STUFF DB_VER-
SION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH #else
AX_PATH_BDB_STUFF 1,0,0 #endif
_ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try"
in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
ftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_ext
if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ;
then
{ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no"
>&6; }
else
{ echo "$as_me:$LINENO: result: $ax_path_bdb_no_op-
tions_HEADER_VERSION" >&5 echo "${ECHO_T}$ax_path_bdb_no_op-
tions_HEADER_VERSION" >&6; }
# Check that version is high enough.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "" | sed -e 's/-9]*/Z1Z/g'
-e 's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_com-
pare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
if test "$ax_compare_version" = "true" ; then
# get major and minor version numbers
ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char db_version (); int main
() { return db_version ();
;
return 0; } _ACEOF for ac_lib in '' db db-$ax_path_bdb_no_op-
tions_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_op-
tions_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_op-
tions_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_op-
tions_MAJOR db$ax_path_bdb_no_options_MAJOR; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_search_db_version=$ac_res else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext
if test "${ac_cv_search_db_version+set}" = set; then
break fi done if test "${ac_cv_search_db_version+set}" = set;
then
: else
ac_cv_search_db_version=no fi rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result:
$ac_cv_search_db_version" >&5 echo
"${ECHO_T}$ac_cv_search_db_version" >&6; }
ac_res=$ac_cv_search_db_version if test "$ac_res" != no; then
LIBS="$ax_path_bdb_no_options_save_LIBS"
fi
fi
else
# Not cross compiling.
# Check version of Berkeley DB in the current environment.
ax_path_bdb_env_get_version_ok=no
ax_path_bdb_env_get_version_VERSION=''
ax_path_bdb_env_get_version_LIBS=''
# Indicate status of checking for Berkeley DB library.
{ echo "$as_me:$LINENO: checking for db.h" >&5 echo $ECHO_N
"checking for db.h... $ECHO_C" >&6; }
# Compile and run a program that determines the Berkeley DB
version
# in the header file db.h.
ax_path_bdb_env_get_version_HEADER_VERSION=''
if test "$cross_compiling" = yes; then
{ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6;
} else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv;
if (argc > 1) #ifdef DB_VERSION_MAJOR
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH); #else
printf("1.0.00); #endif
return 0; }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
sion_HEADER_VERSION" >&5 echo "${ECHO_T}$ax_path_bdb_env_get_ver-
sion_HEADER_VERSION" >&6; }
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) { echo "$as_me:$LINENO: result: no" >&5 echo
"${ECHO_T}no" >&6; } fi rm -f core *.core core.conftest.*
gmon.out bb.out conftest$ac_exeext conftest.$ac_objext con-
ftest.$ac_ext fi
# Have header version, so try to find corresponding library.
# Looks for library names in the order:
# nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
# and stops when it finds the first one that matches the ver-
sion
# of the header file.
if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ;
then
{ echo "$as_me:$LINENO: checking for library containing
Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5 echo
$ECHO_N "checking for library containing Berkeley DB
$ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
# get major and minor version numbers
ax_path_bdb_env_get_version_MAJOR=`echo
$ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,..*,,'`
ax_path_bdb_env_get_version_MINOR=`echo
$ax_path_bdb_env_get_version_HEADER_VERSION | sed
's,^[0-9]*.,,;s,.[0-9]*$,,'`
# see if it is already specified in LIBS
ax_path_bdb_env_get_version_TEST_LIBNAME=''
ax_path_bdb_env_confirm_lib_ok=no
ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
# Compile and run a program that compares the version defined
in
# the header file with a version defined in the library func-
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
ment,
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
# If the versions all match up, indicate success.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
# try format "db"
ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
ax_path_bdb_env_confirm_lib_ok=no
ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
# Compile and run a program that compares the version defined
in
# the header file with a version defined in the library func-
tion
# db_version.
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
ment,
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
# If the versions all match up, indicate success.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
fi
if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
# try format "db-X.Y"
ax_path_bdb_env_get_version_TEST_LIB-
NAME="-ldb-${ax_path_bdb_env_get_version_MA-
JOR}.$ax_path_bdb_env_get_version_MINOR"
ax_path_bdb_env_confirm_lib_ok=no
ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
ment,
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
# If the versions all match up, indicate success.
# Used to indicate true or false condition
ax_compare_version=false
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
ER_VERSION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
fi
if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
# try format "dbX.Y"
ax_path_bdb_env_get_version_TEST_LIB-
NAME="-ldb${ax_path_bdb_env_get_version_MA-
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
ment,
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
ER_VERSION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
in
# the header file with a version defined in the library func-
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
ER_VERSION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
# Compile and run a program that compares the version defined
in
# the header file with a version defined in the library func-
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
ER_VERSION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
# try format "dbX"
ax_path_bdb_env_get_version_TEST_LIB-
NAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
ax_path_bdb_env_confirm_lib_ok=no
ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
# Compile and run a program that compares the version defined
in
# the header file with a version defined in the library func-
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
# If the versions all match up, indicate success.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
ER_VERSION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x"
; then
{ echo "$as_me:$LINENO: result: none required" >&5 echo
"${ECHO_T}none required" >&6; }
else
{ echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_ver-
sion_TEST_LIBNAME" >&5 echo "${ECHO_T}$ax_path_bdb_env_get_ver-
sion_TEST_LIBNAME" >&6; }
fi
ax_path_bdb_env_get_version_VER-
SION="$ax_path_bdb_env_get_version_HEADER_VERSION"
ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_ver-
sion_TEST_LIBNAME"
ax_path_bdb_env_get_version_ok=yes
else
{ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no"
>&6; }
fi
fi
if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "" | sed -e 's/-9]*/Z1Z/g'
-e 's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
fi
fi
# Determine if we need to search /usr/local/BerkeleyDB*
ax_path_bdb_no_options_DONE=no
if test "xHIGHEST" = "xENVONLY" ; then
ax_path_bdb_no_options_DONE=yes
elif test "xHIGHEST" = "xENVFIRST" ; then
ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
fi
if test "$ax_path_bdb_no_options_DONE" = "no" ; then
ax_compare_version=false
# Check for highest in /usr/local/BerkeleyDB*
ax_path_bdb_path_find_highest_ok=no
ax_path_bdb_path_find_highest_VERSION=''
ax_path_bdb_path_find_highest_DIR=''
# find highest verison in default install directory for Berke-
ley DB
for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/lo-
cal/BerkeleyDB* 2> /dev/null`
do
ax_path_bdb_path_get_version_ok=no
# Indicate status of checking for Berkeley DB header.
{ echo "$as_me:$LINENO: checking in
$ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5 echo
$ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/in-
clude for db.h... $ECHO_C" >&6; }
ax_path_bdb_path_get_version_got_header=no
test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" &&
ax_path_bdb_path_get_version_got_header=yes
{ echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_ver-
sion_got_header" >&5 echo "${ECHO_T}$ax_path_bdb_path_get_ver-
sion_got_header" >&6; }
# Indicate status of checking for Berkeley DB library.
{ echo "$as_me:$LINENO: checking in
$ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CUR-
ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LD-
FLAGS"
# Compile and run a program that compares the version defined
in
# the header file with a version defined in the library func-
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
LIBS="$ax_path_bdb_path_get_version_save_LIBS"
LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
fi
if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
{ echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_ver-
sion_VERSION" >&5 echo "${ECHO_T}$ax_path_bdb_path_get_ver-
sion_VERSION" >&6; }
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_com-
pare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
>&6; }
fi
done
if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
if test "$ax_path_bdb_no_options_ok" = "yes" ; then
# If we already have an acceptable version use this if
higher.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$BDB_VERSION" | sed -e
's/-9]*/Z1Z/g' -e 's/Z-9]Z/Z01Z/g'
-e 's/Z-9][0-9]Z/Z01Z/g' -e
's/Z-9][0-9][0-9]Z/Z01Z/g' -e 's/[^0-9]//g'`
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_com-
pare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
if test "$ax_compare_version" = "true" ; then
:
fi
else
# Since we didn't have an acceptable version check if
this one is.
# Used to indicate true or false condition
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "" | sed -e 's/-9]*/Z1Z/g'
-e 's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_com-
pare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
if test "$ax_compare_version" = "true" ; then
:
fi
fi
fi
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_no_options_ok=yes
BDB_LIBS="-ldb" if test
"x$ax_path_bdb_path_find_highest_DIR" != x ; then
BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
fi
BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
fi
fi
fi
if test "$ax_path_bdb_no_options_ok" = "yes" ; then
{ echo "$as_me:$LINENO: using Berkeley DB version $BDB_VER-
SION" >&5 echo "$as_me: using Berkeley DB version $BDB_VERSION"
>&6;}
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DB_H 1 _ACEOF
ax_path_bdb_ok=yes
else
{ echo "$as_me:$LINENO: no Berkeley DB version or higher
found" >&5 echo "$as_me: no Berkeley DB version or higher found"
>&6;}
{ echo "$as_me:$LINENO: checking db.h presence in
$ax_path_bdb_INC" >&5 echo $ECHO_N "checking db.h presence in
$ax_path_bdb_INC... $ECHO_C" >&6; }
if test -f "$ax_path_bdb_INC/db.h" ; then
{ echo "$as_me:$LINENO: result: yes" >&5 echo
"${ECHO_T}yes" >&6; }
# Check for library
ax_path_bdb_no_options_ok=no
# Values to add to environment to use Berkeley DB.
BDB_VERSION=''
BDB_LIBS=''
BDB_CPPFLAGS=''
BDB_LDFLAGS=''
# Check cross compilation here.
if test "x$cross_compiling" = "xyes" ; then
# If cross compiling, can't use AC_RUN_IFELSE so do these
tests.
# The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
# and extracts the version number from it.
{ echo "$as_me:$LINENO: checking for db.h" >&5 echo $ECHO_N
"checking for db.h... $ECHO_C" >&6; }
ax_path_bdb_no_options_HEADER_VERSION=''
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <db.h> #ifdef DB_VERSION_MAJOR AX_PATH_BDB_STUFF DB_VER-
SION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH #else
AX_PATH_BDB_STUFF 1,0,0 #endif
_ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try"
in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
# Extract version from preprocessor output.
then
{ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no"
>&6; }
else
{ echo "$as_me:$LINENO: result: $ax_path_bdb_no_op-
tions_HEADER_VERSION" >&5 echo "${ECHO_T}$ax_path_bdb_no_op-
tions_HEADER_VERSION" >&6; }
# Check that version is high enough.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "" | sed -e 's/-9]*/Z1Z/g'
-e 's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_com-
pare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
if test "$ax_compare_version" = "true" ; then
# get major and minor version numbers
ax_path_bdb_no_options_MAJOR=`echo
$ax_path_bdb_no_options_HEADER_VERSION | sed 's,..*,,'`
ax_path_bdb_no_options_MINOR=`echo
$ax_path_bdb_no_options_HEADER_VERSION | sed
's,^[0-9]*.,,;s,.[0-9]*$,,'`
ax_path_bdb_no_options_save_LIBS="$LIBS"
() { return db_version ();
;
return 0; } _ACEOF for ac_lib in '' db db-$ax_path_bdb_no_op-
tions_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_op-
tions_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_op-
tions_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_op-
tions_MAJOR db$ax_path_bdb_no_options_MAJOR; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_search_db_version=$ac_res else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext
if test "${ac_cv_search_db_version+set}" = set; then
break fi done if test "${ac_cv_search_db_version+set}" = set;
then
: else
ac_cv_search_db_version=no fi rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result:
$ac_cv_search_db_version" >&5 echo
"${ECHO_T}$ac_cv_search_db_version" >&6; }
ac_res=$ac_cv_search_db_version if test "$ac_res" != no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
# Sucessfully found library.
ax_path_bdb_no_options_ok=yes
BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
# Extract library from LIBS
ax_path_bdb_no_options_LEN=` echo
else
# Not cross compiling.
# Check version of Berkeley DB in the current environment.
ax_path_bdb_env_get_version_ok=no
ax_path_bdb_env_get_version_VERSION=''
ax_path_bdb_env_get_version_LIBS=''
# Indicate status of checking for Berkeley DB library.
{ echo "$as_me:$LINENO: checking for db.h" >&5 echo $ECHO_N
"checking for db.h... $ECHO_C" >&6; }
# Compile and run a program that determines the Berkeley DB
version
# in the header file db.h.
ax_path_bdb_env_get_version_HEADER_VERSION=''
if test "$cross_compiling" = yes; then
{ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6;
} else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv;
if (argc > 1) #ifdef DB_VERSION_MAJOR
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH); #else
printf("1.0.00); #endif
return 0; }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status ) { echo "$as_me:$LINENO: result: no" >&5 echo
"${ECHO_T}no" >&6; } fi rm -f core *.core core.conftest.*
gmon.out bb.out conftest$ac_exeext conftest.$ac_objext con-
ftest.$ac_ext fi
# Have header version, so try to find corresponding library.
# Looks for library names in the order:
# nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
# and stops when it finds the first one that matches the ver-
sion
# of the header file.
if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ;
then
{ echo "$as_me:$LINENO: checking for library containing
Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5 echo
$ECHO_N "checking for library containing Berkeley DB
$ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
# get major and minor version numbers
ax_path_bdb_env_get_version_MAJOR=`echo
$ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,..*,,'`
ax_path_bdb_env_get_version_MINOR=`echo
$ax_path_bdb_env_get_version_HEADER_VERSION | sed
's,^[0-9]*.,,;s,.[0-9]*$,,'`
# see if it is already specified in LIBS
ax_path_bdb_env_get_version_TEST_LIBNAME=''
ax_path_bdb_env_confirm_lib_ok=no
ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
# Compile and run a program that compares the version defined
in
# the header file with a version defined in the library func-
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
ment,
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
# If the versions all match up, indicate success.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
# try format "db"
ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
ax_path_bdb_env_confirm_lib_ok=no
ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
# Compile and run a program that compares the version defined
in
# the header file with a version defined in the library func-
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
ment,
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
# If the versions all match up, indicate success.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
fi
if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
# try format "db-X.Y"
ax_path_bdb_env_get_version_TEST_LIB-
NAME="-ldb-${ax_path_bdb_env_get_version_MA-
JOR}.$ax_path_bdb_env_get_version_MINOR"
ax_path_bdb_env_confirm_lib_ok=no
ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
# Compile and run a program that compares the version defined
in
# the header file with a version defined in the library func-
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
ment,
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
# If the versions all match up, indicate success.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
fi
if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
# try format "dbX.Y"
ax_path_bdb_env_get_version_TEST_LIB-
NAME="-ldb${ax_path_bdb_env_get_version_MA-
JOR}.$ax_path_bdb_env_get_version_MINOR"
ax_path_bdb_env_confirm_lib_ok=no
ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
# Compile and run a program that compares the version defined
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
ment,
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
# If the versions all match up, indicate success.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
ER_VERSION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
fi
if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
# try format "dbXY"
ax_path_bdb_env_get_version_TEST_LIB-
NAME="-ldb$ax_path_bdb_env_get_version_MA-
JOR$ax_path_bdb_env_get_version_MINOR"
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
ment,
# which will tell the program to print the output.
ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
# If the versions all match up, indicate success.
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
ER_VERSION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
fi
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
# Program compiled and ran, so get version by giving an argu-
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
ER_VERSION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
# Compile and run a program that compares the version defined
in
# the header file with a version defined in the library func-
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEAD-
ER_VERSION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
# Pad zeros at end of numbers to make same length.
ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_com-
pare_version_B | sed 's/./0/g'`"
ax_compare_version_B="$ax_compare_version_B`echo $ax_com-
pare_version_A | sed 's/./0/g'`"
ax_compare_version_A="$ax_compare_version_tmp_A"
# Check for equality or inequality as necessary.
test "x$ax_compare_version_A" = "x$ax_compare_version_B" &&
ax_compare_version=true
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_env_confirm_lib_ok=yes
fi
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
"${ECHO_T}none required" >&6; }
else
{ echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_ver-
sion_TEST_LIBNAME" >&5 echo "${ECHO_T}$ax_path_bdb_env_get_ver-
sion_TEST_LIBNAME" >&6; }
fi
ax_path_bdb_env_get_version_VER-
SION="$ax_path_bdb_env_get_version_HEADER_VERSION"
ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_ver-
sion_TEST_LIBNAME"
ax_path_bdb_env_get_version_ok=yes
else
{ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no"
>&6; }
fi
fi
if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "" | sed -e 's/-9]*/Z1Z/g'
-e 's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_com-
pare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
# Determine if we need to search /usr/local/BerkeleyDB*
ax_path_bdb_no_options_DONE=no
if test "xENVONLY" = "xENVONLY" ; then
ax_path_bdb_no_options_DONE=yes
elif test "xENVONLY" = "xENVFIRST" ; then
ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
fi
if test "$ax_path_bdb_no_options_DONE" = "no" ; then
ax_compare_version=false
# Check for highest in /usr/local/BerkeleyDB*
ax_path_bdb_path_find_highest_ok=no
ax_path_bdb_path_find_highest_VERSION=''
ax_path_bdb_path_find_highest_DIR=''
# find highest verison in default install directory for Berke-
ley DB
for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/lo-
cal/BerkeleyDB* 2> /dev/null`
do
ax_path_bdb_path_get_version_ok=no
# Indicate status of checking for Berkeley DB header.
{ echo "$as_me:$LINENO: checking in
$ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5 echo
$ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/in-
clude for db.h... $ECHO_C" >&6; }
ax_path_bdb_path_get_version_got_header=no
test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" &&
ax_path_bdb_path_get_version_got_header=yes
{ echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_ver-
sion_got_header" >&5 echo "${ECHO_T}$ax_path_bdb_path_get_ver-
sion_got_header" >&6; }
# Indicate status of checking for Berkeley DB library.
{ echo "$as_me:$LINENO: checking in
$ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CUR-
DIR/lib for library -ldb... $ECHO_C" >&6; }
ax_path_bdb_path_get_version_VERSION=''
if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" &&
test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
test "$ax_path_bdb_path_get_version_got_header" = "yes" ;
then
tion
# db_version.
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
#include <stdio.h> #include <db.h> int main(int argc,char **argv)
{
(void) argv; #ifdef DB_VERSION_MAJOR
int major,minor,patch;
db_version(&major,&minor,&patch);
if (argc > 1)
printf("%d.%d.%d0,DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VER-
SION_PATCH);
if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
DB_VERSION_PATCH == patch)
return 0;
else
return 1; #else
DB *dbp = dbopen(0, 0, 0, DB_HASH, 0);
if(dbp) dbp->close(dbp);
if (argc > 1)
printf("1.0.00);
if (dbp)
return 0;
else
return 1; #endif }
_ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
LIBS="$ax_path_bdb_path_get_version_save_LIBS"
LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
fi
if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
{ echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_ver-
sion_VERSION" >&5 echo "${ECHO_T}$ax_path_bdb_path_get_ver-
sion_VERSION" >&6; }
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_com-
pare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_path_find_highest_ok=yes
ax_path_bdb_path_find_high-
est_DIR="$ax_path_bdb_path_find_highest_CURDIR"
ax_path_bdb_path_find_highest_VER-
SION="$ax_path_bdb_path_get_version_VERSION"
if test "$ax_path_bdb_no_options_ok" = "yes" ; then
# If we already have an acceptable version use this if
higher.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VER-
SION" | sed -e 's/-9]*/Z1Z/g' -e
's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version_B=`echo "$BDB_VERSION" | sed -e
's/-9]*/Z1Z/g' -e 's/Z-9]Z/Z01Z/g'
-e 's/Z-9][0-9]Z/Z01Z/g' -e
's/Z-9][0-9][0-9]Z/Z01Z/g' -e 's/[^0-9]//g'`
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_com-
pare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
if test "$ax_compare_version" = "true" ; then
:
fi
else
# Since we didn't have an acceptable version check if
this one is.
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_com-
pare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
if test "$ax_compare_version" = "true" ; then
:
fi
fi
fi
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_no_options_ok=yes
BDB_LIBS="-ldb" if test
"x$ax_path_bdb_path_find_highest_DIR" != x ; then
BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
fi
BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
fi
fi
fi
if test "$ax_path_bdb_no_options_ok" = "yes" ; then
{ echo "$as_me:$LINENO: using Berkeley DB version $BDB_VER-
SION" >&5 echo "$as_me: using Berkeley DB version $BDB_VERSION"
>&6;}
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DB_H 1 _ACEOF
ax_path_bdb_ok=yes
BDB_CPPFLAGS="-I$ax_path_bdb_INC"
BDB_LDFLAGS="-L$ax_path_bdb_LIB"
else
{ echo "$as_me:$LINENO: no Berkeley DB version or higher
found" >&5 echo "$as_me: no Berkeley DB version or higher found"
>&6;}
fi
else
{ echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no"
>&6; }
{ echo "$as_me:$LINENO: no usable Berkeley DB not found"
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$BDB_VERSION" | sed -e
's/-9]*/Z1Z/g' -e 's/Z-9]Z/Z01Z/g'
-e 's/Z-9][0-9]Z/Z01Z/g' -e
's/Z-9][0-9][0-9]Z/Z01Z/g' -e 's/[^0-9]//g'`
ax_compare_version_B=`echo "4.1" | sed -e 's/-9]*/Z1Z/g'
-e 's/Z-9]Z/Z01Z/g' -e 's/Z-9][0-9]Z/Z01Z/g'
-e 's/Z-9][0-9][0-9]Z/Z01Z/g' -e
's/[^0-9]//g'`
ax_compare_version=`echo "x$ax_compare_version_A x$ax_com-
pare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_com-
pare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
if test "$ax_compare_version" = "true" ; then
:
else
# Used to indicate true or false condition
ax_compare_version=false
# Convert the two version strings to be compared into a format
that
# allows a simple string comparison. The end result is that a
version
# string of the form 1.12.5-r617 will be converted to the form
# 0001001200050617. In other words, each number is zero padded
to four
# digits, and non digits are removed.
ax_compare_version_A=`echo "$BDB_VERSION" | sed -e
's/-9]*/Z1Z/g' -e 's/Z-9]Z/Z01Z/g'
-e 's/Z-9][0-9]Z/Z01Z/g' -e
's/Z-9][0-9][0-9]Z/Z01Z/g' -e 's/[^0-9]//g'`
else { { echo "$as_me:$LINENO: error: only Berkely DB ver-
sions 1.x or at least 4.1 are currently supported" >&5 echo
"$as_me: error: only Berkely DB versions 1.x or at least 4.1 are
currently supported" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
ax_major_version=`echo "$BDB_VERSION" | sed 's/.][^.]*.*/1/'`
ax_minor_version=`echo "$BDB_VERSION" | sed
's/[^.][^.]*..][^.]*.*/1/'`
ax_point_version=`echo "$BDB_VERSION" | sed
's/[^.][^.]*.[^.][^.]*./1/'`
cat >>confdefs.h <<_ACEOF @%:@define BDB_VERSION_MAJOR $ax_ma-
jor_version _ACEOF
cat >>confdefs.h <<_ACEOF @%:@define BDB_VERSION_MINOR $ax_mi-
nor_version _ACEOF
cat >>confdefs.h <<_ACEOF @%:@define BDB_VERSION_POINT
$ax_point_version _ACEOF
fi
## Check for Open SSL, use old versions only if explicitly re-
quested { echo "$as_me:$LINENO: checking for library containing
gethostbyname" >&5 echo $ECHO_N "checking for library containing
gethostbyname... $ECHO_C" >&6; } if test "${ac_cv_search_gethost-
byname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char gethostbyname (); int
main () { return gethostbyname ();
;
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_search_gethostbyname=$ac_res else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext
if test "${ac_cv_search_gethostbyname+set}" = set; then
break fi done if test "${ac_cv_search_gethostbyname+set}" =
set; then
: else
ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result:
$ac_cv_search_gethostbyname" >&5 echo
"${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
{ echo "$as_me:$LINENO: checking for library containing shutdown"
>&5 echo $ECHO_N "checking for library containing shutdown...
$ECHO_C" >&6; } if test "${ac_cv_search_shutdown+set}" = set;
then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char shutdown (); int main
() { return shutdown ();
;
return 0; } _ACEOF for ac_lib in '' nsl socket resolv; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext
if test "${ac_cv_search_shutdown+set}" = set; then
break fi done if test "${ac_cv_search_shutdown+set}" = set;
then
: else
ac_cv_search_shutdown=no fi rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result:
$ac_cv_search_shutdown" >&5 echo "${ECHO_T}$ac_cv_search_shut-
down" >&6; } ac_res=$ac_cv_search_shutdown if test "$ac_res" !=
no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
# Check whether --with-ssl-headers was given. if test
"${with_ssl_headers+set}" = set; then
withval=$with_ssl_headers; CPPFLAGS="$CPPFLAGS -I$withval" fi
# Check whether --with-ssl-lib was given. if test
"${with_ssl_lib+set}" = set; then
withval=$with_ssl_lib; LDFLAGS="$LDFLAGS -L$withval" fi
ax_check_ssl_found=yes
for ac_header in openssl/ssl.h do as_ac_Header=`echo "ac_cv_head-
er_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else
# Is the header compilable? { echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the compiler's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
else
ax_check_ssl_found=no fi
done
{ echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5 echo
$ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; } if
test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_check_lib_save_LIBS=$LIBS LIBS="-lssl -lcrypto $LIBS" cat
>conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char SSL_read (); int main
() { return SSL_read ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_ssl_SSL_read=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
if test "x$ax_check_ssl_found" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_SSL 1 _ACEOF
:
else { { echo "$as_me:$LINENO: error: OpenSSL is not in-
stalled but is required" >&5 echo "$as_me: error: OpenSSL is not
installed but is required" >&2;}
{ (exit 1); exit 1; }; }
fi
# Check whether --enable-old-ssl was given. if test "${en-
able_old_ssl+set}" = set; then
enableval=$enable_old_ssl; fi
{ echo "$as_me:$LINENO: checking for EVP_CipherInit_ex in -lcryp-
to" >&5 echo $ECHO_N "checking for EVP_CipherInit_ex in -lcryp-
to... $ECHO_C" >&6; } if test "${ac_cv_lib_crypto_EVP_Ci-
pherInit_ex+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat >con-
ftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h
>>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end
confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char EVP_CipherInit_ex ();
int main () { return EVP_CipherInit_ex ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_crypto_EVP_CipherInit_ex=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
if test "x$enable_old_ssl" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_OLD_SSL 1 _ACEOF
else
{ { echo "$as_me:$LINENO: error: found an old (pre 0.9.7)
version of SSL. Upgrade or read the documentation for alterna-
tives" >&5 echo "$as_me: error: found an old (pre 0.9.7) version
of SSL. Upgrade or read the documentation for alternatives"
>&2;}
{ (exit 1); exit 1; }; }
fi
fi
### Checks for header files.
if test "$target_os" != "mingw32"; then
ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h
ndir.h; do
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` {
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C"
>&6; } if { as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <sys/types.h> #include <$ac_hdr>
int main () { if ((DIR *) 0) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
eval "$as_ac_Header=yes" else
done # Two versions of opendir et al. are in -ldir and -lx on SCO
Xenix. if test $ac_header_dirent = dirent.h; then
{ echo "$as_me:$LINENO: checking for library containing
opendir" >&5 echo $ECHO_N "checking for library containing
opendir... $ECHO_C" >&6; } if test "${ac_cv_search_opendir+set}"
= set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char opendir (); int main ()
{ return opendir ();
;
return 0; } _ACEOF for ac_lib in '' dir; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_search_opendir=$ac_res else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext
if test "${ac_cv_search_opendir+set}" = set; then
break fi done if test "${ac_cv_search_opendir+set}" = set; then
: else
ac_cv_search_opendir=no fi rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result:
$ac_cv_search_opendir" >&5 echo "${ECHO_T}$ac_cv_search_opendir"
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char opendir (); int main ()
{ return opendir ();
;
return 0; } _ACEOF for ac_lib in '' x; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_search_opendir=$ac_res else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext
if test "${ac_cv_search_opendir+set}" = set; then
break fi done if test "${ac_cv_search_opendir+set}" = set; then
: else
ac_cv_search_opendir=no fi rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result:
$ac_cv_search_opendir" >&5 echo "${ECHO_T}$ac_cv_search_opendir"
>&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
fi
fi
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_header_stdc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_header_stdc=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <string.h>
_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "memchr" >/dev/null 2>&1; then
: else
ac_cv_header_stdc=no fi rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <stdlib.h>
_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "free" >/dev/null 2>&1; then
: else
ac_cv_header_stdc=no fi rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using
-ansi.
if test "$cross_compiling" = yes; then
: else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <ctype.h> #include <stdlib.h> #if
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
: else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core
core.conftest.* gmon.out bb.out conftest$ac_exeext con-
ftest.$ac_objext conftest.$ac_ext fi
fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_head-
er_stdc = yes; then
cat >>confdefs.h <<_ACEOF @%:@define STDC_HEADERS 1 _ACEOF
fi
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1
compatible" >&5 echo $ECHO_N "checking for sys/wait.h that is
POSIX.1 compatible... $ECHO_C" >&6; } if test "${ac_cv_head-
er_sys_wait_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <sys/types.h> #include <sys/wait.h>
#ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned
int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXIT-
ED(stat_val) (((stat_val) & 255) == 0) #endif
int main () {
int s;
wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
ac_cv_header_sys_wait_h=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 echo
"${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_head-
er_sys_wait_h = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_SYS_WAIT_H 1 _ACEOF
fi
for ac_header in execinfo.h process.h pwd.h regex.h signal.h do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if {
as_var=$as_ac_Header; eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else
# Is the header compilable? { echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_compiler=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext {
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the compiler's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Au-
toconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
"$as_me: WARNING: $ac_header: section
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future,
the compiler will take precedence" >&5 echo "$as_me: WARNING:
$ac_header: in the future, the compiler will take precedence"
>&2;}
( cat <<_ASBOX @%:@@%:@ -------------------------------
@%:@@%:@ @%:@@%:@ Report this to box@fluffy.co.uk @%:@@%:@
@%:@@%:@ ------------------------------- @%:@@%:@ _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
for ac_header in syslog.h time.h do as_ac_Header=`echo
"ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header;
eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else
# Is the header compilable? { echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_compiler=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext {
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the compiler's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Au-
toconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
"$as_me: WARNING: $ac_header: section
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future,
the compiler will take precedence" >&5 echo "$as_me: WARNING:
$ac_header: in the future, the compiler will take precedence"
>&2;}
( cat <<_ASBOX @%:@@%:@ -------------------------------
@%:@@%:@ @%:@@%:@ Report this to box@fluffy.co.uk @%:@@%:@
@%:@@%:@ ------------------------------- @%:@@%:@ _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
fi
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_compiler=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext {
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Au-
toconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
"$as_me: WARNING: $ac_header: section
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future,
the compiler will take precedence" >&5 echo "$as_me: WARNING:
$ac_header: in the future, the compiler will take precedence"
>&2;}
( cat <<_ASBOX @%:@@%:@ -------------------------------
@%:@@%:@ @%:@@%:@ Report this to box@fluffy.co.uk @%:@@%:@
@%:@@%:@ ------------------------------- @%:@@%:@ _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
fi
done
for ac_header in sys/param.h sys/socket.h sys/time.h sys/types.h
sys/wait.h do as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh` if { as_var=$as_ac_Header; eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_compiler=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext {
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
"$as_me: WARNING: $ac_header: section
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future,
the compiler will take precedence" >&5 echo "$as_me: WARNING:
$ac_header: in the future, the compiler will take precedence"
>&2;}
( cat <<_ASBOX @%:@@%:@ -------------------------------
@%:@@%:@ @%:@@%:@ Report this to box@fluffy.co.uk @%:@@%:@
@%:@@%:@ ------------------------------- @%:@@%:@ _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
fi
done
for ac_header in sys/xattr.h do as_ac_Header=`echo "ac_cv_head-
er_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else
# Is the header compilable? { echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the compiler's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Au-
toconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
fi
done
if test "$ac_cv_header_regex_h" = "yes"; then
{ echo "$as_me:$LINENO: checking for library containing reg-
comp" >&5 echo $ECHO_N "checking for library containing reg-
comp... $ECHO_C" >&6; } if test "${ac_cv_search_regcomp+set}" =
set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char regcomp (); int main ()
{ return regcomp ();
;
return 0; } _ACEOF for ac_lib in '' pcreposix; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
>&6; } ac_res=$ac_cv_search_regcomp if test "$ac_res" != no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
fi
### Checks for typedefs, structures, and compiler characteris-
tics.
{ echo "$as_me:$LINENO: checking for u_int8_t" >&5 echo $ECHO_N
"checking for u_int8_t... $ECHO_C" >&6; } if test
"${ac_cv_type_u_int8_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef u_int8_t
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_u_int8_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_u_int8_t=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 echo
"${ECHO_T}$ac_cv_type_u_int8_t" >&6; } if test
$ac_cv_type_u_int8_t = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_U_INT8_T 1 _ACEOF
fi { echo "$as_me:$LINENO: checking for u_int16_t" >&5 echo
$ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } if test
"${ac_cv_type_u_int16_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_u_int16_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_u_int16_t=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 echo
"${ECHO_T}$ac_cv_type_u_int16_t" >&6; } if test
$ac_cv_type_u_int16_t = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_U_INT16_T 1 _ACEOF
fi { echo "$as_me:$LINENO: checking for u_int32_t" >&5 echo
$ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } if test
"${ac_cv_type_u_int32_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef u_int32_t
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_u_int32_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_u_int32_t=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 echo
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_u_int64_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_u_int64_t=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 echo
"${ECHO_T}$ac_cv_type_u_int64_t" >&6; } if test
$ac_cv_type_u_int64_t = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_U_INT64_T 1 _ACEOF
fi
{ echo "$as_me:$LINENO: checking for uint8_t" >&5 echo $ECHO_N
"checking for uint8_t... $ECHO_C" >&6; } if test
"${ac_cv_type_uint8_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef uint8_t
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
cat >>confdefs.h <<_ACEOF @%:@define HAVE_UINT8_T 1 _ACEOF
fi { echo "$as_me:$LINENO: checking for uint16_t" >&5 echo
$ECHO_N "checking for uint16_t... $ECHO_C" >&6; } if test
"${ac_cv_type_uint16_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef uint16_t
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_uint16_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_uint16_t=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 echo
"${ECHO_T}$ac_cv_type_uint16_t" >&6; } if test
$ac_cv_type_uint16_t = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_UINT16_T 1 _ACEOF
fi { echo "$as_me:$LINENO: checking for uint32_t" >&5 echo
$ECHO_N "checking for uint32_t... $ECHO_C" >&6; } if test
"${ac_cv_type_uint32_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef uint32_t
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
ac_cv_type_uint32_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_uint32_t=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 echo
"${ECHO_T}$ac_cv_type_uint32_t" >&6; } if test
$ac_cv_type_uint32_t = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_UINT32_T 1 _ACEOF
fi { echo "$as_me:$LINENO: checking for uint64_t" >&5 echo
$ECHO_N "checking for uint64_t... $ECHO_C" >&6; } if test
"${ac_cv_type_uint64_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef uint64_t
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_uint64_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_uint64_t=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 echo
"${ECHO_T}$ac_cv_type_uint64_t" >&6; } if test
$ac_cv_type_uint64_t = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_UINT64_T 1 _ACEOF
"error: false is not 0" #endif #ifndef true
"error: true is not defined" #endif #if true != 1
"error: true is not 1" #endif #ifndef __bool_true_false_are_de-
fined
"error: __bool_true_false_are_defined is not defined" #endif
struct s { _Bool s: 1; _Bool t; } s;
char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1
: -1]; char c[__bool_true_false_are_defined == 1 ? 1 :
-1]; char d[(bool) 0.5 == true ? 1 : -1]; bool e
= &s; char f[(_Bool) 0.0 == false ? 1 : -1]; char
g[true]; char h[sizeof (_Bool)]; char i[sizeof
s.t]; enum { j = false, k = true, l = false * true, m =
true * 256 }; _Bool n[m]; char o[sizeof n == m *
sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 -
(bool) 0 < 0 ? 1 : -1]; # if defined __xlc__ || defined
__GNUC__ /* Catch a bug in IBM AIX xlc compiler version
6.0.0.0 reported by James Lemley on 2005-10-05; see
http://lists.gnu.org/archive/html/bug-coreuti-
ls/2005-10/msg00086.html This test is not quite
right, since xlc is allowed to reject this program,
as the initializer for xlcbug is not one of the forms
that C requires support for. However, doing the test
right would require a runtime test, and that would
make cross-compilation harder. Let us hope that IBM
fixes the xlc bug, and also adds support for this
kind of constant expression. In the meantime, this
test will reject xlc, which is OK, since our std-
bool.h substitute should suffice. We also test this
with GCC, where it should work, to detect more quick-
ly whether someone messes up the test in the future.
*/ char digs[] = "0123456789"; int xlcbug = 1 /
(&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); # endif
/* Catch a bug in an HP-UX C compiler. See
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
http://lists.gnu.org/archive/html/bug-coreuti-
ls/2005-11/msg00161.html */ _Bool q = true;
_Bool *pq = &q;
int main () {
*pq |= q; *pq |= ! q; /* Refer to every
declared value, to avoid compiler optimizations. */ re-
turn (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
+ !m + !n + !o + !p + !q + !pq);
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 echo
"${ECHO_T}$ac_cv_header_stdbool_h" >&6; } { echo "$as_me:$LINENO:
checking for _Bool" >&5 echo $ECHO_N "checking for _Bool...
$ECHO_C" >&6; } if test "${ac_cv_type__Bool+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef _Bool
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type__Bool=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type__Bool=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 echo
"${ECHO_T}$ac_cv_type__Bool" >&6; } if test $ac_cv_type__Bool =
yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE__BOOL 1 _ACEOF
fi
if test $ac_cv_header_stdbool_h = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_STDBOOL_H 1 _ACEOF
fi
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const"
>&5 echo $ECHO_N "checking for an ANSI C-conforming const...
$ECHO_C" >&6; } if test "${ac_cv_c_const+set}" = set; then
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from an-
other in
an arm of an if-expression whose if-part is not a constant
expression */
const char *g = "string";
pcpcc = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++pcpcc;
ppc = (char**) pcpcc;
pcpcc = (char const *const *) ppc;
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
if (s) return 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will re-
ject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above.
*/
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifi-
able lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
if (!foo) return 0;
}
return !cs[0] && !zero.x; #endif
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
"${ECHO_T}$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no;
then
cat >>confdefs.h <<_ACEOF @%:@define const _ACEOF
fi
{ echo "$as_me:$LINENO: checking whether byte ordering is bigen-
dian" >&5 echo $ECHO_N "checking whether byte ordering is bigen-
dian... $ECHO_C" >&6; } if test "${ac_cv_c_bigendian+set}" = set;
then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
# See if sys/param.h defines the BYTE_ORDER macro. cat >con-
ftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h
>>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end
confdefs.h. */ #include <sys/types.h> #include <sys/param.h>
int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN &&
defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN && LIT-
TLE_ENDIAN)
bogus endian macros #endif
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
# It does; now see whether it defined to BIG_ENDIAN or not.
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <sys/types.h> #include <sys/param.h>
int main () { #if BYTE_ORDER != BIG_ENDIAN
not big endian #endif
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
ftest.$ac_ext >&5
# It does not; compile a test program. if test
"$cross_compiling" = yes; then
# try to guess the endianness by grepping values into an object
file
ac_cv_c_bigendian=unknown
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765,
0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = {
0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; void _ascii
() { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } short
int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4,
0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4,
0x8981, 0x95E2, 0xA8E2, 0 }; void _ebcdic () { char *s = (char *)
ebcdic_mm; s = (char *) ebcdic_ii; } int main () {
_ascii (); _ebcdic ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_ob-
jext >/dev/null ; then
if test "$ac_cv_c_bigendian" = unknown; then
ac_cv_c_bigendian=no
else
# finding both strings is unlikely to happen, but who knows?
ac_cv_c_bigendian=unknown
fi fi else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default int main () {
/* Are we little or big endian? From Harbison&Steele. */
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_c_bigendian=no else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) ac_cv_c_bigendian=yes fi rm -f core *.core
core.conftest.* gmon.out bb.out conftest$ac_exeext con-
ftest.$ac_objext conftest.$ac_ext fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 echo
"${ECHO_T}$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in
yes)
cat >>confdefs.h <<_ACEOF @%:@define WORDS_BIGENDIAN 1 _ACEOF
;;
no)
;;
*)
{ { echo "$as_me:$LINENO: error: unknown endianness preset-
ting ac_cv_c_bigendian=no (or yes) will help" >&5 echo "$as_me:
error: unknown endianness presetting ac_cv_c_bigendian=no (or
yes) will help" >&2;}
{ (exit 1); exit 1; }; } ;; esac
{ echo "$as_me:$LINENO: checking if non-aligned 16 bit word ac-
cesses fail" >&5 echo $ECHO_N "checking if non-aligned 16 bit
word accesses fail... $ECHO_C" >&6; } if test "${have_aligned_on-
ly_int16+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
have_aligned_only_int16=no else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) have_aligned_only_int16=yes
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi { echo "$as_me:$LINENO: result: $have_aligned_only_int16" >&5
echo "${ECHO_T}$have_aligned_only_int16" >&6; }
if test "x$have_aligned_only_int16" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_ALIGNED_ONLY_INT16 1
_ACEOF
fi
{ echo "$as_me:$LINENO: checking if non-aligned 32 bit word ac-
cesses fail" >&5 echo $ECHO_N "checking if non-aligned 32 bit
word accesses fail... $ECHO_C" >&6; } if test "${have_aligned_on-
ly_int32+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default int main () {
#ifndef HAVE_UINT32_T
#define uint32_t u_int32_t;
#endif
uint32_t scratch[2];
memset(scratch, 0, sizeof(scratch));
return *(uint32_t*)((char*)scratch+1);
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
have_aligned_only_int32=no else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) have_aligned_only_int32=yes
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi { echo "$as_me:$LINENO: result: $have_aligned_only_int32" >&5
echo "${ECHO_T}$have_aligned_only_int32" >&6; }
if test "x$have_aligned_only_int32" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_ALIGNED_ONLY_INT32 1
_ACEOF
fi
{ echo "$as_me:$LINENO: checking if non-aligned 64 bit word ac-
cesses fail" >&5 echo $ECHO_N "checking if non-aligned 64 bit
word accesses fail... $ECHO_C" >&6; } if test "${have_aligned_on-
ly_int64+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default int main () {
#ifndef HAVE_UINT64_T
#define uint64_t u_int64_t;
#endif
uint64_t scratch[2];
memset(scratch, 0, sizeof(scratch));
return *(uint64_t*)((char*)scratch+1);
;
return 0; } _ACEOF rm -f conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi { echo "$as_me:$LINENO: result: $have_aligned_only_int64" >&5
echo "${ECHO_T}$have_aligned_only_int64" >&6; }
if test "x$have_aligned_only_int64" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_ALIGNED_ONLY_INT64 1
_ACEOF
fi
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6;
} if test "${ac_cv_type_uid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <sys/types.h>
_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "uid_t" >/dev/null 2>&1; then
ac_cv_type_uid_t=yes else
ac_cv_type_uid_t=no fi rm -f conftest*
fi { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 echo
"${ECHO_T}$ac_cv_type_uid_t" >&6; } if test $ac_cv_type_uid_t =
no; then
cat >>confdefs.h <<_ACEOF @%:@define uid_t int _ACEOF
cat >>confdefs.h <<_ACEOF @%:@define gid_t int _ACEOF
fi
{ echo "$as_me:$LINENO: checking for mode_t" >&5 echo $ECHO_N
"checking for mode_t... $ECHO_C" >&6; } if test
"${ac_cv_type_mode_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef mode_t
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 echo
"${ECHO_T}$ac_cv_type_mode_t" >&6; } if test $ac_cv_type_mode_t =
yes; then
: else
cat >>confdefs.h <<_ACEOF @%:@define mode_t int _ACEOF
fi
{ echo "$as_me:$LINENO: checking for off_t" >&5 echo $ECHO_N
"checking for off_t... $ECHO_C" >&6; } if test
"${ac_cv_type_off_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef off_t
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_off_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_off_t=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 echo
"${ECHO_T}$ac_cv_type_off_t" >&6; } if test $ac_cv_type_off_t =
yes; then
: else
cat >>confdefs.h <<_ACEOF @%:@define off_t long int _ACEOF
fi
{ echo "$as_me:$LINENO: checking for pid_t" >&5 echo $ECHO_N
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_pid_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_pid_t=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 echo
"${ECHO_T}$ac_cv_type_pid_t" >&6; } if test $ac_cv_type_pid_t =
yes; then
: else
cat >>confdefs.h <<_ACEOF @%:@define pid_t int _ACEOF
fi
{ echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N
"checking for size_t... $ECHO_C" >&6; } if test
"${ac_cv_type_size_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default typedef size_t
ac__type_new_; int main () { if ((ac__type_new_ *) 0)
return 0; if (sizeof (ac__type_new_))
return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_size_t=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6;
} if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default int main () { static
struct stat ac_aggr; if (ac_aggr.st_flags) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_flags=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */ $ac_includes_default int main () { static
struct stat ac_aggr; if (sizeof ac_aggr.st_flags) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_flags=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_member_struct_stat_st_flags=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ $ac_includes_default int main () { static
struct stat ac_aggr; if (ac_aggr.st_mtimespec) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_mtimespec=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */ $ac_includes_default int main () { static
struct stat ac_aggr; if (sizeof ac_aggr.st_mtimespec) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_mtimespec=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_member_struct_stat_st_mtimespec=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtime-
spec" >&5 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec"
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
#include <sys/types.h>
#include <netinet/in.h>
int main () { static struct sockaddr_in ac_aggr; if (ac_ag-
gr.sin_len) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_sockaddr_in_sin_len=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <netinet/in.h>
int main () { static struct sockaddr_in ac_aggr; if (sizeof
ac_aggr.sin_len) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_sockaddr_in_sin_len=yes else
DR_IN_SIN_LEN 1 _ACEOF
fi
{ echo "$as_me:$LINENO: checking whether INFTIM is declared" >&5
echo $ECHO_N "checking whether INFTIM is declared... $ECHO_C"
>&6; } if test "${ac_cv_have_decl_INFTIM+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <poll.h>
int main () { #ifndef INFTIM
(void) INFTIM; #endif
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_INFTIM=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_have_decl_INFTIM=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_have_decl_INFTIM" >&5 echo
"${ECHO_T}$ac_cv_have_decl_INFTIM" >&6; } if test $ac_cv_have_de-
cl_INFTIM = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DECL_INFTIM 1 _ACEOF
else
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DECL_INFTIM 0 _ACEOF
fi
{ echo "$as_me:$LINENO: checking whether SO_PEERCRED is declared"
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_SO_PEERCRED=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_have_decl_SO_PEERCRED=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_have_decl_SO_PEERCRED" >&5
echo "${ECHO_T}$ac_cv_have_decl_SO_PEERCRED" >&6; } if test
$ac_cv_have_decl_SO_PEERCRED = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DECL_SO_PEERCRED 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DECL_SO_PEERCRED 0
_ACEOF
fi
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h
may both be included" >&5 echo $ECHO_N "checking whether time.h
and sys/time.h may both be included... $ECHO_C" >&6; } if test
"${ac_cv_header_time+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <sys/types.h> #include <sys/time.h>
#include <time.h>
int main () { if ((struct tm *) 0) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 echo
"${ECHO_T}$ac_cv_header_time" >&6; } if test $ac_cv_header_time =
yes; then
cat >>confdefs.h <<_ACEOF @%:@define TIME_WITH_SYS_TIME 1 _ACEOF
fi
{ echo "$as_me:$LINENO: checking whether struct tm is in
sys/time.h or time.h" >&5 echo $ECHO_N "checking whether struct
tm is in sys/time.h or time.h... $ECHO_C" >&6; } if test
"${ac_cv_struct_tm+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <sys/types.h> #include <time.h>
int main () { struct tm tm;
int *p = &tm.tm_sec;
return !p;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_struct_tm=time.h else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_struct_tm=sys/time.h fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 echo
"${ECHO_T}$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm =
sys/time.h; then
cat >>confdefs.h <<_ACEOF @%:@define TM_IN_SYS_TIME 1 _ACEOF
fi
{ echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5
echo $ECHO_N "checking for struct dirent.d_type... $ECHO_C" >&6;
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_dirent_d_type=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */ #include <dirent.h>
int main () { static struct dirent ac_aggr; if (sizeof ac_ag-
gr.d_type) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_dirent_d_type=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_member_struct_dirent_d_type=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type"
>&5 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6; } if
test $ac_cv_member_struct_dirent_d_type = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_STRUCT_DIRENT_D_TYPE 1
_ACEOF
fi
if test "x$ac_cv_member_struct_dirent_d_type" = "xyes"; then
$ac_includes_default
#include <dirent.h>
int main () {
DIR* dir = opendir(".");
struct dirent* res = NULL;
if(dir) res = readdir(dir);
return res ? (res->d_type==DT_UNKNOWN) : 1;
;
return 0; } _ACEOF rm -f conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
have_valid_dirent_d_type=yes else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) have_valid_dirent_d_type=no
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi { echo "$as_me:$LINENO: result: $have_valid_dirent_d_type" >&5
echo "${ECHO_T}$have_valid_dirent_d_type" >&6; }
if test "x$have_valid_dirent_d_type" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_VALID_DIRENT_D_TYPE 1
_ACEOF
fi
fi
if test "x$ac_cv_member_struct_dirent_d_type" = "xyes" ||
test "x$have_valid_dirent_d_type" = "xyes"
then
:
fi
ac_save_CC=$CC
while :; do # IRIX 6.2 and later do not support
large files by default, # so use the C compiler's -n32
option if that helps. cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
exit(1);
#if defined(LLONG_MIN) && defined(LLONG_MAX)
fprintf(stderr, "Using system header for LLONG_MIN and
LLONG_MAX0);
llmin = LLONG_MIN;
llmax = LLONG_MAX;
#else
fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX0);
/* This will work on one's complement and two's comple-
ment */
for (i = 1; i > llmax; i <<= 1, i++)
llmax = i;
llmin = llmax + 1LL; /* wrap */
#endif
/* Sanity check */
if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 >
llmax || llmax - 1 > llmax) {
fprintf(f, "unknown unknown0);
exit(2);
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
read llong_min llong_max < conftest.llminmax
{ echo "$as_me:$LINENO: result: $llong_max" >&5 echo
"${ECHO_T}$llong_max" >&6; }
cat >>confdefs.h <<_ACEOF @%:@define LLONG_MAX ${llong_max}LL
_ACEOF
{ echo "$as_me:$LINENO: checking for min value of long
long" >&5 echo $ECHO_N "checking for min value of long long...
$ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $llong_min" >&5 echo
"${ECHO_T}$llong_min" >&6; }
cat >>confdefs.h <<_ACEOF @%:@define LLONG_MIN ${llong_min}LL
_ACEOF
else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) { echo "$as_me:$LINENO: result: not found"
>&5 echo "${ECHO_T}not found" >&6; } fi rm -f core *.core
core.conftest.* gmon.out bb.out conftest$ac_exeext con-
ftest.$ac_objext conftest.$ac_ext fi
fi
{ echo "$as_me:$LINENO: checking for pre-processor pragma de-
fines" >&5 echo $ECHO_N "checking for pre-processor pragma de-
fines... $ECHO_C" >&6; } if test "${have_define_pragma+set}" =
set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
#define TEST_DEFINE #pragma pack(1)
TEST_DEFINE
have_define_pragma=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
have_define_pragma=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $have_define_pragma" >&5 echo
"${ECHO_T}$have_define_pragma" >&6; }
if test "x$have_define_pragma" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DEFINE_PRAGMA 1 _ACEOF
:
fi
if test "x$ac_cv_c_bigendian" != "xyes"; then
bswap64_function=""
for ac_header in sys/endian.h asm/byteorder.h do as_ac_Head-
er=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if {
as_var=$as_ac_Header; eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else
# Is the header compilable? { echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_in-
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the compiler's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Au-
toconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
"$as_me: WARNING: $ac_header: section
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future,
the compiler will take precedence" >&5 echo "$as_me: WARNING:
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
fi
done
if test "x$ac_cv_header_sys_endian_h" = "xyes"; then
{ echo "$as_me:$LINENO: checking for htobe64" >&5 echo
$ECHO_N "checking for htobe64... $ECHO_C" >&6; } if test
"${have_htobe64+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
$ac_includes_default
#include <sys/endian.h>
int main () {
htobe64(0);
return 1;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
have_htobe64=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
have_htobe64=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $have_htobe64" >&5 echo
"${ECHO_T}$have_htobe64" >&6; }
if test "x$have_htobe64" = "xyes"; then
bswap64_function=htobe64
int main () {
__cpu_to_be64(0);
return 1;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
have___cpu_to_be64=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
have___cpu_to_be64=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $have___cpu_to_be64" >&5 echo
"${ECHO_T}$have___cpu_to_be64" >&6; }
if test "x$have___cpu_to_be64" = "xyes"; then
bswap64_function=__cpu_to_be64
fi
fi
if test "x$bswap64_function" != "x"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_BSWAP64 1 _ACEOF
cat >>confdefs.h <<_ACEOF @%:@define BSWAP64 $bswap64_function
_ACEOF
fi
fi if test "$target_os" != "mingw32"; then
# Check whether --with-random was given. if test "${with_ran-
dom+set}" = set; then
withval=$with_random; RANDOM_DEVICE="$withval" else
{ echo "$as_me:$LINENO: checking for echo $ECHO_N "checking for
if test "${ac_cv_file___dev_arandom_+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
test "$cross_compiling" = yes &&
{ { echo "$as_me:$LINENO: error: cannot check for file exis-
tence when cross compiling" >&5 echo "$as_me: error: cannot check
for file existence when cross compiling" >&2;}
{ (exit 1); exit 1; }; } if test -r ""/dev/arandom""; then
ac_cv_file___dev_arandom_=yes else
ac_cv_file___dev_arandom_=no fi fi { echo "$as_me:$LINENO: re-
sult: $ac_cv_file___dev_arandom_" >&5 echo
"${ECHO_T}$ac_cv_file___dev_arandom_" >&6; } if test
$ac_cv_file___dev_arandom_ = yes; then
RANDOM_DEVICE="/dev/arandom"; else
{ echo "$as_me:$LINENO: checking for echo $ECHO_N "checking for
if test "${ac_cv_file___dev_random_+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
test "$cross_compiling" = yes &&
{ { echo "$as_me:$LINENO: error: cannot check for file exis-
tence when cross compiling" >&5 echo "$as_me: error: cannot check
for file existence when cross compiling" >&2;}
{ (exit 1); exit 1; }; } if test -r ""/dev/random""; then
ac_cv_file___dev_random_=yes else
ac_cv_file___dev_random_=no fi fi { echo "$as_me:$LINENO: re-
sult: $ac_cv_file___dev_random_" >&5 echo
"${ECHO_T}$ac_cv_file___dev_random_" >&6; } if test
$ac_cv_file___dev_random_ = yes; then
RANDOM_DEVICE="/dev/random"; fi
fi
fi
fi
if test "x$RANDOM_DEVICE" != "x" ; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_RANDOM_DEVICE 1 _ACEOF
cat >>confdefs.h <<_ACEOF @%:@define RANDOM_DEVICE "$RANDOM_DE-
VICE" _ACEOF
fi
fi
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__ # include <limits.h> #else # include <assert.h>
#endif
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU
C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually
named
something starting with __ and the normal name is an alias.
*/ #if defined __stub_$ac_func || defined __stub___$ac_func choke
me #endif
int main () { return $ac_func ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_var=yes" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
eval "$as_ac_var=no" fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext fi
ac_res=`eval echo '${'$as_ac_var'}'` { echo
"$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res"
>&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF
fi done
cludes_default @%:@include <$ac_header> _ACEOF rm -f con-
ftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_compiler=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext {
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
not be compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for
missing prerequisite headers?" >&5 echo "$as_me: WARNING:
$ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Au-
toconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
"$as_me: WARNING: $ac_header: section
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future,
the compiler will take precedence" >&5 echo "$as_me: WARNING:
$ac_header: in the future, the compiler will take precedence"
>&2;}
( cat <<_ASBOX @%:@@%:@ -------------------------------
@%:@@%:@ @%:@@%:@ Report this to box@fluffy.co.uk @%:@@%:@
@%:@@%:@ ------------------------------- @%:@@%:@ _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
fi
done
for ac_header in mntent.h sys/mnttab.h sys/mount.h do as_ac_Head-
er=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo
"$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
#include <stdio.h>
#ifdef HAVE_SYS_PARAM_H
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
eval "$as_ac_Header=yes" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
eval "$as_ac_Header=no" fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
ac_res=`eval echo '${'$as_ac_Header'}'` { echo
"$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res"
>&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
fi
done
# BSD
{ echo "$as_me:$LINENO: checking for struct statfs.f_mntonname"
>&5 echo $ECHO_N "checking for struct statfs.f_mntonname...
$ECHO_C" >&6; } if test "${ac_cv_member_struct_statfs_f_mnton-
name+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <sys/mount.h>
int main () { static struct statfs ac_aggr; if (ac_aggr.f_mnton-
name) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
int main () { static struct statfs ac_aggr; if (sizeof ac_ag-
gr.f_mntonname) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_statfs_f_mntonname=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_member_struct_statfs_f_mntonname=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_mn-
tonname" >&5 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_mnton-
name" >&6; } if test $ac_cv_member_struct_statfs_f_mntonname =
yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_STRUCT_STATFS_F_MNTON-
NAME 1 _ACEOF
fi
# NetBSD
{ echo "$as_me:$LINENO: checking for struct statvfs.f_mnton-
name" >&5 echo $ECHO_N "checking for struct statvfs.f_mnton-
name... $ECHO_C" >&6; } if test "${ac_cv_mem-
ber_struct_statvfs_f_mntonname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <sys/mount.h>
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_statvfs_f_mntonname=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <sys/mount.h>
int main () { static struct statvfs ac_aggr; if (sizeof ac_ag-
gr.f_mntonname) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_statvfs_f_mntonname=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_member_struct_statvfs_f_mntonname=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_mn-
tonname" >&5 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_mnton-
name" >&6; } if test $ac_cv_member_struct_statvfs_f_mntonname =
yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_STRUCT_STATVFS_F_MNTON-
NAME 1 _ACEOF
fi
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_mntent_mnt_dir=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */ #include <mntent.h>
int main () { static struct mntent ac_aggr; if (sizeof ac_ag-
gr.mnt_dir) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_mntent_mnt_dir=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_member_struct_mntent_mnt_dir=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_member_struct_mn-
tent_mnt_dir" >&5 echo "${ECHO_T}$ac_cv_member_struct_mn-
tent_mnt_dir" >&6; } if test $ac_cv_member_struct_mntent_mnt_dir
= yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_STRUCT_MNTENT_MNT_DIR 1
_ACEOF
#include <sys/mnttab.h>
int main () { static struct mnttab ac_aggr; if (ac_ag-
gr.mnt_mountp) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_mnttab_mnt_mountp=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdio.h>
#include <sys/mnttab.h>
int main () { static struct mnttab ac_aggr; if (sizeof ac_ag-
gr.mnt_mountp) return 0;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_mnttab_mnt_mountp=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_member_struct_mnttab_mnt_mountp=no fi
if test "x$ac_cv_member_struct_statfs_f_mntonname" = "xyes" ||
test "x$ac_cv_member_struct_statvfs_f_mntonname" = "xyes" ||
test "x$ac_cv_member_struct_mntent_mnt_dir" = "xyes" || test
"x$ac_cv_member_struct_mnttab_mnt_mountp" = "xyes"
then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_MOUNTS 1 _ACEOF
:
else
if test "$target_os" != "mingw32" -a "$target_os" != "winnt";
then
{ { echo "$as_me:$LINENO: error: cannot work out how to dis-
cover mount points on your platform" >&5 echo "$as_me: error:
cannot work out how to discover mount points on your platform"
>&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "x$GXX" = "xyes"; then
{ echo "$as_me:$LINENO: checking for gcc version 3 or later"
>&5 echo $ECHO_N "checking for gcc version 3 or later... $ECHO_C"
>&6; } if test "${gcc_3_plus+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
#if __GNUC__ < 3
#error "Old GNU C"
#endif
_ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
gcc_3_plus=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
#define __USE_MALLOC
#include <string>
int main () {
std::string s;
s = "test";
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
malloc_workaround=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
malloc_workaround=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $malloc_workaround" >&5 echo
"${ECHO_T}$malloc_workaround" >&6; }
if test "x$malloc_workaround" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define __USE_MALLOC 1 _ACEOF
fi
fi
fi
### Checks for library functions.
{ echo "$as_me:$LINENO: checking whether closedir returns void"
>&5 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; } if test "${ac_cv_func_closedir_void+set}" = set;
then
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_func_closedir_void=no else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) ac_cv_func_closedir_void=yes fi rm -f core
*.core core.conftest.* gmon.out bb.out conftest$ac_exeext con-
ftest.$ac_objext conftest.$ac_ext fi
fi { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } if test
$ac_cv_func_closedir_void = yes; then
cat >>confdefs.h <<_ACEOF @%:@define CLOSEDIR_VOID 1 _ACEOF
fi
{ echo "$as_me:$LINENO: checking for error_at_line" >&5 echo
$ECHO_N "checking for error_at_line... $ECHO_C" >&6; } if test
"${ac_cv_lib_error_at_line+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <error.h> int main () { er-
ror_at_line (0, 0, "", 0, "an error occurred");
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
;; esac
fi
{ echo "$as_me:$LINENO: checking return type of signal handlers"
>&5 echo $ECHO_N "checking return type of signal handlers...
$ECHO_C" >&6; } if test "${ac_cv_type_signal+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <sys/types.h> #include <signal.h>
int main () { return *(signal (0, 0)) (0) == 1;
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_signal=int else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_type_signal=void fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 echo
"${ECHO_T}$ac_cv_type_signal" >&6; }
cat >>confdefs.h <<_ACEOF @%:@define RETSIGTYPE $ac_cv_type_sig-
nal _ACEOF
{ echo "$as_me:$LINENO: checking whether lstat dereferences a
symlink specified with a trailing slash" >&5 echo $ECHO_N "check-
ing whether lstat dereferences a symlink specified with a trail-
ing slash... $ECHO_C" >&6; } if test "${ac_cv_func_lstat_derefer-
ences_slashed_symlink+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
rm -f conftest.sym conftest.file echo >conftest.file if test
"$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
if test "$cross_compiling" = yes; then
ac_cv_func_lstat_dereferences_slashed_symlink=no else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_func_lstat_dereferences_slashed_symlink=yes else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) ac_cv_func_lstat_dereferences_slashed_sym-
link=no fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
else
# If the `ln -s' command failed, then we probably don't even
# have an lstat function.
ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f con-
ftest.sym conftest.file
fi { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_derefer-
ences_slashed_symlink" >&5 echo
"${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
cat >>confdefs.h <<_ACEOF @%:@define LSTAT_FOLLOWS_SLASHED_SYM-
LINK 1 _ACEOF
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
case " $LIB@&t@OBJS " in
*" lstat.$ac_objext "* ) ;;
*) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
;; esac
fi
{ echo "$as_me:$LINENO: checking whether stat accepts an empty
string" >&5 echo $ECHO_N "checking whether stat accepts an empty
string... $ECHO_C" >&6; } if test "${ac_cv_func_stat_emp-
ty_string_bug+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test "$cross_compiling" = yes; then
ac_cv_func_stat_empty_string_bug=yes else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_func_stat_empty_string_bug=no else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) ac_cv_func_stat_empty_string_bug=yes fi rm -f
core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext
conftest.$ac_objext conftest.$ac_ext fi
fi { echo "$as_me:$LINENO: result: $ac_cv_func_stat_emp-
ty_string_bug" >&5 echo "${ECHO_T}$ac_cv_func_stat_emp-
ty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug =
yes; then
case " $LIB@&t@OBJS " in
*" stat.$ac_objext "* ) ;;
*) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
;; esac
cat >>confdefs.h <<_ACEOF @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
_ACEOF
fi
for ac_func in getpeereid lchown setproctitle getpid do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo
"$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "check-
ing for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval
"test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ /* Define $ac_func to an innocuous variant,
in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few proto-
types,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
*/ #if defined __stub_$ac_func || defined __stub___$ac_func choke
me #endif
int main () { return $ac_func ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_var=yes" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
eval "$as_ac_var=no" fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext fi
ac_res=`eval echo '${'$as_ac_var'}'` { echo
"$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res"
>&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF
fi done
# NetBSD implements kqueue too differently for us to get it fixed
by 0.10 # TODO: Remove this when NetBSD kqueue implementation is
working netbsd_hack=`echo $target_os | sed 's/netbsd.*/netbsd/'`
if test "$netbsd_hack" != "netbsd"; then
for ac_func in kqueue do as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if {
as_var=$as_ac_var; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ /* Define $ac_func to an innocuous variant,
in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
#ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU
C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually
named
something starting with __ and the normal name is an alias.
*/ #if defined __stub_$ac_func || defined __stub___$ac_func choke
me #endif
int main () { return $ac_func ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_var=yes" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
eval "$as_ac_var=no" fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext fi
ac_res=`eval echo '${'$as_ac_var'}'` { echo
"$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res"
>&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF
fi done
fi
for ac_header in sys/syscall.h unistd.h do as_ac_Header=`echo
"ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header;
eval "test
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 echo
$ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_compiler=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext {
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo
"${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present? { echo "$as_me:$LINENO: checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /*
confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include
<$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case
"(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } >/dev/null && { test -z
"$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test !
-s conftest.err
}; then
ac_header_preproc=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_header_preproc=no fi
rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: re-
sult: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc"
>&6; }
# So? What about this header? case $ac_header_compil-
er:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by the pre-
processor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
{ echo "$as_me:$LINENO: WARNING: $ac_header: section echo
"$as_me: WARNING: $ac_header: section
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future,
the compiler will take precedence" >&5 echo "$as_me: WARNING:
$ac_header: in the future, the compiler will take precedence"
>&2;}
( cat <<_ASBOX @%:@@%:@ -------------------------------
@%:@@%:@ @%:@@%:@ Report this to box@fluffy.co.uk @%:@@%:@
@%:@@%:@ ------------------------------- @%:@@%:@ _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if {
as_var=$as_ac_Header; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
eval "$as_ac_Header=c_header_preproc" fi ac_res=`eval echo
'${'$as_ac_Header'}'` { echo "$as_me:$LINENO: re-
sult: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; }
fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF
fi
done
for ac_func in syscall __syscall do as_ac_var=`echo
"ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: check-
ing for $ac_func" >&5 echo $ECHO_N "checking for $ac_func...
$ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ /* Define $ac_func to an innocuous variant,
in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few proto-
types,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__ # include <limits.h> #else # include <assert.h>
#endif
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_var=yes" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
eval "$as_ac_var=no" fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext fi
ac_res=`eval echo '${'$as_ac_var'}'` { echo
"$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res"
>&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF
fi done
if test "x$ac_cv_func_syscall" != "xyes" &&
test "x$ac_cv_func___syscall" != "xyes"; then
{ echo "$as_me:$LINENO: checking for __syscall needing defi-
nition" >&5 echo $ECHO_N "checking for __syscall needing defini-
tion... $ECHO_C" >&6; } if test "${have___syscall_need_defn+set}"
= set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
$ac_includes_default
#ifdef HAVE_SYS_SYSCALL_H
#include <sys/syscall.h>
#endif
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
have___syscall_need_defn=yes else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) have___syscall_need_defn=no
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi { echo "$as_me:$LINENO: result: $have___syscall_need_defn" >&5
echo "${ECHO_T}$have___syscall_need_defn" >&6; }
if test "x$have___syscall_need_defn" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE___SYSCALL_NEED_DEFN 1
_ACEOF
fi
fi
if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
{ echo "$as_me:$LINENO: checking whether syscall lseek re-
quires dummy parameter" >&5 echo $ECHO_N "checking whether
syscall lseek requires dummy parameter... $ECHO_C" >&6; } if test
"${have_lseek_dummy_param+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
$ac_includes_default
#include <fcntl.h>
#include <sys/syscall.h>
#ifdef HAVE___SYSCALL_NEED_DEFN
extern "C" off_t __syscall(quad_t number, ...);
}
unlink("lseektest");
return res!=-1;
;
return 0; } _ACEOF rm -f conftest$ac_exeext if {
(ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
have_lseek_dummy_param=yes else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) have_lseek_dummy_param=no
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi { echo "$as_me:$LINENO: result: $have_lseek_dummy_param" >&5
echo "${ECHO_T}$have_lseek_dummy_param" >&6; }
if test "x$have_lseek_dummy_param" = "xyes"; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_LSEEK_DUMMY_PARAM 1
_ACEOF
fi
fi
if test "x$have_lseek_dummy_param" = "xno"
then
:
fi
for ac_func in listxattr llistxattr getxattr lgetxattr setxattr
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__ # include <limits.h> #else # include <assert.h>
#endif
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU
C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually
named
something starting with __ and the normal name is an alias.
*/ #if defined __stub_$ac_func || defined __stub___$ac_func choke
me #endif
int main () { return $ac_func ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_var=yes" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
eval "$as_ac_var=no" fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext fi
ac_res=`eval echo '${'$as_ac_var'}'` { echo
"$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res"
>&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF
fi done
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_XATTR_NOFOLLOW=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_have_decl_XATTR_NOFOLLOW=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_have_decl_XATTR_NOFOLLOW"
>&5 echo "${ECHO_T}$ac_cv_have_decl_XATTR_NOFOLLOW" >&6; } if
test $ac_cv_have_decl_XATTR_NOFOLLOW = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DECL_XATTR_NOFOLLOW 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DECL_XATTR_NOFOLLOW 0
_ACEOF
fi
### Miscellaneous complicated feature checks
## Check for large file support active. AC_SYS_LARGEFILE has al-
ready worked ## out how to enable it if necessary, we just use
this to report to the user { echo "$as_me:$LINENO: checking if we
have large file support enabled" >&5 echo $ECHO_N "checking if we
have large file support enabled... $ECHO_C" >&6; } if test
"${have_large_file_support+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log' for more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } else
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); }; }; then
have_large_file_support=yes else
echo "$as_me: program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5
( exit $ac_status ) have_large_file_support=no
fi rm -f core *.core core.conftest.* gmon.out bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi { echo "$as_me:$LINENO: result: $have_large_file_support" >&5
echo "${ECHO_T}$have_large_file_support" >&6; }
## Find out how to do file locking
for ac_func in flock do as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if {
as_var=$as_ac_var; eval "test
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ /* Define $ac_func to an innocuous variant,
in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few proto-
types,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__ # include <limits.h> #else # include <assert.h>
#endif
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU
C library defines this for functions which it implements
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_var=yes" else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
eval "$as_ac_var=no" fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext fi
ac_res=`eval echo '${'$as_ac_var'}'` { echo
"$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res"
>&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF
fi done
{ echo "$as_me:$LINENO: checking whether O_EXLOCK is declared"
>&5 echo $ECHO_N "checking whether O_EXLOCK is declared...
$ECHO_C" >&6; } if test "${ac_cv_have_decl_O_EXLOCK+set}" = set;
then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <fcntl.h>
int main () { #ifndef O_EXLOCK
(void) O_EXLOCK; #endif
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_O_EXLOCK=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
OF
fi
{ echo "$as_me:$LINENO: checking whether F_SETLK is declared" >&5
echo $ECHO_N "checking whether F_SETLK is declared... $ECHO_C"
>&6; } if test "${ac_cv_have_decl_F_SETLK+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */ #include <fcntl.h>
int main () { #ifndef F_SETLK
(void) F_SETLK; #endif
;
return 0; } _ACEOF rm -f conftest.$ac_objext if {
(ac_try="$ac_compile" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_F_SETLK=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_have_decl_F_SETLK=no fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi {
echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_SETLK" >&5 echo
"${ECHO_T}$ac_cv_have_decl_F_SETLK" >&6; } if test
$ac_cv_have_decl_F_SETLK = yes; then
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DECL_F_SETLK 1 _ACEOF
else
cat >>confdefs.h <<_ACEOF @%:@define HAVE_DECL_F_SETLK 0 _ACEOF
fi
cat >>confdefs.h <<_ACEOF @%:@define TEMP_DIRECTORY_NAME
"$temp_directory_name" _ACEOF
## Allow linking binaries with static libraries # Check whether
--enable-static-bin was given. if test "${enable_stat-
ic_bin+set}" = set; then
enableval=$enable_static_bin; fi
if test "x$enable_static_bin" = "xyes"; then
{ echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5 echo
$ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; } if
test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 else
ac_check_lib_save_LIBS=$LIBS LIBS="-lssl crypto $LIBS" cat
>conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus extern "C" #endif char SSL_read (); int main
() { return SSL_read ();
;
return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link" case "(($ac_try" in
*
*) ac_try_echo=$ac_try;; esac eval "echo
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: = $ac_status" >&5
(exit $ac_status); } && { test -z "$ac_cxx_wer-
ror_flag" || test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_ssl_SSL_read=yes else
echo "$as_me: failed program was:" >&5 sed 's/^/| /' con-
ftest.$ac_ext >&5
ac_cv_lib_ssl_SSL_read=no fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_con-
ftest.oo conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result:
$ac_cv_lib_ssl_SSL_read" >&5 echo
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
bindir_expanded=`eval "echo $bindir"` bindir_expanded=`eval "echo
$bindir_expanded"` prefix=$saved_prefix exec_prefix=$saved_ex-
ec_prefix
### Output files ac_config_files="$ac_config_files infrastruc-
ture/BoxPlatform.pm"
cat >confcache <<_ACEOF # This file is a shell script that caches
the results of configure # tests run on this system so they can
be shared between configure # scripts and configure runs, see
configure's option --config-cache. # It is not useful on other
systems. If it contains results you don't # want to keep, you
may remove or edit it. # # config.status only pays attention to
the cache file if you give it # the --recheck option to rerun
configure. # # `ac_cv_env_foo' variables (set or unset) will be
overridden when # loading this file, other *unset* `ac_cv_foo'
will be assigned the # following values.
_ACEOF
# The following way of writing the cache mishandles newlines in
values, # but we know of no workaround that is simple, portable,
and efficient. # So, we kill variables containing newlines. #
Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the
vars. (
for ac_var in `(set) 2>&1 | sed -n 's/^-zA-Z_][a-zA-
Z0-9_]*=.*/1/p'`; do
eval ac_val=ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable
$ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache
variable $ac_var contains a newline." >&2;} ;;
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
*) $as_unset $ac_var ;;
esac ;;
esac
done
(set) 2>&1 |
case $as_nl`(ac_space=' '; set) 2>&1` in #(
*${as_nl}ac_space= *)
# `set' does not quote correctly, so add quotes (double-
quote
# substitution turns \\ into \, and sed turns \ into .
s/^=]*=[{}].*$/test "${1+set}" = set || &/
t end
s/^=]*=$/1=${1=2}/
:end' >>confcache if diff "$cache_file" confcache >/dev/null
2>&1; then :; else
if test -w "$cache_file"; then
test "x$cache_file" != "x/dev/null" &&
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
cat confcache >$cache_file
else
{ echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
fi fi rm -f confcache
test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make
expand exec_prefix. test "x$exec_prefix" = xNONE && exec_pre-
fix='${prefix}'
DEFS=-DHAVE_CONFIG_H
ac_libobjs= ac_ltlibobjs= for ac_i in : $LIB@&t@OBJS; do test
"x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
ac_script='s/././;s/.o$//;s/.obj$//'
ac_i=`echo "$ac_i" | sed "$ac_script"`
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOB-
JDIR
# will be set to the directory where LIBOBJS objects are
built.
ac_libobjs="$ac_libobjs LIBOBJDIR}$ac_i.$ac_objext"
ac_ltlibobjs="$ac_ltlibobjs LIBOBJDIR}$ac_i"'$U.lo' done
LIB@&t@OBJS=$ac_libobjs
LTLIBOBJS=$ac_ltlibobjs
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo
"$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: cre-
ating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #!
$SHELL # Generated by $as_me. # Run this file to recreate the
current configuration. # Compiler output produced by configure,
useful for debugging # configure, is in config.log if it exists.
debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=CON-
FIG_SHELL-$SHELL} _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF ## --------------------- ## ## M4sh
fi
# PATH needs CR # Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDE-
FGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits
# The user is always right. if test "${PATH_SEPARATOR+set}" !=
set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh fi
# Support unset when possible. if ( (MAIL=60; unset MAIL) || ex-
it) >/dev/null 2>&1; then
as_unset=unset else
as_unset=false fi
# IFS # We need space, tab and new line, in precisely that order.
Quoting is # there to prevent editors from complaining about
space-tab. # (If _AS_PATH_WALK were called with IFS unset, it
would disable word # splitting by setting IFS to empty value.)
as_nl=' IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory
separator. case $0 in
*[\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done
IFS=$as_save_IFS
;; esac # We did not find ourselves, most probably we were
run as `sh COMMAND' # in which case we are not to be found in the
path. if test "x$as_myself" = x; then
as_myself=$0 fi if test ! -f "$as_myself"; then
echo "$as_myself: error: cannot find myself; rerun with an ab-
solute file name" >&2
{ (exit 1); exit 1; } fi
# Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL
# Required to use basename. if expr a : '' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*.'`" = X001; then
as_expr=expr else
as_expr=false fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- /
2>&1`" = "X/"; then
as_basename=basename else
as_basename=false fi
# Name of the executable. as_me=`$as_basename -- "$0" || $as_ex-
pr X/"$0" : '.*//][^/]*/*$' X"$0" : 'X$' X"$0" : 'X' .
2>/dev/null || echo X/"$0" |
sed '/^.*/][^/]**$/{ s//1/ q
} /^X$/{ s//1/ q }
/^X.*/{ s//1/ q }
s/.*/./; q'`
# CDPATH. $as_unset CDPATH
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
# Create $as_me.lineno as a copy of $as_myself, but with
$LINENO
# uniformly replaced by the line number. The first 'sed' in-
serts a
# line-number line after each line using $LINENO; the second
'sed'
# does the real work. The second script uses 'N' to pair each
# line-number line with the line containing $LINENO, and ap-
pends
# trailing '-' during substitution so that $LINENO is not a
special
# case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# scripts with optimization help from Paolo Bonzini. Blame Lee
# E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
# original and so on. Autoconf is especially sensitive to
this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit }
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null
2>&1; then
as_dirname=dirname else
as_dirname=false fi
ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*)
case `echo 'x *c*) ECHO_T=' ';; # ECHO_T is single tab
character.
*) ECHO_C=' esac;; *)
ECHO_N='-n';; esac
if expr a : '' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*.'`" = X001; then
as_expr=expr else
as_expr=false fi
rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file else
rm -f conf$$.dir
mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file
conf$$ 2>/dev/null; then
as_ln_s='ln -s'
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper
executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f
conf$$.exe ||
as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln else
as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe
conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null
if mkdir -p . 2>/dev/null; then
as_mkdir_p=: else
test -d ./-p && rmdir ./-p
as_mkdir_p=false fi
if test -x / >/dev/null 2>&1; then
as_test_x='test -x' else
if ls -dL / >/dev/null 2>&1; then
as_ls_L_option=L
else
as_ls_L_option=
TERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
exec 6>&1
# Save the log message, to keep $[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of
their # values after options handling. ac_log=" This file was
extended by Box Backup $as_me 0.10, which was generated by GNU
Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
on `(hostname || uname -n) 2>/dev/null | sed 1q` "
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made
for. config_files="$ac_config_files" config_headers="$ac_con-
fig_headers"
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF ac_cs_usage="`$as_me' instantiates
files from templates according to the current configuration.
Usage: $0 [OPTIONS] [FILE]...
-h, --help print this help, then exit
-V, --version print version number and configuration set-
tings, then exit
-q, --quiet do not print progress messages
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same
conditions
--file=FILE[:TEMPLATE] instantiate the con-
figuration file FILE
--header=FILE[:TEMPLATE] instantiate the
configuration header FILE
Configuration files: $config_files
Configuration headers: $config_headers
Report bugs to <bug-autoconf@gnu.org>."
user, then we need to provide default # value. By we need to
know if files were specified by the user. ac_need_defaults=:
while test $# != 0 do
case $1 in
--*=*)
ac_option=`expr "X$1" : 'X=]*='`
ac_optarg=`expr "X$1" : 'X[^=]*='`
ac_shift=:
;;
*)
ac_option=$1
ac_optarg=$2
ac_shift=shift
;;
esac
case $ac_option in
# Handling of the options.
-recheck | --recheck | --rechec | --reche | --rech | --rec |
--re | --r)
ac_cs_recheck=: ;;
--version | --versio | --versi | --vers | --ver | --ve | --v |
-V )
echo "$ac_cs_version"; exit ;;
--debug | --debu | --deb | --de | --d | -d )
debug=: ;;
--file | --fil | --fi | --f )
$ac_shift
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
ac_need_defaults=false;;
--header | --heade | --head | --hea )
$ac_shift
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
ac_need_defaults=false;;
--he | --h)
# Conflict between --help and --header
{ echo "$as_me: error: ambiguous option: $1 Try `$0 --help'
for more information." >&2
{ (exit 1); exit 1; }; };;
--help | --hel | -h )
echo "$ac_cs_usage"; exit ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q | -silent
| --silent | --silen | --sile | --sil | --si | --s)
ac_cs_silent=: ;;
# This is an error.
-*) { echo "$as_me: error: unrecognized option: $1 Try `$0
--help' for more information." >&2
{ (exit 1); exit 1; }; } ;;
*) ac_config_targets="$ac_config_targets $1"
ac_need_defaults=false ;;
export CONFIG_SHELL
exec $SHELL "$0"$ac_configure_args c_configure_extra_args --no-
create --no-recursion fi
_ACEOF cat >>$CONFIG_STATUS <<_ACEOF exec 5>>config.log {
echo
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x'
<<_ASBOX @%:@@%:@ Running $as_me. @%:@@%:@ _ASBOX
echo "$ac_log" } >&5
_ACEOF cat >>$CONFIG_STATUS <<_ACEOF _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
# Handling of arguments. for ac_config_target in $ac_config_tar-
gets do
case $ac_config_target in
"lib/common/BoxConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS
lib/common/BoxConfig.h" ;;
"infrastructure/BoxPlatform.pm") CONFIG_FILES="$CONFIG_FILES
infrastructure/BoxPlatform.pm" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_con-
fig_target" >&5 echo "$as_me: error: invalid argument: $ac_con-
fig_target" >&2;}
{ (exit 1); exit 1; }; };;
esac done
# If the user did not use the arguments to specify the items to
instantiate, # then the envvar interface is used. Set only those
that are not. # We use the long form for the default assignment
because of an extremely # bizarre bug on SunOS 4.1.3. if
$ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$con-
fig_headers fi
# Have a temporary directory for convenience. Make it in the
build tree # simply because there is no reason against having it
here, and in addition, # creating and moving files from /tmp can
sometimes cause problems. # Hook for its removal unless debug-
ging. # Note that there is a small window in which the directory
will not be cleaned: # after its creation but before its name has
been assigned to `$tmp'. $debug || {
tmp=
trap 'exit_status=$?
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && ex-
it $exit_status
trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure)
tmp directory for tmp files.
_ACEOF
ac_delim='%!_!# ' for ac_last_try in false false false false
false :; do
cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARA-
TOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACK-
AGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$ex-
ec_prefix$ac_delim prefix!$prefix$ac_delim program_trans-
form_name!$program_transform_name$ac_delim bindir!$bindir$ac_de-
lim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim
datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim
sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstate-
dir$ac_delim localstatedir!$localstatedir$ac_delim in-
cludedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_de-
lim docdir!$docdir$ac_delim infodir!$infodir$ac_delim
htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim
pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$lib-
dir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_de-
lim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim
ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_de-
lim build_alias!$build_alias$ac_delim
host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_de-
lim build!$build$ac_delim build_cpu!$build_cpu$ac_delim
build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim
host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_ven-
dor!$host_vendor$ac_delim host_os!$host_os$ac_delim target!$tar-
get$ac_delim target_cpu!$target_cpu$ac_delim target_vendor!$tar-
get_vendor$ac_delim target_os!$target_os$ac_delim CXX!$CXX$ac_de-
lim CXXFLAGS!$CXXFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim
CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim EXE-
EXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim
CXXFLAGS_STRICT!$CXXFLAGS_STRICT$ac_delim LDADD_RDYNAM-
IC!$LDADD_RDYNAMIC$ac_delim PERL!$PERL$ac_delim
CXXCPP!$CXXCPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim
RANDOM_DEVICE!$RANDOM_DEVICE$ac_delim LIB@&t@OBJS!$LIB@&t@OB-
JS$ac_delim bindir_expanded!$bindir_expanded$ac_delim LTLIBOB-
JS!$LTLIBOBJS$ac_delim _ACEOF
if test `sed -n "s/.*$ac_delimX/p" conf$$subs.sed | grep -c X`
= 66; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STA-
TUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS"
>&2;}
{ (exit 1); exit 1; }; }
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
# VPATH may cause trouble with some makes, so we remove $(sr-
cdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".",
strip leading and # trailing colons and then remove the whole
line if VPATH becomes empty # (actually we leave an empty line to
preserve line numbers). if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*cdir):*/:/ s/:*sr-
cdir}:*/:/ s/:*@srcdir@:*/:/ s/^=]*=[ ]*:*/1/ s/:*$//
s/^[^=]*=[ ]*$// }' fi
cat >>$CONFIG_STATUS <<_ACEOF fi # test -n "$CONFIG_FILES"
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS do
case $ac_tag in
:[FHLC]) ac_mode=$ac_tag; continue;;
esac
case $ac_mode$ac_tag in
:[FHL]*:*);;
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag
$ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
{ (exit 1); exit 1; }; };;
:[FH]-) ac_tag=-:-;;
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
esac
ac_save_IFS=$IFS
IFS=:
set x $ac_tag
IFS=$ac_save_IFS
shift
ac_file=$1
shift
case $ac_mode in
:L) ac_source=$1;;
:[FH])
ac_file_inputs=
for ac_f
do
case $ac_f in
-) ac_f="$tmp/stdin";;
*) # Look for the file first in the build tree, then in the
source tree # (if the path is not absolute). The abso-
lute path cannot be DOS-style, # because $ac_f cannot
contain `:'. test -f "$ac_f" || case $ac_f
in [\/$]*) false;; *) test -f "$sr-
cdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac ||
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f"
>&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
{ (exit 1); exit 1; }; };;
esac
ac_file_inputs="$ac_file_inputs $ac_f"
case $ac_tag in
*:-:* | *:-) cat >"$tmp/stdin";;
esac
;;
esac
ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" :
'X[^/]//*[^/][^/]*/*$' X"$ac_file" : 'X[^/]'
X"$ac_file" : 'X$' X"$ac_file" : 'X' . 2>/dev/null || echo
X"$ac_file" |
sed '/^X[^/]*[^/][^/]**$/{ s//1/ q
} /^X[^/].*/{ s//1/ q
} /^X$/{ s//1/ q
} /^X.*/{ s//1/ q
} s/.*/./; q'`
{ as_dir="$ac_dir"
case $as_dir in #(
-*) as_dir=./$as_dir;;
esac
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } ||
{
as_dirs=
while :; do
case $as_dir in #(
*'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\''/g"`;; #(
*) as_qdir=$as_dir;;
esac
as_dirs="'$as_qdir' $as_dirs"
as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" :
'X[^/]//*[^/][^/]*/*$' X"$as_dir" : 'X[^/]' X"$as_dir" :
'X$' X"$as_dir" : 'X' . 2>/dev/null || echo X"$as_dir" |
sed '/^X[^/]*[^/][^/]**$/{ s//1/ q
} /^X[^/].*/{ s//1/ q
} /^X$/{ s//1/ q
} /^X.*/{ s//1/ q
} s/.*/./; q'`
test -d "$as_dir" && break
done
test -z "$as_dirs" || eval "mkdir $as_dirs"
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: can-
not create directory $as_dir" >&5 echo "$as_me: error: cannot
create directory $as_dir" >&2;}
{ (exit 1); exit 1; }; }; }
ac_builddir=.
case "$ac_dir" in *)
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^.[\/],,'`
# A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed
's,/[^\/]*,/..,g;s,/,,'`
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_sr-
cdir=$ac_abs_top_srcdir$ac_dir_suffix
case $ac_mode in
:F)
#
# CONFIG_FILE
#
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF # If the template does not know
about datarootdir, expand it. # FIXME: This hack should be re-
moved a few years after 2.60. ac_datarootdir_hack=; ac_dataroot-
dir_seen=
case `sed -n '/datarootdir/ {
p
q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p
/@mandir@/p *datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ig-
nore the --datarootdir setting" >&5 echo "$as_me: WARNING:
$ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF cat >>$CONFIG_STATUS <<_ACEOF
ac_datarootdir_hack='
s&@datadir@&$datadir&g
s&@docdir@&$docdir&g
s&@infodir@&$infodir&g
s&@localedir@&$localedir&g
s&@mandir@&$mandir&g
s&\datarootdir}&$datarootdir&g' ;; esac _ACEOF
# Neutralize VPATH when `$srcdir' = `.'. # Shell code in config-
ure.ac might set extrasub. # FIXME: do we really want to main-
tain this feature? cat >>$CONFIG_STATUS <<_ACEOF
sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<_ACEOF
:t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$config-
ure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@sr-
cdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_sr-
cdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_build-
dir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack "
$ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
{ ac_out=`sed -n '/datarootdir}/p' "$tmp/out"`; test -n
;;
:H)
#
# CONFIG_HEADER
# _ACEOF
# Transform confdefs.h into a sed script `conftest.defines', that
# substitutes the proper values into config.h.in to produce con-
fig.h. rm -f conftest.defines conftest.tail # First, append a
space to every undef/define line, to ease matching. echo 's/$/
/' >conftest.defines # Then, protect against being on the right
side of a sed subst, or in # an unquoted here document, in con-
fig.status. If some macros were # called several times there
might be several #defines for the same # symbol, which is use-
less. But do not sort them, since the last # AC_DEFINE must be
honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These
sed commands are passed to sed as "A NAME B PARAMS C VALUE D",
where # NAME is the cpp macro being defined, VALUE is the value
it is being given. # PARAMS is the parameter list in the macro
definition--in most cases, it's # just an empty string.
ac_dA='s,^\([ #]*\)[^ ]*\([ ]*' ac_dB='\)[
(].*,\1define\2' ac_dC=' ' ac_dD=' ,'
uniq confdefs.h |
sed -n ' t rset :rset s/^[ ]*#[
]*define[ ][ ]*// t ok d :ok
s/[\&,]/\&/g s/^$ac_word_re"'^()]*)[ ]*/
'"$ac_dA"'1'"$ac_dB"'2'"${ac_dC}"'3'"$ac_dD"'/p
s/^$ac_word_re"'[
]*/'"$ac_dA"'1'"$ac_dB$ac_dC"'2'"$ac_dD"'/p
' >>conftest.defines
# Remove the space that was appended to ease matching. # Then
replace #undef with comments. This is necessary, for # example,
in the case of _POSIX_SOURCE, which is predefined and required #
on some systems where configure will not decide to define it. #
(The regexp can be short, since the line contains either #define
or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>con-
ftest.defines
# Break up conftest.defines: ac_max_sed_lines=50
# First sed command is: sed -f defines.sed $ac_file_inputs
>"$tmp/out1" # Second one is: sed -f defines.sed
"$tmp/out1" >"$tmp/out2" # Third one will be: sed -f de-
fines.sed "$tmp/out2" >"$tmp/out1" # et cetera.
ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"'
while : do
# Write a here document:
cat >>$CONFIG_STATUS <<_ACEOF
# First, check the format of the line:
<<_ACEOF
if test x"$ac_file" != x-; then
echo "/* $configure_input */" >"$tmp/config.h"
cat "$ac_result" >>"$tmp/config.h"
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo
"$as_me: $ac_file is unchanged" >&6;}
else
rm -f $ac_file
mv "$tmp/config.h" $ac_file
fi
else
echo "/* $configure_input */"
cat "$ac_result"
fi
rm -f "$tmp/out12"
;;
esac
done # for ac_tag
{ (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save
# configure is writing to config.log, and then calls config.sta-
tus. # config.status does its own redirection, appending to con-
fig.log. # Unfortunately, on DOS this fails, as config.log is
still kept open # by configure, so config.status won't be able to
write to it; its # output is simply discarded. So we exec the FD
to /dev/null, # effectively closing config.log, so it can be
properly (re)opened and # appended to by config.status. When
coming back to configure, we # need to make the FD available
again. if test "$no_create" != yes; then
ac_cs_success=:
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
exec 5>/dev/null
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_suc-
cess=false
exec 5>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1,
which
# would make configure fail if this is the last instruction.
$ac_cs_success || { (exit 1); exit 1; } fi
# Configure the Box build system echo $PERL ./infrastruc-
if test "x$gcc_3_plus" != "xyes" && test "x$malloc_workaround" !=
"xyes"; then
echo
{ echo "$as_me:$LINENO: WARNING: the implementation of the C++
STL on this platform may have a flaw which causes it to apparent-
ly leak memory, and this flaw cannot be worked around.
When running the daemons, check their memory usage does not con-
stantly increase. The STL flaw can cause excessive memory use."
>&5 echo "$as_me: WARNING: the implementation of the C++ STL on
this platform may have a flaw which causes it to apparently leak
memory, and this flaw cannot be worked around.
When running the daemons, check their memory usage does not con-
stantly increase. The STL flaw can cause excessive memory use."
>&2;} fi
case "$vl_cv_lib_readline" in
*readline*)
echo
{ echo "$as_me:$LINENO: WARNING: do not distribute binaries
compiled against GNU readline, as this could violate the GNU
readline licence, which is GPL. You may use libedit or libedit-
line instead." >&5 echo "$as_me: WARNING: do not distribute bina-
ries compiled against GNU readline, as this could violate the GNU
readline licence, which is GPL. You may use libedit or libedit-
line instead." >&2;}
;; esac
Man(1) output converted with
man2html