7d8a49f586ec063355ac89336aa216a26b92be13
[xmldoc.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(xp.c)
3 AM_INIT_AUTOMAKE(XMLDoc, 0.3)
4
5 dnl Checks for programs.
6 AC_PROG_CC
7
8 AC_PATH_PROG(XML_CONFIG,xml2-config,no)
9
10 dnl Checks for libraries.
11
12 XML_CFLAGS=`$XML_CONFIG --cflags`
13 CFLAGS="$CFLAGS $XML_CFLAGS"
14
15 dnl Replace `main' with a function in -latex:
16 AC_CHECK_LIB(atex, main)
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, main)
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_OUTPUT(Makefile)