[lxc-devel] [PATCH] configure: support for the "docbook2man" utility to build the documentation

Stéphane Graber stgraber at ubuntu.com
Thu Apr 25 10:20:30 UTC 2013


From: Peter Simons <simons at cryp.to>

This adds docbook2man as an alternative name for the docbook compiler.
As that name was used on Debian based systems for an older version of the tool,
this change also adds a check so that docbook2man is never used on Debian based
systems.

Reported-by: Peter Simons <simons at cryp.to>
Reported-by: Christian Bühler christian at cbuehler.de
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 configure.ac | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 7dc82cf..9b58bab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,8 +66,14 @@ AC_ARG_ENABLE([doc],
 if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then
 	db2xman=""
 
+	if test "x$with_distro" = "xdebian" -o "x$with_distro" = "xubuntu"; then
+		dbparsers="docbook2x-man db2x_docbook2man"
+	else
+		dbparsers="docbook2x-man db2x_docbook2man docbook2man"
+	fi
+
 	AC_MSG_CHECKING(for docbook2x-man)
-	for name in docbook2x-man db2x_docbook2man; do
+	for name in ${dbparsers}; do
 		if "$name" --help >/dev/null 2>&1; then
 			db2xman="$name"
 			break;
-- 
1.8.1.2





More information about the lxc-devel mailing list