diff --git a/Makefile.am b/Makefile.am index 7eb63487..ae954adb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,6 +71,10 @@ ledger_LDADD = $(LIBOBJS) libledger.a -lboost_python -lpython$(PYTHON_VERSION) else ledger_LDADD = $(LIBOBJS) libledger.a endif +if HAVE_XMLPARSE +ledger_CXXFLAGS += -DHAVE_XMLPARSE=1 +ledger_LDADD += -lxmlparse -lxmltok +endif if DEBUG ledger_CXXFLAGS += -DDEBUG_LEVEL=4 endif diff --git a/configure.in b/configure.in index 6baf8fb4..c887fe06 100644 --- a/configure.in +++ b/configure.in @@ -98,7 +98,7 @@ if [test x$xml = xtrue ]; then AC_TRY_LINK( [#include extern "C" { - #include // expat XML parser + #include // expat XML parser }], [XML_Parser parser = XML_ParserCreate(NULL); return parser != NULL;],