Disable xslt/exslt if --without-xml2 is given
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 24 Nov 2008 11:13:48 +0000 (12:13 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 24 Nov 2008 11:13:48 +0000 (12:13 +0100)
configure.ac

index 4b2343b..e6ef61b 100644 (file)
@@ -348,15 +348,17 @@ YAZ_LIBXML2([
        xml_enabled=true
     ])
 
-YAZ_LIBXSLT([
-       AC_DEFINE(YAZ_HAVE_XSLT)
-       YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XSLT=1"
-    ])
-YAZ_LIBEXSLT([
-       AC_DEFINE(YAZ_HAVE_EXSLT)
-       YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_EXSLT=1"
-    ])
-       
+if test "$xml_enabled" = "true"; then
+    YAZ_LIBXSLT([
+           AC_DEFINE(YAZ_HAVE_XSLT)
+           YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XSLT=1"
+       ])
+    YAZ_LIBEXSLT([
+           AC_DEFINE(YAZ_HAVE_EXSLT)
+           YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_EXSLT=1"
+       ])
+    
+fi
 YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS $XML2_CFLAGS"
 
 if test "$XML2_LIBS"; then