Permalink
Browse files

Try out libxml2.

  • Loading branch information...
alriddoch committed Feb 5, 2010
1 parent 8971845 commit cf39f54637831fd160be25824c4b387e7d9be9a9
Showing with 13 additions and 5 deletions.
  1. +4 −2 configure.ac
  2. +1 −1 libcolladadae/Makefile.am
  3. +1 −1 libcolladadae/tests/Makefile.am
  4. +7 −1 libcolladadae/tests/dumpdae.c
View
@@ -48,14 +48,16 @@ AC_CHECK_FUNC(cos,,[AC_CHECK_LIB(m,cos)])
PKG_PROG_PKG_CONFIG
-PKG_CHECK_MODULES(LIBXML, libxml-2.0,
+PKG_CHECK_MODULES(LIBXML2, libxml-2.0,
[
+ CPPFLAGS="$CPPFLAGS $LIBXML2_CFLAGS"
+ LIBS="$LIBS $LIBXML2_LIBS"
],
[
AC_MSG_RESULT([no])
AC_MSG_ERROR([
Cannot find valid versions of required libxml2 library:
-$DEPS_PKG_ERRORS
+$LIBXML2_PKG_ERRORS
Perhaps you should add the directory containing the missing libraries to the
PKG_CONFIG_PATH environment variable.])
])
@@ -1,3 +1,3 @@
SUBDIRS = tests
-INCLUDES = $(top_srcdir)
+INCLUDES = -I$(top_srcdir)
@@ -1,6 +1,6 @@
SUBDIRS =
-INCLUDES = $(top_srcdir)
+INCLUDES = -I$(top_srcdir)
check_PROGRAMS = dumpdae
@@ -1,4 +1,10 @@
-int main()
+#include <libxml/parser.h>
+
+int main(int argc, char ** argv)
{
+ if (argc != 2) {
+ fprintf(stderr, "usage: %s <filename>\n", argv[0]);
+ return 1;
+ }
return 0;
}

0 comments on commit cf39f54

Please sign in to comment.