fix compilation if XPath is not included Daniel

* runxmlconf.c: fix compilation if XPath is not included
Daniel

svn path=/trunk/; revision=3796
diff --git a/ChangeLog b/ChangeLog
index 6365f0e..d339035 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Sep 25 17:35:57 CEST 2008 Daniel Veillard <daniel@veillard.com>
+
+	* runxmlconf.c: fix compilation if XPath is not included
+
 Thu Sep 25 16:54:04 CEST 2008 Daniel Veillard <daniel@veillard.com>
 
 	* xmlreader.c: patch from Riccardo Scussat fixing custom error
diff --git a/runxmlconf.c b/runxmlconf.c
index 8ef7f74..38b0ce4 100644
--- a/runxmlconf.c
+++ b/runxmlconf.c
@@ -12,6 +12,8 @@
 #include <stdio.h>
 #endif
 
+#ifdef LIBXML_XPATH_ENABLED
+
 #if !defined(_WIN32) || defined(__CYGWIN__)
 #include <unistd.h>
 #endif
@@ -605,3 +607,11 @@
         fclose(logfile);
     return(ret);
 }
+
+#else /* ! LIBXML_XPATH_ENABLED */
+#include <stdio.h>
+int
+main(int argc, char **argv) {
+    fprintf(stderr, "%s need XPath support\n", argv[0]);
+}
+#endif