aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-xml-check.m4
blob: 6649890fb6f5e43b953981a6ef88f2f2dd4e3683 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
dnl
dnl Check for availability of the libxml library
dnl the XML parser uses libz if available too
dnl
AC_DEFUN([GNOME_XML_CHECK],[
    dnl Checks for zlib library.
    Z_LIBS=
    AC_CHECK_LIB(z, inflate,
      AC_CHECK_HEADER(zlib.h, Z_LIBS="-lz"))

    AC_REQUIRE([GNOME_INIT_HOOK])
    GNOME_XML_LIB=""
    AC_CHECK_LIB(xml, xmlNewDoc, GNOME_XML_LIB="-lxml",
                 ,-L$gnome_prefix $Z_LIBS)
    AC_SUBST(GNOME_XML_LIB)
    AC_PROVIDE([GNOME_XML_CHECK])
])