Revision 16767,
791 bytes
checked in by ghudson, 23 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r16766,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | dnl |
---|
2 | dnl GNOME_XML_HOOK (script-if-xml-found, failflag) |
---|
3 | dnl |
---|
4 | dnl If failflag is "failure", script aborts due to lack of XML |
---|
5 | dnl |
---|
6 | dnl Check for availability of the libxml library |
---|
7 | dnl the XML parser uses libz if available too |
---|
8 | dnl |
---|
9 | |
---|
10 | AC_DEFUN([GNOME_XML_HOOK],[ |
---|
11 | AC_PATH_PROG(GNOME_CONFIG,gnome-config,no) |
---|
12 | if test "$GNOME_CONFIG" = no; then |
---|
13 | if test x$2 = xfailure; then |
---|
14 | AC_MSG_ERROR(Could not find gnome-config) |
---|
15 | fi |
---|
16 | fi |
---|
17 | GNOME_XML_CFLAGS=`$GNOME_CONFIG --cflags xml` |
---|
18 | AC_SUBST(GNOME_XML_CFLAGS) |
---|
19 | AC_CHECK_LIB(xml, xmlNewDoc, [ |
---|
20 | $1 |
---|
21 | GNOME_XML_LIB=`$GNOME_CONFIG --libs xml` |
---|
22 | ], [ |
---|
23 | if test x$2 = xfailure; then |
---|
24 | AC_MSG_ERROR(Could not link sample xml program) |
---|
25 | fi |
---|
26 | ], `$GNOME_CONFIG --libs xml`) |
---|
27 | AC_SUBST(GNOME_XML_LIB) |
---|
28 | ]) |
---|
29 | |
---|
30 | AC_DEFUN([GNOME_XML_CHECK], [ |
---|
31 | GNOME_XML_HOOK([],failure) |
---|
32 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.