Removed dependency on the xslt-config script.
[xmldoc.git] / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ([2.59])
4 AC_INIT([xmldoc], [0.8], [arjen@andromeda.nl])
5 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
6
7 dnl Checks for programs.
8 AC_PROG_CC
9
10 dnl Checks for XML and XSLT libraries.
11
12 CFLAGS="$CFLAGS -I/usr/include/libxml2"
13
14 AC_CHECK_HEADER(libxml/xmlmemory.h)
15 AC_CHECK_HEADER(libxslt/xslt.h)
16
17 dnl Replace `main' with a function in -lexslt:
18 AC_CHECK_LIB(exslt, main)
19 dnl Replace `main' with a function in -lxml2:
20 AC_CHECK_LIB(xml2, xmlParseFile)
21 dnl Replace `main' with a function in -lxslt:
22 AC_CHECK_LIB(xslt, xsltSetXIncludeDefault)
23
24 dnl Checks for header files.
25 AC_HEADER_STDC
26 AC_CHECK_HEADERS(unistd.h)
27
28 dnl Checks for typedefs, structures, and compiler characteristics.
29 AC_C_CONST
30
31 dnl Checks for library functions.
32
33 AC_CONFIG_FILES([Makefile doc/Makefile])
34
35 AC_OUTPUT