diff options
author | Will Cohen <wcohen@peloton.usersys.redhat.com> | 2009-01-07 12:13:50 -0500 |
---|---|---|
committer | Will Cohen <wcohen@peloton.usersys.redhat.com> | 2009-01-07 12:13:50 -0500 |
commit | 92aff3c7556ad0f968ff97d5755e4a6488eb80a8 (patch) | |
tree | 9c14a6a6721c36dfec24c873c77388784c83a883 /configure.ac | |
parent | 2d4b8ddfb72206a2e0fc4b500e54602a1f6ba189 (diff) | |
download | systemtap-steved-92aff3c7556ad0f968ff97d5755e4a6488eb80a8.tar.gz systemtap-steved-92aff3c7556ad0f968ff97d5755e4a6488eb80a8.tar.xz systemtap-steved-92aff3c7556ad0f968ff97d5755e4a6488eb80a8.zip |
Check xmlto available and allow user to control generation of reference docs.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 95be829e..4cb2948a 100644 --- a/configure.ac +++ b/configure.ac @@ -145,6 +145,7 @@ AC_ARG_ENABLE([crash], AM_CONDITIONAL([BUILD_CRASHMOD], [test "$enable_crash" != "no"]) dnl Handle the option to build the documentation +building_docs="no" AC_ARG_ENABLE([docs], AS_HELP_STRING([--enable-docs], [enable building documentation (default on if latex etc. found).]), @@ -162,7 +163,31 @@ if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesye AC_MSG_WARN([will not build documentation, cannot find all tools]) fi fi -AM_CONDITIONAL([BUILD_DOCS], [test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"]) +if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then + building_docs="yes" +fi +AM_CONDITIONAL([BUILD_DOCS], [test "$building_docs" == "yes"]) + +dnl Handle the option to build the reference documentation +building_refdocs="no" +AC_ARG_ENABLE([refdocs], + AS_HELP_STRING([--enable-refdocs], + [enable building reference documentation (default on if xmlto etc. found and other documentation built).]), + [enable_refdocs=$enableval], + [enable_refdocs="check"]) +if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then + AC_MSG_ERROR([must use --enable-docs with --enable-refdocs]) +fi +AC_CHECK_PROG(have_xmlto, xmlto, yes, no) +if test "$enable_refdocs" == "yes"; then + if test "x${have_xmlto}" != "xyes"; then + AC_MSG_ERROR([cannot find xmlto for building reference documentation]) + fi +fi +if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then + building_refdocs="yes" +fi +AM_CONDITIONAL([BUILD_REFDOCS], [test "$building_refdocs" == "yes"]) dnl Handle the option to build the server setup. AC_ARG_ENABLE([server], |