build: use standard PKG_CHECK_MODULES for libxml2 availability
In case the development parts of libxml2 are not installed, it was required to re-run ./autogen.sh to cleanup the cached values for the check. This is not nice towards users. By using the standard PKG_CHECK_MODULES for libxml-2.0 the results of the check are not cached and will be probed again when running ./configure. Change-Id: I3c4586e5555a521be5d4fb61bdb873ae0317311a Fixes: bz#1599219 Reported-by: Sachidananda Urs <surs@redhat.com> Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
90b102fa03
commit
fa2f092709
@ -21,10 +21,9 @@ AM_CPPFLAGS = $(GF_CPPFLAGS) \
|
||||
-DDATADIR=\"$(localstatedir)\" \
|
||||
-DCONFDIR=\"$(sysconfdir)/glusterfs\" \
|
||||
-DGSYNCD_PREFIX=\"$(GLUSTERFS_LIBEXECDIR)\"\
|
||||
-DSYNCDAEMON_COMPILE=$(SYNCDAEMON_COMPILE) -DSBIN_DIR=\"$(sbindir)\"\
|
||||
$(XML_CPPFLAGS)
|
||||
-DSYNCDAEMON_COMPILE=$(SYNCDAEMON_COMPILE) -DSBIN_DIR=\"$(sbindir)\"
|
||||
|
||||
AM_CFLAGS = -Wall $(GF_CFLAGS)
|
||||
AM_CFLAGS = -Wall $(GF_CFLAGS) $(XML_CFLAGS)
|
||||
|
||||
CLEANFILES =
|
||||
|
||||
|
@ -963,8 +963,7 @@ AC_ARG_ENABLE([xml-output],
|
||||
[Disable the xml output]))
|
||||
BUILD_XML_OUTPUT="yes"
|
||||
if test "x$enable_xml_output" != "xno"; then
|
||||
#check if libxml is present if so enable HAVE_LIB_XML
|
||||
m4_ifdef([AM_PATH_XML2],[AM_PATH_XML2([2.6.19])], [no_xml=yes])
|
||||
PKG_CHECK_MODULES([XML], [libxml-2.0], [], [no_xml="yes"])
|
||||
if test "x${no_xml}" = "x"; then
|
||||
AC_DEFINE([HAVE_LIB_XML], [1], [Define to 1 if using libxml2.])
|
||||
else
|
||||
|
@ -19,10 +19,9 @@ AM_CPPFLAGS = $(GF_CPPFLAGS) \
|
||||
-I$(top_builddir)/rpc/xdr/src\
|
||||
-I$(top_srcdir)/api/src\
|
||||
-DDATADIR=\"$(localstatedir)\" \
|
||||
-DSBIN_DIR=\"$(sbindir)\" \
|
||||
$(XML_CPPFLAGS)
|
||||
-DSBIN_DIR=\"$(sbindir)\"
|
||||
|
||||
AM_CFLAGS = -Wall $(GF_CFLAGS)
|
||||
AM_CFLAGS = -Wall $(GF_CFLAGS) $(XML_CFLAGS)
|
||||
|
||||
CLEANFILES =
|
||||
|
||||
|
@ -55,10 +55,10 @@ AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
|
||||
-I$(CONTRIBDIR)/mount -I$(CONTRIBDIR)/userspace-rcu \
|
||||
-DSBIN_DIR=\"$(sbindir)\" -DDATADIR=\"$(localstatedir)\" \
|
||||
-DGSYNCD_PREFIX=\"$(GLUSTERFS_LIBEXECDIR)\" \
|
||||
-DSYNCDAEMON_COMPILE=$(SYNCDAEMON_COMPILE) $(XML_CPPFLAGS)
|
||||
-DSYNCDAEMON_COMPILE=$(SYNCDAEMON_COMPILE)
|
||||
|
||||
|
||||
AM_CFLAGS = -Wall $(GF_CFLAGS) $(URCU_CFLAGS) $(URCU_CDS_CFLAGS)
|
||||
AM_CFLAGS = -Wall $(GF_CFLAGS) $(URCU_CFLAGS) $(URCU_CDS_CFLAGS) $(XML_CFLAGS)
|
||||
|
||||
AM_LDFLAGS = -L$(xlatordir) $(URCU_LIBS) $(URCU_CDS_LIBS)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user