enableval=$enable_coverage;
case $enableval in
yes)
- for ac_prog in gcov
+ if test -z "$GCOV"; then
+ for ac_prog in gcov
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$GCOV" && break
done
+else
+ # Report the value of GCOV in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
+$as_echo_n "checking for GCOV... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
+$as_echo "$GCOV" >&6; }
+fi
+
if test -z "$GCOV"; then
as_fn_error $? "gcov not found" "$LINENO" 5
fi
-for ac_prog in lcov
+if test -z "$LCOV"; then
+ for ac_prog in lcov
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$LCOV" && break
done
+else
+ # Report the value of LCOV in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
+$as_echo_n "checking for LCOV... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
+$as_echo "$LCOV" >&6; }
+fi
+
if test -z "$LCOV"; then
as_fn_error $? "lcov not found" "$LINENO" 5
fi
-for ac_prog in genhtml
+if test -z "$GENHTML"; then
+ for ac_prog in genhtml
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$GENHTML" && break
done
+else
+ # Report the value of GENHTML in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
+$as_echo_n "checking for GENHTML... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
+$as_echo "$GENHTML" >&6; }
+fi
+
if test -z "$GENHTML"; then
as_fn_error $? "genhtml not found" "$LINENO" 5
fi
enableval=$enable_dtrace;
case $enableval in
yes)
- for ac_prog in dtrace
+ if test -z "$DTRACE"; then
+ for ac_prog in dtrace
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$DTRACE" && break
done
+else
+ # Report the value of DTRACE in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
+$as_echo_n "checking for DTRACE... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
+$as_echo "$DTRACE" >&6; }
+fi
+
if test -z "$DTRACE"; then
as_fn_error $? "dtrace not found" "$LINENO" 5
fi
if test "$with_libxml" = yes ; then
+ if test -z "$XML2_CONFIG"; then
for ac_prog in xml2-config
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
test -n "$XML2_CONFIG" && break
done
+else
+ # Report the value of XML2_CONFIG in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
+$as_echo_n "checking for XML2_CONFIG... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
+$as_echo "$XML2_CONFIG" >&6; }
+fi
+
if test -n "$XML2_CONFIG"; then
for pgac_option in `$XML2_CONFIG --cflags`; do
case $pgac_option in
esac
-# Extract the first word of "tar", so it can be a program name with args.
-set dummy tar; ac_word=$2
+if test -z "$TAR"; then
+ for ac_prog in tar
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_TAR+:} false; then :
fi
+ test -n "$TAR" && break
+done
+
+else
+ # Report the value of TAR in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
+$as_echo_n "checking for TAR... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
+$as_echo "$TAR" >&6; }
+fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
*install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
esac
-# Let the user override the search
if test -z "$BISON"; then
for ac_prog in bison
do
test -n "$BISON" && break
done
+else
+ # Report the value of BISON in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
+$as_echo_n "checking for BISON... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
+$as_echo "$BISON" >&6; }
fi
+
if test "$BISON"; then
pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
{ $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
*** PostgreSQL then you do not need to worry about this, because the Bison
*** output is pre-generated.)" >&2;}
fi
-# We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
+# We don't need AC_SUBST(BISON) because PGAC_PATH_PROGS did it
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
-# Let the user override the search
if test -z "$PERL"; then
- # Extract the first word of "perl", so it can be a program name with args.
-set dummy perl; ac_word=$2
+ for ac_prog in perl
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PERL+:} false; then :
fi
+ test -n "$PERL" && break
+done
+
+else
+ # Report the value of PERL in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
+$as_echo_n "checking for PERL... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
+$as_echo "$PERL" >&6; }
fi
+
if test "$PERL"; then
pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
fi
if test "$with_python" = yes; then
- # Extract the first word of "python", so it can be a program name with args.
-set dummy python; ac_word=$2
+ if test -z "$PYTHON"; then
+ for ac_prog in python
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PYTHON+:} false; then :
fi
+ test -n "$PYTHON" && break
+done
+
+else
+ # Report the value of PYTHON in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
+$as_echo_n "checking for PYTHON... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
+$as_echo "$PYTHON" >&6; }
+fi
+
if test x"$PYTHON" = x""; then
as_fn_error $? "Python not found" "$LINENO" 5
fi
fi
if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
- # Extract the first word of "zic", so it can be a program name with args.
-set dummy zic; ac_word=$2
+ if test -z "$ZIC"; then
+ for ac_prog in zic
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ZIC+:} false; then :
fi
+ test -n "$ZIC" && break
+done
+
+else
+ # Report the value of ZIC in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIC" >&5
+$as_echo_n "checking for ZIC... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
+$as_echo "$ZIC" >&6; }
+fi
+
if test -z "$ZIC"; then
as_fn_error $? "
When cross-compiling, either use the option --with-system-tzdata to use
fi
+ if test -z "$MSGFMT"; then
for ac_prog in msgfmt
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
test -n "$MSGFMT" && break
done
+else
+ # Report the value of MSGFMT in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
+$as_echo_n "checking for MSGFMT... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
+$as_echo "$MSGFMT" >&6; }
+fi
+
if test -z "$MSGFMT"; then
as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
fi
$as_echo "$pgac_cv_msgfmt_flags" >&6; }
MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
+ if test -z "$MSGMERGE"; then
for ac_prog in msgmerge
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
test -n "$MSGMERGE" && break
done
+else
+ # Report the value of MSGMERGE in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
+$as_echo_n "checking for MSGMERGE... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
+$as_echo "$MSGMERGE" >&6; }
+fi
+
+ if test -z "$XGETTEXT"; then
for ac_prog in xgettext
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
test -n "$XGETTEXT" && break
done
+else
+ # Report the value of XGETTEXT in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
+$as_echo_n "checking for XGETTEXT... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
+$as_echo "$XGETTEXT" >&6; }
+fi
+
fi
# Check for Tcl configuration script tclConfig.sh
if test "$with_tcl" = yes; then
- for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
+ if test -z "$TCLSH"; then
+ for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$TCLSH" && break
done
+else
+ # Report the value of TCLSH in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
+$as_echo_n "checking for TCLSH... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
+$as_echo "$TCLSH" >&6; }
+fi
+
if test x"$TCLSH" = x""; then
as_fn_error $? "Tcl shell not found" "$LINENO" 5
fi
#
# Check for DocBook and tools
#
-for ac_prog in onsgmls nsgmls
+if test -z "$NSGMLS"; then
+ for ac_prog in onsgmls nsgmls
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$NSGMLS" && break
done
+else
+ # Report the value of NSGMLS in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSGMLS" >&5
+$as_echo_n "checking for NSGMLS... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
+$as_echo "$NSGMLS" >&6; }
+fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
$as_echo_n "checking for DocBook V4.2... " >&6; }
have_docbook=$pgac_cv_check_docbook
-for ac_prog in dbtoepub
+if test -z "$DBTOEPUB"; then
+ for ac_prog in dbtoepub
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$DBTOEPUB" && break
done
-for ac_prog in xmllint
+else
+ # Report the value of DBTOEPUB in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
+$as_echo_n "checking for DBTOEPUB... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
+$as_echo "$DBTOEPUB" >&6; }
+fi
+
+if test -z "$XMLLINT"; then
+ for ac_prog in xmllint
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$XMLLINT" && break
done
-for ac_prog in xsltproc
+else
+ # Report the value of XMLLINT in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
+$as_echo_n "checking for XMLLINT... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
+$as_echo "$XMLLINT" >&6; }
+fi
+
+if test -z "$XSLTPROC"; then
+ for ac_prog in xsltproc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$XSLTPROC" && break
done
-for ac_prog in osx sgml2xml sx
+else
+ # Report the value of XSLTPROC in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
+$as_echo_n "checking for XSLTPROC... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
+$as_echo "$XSLTPROC" >&6; }
+fi
+
+if test -z "$OSX"; then
+ for ac_prog in osx sgml2xml sx
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$OSX" && break
done
-for ac_prog in fop
+else
+ # Report the value of OSX in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX" >&5
+$as_echo_n "checking for OSX... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
+$as_echo "$OSX" >&6; }
+fi
+
+if test -z "$FOP"; then
+ for ac_prog in fop
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
test -n "$FOP" && break
done
+else
+ # Report the value of FOP in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
+$as_echo_n "checking for FOP... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
+$as_echo "$FOP" >&6; }
+fi
+
#
# Check for test tools
#
if test "$enable_tap_tests" = yes; then
+ if test -z "$PROVE"; then
for ac_prog in prove
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
test -n "$PROVE" && break
done
+else
+ # Report the value of PROVE in configure's output in all cases.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
+$as_echo_n "checking for PROVE... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
+$as_echo "$PROVE" >&6; }
+fi
+
if test -z "$PROVE"; then
as_fn_error $? "prove not found" "$LINENO" 5
fi
#
PGAC_ARG_BOOL(enable, coverage, no,
[build with coverage testing instrumentation],
-[AC_PATH_PROGS(GCOV, gcov)
+[PGAC_PATH_PROGS(GCOV, gcov)
if test -z "$GCOV"; then
AC_MSG_ERROR([gcov not found])
fi
-AC_PATH_PROGS(LCOV, lcov)
+PGAC_PATH_PROGS(LCOV, lcov)
if test -z "$LCOV"; then
AC_MSG_ERROR([lcov not found])
fi
-AC_PATH_PROGS(GENHTML, genhtml)
+PGAC_PATH_PROGS(GENHTML, genhtml)
if test -z "$GENHTML"; then
AC_MSG_ERROR([genhtml not found])
fi])
#
PGAC_ARG_BOOL(enable, dtrace, no,
[build with DTrace support],
-[AC_PATH_PROGS(DTRACE, dtrace)
+[PGAC_PATH_PROGS(DTRACE, dtrace)
if test -z "$DTRACE"; then
AC_MSG_ERROR([dtrace not found])
fi
[AC_DEFINE([USE_LIBXML], 1, [Define to 1 to build with XML support. (--with-libxml)])])
if test "$with_libxml" = yes ; then
- AC_PATH_PROGS(XML2_CONFIG, xml2-config)
+ PGAC_PATH_PROGS(XML2_CONFIG, xml2-config)
if test -n "$XML2_CONFIG"; then
for pgac_option in `$XML2_CONFIG --cflags`; do
case $pgac_option in
esac
AC_SUBST(install_bin)
-AC_PATH_PROG(TAR, tar)
+PGAC_PATH_PROGS(TAR, tar)
AC_PROG_LN_S
AC_PROG_AWK
AC_PROG_MKDIR_P
fi
if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
- AC_PATH_PROG(ZIC, zic)
+ PGAC_PATH_PROGS(ZIC, zic)
if test -z "$ZIC"; then
AC_MSG_ERROR([
When cross-compiling, either use the option --with-system-tzdata to use
#
PGAC_PROG_NSGMLS
PGAC_CHECK_DOCBOOK(4.2)
-AC_PATH_PROGS(DBTOEPUB, dbtoepub)
-AC_PATH_PROGS(XMLLINT, xmllint)
-AC_PATH_PROGS(XSLTPROC, xsltproc)
-AC_PATH_PROGS(OSX, [osx sgml2xml sx])
-AC_PATH_PROGS(FOP, fop)
+PGAC_PATH_PROGS(DBTOEPUB, dbtoepub)
+PGAC_PATH_PROGS(XMLLINT, xmllint)
+PGAC_PATH_PROGS(XSLTPROC, xsltproc)
+PGAC_PATH_PROGS(OSX, [osx sgml2xml sx])
+PGAC_PATH_PROGS(FOP, fop)
#
# Check for test tools
#
if test "$enable_tap_tests" = yes; then
- AC_PATH_PROGS(PROVE, prove)
+ PGAC_PATH_PROGS(PROVE, prove)
if test -z "$PROVE"; then
AC_MSG_ERROR([prove not found])
fi