You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
715 B
31 lines
715 B
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
|
|
AC_SUBST(GNOME_XML_LIB)
|
|
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_DEFUN([GNOME_XML_CHECK], [
|
|
GNOME_XML_HOOK([],failure)
|
|
])
|