<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Tue, 2010-01-26 at 09:29 -0800, Dan Nicholson wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Tue, Jan 26, 2010 at 04:01:42PM +0100, Christian Hartmann wrote:
&gt; Hello Dan,
&gt; 
&gt; I have cloned again in a new directory and after a configure I see:
&gt; 
&gt; checking for XI... yes
&gt; configure: WARNING: xmlto or asciidoc not found - cannot create man
&gt; pages without it
&gt; checking whether malloc(0) returns NULL... yes
&gt; configure: creating ./config.status
&gt; config.status: creating Makefile
&gt; config.status: creating src/Makefile
&gt; config.status: creating man/Makefile
&gt; config.status: creating xi.pc
&gt; config.status: creating src/config.h
&gt; config.status: executing depfiles commands
&gt; config.status: executing libtool commands
&gt; 
&gt; I have xmlto installed:
&gt; chris@oddysseus:~/linux_2.6/Xorg.git/libXi$ which xmlto
&gt; /usr/bin/xmlto
&gt; chris@oddysseus:~/linux_2.6/Xorg.git/libXi$ /usr/bin/xmlto --version
&gt; xmlto version 0.0.23
&gt; 
&gt; On my other machine - AMD x86_64 - I got the same issue after git pull
&gt; (the commit in question) and the same error message again.
&gt; 
&gt; I have exported these variables:
&gt; export PKG_CONFIG_PATH=/opt/xorg/lib/pkgconfig
&gt; export LDFLAGS=-L/opt/xorg/lib
&gt; export CPPFLAGS=-I/opt/xorg/include
&gt; export ACLOCAL=&quot;/usr/bin/aclocal -I /opt/xorg/share/aclocal&quot;
&gt; 
&gt; For each xserver component I pulled from git I do a ./autogen
&gt; --prefix=/opt/xorg &amp;&amp; make &amp;&amp; sudo make install. But with the last
&gt; commit, also after a fresh cloning, I am not able to compile errorfree
&gt; 
&gt; The AMD machine compiled errorfree, there is no problem with the
&gt; manpages. Only after the alst commit, it hangs there. I can workaround
&gt; it, but this is only a temporary solution for me ;)

OK, the problem is actually in the previous commit. We only check for
xmlto when determining if installing is OK, even though we also need
asciidoc. Can you try the patch below?

--
Dan

&gt;From 2ef6fcc7506b8a0f283dc4c00e6e6e17196db319 Mon Sep 17 00:00:00 2001
From: Dan Nicholson &lt;<A HREF="mailto:dbn.lists@gmail.com">dbn.lists@gmail.com</A>&gt;
Date: Tue, 26 Jan 2010 09:17:12 -0800
Subject: [PATCH] Need both xmlto and asciidoc to install man pages from a checkout

The check for whether to build the pages looked for both xmlto and
asciidoc, but the check to install didn't. Refactor a bit so that the
check is done only once.

Signed-off-by: Dan Nicholson &lt;<A HREF="mailto:dbn.lists@gmail.com">dbn.lists@gmail.com</A>&gt;
---
 configure.ac |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/configure.ac b/configure.ac
index 68983c2..f8ef5e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,18 +26,24 @@ XI_CFLAGS=&quot;$CWARNFLAGS $XI_CFLAGS&quot;
 AC_SUBST(XI_CFLAGS)
 AC_SUBST(XI_LIBS)
 
-# Determine if the source for man pages is available
-# It may already be present (tarball) or can be generated using xmlto
-AM_CONDITIONAL([INSTALL_MANPAGES],
-        [test -f &quot;$srcdir/man/XAllowDeviceEvents.man&quot; || test &quot;x$have_xmlto&quot; = xyes])
-
 # Check for xmlto and asciidoc for man page conversion
 # (only needed by people building tarballs)
-AM_CONDITIONAL([HAVE_DOCTOOLS], [test &quot;x$XMLTO&quot; != &quot;x&quot; &amp;&amp; test &quot;x$ASCIIDOC&quot; != &quot;x&quot;])
-if test &quot;x$XMLTO&quot; = &quot;x&quot; || test &quot;x$ASCIIDOC&quot; = &quot;x&quot;; then
+if test &quot;$have_xmlto&quot; = yes &amp;&amp; test &quot;$have_asciidoc&quot; = yes; then
+        have_doctools=yes
+else
+        have_doctools=no
+fi
+AM_CONDITIONAL([HAVE_DOCTOOLS], [test $have_doctools = yes])
+if test $have_doctools = no; then
         AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it])
 fi
 
+# Determine if the source for man pages is available
+# It may already be present (tarball) or can be generated using doctools
+AM_CONDITIONAL([INSTALL_MANPAGES],
+        [test -f &quot;$srcdir/man/XAllowDeviceEvents.man&quot; || \
+          test $have_doctools = yes])
+
 XORG_CHECK_MALLOC_ZERO
 
 AC_OUTPUT([Makefile
</PRE>
</BLOCKQUOTE>
<BR>
Tested-by: Gaetan Nadon &lt;<A HREF="mailto:memsize@videotron.ca">memsize@videotron.ca</A>&gt;<BR>
Nice refactoring.<BR>
<BR>
I have re-tested all scenarios for git and tarball builds (including the missing permutation this time)<BR>
<BR>
Thanks to Christian for reporting the problem. Note there are now configure options available to control the usage of the doc tools:
<BLOCKQUOTE>
<PRE>
&nbsp; --with-xmlto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Use xmlto to regenerate documentation (default: yes,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if installed)
&nbsp; --with-asciidoc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Use asciidoc to regenerate documentation (default:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes, if installed)
</PRE>
</BLOCKQUOTE>
This may be very useful in case where the tool is there, but not at the right level and breaks the build.<BR>
<BR>
</BODY>
</HTML>