[nautilus-actions] Define BUILD_HTML_MANUALS, BUILD_PDF_MANUALS automake conditionals
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Define BUILD_HTML_MANUALS, BUILD_PDF_MANUALS automake conditionals
- Date: Mon, 20 Feb 2017 11:13:05 +0000 (UTC)
commit bac2c3873f17e53fe13f5a4a4b2eff6fc8fdcae5
Author: Pierre Wieser <pwieser trychlos org>
Date: Fri Feb 17 18:05:59 2017 +0100
Define BUILD_HTML_MANUALS, BUILD_PDF_MANUALS automake conditionals
m4/fma-enable-manuals.m4 | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/m4/fma-enable-manuals.m4 b/m4/fma-enable-manuals.m4
index 30fc7bc..09026ee 100644
--- a/m4/fma-enable-manuals.m4
+++ b/m4/fma-enable-manuals.m4
@@ -42,6 +42,10 @@ dnl output PDF manuals for all locales
dnl only use dblatex for now
dnl only '=dblatex' option is recognized for now.
dnl
+dnl Defined conditionals:
+dnl BUILD_HTML_MANUALS
+dnl BUILD_PDF_MANUALS
+dnl
dnl usage: FMA_ENABLE_MANUALS
AC_DEFUN([FMA_ENABLE_MANUALS],[
@@ -49,7 +53,10 @@ AC_DEFUN([FMA_ENABLE_MANUALS],[
AC_REQUIRE([_AC_ARG_FMA_ENABLE_PDF_MANUALS])dnl
_CHECK_FOR_HTML_MANUALS
+ AM_CONDITIONAL([BUILD_HTML_MANUALS], [test "${enable_html_manuals}" = "yes"])
+
_CHECK_FOR_PDF_MANUALS
+ AM_CONDITIONAL([BUILD_PDF_MANUALS], [test "${enable_pdf_manuals}" = "yes"])
])
AC_DEFUN([_AC_ARG_FMA_ENABLE_HTML_MANUALS],[
@@ -92,6 +99,7 @@ AC_DEFUN([_CHECK_FOR_HTML_MANUALS],[
else
msg_html_manuals="${msg_html_manuals} gnome-doc-tool"
fi
+ enable_html_manuals="yes"
fi
AC_SUBST([WITH_DB2HTML],[${with_db2html}])
@@ -126,6 +134,8 @@ AC_DEFUN([_CHECK_FOR_PDF_MANUALS],[
fi
if test "x${with_dblatex}" = "xno"; then
AC_MSG_ERROR([dblatex has not been found, unable to generate PDF manuals])
+ else
+ enable_pdf_manuals="yes"
fi
fi
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]