diff options
author | Üstün Ergenoğlu <ego@ustun.fi> | 2012-03-17 19:09:39 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-20 16:34:07 -0400 |
commit | ecfb79bd7180da4a053338532fe633d7d70d6ead (patch) | |
tree | e412c81c85a5b4a242dfd1c8b3433fc02560a429 /configure.ac | |
parent | 707623f0cb21391f0f7e62c79cb0df9cb6329aba (diff) |
configure: Add option to disable building documentation.
Signed-off-by: Üstün Ergenoğlu <ego@ustun.fi>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f5bf788..094da67 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,12 @@ AC_ARG_ENABLE([scanner], [], [enable_scanner=yes]) +AC_ARG_ENABLE([documentation], + [AC_HELP_STRING([--disable-documentation], + [Disable building the documentation])], + [], + [enable_documentation=yes]) + AM_CONDITIONAL(ENABLE_SCANNER, test "x$enable_scanner" = xyes) EXPAT_LIB="" @@ -51,7 +57,9 @@ fi AC_PATH_PROG(XSLTPROC, xsltproc) AM_CONDITIONAL([HAVE_XSLTPROC], [test "x$XSLTPROC" != "x"]) -AC_PATH_PROG(PUBLICAN, publican) +if test "x$enable_documentation" = "xyes"; then + AC_PATH_PROG(PUBLICAN, publican) +fi AM_CONDITIONAL([HAVE_PUBLICAN], [test "x$PUBLICAN" != "x"]) AC_CONFIG_FILES([Makefile |