Files
evolution/macros/gnome-xml-check.m4
Jeff Garzik a4fe6af808 Better scoping of GNOME_XML_LIB fix.
1999-11-18  Jeff Garzik  <jgarzik@mandrakesoft.com>

        * gnome-xml-check.m4: Better scoping of GNOME_XML_LIB fix.

svn path=/trunk/; revision=1403
1999-11-18 17:31:15 +00:00

31 lines
716 B
Plaintext

dnl
dnl GNOME_XML_HOOK (script-if-xml-found, failflag)
dnl
dnl If failflag is "failure", script aborts due to lack of XML
dnl
dnl Check for availability of the libxml library
dnl the XML parser uses libz if available too
dnl
AC_DEFUN([GNOME_XML_HOOK],[
AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
if test "$GNOME_CONFIG" = no; then
if test x$2 = xfailure; then
AC_MSG_ERROR(Could not find gnome-config)
fi
fi
AC_CHECK_LIB(xml, xmlNewDoc, [
$1
GNOME_XML_LIB=`$GNOME_CONFIG --libs xml`
], [
if test x$2 = xfailure; then
AC_MSG_ERROR(Could not link sample xml program)
fi
], `$GNOME_CONFIG --libs xml`)
AC_SUBST(GNOME_XML_LIB)
])
AC_DEFUN([GNOME_XML_CHECK], [
GNOME_XML_HOOK([],failure)
])