Define this if we have libxml.

2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* acconfig.h (HAVE_LIBXML): Define this if we have libxml.
This commit is contained in:
Martin Baulig
2000-01-12 16:18:42 +00:00
committed by Martin Baulig
parent bb15be7198
commit 27bf526b85
3 changed files with 7 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
* xml.m4: New file to check for libxml.
* acconfig.h (HAVE_LIBXML): Define this if we have libxml.
* configure.in: Call `LIBGTOP_XML_HOOK' from `xml.m4' and
add libxml libraries to `LIBGTOP_EXTRA_LIBS' when found.

View File

@@ -169,3 +169,7 @@
/* Define if you have the <sys/procfs.h> header file */
#undef HAVE_SYS_PROCFS_H
/* Define if you have the libxml library */
#undef HAVE_LIBXML

1
xml.m4
View File

@@ -20,6 +20,7 @@ AC_DEFUN([LIBGTOP_XML_HOOK],[
AC_CHECK_LIB(xml, xmlNewDoc, [
$1
LIBGTOP_XML_LIB=`$XML_CONFIG --libs`
AC_DEFINE(HAVE_LIBXML)
], [
if test x$2 = xfailure; then
AC_MSG_ERROR(Could not link sample xml program)