[gxml] Fixed --enable-devhelp-doc enabled alone
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Fixed --enable-devhelp-doc enabled alone
- Date: Sun, 3 May 2015 15:15:12 +0000 (UTC)
commit 06f4a5e09d22818e2ccd68890f0171d5c726a831
Author: Daniel Espinosa <esodan gmail com>
Date: Sun May 3 10:14:14 2015 -0500
Fixed --enable-devhelp-doc enabled alone
configure.ac | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 216587f..5bea5f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,19 +173,26 @@ AC_ARG_ENABLE([gtk-docs],
AS_HELP_STRING([--enable-gtk-docs],[Enable gtk-doc documentation generation]),
[enable_gtk_docs=$enableval], [enable_gtk_docs=no])
+AC_ARG_ENABLE([gir-docs],
+ AS_HELP_STRING([--enable-gir-docs],[Enable documented GIR generation]),
+ [enable_gir_docs=$enableval], [enable_gir_docs=no])
+
+if test x$enable_devhelp_docs = xyes; then
+ if test x$have_valadoc = xno; then
+ AC_MSG_ERROR([You should require valadoc and gtk-doc, to generate devhelp documentation. Use
--enable-valadoc and --enable-gtk-doc])
+ fi
+fi
+
have_gtkdoc=no
if test x$enable_gtk_docs = xyes; then
if test x$have_valadoc = xyes; then
PKG_CHECK_MODULES([GTKDOC], gtk-doc)
+ have_gtkdoc=yes
else
- AC_MSG_ERROR([You should require valadoc enabled to generate gtk-doc documentation. Use
--enable-valadoc])
+ AC_MSG_ERROR([You should require valadoc, to generate gtk-doc documentation. Use --enable-valadoc])
fi
fi
-AC_ARG_ENABLE([gir-docs],
- AS_HELP_STRING([--enable-gir-docs],[Enable documented GIR generation]),
- [enable_gir_docs=$enableval], [enable_gir_docs=no])
-
dnl Find yelp-build program
enable_mallard_doc="no"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]