Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Try out libxml2.

  • Loading branch information...
commit cf39f54637831fd160be25824c4b387e7d9be9a9 1 parent 8971845
Alistair Riddoch authored February 05, 2010
6  configure.ac
@@ -48,14 +48,16 @@ AC_CHECK_FUNC(cos,,[AC_CHECK_LIB(m,cos)])
48 48
 
49 49
 PKG_PROG_PKG_CONFIG
50 50
 
51  
-PKG_CHECK_MODULES(LIBXML, libxml-2.0,
  51
+PKG_CHECK_MODULES(LIBXML2, libxml-2.0,
52 52
 [
  53
+    CPPFLAGS="$CPPFLAGS $LIBXML2_CFLAGS"
  54
+    LIBS="$LIBS $LIBXML2_LIBS"
53 55
 ],
54 56
 [
55 57
     AC_MSG_RESULT([no])
56 58
     AC_MSG_ERROR([
57 59
 Cannot find valid versions of required libxml2 library:
58  
-$DEPS_PKG_ERRORS
  60
+$LIBXML2_PKG_ERRORS
59 61
 Perhaps you should add the directory containing the missing libraries to the
60 62
 PKG_CONFIG_PATH environment variable.])
61 63
 ])
2  libcolladadae/Makefile.am
... ...
@@ -1,3 +1,3 @@
1 1
 SUBDIRS = tests
2 2
 
3  
-INCLUDES = $(top_srcdir)
  3
+INCLUDES = -I$(top_srcdir)
2  libcolladadae/tests/Makefile.am
... ...
@@ -1,6 +1,6 @@
1 1
 SUBDIRS =
2 2
 
3  
-INCLUDES = $(top_srcdir)
  3
+INCLUDES = -I$(top_srcdir)
4 4
 
5 5
 check_PROGRAMS = dumpdae
6 6
 
8  libcolladadae/tests/dumpdae.c
... ...
@@ -1,4 +1,10 @@
1  
-int main()
  1
+#include <libxml/parser.h>
  2
+
  3
+int main(int argc, char ** argv)
2 4
 {
  5
+    if (argc != 2) {
  6
+        fprintf(stderr, "usage: %s <filename>\n", argv[0]);
  7
+        return 1;
  8
+    }
3 9
     return 0;
4 10
 }

0 notes on commit cf39f54

Please sign in to comment.
Something went wrong with that request. Please try again.