path: root/
diff options
authorKaushal M <>2013-04-08 16:49:34 +0530
committerVijay Bellur <>2013-08-01 03:10:00 -0700
commitee98605f961c82a8f76ece4fae228bf4ddfed4c4 (patch)
tree175ef50d00451cb0aba7f4ba3cd0555b0d84785c /
parent16061c0d0f681117a53895d309e3a09b38f673e2 (diff)
build: Better configure control & messages for xml output
Users were not given a correct indication to whether xml output was going to be built on running configure as the only information was lost in the checks output. This would lead to conditions where the user would assume gluster was compiled with xml output, when it wasn't the case. With this change, a new line is added to the end of the configure output which indicates if xml output is being built or not. Also, a new configure flag, '--disable-xml-output', has been introduced which can be used to explicitly disable xml outpu from being built. Change-Id: Ie80ba0372b4c3967a836769c61b60263c8e5e350 BUG: 947226 Signed-off-by: Kaushal M <> Reviewed-on: Reviewed-by: Amar Tumballi <> Tested-by: Gluster Build System <> Reviewed-by: Vijay Bellur <>
Diffstat (limited to '')
1 files changed, 18 insertions, 7 deletions
diff --git a/ b/
index 70cc7fd9f..ff8835eff 100644
--- a/
+++ b/
@@ -481,14 +481,24 @@ if test "x${DTRACE}" = "xyes" -a "x${SDT_H_FOUND}" = "xyes"; then
# end of systemtap/dtrace
-#check if libxml is present if so enable HAVE_LIB_XML
-echo -n "checking if libxml2 is present... "
-if test "x${no_xml}" = "x"; then
- AC_DEFINE([HAVE_LIB_XML], [1], [Define to 1 if using libxml2.])
+# xml-output
+ AC_HELP_STRING([--disable-xml-output],
+ [Disable the xml output]))
+if test "x$enable_xml_output" != "xno"; then
+ #check if libxml is present if so enable HAVE_LIB_XML
+ AM_PATH_XML2([2.6.19])
+ if test "x${no_xml}" = "x"; then
+ AC_DEFINE([HAVE_LIB_XML], [1], [Define to 1 if using libxml2.])
+ else
+ fi
+# end of xml-output
dnl FreeBSD > 5 has execinfo as a Ported library for giving a workaround
dnl solution to GCC backtrace functionality
@@ -803,4 +813,5 @@ echo "systemtap : $BUILD_SYSTEMTAP"
echo "Block Device backend : $BUILD_BD_XLATOR"
echo "glupy : $BUILD_GLUPY"
echo "Use syslog : $USE_SYSLOG"
+echo "XML output : $BUILD_XML_OUTPUT"