[PATCH libXcomposite 1/2] config: replace custom code with reusable macro XORG_WITH_XMLTO

Gaetan Nadon memsize at videotron.ca
Thu Jan 21 07:33:36 PST 2010

XORG_WITH_XMLTO provides additional functions like a configure
option which allow platform builders to control the usage of
the xmlto program.

This is a requirement from platforms that do not have such doc tool.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
 configure.ac |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8722157..54ea754 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,10 +36,10 @@ AC_INIT(libXcomposite, 0.4.1, [https://bugs.freedesktop.org/enter_bug.cgi?produc
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
-# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
+# Require xorg-macros: XORG_DEFAULT_OPTIONS
-	  [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
+	  [m4_fatal([must install xorg-macros 1.5 or later before running autoconf/autogen])])
 # Check for progs
@@ -47,13 +47,7 @@ AC_PROG_CC
-AC_ARG_VAR([XMLTO], [Path to xmlto command])
-AC_PATH_PROG([XMLTO], [xmlto])
-AM_CONDITIONAL([HAVE_XMLTO], [test "x$XMLTO" != "x"])
-if test "x$XMLTO" = "x" -a ! -f $srcdir/man/Xcomposite.man ; then
-	AC_MSG_WARN([xmlto not found - cannot create man pages without it])
 # Check compositeext configuration, strip extra digits from package version to
 # find the required protocol version

Initial post for review

This patch is making use of the new macros discussed earlier on the list.
The intent was not to change the way the makefile works, simply to provide
more control over the usage of the xmlto program through configure options.

More information about the xorg-devel mailing list