[Xcb] [PATCH lib] Make xsltproc optional

Daniel Martin consume.noise at gmail.com
Mon Dec 31 03:09:07 PST 2012


Fix Bug 23863 - xcb still checks for xsltproc:
    https://bugs.freedesktop.org/show_bug.cgi?id=23863

xsltproc is used to generate the optional html page for `check` results,
only. So, it's not a hard build dependency.

Signed-off-by: Daniel Martin <consume.noise at gmail.com>
---
 configure.ac | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7364383..6a28dd1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,13 +27,10 @@ AC_LIBTOOL_WIN32_DLL
 AC_PROG_LIBTOOL
 AC_PROG_CC
 
-AC_PATH_PROG(XSLTPROC, xsltproc, no)
-if test "$XSLTPROC" = "no"; then
-   AC_MSG_ERROR([XCB requires xsltproc.])
-fi
-
+XSLTPROC=no
 HTML_CHECK_RESULT=false
 if test x"$HAVE_CHECK" = xyes; then
+	AC_PATH_PROG(XSLTPROC, xsltproc, no)
 	if test x"$XSLTPROC" != xno; then
 		HTML_CHECK_RESULT=true
 	fi
@@ -294,3 +291,6 @@ echo ""
 echo "  Installation:"
 echo "    Prefix..............: ${prefix}"
 echo ""
+echo "  Unit tests"
+echo "    build...............: ${HAVE_CHECK}"
+echo "    html results........: ${HTML_CHECK_RESULT}"
-- 
1.8.0.2



More information about the Xcb mailing list