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:
committed by
Martin Baulig
parent
bb15be7198
commit
27bf526b85
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* xml.m4: New file to check for libxml.
|
* 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
|
* configure.in: Call `LIBGTOP_XML_HOOK' from `xml.m4' and
|
||||||
add libxml libraries to `LIBGTOP_EXTRA_LIBS' when found.
|
add libxml libraries to `LIBGTOP_EXTRA_LIBS' when found.
|
||||||
|
|
||||||
|
@@ -169,3 +169,7 @@
|
|||||||
|
|
||||||
/* Define if you have the <sys/procfs.h> header file */
|
/* Define if you have the <sys/procfs.h> header file */
|
||||||
#undef HAVE_SYS_PROCFS_H
|
#undef HAVE_SYS_PROCFS_H
|
||||||
|
|
||||||
|
/* Define if you have the libxml library */
|
||||||
|
#undef HAVE_LIBXML
|
||||||
|
|
||||||
|
1
xml.m4
1
xml.m4
@@ -20,6 +20,7 @@ AC_DEFUN([LIBGTOP_XML_HOOK],[
|
|||||||
AC_CHECK_LIB(xml, xmlNewDoc, [
|
AC_CHECK_LIB(xml, xmlNewDoc, [
|
||||||
$1
|
$1
|
||||||
LIBGTOP_XML_LIB=`$XML_CONFIG --libs`
|
LIBGTOP_XML_LIB=`$XML_CONFIG --libs`
|
||||||
|
AC_DEFINE(HAVE_LIBXML)
|
||||||
], [
|
], [
|
||||||
if test x$2 = xfailure; then
|
if test x$2 = xfailure; then
|
||||||
AC_MSG_ERROR(Could not link sample xml program)
|
AC_MSG_ERROR(Could not link sample xml program)
|
||||||
|
Reference in New Issue
Block a user