summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Le Cam <niko.lecam@gmail.com>2013-06-14 22:20:37 +0200
committerDaniel Veillard <veillard@redhat.com>2014-02-10 10:33:31 +0800
commit1af8b7b22e3bb569b2c27642064224bc14a1924a (patch)
tree78f033dfb200ba8e1afec43e281bd97c3a2bcb76
parent77b5b46409d48fa417205aea580db8bb7c8f5d4a (diff)
downloadlibxml2-1af8b7b22e3bb569b2c27642064224bc14a1924a.tar.gz
Fix compilation with minimum and schematron.
Add a hard dependancy on tree. Disable write and close callbacks when output is disabled.
-rw-r--r--configure.in1
-rw-r--r--schematron.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 7374564c..ecaa403b 100644
--- a/configure.in
+++ b/configure.in
@@ -223,6 +223,7 @@ fi
if test "$with_schematron" = "yes"
then
with_pattern=yes
+ with_tree=yes
with_xpath=yes
fi
if test "$with_reader" = "yes"
diff --git a/schematron.c b/schematron.c
index 537b8685..eb4befeb 100644
--- a/schematron.c
+++ b/schematron.c
@@ -165,8 +165,10 @@ struct _xmlSchematronValidCtxt {
FILE *outputFile; /* if using XML_SCHEMATRON_OUT_FILE */
xmlBufferPtr outputBuffer; /* if using XML_SCHEMATRON_OUT_BUFFER */
+#ifdef LIBXML_OUTPUT_ENABLED
xmlOutputWriteCallback iowrite; /* if using XML_SCHEMATRON_OUT_IO */
xmlOutputCloseCallback ioclose;
+#endif
void *ioctx;
/* error reporting data */