First code bits of record retrieval code
[yaz-moved-to-github.git] / test / tst_record_conv.c
index 2b414c6..fcfb692 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (C) 2005-2006, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: tst_record_conv.c,v 1.2 2006-05-03 13:04:46 adam Exp $
+ * $Id: tst_record_conv.c,v 1.4 2006-05-04 20:00:45 adam Exp $
  *
  */
 #include <yaz/record_conv.h>
 #include <yaz/wrbuf.h>
 #include <string.h>
 
-#if HAVE_XML2
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#if HAVE_XSLT
 
 #include <libxml/parser.h>
 #include <libxml/tree.h>
@@ -264,7 +268,6 @@ static void tst_convert()
                                   "</convert>",
                                   0, &p));
     YAZ_CHECK(conv_convert_test(p, marcxml_rec, marcxml_rec));
-
 }
 
 #endif
@@ -272,7 +275,7 @@ static void tst_convert()
 int main(int argc, char **argv)
 {
     YAZ_CHECK_INIT(argc, argv);
-#if HAVE_XML2
+#if HAVE_XSLT
     tst_configure();
     tst_convert();
 #endif