aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macros/gnome-xml-check.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/macros/gnome-xml-check.m4 b/macros/gnome-xml-check.m4
index d1ffde9e27..accbabfc94 100644
--- a/macros/gnome-xml-check.m4
+++ b/macros/gnome-xml-check.m4
@@ -14,7 +14,11 @@ AC_DEFUN([GNOME_XML_HOOK],[
AC_MSG_ERROR(Could not find gnome-config)
fi
fi
- AC_CHECK_LIB(xml, xmlNewDoc, [$1], [
+ AC_CHECK_LIB(xml, xmlNewDoc, [
+ $1
+ AC_SUBST(GNOME_XML_LIB)
+ GNOME_XML_LIB=`gnome-config --libs xml`
+ ], [
if test x$2 = failure; then
AC_MSG_ERROR(Could not link sample xml program)
fi