aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-01 19:42:56 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-01 19:46:09 +0100
commitb08f34f43db2c681c1fdd3f7d375d359c86306d5 (patch)
tree22a54b6fab1c240c34bdf72e630a647be74097b5 /configure.ac
parentf1e473480062295181b9641990f48be17a9a892d (diff)
downloadpaludis-b08f34f43db2c681c1fdd3f7d375d359c86306d5.tar.gz
paludis-b08f34f43db2c681c1fdd3f7d375d359c86306d5.tar.xz
Add --enable-prebuilt-documentation
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac33
1 files changed, 25 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index f47a872d0..2ac85d446 100644
--- a/configure.ac
+++ b/configure.ac
@@ -985,19 +985,36 @@ AC_SUBST([DOXYGEN_TAG_FILES])
dnl }}}
dnl {{{ asciidoc & xmlto
-AC_CHECK_PROG(HAVE_ASCIIDOC, [asciidoc], [yes], [no])
+AC_MSG_CHECKING([whether to use pre-built documentation])
+AC_ARG_ENABLE([prebuilt-documentation],
+ AS_HELP_STRING([--enable-prebuilt-documentation], [Use prebuilt documentation]),
+ [USE_PREBUILT_DOCUMENTATION=$enableval
+ AC_MSG_RESULT([$enableval])],
+ USE_PREBUILT_DOCUMENTATION=no
+ AC_MSG_RESULT([no]))
+
+AM_CONDITIONAL([USE_PREBUILT_DOCUMENTATION], test "x$USE_PREBUILT_DOCUMENTATION" = "xyes")
+
+if test x$USE_PREBUILT_DOCUMENTATION = xno ; then
+ AC_CHECK_PROG(HAVE_ASCIIDOC, [asciidoc], [yes], [no])
+ if test "x$HAVE_ASCIIDOC" = xno ; then
+ AC_MSG_ERROR([asciidoc not found])
+ fi
+
+ AC_CHECK_PROG(HAVE_XMLTO, [xmlto], [yes], [no])
+ if test "x$HAVE_XMLTO" = xno ; then
+ AC_MSG_ERROR([xmlto not found])
+ fi
+else
+ HAVE_ASCIIDOC=no
+ HAVE_XMLTO=no
+fi
+
AC_SUBST([HAVE_ASCIIDOC])
AM_CONDITIONAL([HAVE_ASCIIDOC], test "x$HAVE_ASCIIDOC" = "xyes")
-if test "x$HAVE_ASCIIDOC" = xno ; then
- AC_MSG_ERROR([asciidoc not found])
-fi
-AC_CHECK_PROG(HAVE_XMLTO, [xmlto], [yes], [no])
AC_SUBST([HAVE_XMLTO])
AM_CONDITIONAL([HAVE_XMLTO], test "x$HAVE_XMLTO" = "xyes")
-if test "x$HAVE_XMLTO" = xno ; then
- AC_MSG_ERROR([xmlto not found])
-fi
dnl }}}
dnl {{{