mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-01-19 08:23:07 +00:00
37 lines
858 B
Plaintext
37 lines
858 B
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
AC_PREREQ(2.2)
|
|
AC_INIT(xml_entities.h)
|
|
AM_CONFIG_HEADER(config.h)
|
|
AM_INIT_AUTOMAKE(libxml, 0.10)
|
|
|
|
dnl Checks for programs.
|
|
AC_PROG_CC
|
|
AC_PROG_INSTALL
|
|
AC_PROG_CPP
|
|
AC_PATH_PROG(RM, rm, /bin/rm)
|
|
AC_PATH_PROG(MV, mv, /bin/mv)
|
|
AC_PATH_PROG(TAR, tar, /bin/tar)
|
|
AC_PATH_PROG(GZIP, gzip, /bin/gzip)
|
|
|
|
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)
|
|
|
|
dnl Checks for library functions.
|
|
AC_FUNC_STRFTIME
|
|
AC_CHECK_FUNCS(strdup strndup strerror snprintf )
|
|
AC_SUBST(Z_LIBS)
|
|
AC_OUTPUT(Makefile)
|