configure.ac: allow disabling docbook

Sometimes we might want to build docs (install man pages, etc)
but allow disabling use of docbook.

Bug: https://bugs.gentoo.org/310157
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2022-04-02 02:36:24 +01:00 committed by Akira TAGOH
parent 7dfde9b736
commit aa681148a7
1 changed files with 7 additions and 1 deletions

View File

@ -736,7 +736,13 @@ dnl ===========================================================================
# Let people not build/install docs if they don't have docbook # Let people not build/install docs if they don't have docbook
# #
AC_ARG_ENABLE(docbook,
[AS_HELP_STRING([--disable-docbook],
[Disable building docs with docbook2html (default: no)])],,)
if test x$enable_docbook != xno; then
AC_CHECK_PROG(HASDOCBOOK, docbook2html, yes, no) AC_CHECK_PROG(HASDOCBOOK, docbook2html, yes, no)
fi
AM_CONDITIONAL(USEDOCBOOK, test "x$HASDOCBOOK" = xyes) AM_CONDITIONAL(USEDOCBOOK, test "x$HASDOCBOOK" = xyes)