Build: Replace use of deprecated AM_PATH_XML2
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 4 Oct 2016 18:37:57 +0000 (14:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 5 Oct 2016 22:30:58 +0000 (18:30 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac
src/common/config/Makefile.am
tests/regression/tools/mi/Makefile.am

index 358bcb61036cfb04533dc0b630543ef150db6a42..a41d396ffd97ff5c3b3fe91dfa1cba56779e8f84 100644 (file)
@@ -320,7 +320,9 @@ PKG_CHECK_MODULES([POPT], [popt],
        ]
 )
 
-AM_PATH_XML2(2.7.6, true, AC_MSG_ERROR(No supported version of libxml2 found.))
+PKG_CHECK_MODULES([libxml2], [libxml-2.0 >= 2.7.6])
+AC_SUBST([XML_CFLAGS])
+AC_SUBST([XML_LIBS])
 
 # Check for libuuid
 PKG_CHECK_MODULES([UUID], [uuid],
index 6e33d5b600e01d69c50b2297051b729dc9278d53..afc83f26f377b01e29f37f44fdbd69a658fa0df6 100644 (file)
@@ -4,8 +4,8 @@ noinst_LTLIBRARIES = libconfig.la
 
 libconfig_la_SOURCES = ini.c ini.h session-config.c session-config.h \
                config-session-abi.h config-internal.h
-libconfig_la_CPPFLAGS = $(XML_CPPFLAGS) $(AM_CPPFLAGS)
-libconfig_la_LIBADD = $(XML_LIBS)
+libconfig_la_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
+libconfig_la_LIBADD = ${libxml2_LIBS}
 
 xmldir = $(datadir)/xml/lttng
 dist_xml_DATA = session.xsd
index f5d5e2130bbe1de0ade5add9fd966a04e6d426de..f26efe0d0eec43160fd61de204f3500c6f8be410 100644 (file)
@@ -2,12 +2,12 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
 
 noinst_PROGRAMS = validate_xml extract_xml
 validate_xml_SOURCES = validate_xml.c
-validate_xml_CPPFLAGS = $(XML_CPPFLAGS) $(AM_CPPFLAGS)
-validate_xml_LDADD = $(XML_LIBS)
+validate_xml_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
+validate_xml_LDADD = $(libxml2_LIBS)
 
 extract_xml_SOURCES = extract_xml.c
-extract_xml_CPPFLAGS = $(XML_CPPFLAGS) $(AM_CPPFLAGS)
-extract_xml_LDADD = $(XML_LIBS)
+extract_xml_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
+extract_xml_LDADD = $(libxml2_LIBS)
 
 noinst_SCRIPTS = test_mi
 EXTRA_DIST = test_mi
This page took 0.026734 seconds and 4 git commands to generate.