Tweak the test for detecting libxslt as it didn't work correctly on
RH8.
diff --git a/configure.ac b/configure.ac
index fa4fb27..d2688fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -462,14 +462,15 @@
ac_xslt_libs="`$PKG_CONFIG --libs libxslt`"
ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt`"
CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
- AC_CHECK_HEADERS(libxslt/xslt.h \
- libxslt/pattern.h \
- libxslt/transform.h,
+ AC_CHECK_HEADERS([libxslt/pattern.h libxslt/transform.h],
[AC_CHECK_LIB(xslt, xsltCompilePattern,
[AC_DEFINE(HAVE_LIBXSLT, 1, [Define if you have the libxslt library])
XSLTLIBS="$ac_xslt_libs"
XSLTINCL="$ac_xslt_cflags"],,$ac_xslt_libs)
- ])
+ ],,
+[#ifdef HAVE_LIBXSLT_PATTERN_H
+# include <libxslt/pattern.h>
+#endif])
CPPFLAGS="$ac_save_CPPFLAGS"
fi