1998-07-24 23:24:09 +04:00
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.2)
1998-08-13 07:39:55 +04:00
AC_INIT(entities.h)
1998-07-24 23:24:09 +04:00
AM_CONFIG_HEADER(config.h)
1999-01-27 22:48:07 +03:00
AM_INIT_AUTOMAKE(libxml, 0.99.5)
1998-07-24 23:24:09 +04:00
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
1998-08-07 12:38:58 +04:00
AC_PROG_CPP
1998-07-24 23:24:09 +04:00
AC_PATH_PROG(RM, rm, /bin/rm)
AC_PATH_PROG(MV, mv, /bin/mv)
AC_PATH_PROG(TAR, tar, /bin/tar)
AM_PROG_LIBTOOL
AM_MAINTAINER_MODE
dnl Checks for libraries.
Z_LIBS=
AC_CHECK_LIB(z, inflate,
AC_CHECK_HEADER(zlib.h,
Z_LIBS="-lz"; AC_DEFINE(HAVE_LIBZ)))
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h unistd.h ctype.h dirent.h errno.h malloc.h)
AC_CHECK_HEADERS(stdarg.h sys/stat.h sys/types.h time.h zlib.h)
1998-09-07 21:27:57 +04:00
XML_LIBDIR='-L${libdir}'
1999-01-28 02:01:51 +03:00
XML_INCLUDEDIR='-I${includedir}'
1998-09-07 21:27:57 +04:00
XML_LIBS="-lxml $Z_LIBS"
AC_SUBST(XML_LIBDIR)
AC_SUBST(XML_LIBS)
AC_SUBST(XML_INCLUDEDIR)
1998-10-17 10:47:46 +04:00
AC_ARG_ENABLE(corba, [ --enable-corba Add Corba support (default)])
dnl
dnl Corba is enabled by default
dnl
1998-11-04 23:07:05 +03:00
if test "$enable_corba" = "no" ; then
1998-10-17 10:47:46 +04:00
CORBA_CFLAGS="-DWITHOUT_CORBA"
fi
AC_SUBST(CORBA_CFLAGS)
1998-07-24 23:24:09 +04:00
dnl Checks for library functions.
AC_FUNC_STRFTIME
AC_CHECK_FUNCS(strdup strndup strerror snprintf )
AC_SUBST(Z_LIBS)
1999-02-06 21:12:01 +03:00
AC_OUTPUT(Makefile doc/Makefile xml-config)
1998-09-07 21:27:57 +04:00