2001-01-07 14:01:28 +00:00
|
|
|
AC_INIT(libxslt/xslt.c)
|
|
|
|
|
2001-02-24 20:29:48 +00:00
|
|
|
VERSION=0.3.0
|
2001-01-07 14:01:28 +00:00
|
|
|
PACKAGE=libxslt
|
|
|
|
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2001-01-25 11:16:26 +00:00
|
|
|
dnl
|
|
|
|
dnl Check the environment
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_STDC_HEADERS
|
|
|
|
AC_ARG_PROGRAM
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Math detection
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(ieeefp.h nan.h math.h fp_class.h float.h)
|
|
|
|
AC_CHECK_FUNC(isnan, , AC_CHECK_LIB(m, isnan,
|
|
|
|
[M_LIBS="-lm"; AC_DEFINE(HAVE_ISNAN)]))
|
|
|
|
|
|
|
|
AC_CHECK_FUNC(isinf, , AC_CHECK_LIB(m, isinf,
|
|
|
|
[M_LIBS="-lm"; AC_DEFINE(HAVE_ISINF)]))
|
|
|
|
|
|
|
|
AC_CHECK_FUNC(pow, , AC_CHECK_LIB(m, pow,
|
|
|
|
[M_LIBS="-lm"; AC_DEFINE(HAVE_POW)]))
|
|
|
|
|
|
|
|
AC_CHECK_FUNC(floor, , AC_CHECK_LIB(m, pow,
|
|
|
|
[M_LIBS="-lm"; AC_DEFINE(HAVE_FLOOR)]))
|
|
|
|
|
|
|
|
AC_CHECK_FUNC(fabs, , AC_CHECK_LIB(m, pow,
|
|
|
|
[M_LIBS="-lm"; AC_DEFINE(HAVE_FABS)]))
|
|
|
|
|
|
|
|
|
2001-01-08 18:57:17 +00:00
|
|
|
dnl
|
|
|
|
dnl Debug for DV
|
|
|
|
dnl
|
2001-01-17 16:47:36 +00:00
|
|
|
if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ; then
|
2001-01-08 18:57:17 +00:00
|
|
|
if test "${with_mem_debug}" = "" ; then
|
|
|
|
with_mem_debug="yes"
|
|
|
|
fi
|
|
|
|
CFLAGS="-Wall -g -pedantic"
|
|
|
|
fi
|
2001-01-17 16:47:36 +00:00
|
|
|
|
2001-01-08 18:57:17 +00:00
|
|
|
AC_ARG_WITH(mem_debug, [ --with-mem-debug Add the memory debugging module (off)])
|
|
|
|
if test "$with_mem_debug" = "yes" ; then
|
|
|
|
echo Enabling memory debug support
|
|
|
|
WITH_MEM_DEBUG=1
|
|
|
|
else
|
|
|
|
WITH_MEM_DEBUG=0
|
|
|
|
fi
|
|
|
|
AC_SUBST(WITH_MEM_DEBUG)
|
|
|
|
|
2001-01-07 14:01:28 +00:00
|
|
|
dnl
|
|
|
|
dnl The following new parameters were added to offer
|
|
|
|
dnl the ability to specify the location of the libxml
|
|
|
|
dnl library during linking and compilation.
|
|
|
|
dnl Mathieu Lacage 30/03/2000
|
|
|
|
dnl
|
|
|
|
LIBXML_PREFIX=""
|
|
|
|
AC_ARG_WITH(libxml-prefix,
|
|
|
|
[ --with-libxml-prefix=[PFX] Specify location of libxml],
|
|
|
|
LIBXML_PREFIX=$withval
|
|
|
|
)
|
|
|
|
|
|
|
|
AC_ARG_WITH(libxml-include-prefix,
|
|
|
|
[ --with-libxml-include-prefix=[PFX] Specify location of libxml headers],
|
|
|
|
LIBXML_CFLAGS="-I$withval"
|
|
|
|
)
|
|
|
|
|
|
|
|
AC_ARG_WITH(libxml-libs-prefix,
|
|
|
|
[ --with-libxml-libs-prefix=[PFX] Specify location of libxml libs],
|
|
|
|
LIBXML_LIBS="-L$withval -lxml -lz"
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
dnl No internationalization (yet ?)
|
|
|
|
dnl
|
|
|
|
dnl ALL_LINGUAS="it ko fr de es no ga sv pt ja fi cs"
|
|
|
|
dnl AM_GNU_GETTEXT
|
|
|
|
dnl
|
|
|
|
dnl AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
|
|
|
|
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(CPPFLAGS)
|
|
|
|
AC_SUBST(LDFLAGS)
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl find libxml
|
|
|
|
dnl
|
2001-01-28 07:42:17 +00:00
|
|
|
XML_CONFIG="xml2-config"
|
2001-02-24 20:35:20 +00:00
|
|
|
AC_MSG_CHECKING(for libxml libraries >= 2.3.2)
|
2001-01-07 14:01:28 +00:00
|
|
|
if test "x$LIBXML_PREFIX" != "x"
|
|
|
|
then
|
2001-01-28 07:42:17 +00:00
|
|
|
if ${LIBXML_PREFIX}/bin/xml2-config --libs print > /dev/null 2>&1
|
2001-01-07 14:01:28 +00:00
|
|
|
then
|
2001-01-28 07:42:17 +00:00
|
|
|
XML_CONFIG=${LIBXML_PREFIX}/bin/xml2-config
|
2001-01-07 14:01:28 +00:00
|
|
|
else
|
2001-01-28 07:42:17 +00:00
|
|
|
XML_CONFIG=xml2-config
|
2001-01-07 14:01:28 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl test version and init our variables
|
|
|
|
dnl
|
|
|
|
if test "x$XML_CONFIG" != "x"
|
|
|
|
then
|
|
|
|
vers=`$XML_CONFIG --version | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
|
2001-02-24 20:29:48 +00:00
|
|
|
if test "$vers" -ge 2003002
|
2001-01-07 14:01:28 +00:00
|
|
|
then
|
|
|
|
LIBXML_LIBS="`$XML_CONFIG --libs`"
|
|
|
|
LIBXML_CFLAGS="`$XML_CONFIG --cflags`"
|
|
|
|
AC_MSG_RESULT(found)
|
|
|
|
else
|
2001-02-24 20:29:48 +00:00
|
|
|
AC_MSG_ERROR(You need at least libxml 2.3.2 for this version of libxslt)
|
2001-01-07 14:01:28 +00:00
|
|
|
fi
|
|
|
|
else
|
2001-02-24 20:29:48 +00:00
|
|
|
AC_MSG_ERROR(Could not find libxml2 anywhere, check ftp://xmlsoft.org/.)
|
2001-01-07 14:01:28 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
AC_SUBST(XML_CONFIG)
|
|
|
|
AC_SUBST(LIBXML_LIBS)
|
|
|
|
AC_SUBST(LIBXML_CFLAGS)
|
|
|
|
|
|
|
|
XSLT_LIBDIR='-L${libdir}'
|
|
|
|
XSLT_INCLUDEDIR='-I${includedir}'
|
2001-01-25 11:16:26 +00:00
|
|
|
EXTRA_LIBS="$LIBXML_LIBS $M_LIBS"
|
|
|
|
XSLT_LIBS="-lxslt $LIBXML_LIBS $M_LIBS"
|
2001-01-07 14:01:28 +00:00
|
|
|
|
|
|
|
AC_SUBST(XSLT_LIBDIR)
|
|
|
|
AC_SUBST(XSLT_INCLUDEDIR)
|
2001-01-25 11:16:26 +00:00
|
|
|
AC_SUBST(EXTRA_LIBS)
|
2001-01-07 14:01:28 +00:00
|
|
|
AC_SUBST(XSLT_LIBS)
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
libxslt/Makefile
|
2001-01-08 18:57:17 +00:00
|
|
|
libxslt/xsltconfig.h
|
2001-01-07 14:01:28 +00:00
|
|
|
tests/Makefile
|
2001-02-01 13:57:07 +00:00
|
|
|
tests/docs/Makefile
|
2001-01-13 22:29:51 +00:00
|
|
|
tests/REC1/Makefile
|
|
|
|
tests/REC2/Makefile
|
2001-01-30 14:19:41 +00:00
|
|
|
tests/REC/Makefile
|
2001-02-01 13:57:07 +00:00
|
|
|
tests/general/Makefile
|
2001-01-29 17:44:52 +00:00
|
|
|
tests/numbers/Makefile
|
2001-02-11 20:12:24 +00:00
|
|
|
tests/documents/Makefile
|
2001-02-05 18:29:06 +00:00
|
|
|
tests/xmlspec/Makefile
|
2001-02-24 22:42:36 +00:00
|
|
|
tests/docbook/Makefile
|
2001-02-24 17:28:01 +00:00
|
|
|
tests/docbook/test/Makefile
|
|
|
|
tests/docbook/html/Makefile
|
2001-02-24 16:51:37 +00:00
|
|
|
tests/docbook/common/Makefile
|
|
|
|
tests/docbook/lib/Makefile
|
2001-02-24 22:42:36 +00:00
|
|
|
tests/docbook/dtd/Makefile
|
2001-02-24 16:51:37 +00:00
|
|
|
tests/docbook/dtd/3.1.7/Makefile
|
|
|
|
tests/docbook/dtd/4.0/Makefile
|
2001-02-24 22:42:36 +00:00
|
|
|
tests/docbook/dtd/4.1.2/Makefile
|
|
|
|
tests/docbook/dtd/simple/Makefile
|
|
|
|
tests/docbook/dtd/simple/3.1.7.1/Makefile
|
|
|
|
tests/docbook/dtd/simple/4.1.2.4/Makefile
|
2001-02-24 16:51:37 +00:00
|
|
|
tests/docbook/result/Makefile
|
2001-02-24 22:42:36 +00:00
|
|
|
tests/docbook/result/html/Makefile
|
2001-01-26 21:32:59 +00:00
|
|
|
doc/Makefile
|
2001-01-07 14:01:28 +00:00
|
|
|
xslt-config
|
2001-01-22 19:25:37 +00:00
|
|
|
libxslt.spec
|
2001-01-07 14:01:28 +00:00
|
|
|
])
|