2004-07-04 13:53:02 +00:00
|
|
|
|
dnl Process this file with autoconf to produce a configuration script.
|
|
|
|
|
AC_PREREQ(2.2)
|
2001-01-07 14:01:28 +00:00
|
|
|
|
AC_INIT(libxslt/xslt.c)
|
2004-07-04 13:53:02 +00:00
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
AC_CANONICAL_HOST
|
2008-06-03 16:40:54 +00:00
|
|
|
|
AC_GNU_SOURCE
|
2001-01-07 14:01:28 +00:00
|
|
|
|
|
2001-07-15 18:30:53 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl libxslt is the main part of the package
|
2001-09-12 20:51:09 +00:00
|
|
|
|
dnl libexslt is an extension
|
2001-07-15 18:30:53 +00:00
|
|
|
|
dnl
|
2001-07-10 16:08:10 +00:00
|
|
|
|
LIBXSLT_MAJOR_VERSION=1
|
2003-11-02 09:53:42 +00:00
|
|
|
|
LIBXSLT_MINOR_VERSION=1
|
2008-05-13 15:52:56 +00:00
|
|
|
|
LIBXSLT_MICRO_VERSION=24
|
2001-01-07 14:01:28 +00:00
|
|
|
|
PACKAGE=libxslt
|
2001-08-15 13:21:46 +00:00
|
|
|
|
LIBEXSLT_MAJOR_VERSION=0
|
2003-11-02 09:53:42 +00:00
|
|
|
|
LIBEXSLT_MINOR_VERSION=8
|
2006-05-01 21:25:09 +00:00
|
|
|
|
LIBEXSLT_MICRO_VERSION=13
|
2006-10-26 13:32:42 +00:00
|
|
|
|
LIBXML_REQUIRED_VERSION=2.6.27
|
2001-08-15 13:21:46 +00:00
|
|
|
|
|
2001-01-07 14:01:28 +00:00
|
|
|
|
|
2001-05-03 17:03:52 +00:00
|
|
|
|
LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION
|
|
|
|
|
LIBXSLT_VERSION_INFO=`expr $LIBXSLT_MAJOR_VERSION + $LIBXSLT_MINOR_VERSION`:$LIBXSLT_MICRO_VERSION:$LIBXSLT_MINOR_VERSION
|
|
|
|
|
|
|
|
|
|
LIBXSLT_VERSION_NUMBER=`expr $LIBXSLT_MAJOR_VERSION \* 10000 + $LIBXSLT_MINOR_VERSION \* 100 + $LIBXSLT_MICRO_VERSION`
|
2005-01-15 12:56:23 +00:00
|
|
|
|
LIBXSLT_MAJOR_MINOR_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION
|
2001-05-03 17:03:52 +00:00
|
|
|
|
|
2004-08-18 21:27:08 +00:00
|
|
|
|
if test -f CVS/Entries; then
|
2004-08-20 16:48:53 +00:00
|
|
|
|
extra=`grep ChangeLog CVS/Entries | grep -v LIBXSLT | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
|
|
|
|
|
echo extra=$extra
|
|
|
|
|
if test "$extra" != ""
|
|
|
|
|
then
|
|
|
|
|
LIBXSLT_VERSION_EXTRA="-CVS$extra"
|
|
|
|
|
fi
|
2007-01-03 15:39:01 +00:00
|
|
|
|
else if test -d .svn ; then
|
|
|
|
|
extra=`svn info | grep Revision | sed 's+Revision: ++'`
|
|
|
|
|
echo extra=$extra
|
|
|
|
|
if test "$extra" != ""
|
|
|
|
|
then
|
|
|
|
|
LIBXSLT_VERSION_EXTRA="-SVN$extra"
|
|
|
|
|
fi
|
2009-05-12 07:04:37 +00:00
|
|
|
|
else if test -d .git ; then
|
|
|
|
|
extra=`git describe | sed 's+LIBXSLT[[0-9.]]*-++'`
|
|
|
|
|
echo extra=$extra
|
|
|
|
|
if test "$extra" != ""
|
|
|
|
|
then
|
|
|
|
|
LIBXSLT_VERSION_EXTRA="-GIT$extra"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
2007-01-03 15:39:01 +00:00
|
|
|
|
fi
|
2004-08-18 21:27:08 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2001-05-03 17:03:52 +00:00
|
|
|
|
AC_SUBST(LIBXSLT_MAJOR_VERSION)
|
|
|
|
|
AC_SUBST(LIBXSLT_MINOR_VERSION)
|
|
|
|
|
AC_SUBST(LIBXSLT_MICRO_VERSION)
|
|
|
|
|
AC_SUBST(LIBXSLT_VERSION)
|
|
|
|
|
AC_SUBST(LIBXSLT_VERSION_INFO)
|
|
|
|
|
AC_SUBST(LIBXSLT_VERSION_NUMBER)
|
2004-08-18 21:27:08 +00:00
|
|
|
|
AC_SUBST(LIBXSLT_VERSION_EXTRA)
|
2005-01-15 12:56:23 +00:00
|
|
|
|
AC_SUBST(LIBXSLT_MAJOR_MINOR_VERSION)
|
2001-07-15 18:30:53 +00:00
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
|
dnl libexslt is an extension library
|
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
LIBEXSLT_VERSION=$LIBEXSLT_MAJOR_VERSION.$LIBEXSLT_MINOR_VERSION.$LIBEXSLT_MICRO_VERSION
|
|
|
|
|
LIBEXSLT_VERSION_INFO=`expr $LIBEXSLT_MAJOR_VERSION + $LIBEXSLT_MINOR_VERSION`:$LIBEXSLT_MICRO_VERSION:$LIBEXSLT_MINOR_VERSION
|
|
|
|
|
|
|
|
|
|
LIBEXSLT_VERSION_NUMBER=`expr $LIBEXSLT_MAJOR_VERSION \* 10000 + $LIBEXSLT_MINOR_VERSION \* 100 + $LIBEXSLT_MICRO_VERSION`
|
|
|
|
|
|
2004-08-18 21:27:08 +00:00
|
|
|
|
if test -f CVS/Entries; then
|
|
|
|
|
LIBEXSLT_VERSION_EXTRA=-CVS`grep ChangeLog CVS/Entries | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
|
|
|
|
|
fi
|
|
|
|
|
|
2001-07-15 18:30:53 +00:00
|
|
|
|
AC_SUBST(LIBEXSLT_MAJOR_VERSION)
|
|
|
|
|
AC_SUBST(LIBEXSLT_MINOR_VERSION)
|
|
|
|
|
AC_SUBST(LIBEXSLT_MICRO_VERSION)
|
|
|
|
|
AC_SUBST(LIBEXSLT_VERSION)
|
|
|
|
|
AC_SUBST(LIBEXSLT_VERSION_INFO)
|
|
|
|
|
AC_SUBST(LIBEXSLT_VERSION_NUMBER)
|
2004-08-18 21:27:08 +00:00
|
|
|
|
AC_SUBST(LIBEXSLT_VERSION_EXTRA)
|
2001-07-15 18:30:53 +00:00
|
|
|
|
|
2001-05-03 17:03:52 +00:00
|
|
|
|
VERSION=${LIBXSLT_VERSION}
|
|
|
|
|
|
2001-05-22 14:59:48 +00:00
|
|
|
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
2004-07-04 13:53:02 +00:00
|
|
|
|
|
|
|
|
|
# AM_MAINTAINER_MODE
|
2001-01-07 14:01:28 +00:00
|
|
|
|
|
2001-07-09 20:06:35 +00:00
|
|
|
|
AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
|
|
|
|
|
|
2001-07-19 20:23:20 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Specific dir for HTML output ?
|
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
if test "x$with_html_dir" = "x" ; then
|
|
|
|
|
HTML_DIR='$(prefix)/doc'
|
|
|
|
|
else
|
|
|
|
|
HTML_DIR=$with_html_dir
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(HTML_DIR)
|
|
|
|
|
|
2001-01-25 11:16:26 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Check the environment
|
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
AC_ISC_POSIX
|
|
|
|
|
AC_PROG_CC
|
2004-07-04 13:53:02 +00:00
|
|
|
|
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)
|
|
|
|
|
|
2001-01-25 11:16:26 +00:00
|
|
|
|
AC_STDC_HEADERS
|
2008-11-14 14:08:37 +00:00
|
|
|
|
|
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
2001-01-25 11:16:26 +00:00
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
2008-06-12 09:43:28 +00:00
|
|
|
|
|
2008-08-01 08:27:18 +00:00
|
|
|
|
AC_CHECK_HEADERS(sys/types.h sys/time.h stdlib.h unistd.h string.h)
|
|
|
|
|
|
2009-08-14 06:58:50 +00:00
|
|
|
|
dnl Look for pthread.h, needed for testThreads
|
|
|
|
|
AC_CHECK_HEADER(pthread.h,
|
|
|
|
|
AC_CHECK_LIB(pthread, pthread_join,[
|
|
|
|
|
AC_DEFINE([HAVE_LIBPTHREAD], [], [Define if pthread library is there (-lpthread)])
|
|
|
|
|
AC_DEFINE([HAVE_PTHREAD_H], [], [Define if <pthread.h> is there]) ]))
|
|
|
|
|
|
2008-06-12 09:43:28 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Detect supported locale
|
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
XSLT_LOCALE_XLOCALE=0
|
2008-08-01 08:27:18 +00:00
|
|
|
|
XSLT_LOCALE_WINAPI=0
|
2008-06-12 09:43:28 +00:00
|
|
|
|
|
2008-08-01 08:27:18 +00:00
|
|
|
|
AC_CHECK_HEADERS([locale.h xlocale.h])
|
2008-06-12 09:43:28 +00:00
|
|
|
|
if test $ac_cv_header_xlocale_h = yes; then
|
2008-08-01 08:27:18 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Check for generic locale_t declaration
|
|
|
|
|
dnl
|
|
|
|
|
AC_MSG_CHECKING([if xlocale program link])
|
|
|
|
|
AC_LINK_IFELSE(AC_LANG_PROGRAM([[
|
|
|
|
|
#ifdef HAVE_LOCALE_H
|
2008-06-03 16:40:54 +00:00
|
|
|
|
#include <locale.h>
|
2008-08-01 08:27:18 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifdef HAVE_XLOCALE_H
|
2008-06-03 16:40:54 +00:00
|
|
|
|
#include <xlocale.h>
|
2008-08-01 08:27:18 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifdef HAVE_STRING_H
|
2008-06-03 16:40:54 +00:00
|
|
|
|
#include <string.h>
|
2008-08-01 08:27:18 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifdef HAVE_STDLIB_H
|
2008-06-03 16:40:54 +00:00
|
|
|
|
#include <stdlib.h>
|
2008-08-01 08:27:18 +00:00
|
|
|
|
#endif
|
2008-06-03 16:40:54 +00:00
|
|
|
|
|
2008-08-01 08:27:18 +00:00
|
|
|
|
#ifdef __GLIBC__
|
|
|
|
|
typedef __locale_t xsltLocale;
|
|
|
|
|
#else
|
|
|
|
|
typedef locale_t xsltLocale;
|
|
|
|
|
#endif
|
2008-06-03 16:40:54 +00:00
|
|
|
|
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ <= 2
|
|
|
|
|
#define newlocale __newlocale
|
|
|
|
|
#define freelocale __freelocale
|
|
|
|
|
#define strxfrm_l __strxfrm_l
|
|
|
|
|
#define LC_COLLATE_MASK (1 << LC_COLLATE)
|
|
|
|
|
#endif
|
2008-06-12 09:43:28 +00:00
|
|
|
|
]],[[
|
2008-08-01 08:27:18 +00:00
|
|
|
|
xsltLocale locale;
|
2008-06-12 09:43:28 +00:00
|
|
|
|
const char *src[[2]] = { "\xc3\x84rger", "Zeppelin" };
|
|
|
|
|
char *dst[[2]];
|
2008-06-03 16:40:54 +00:00
|
|
|
|
size_t len, r;
|
|
|
|
|
int i;
|
2008-06-12 09:43:28 +00:00
|
|
|
|
|
2008-06-03 16:40:54 +00:00
|
|
|
|
locale = newlocale(LC_COLLATE_MASK, "en_US.utf8", NULL);
|
|
|
|
|
if (locale == NULL) exit(1);
|
|
|
|
|
for (i=0; i<2; ++i) {
|
2008-06-12 09:43:28 +00:00
|
|
|
|
len = strxfrm_l(NULL, src[[i]], 0, locale) + 1;
|
|
|
|
|
dst[[i]] = malloc(len);
|
|
|
|
|
if(dst[[i]] == NULL) exit(1);
|
|
|
|
|
r = strxfrm_l(dst[[i]], src[[i]], len, locale);
|
2008-06-03 16:40:54 +00:00
|
|
|
|
if(r >= len) exit(1);
|
|
|
|
|
}
|
2008-06-12 09:43:28 +00:00
|
|
|
|
if (strcmp(dst[[0]], dst[[1]]) >= 0) exit(1);
|
|
|
|
|
|
2008-06-03 16:40:54 +00:00
|
|
|
|
exit(0);
|
2008-06-12 09:43:28 +00:00
|
|
|
|
return(0);
|
|
|
|
|
]]),
|
|
|
|
|
[AC_MSG_RESULT(yes); XSLT_LOCALE_XLOCALE=1],
|
2008-08-01 08:27:18 +00:00
|
|
|
|
[AC_MSG_RESULT(no)]
|
2008-06-03 16:40:54 +00:00
|
|
|
|
)
|
2008-06-12 09:43:28 +00:00
|
|
|
|
else
|
2008-08-01 08:27:18 +00:00
|
|
|
|
case "$host" in
|
|
|
|
|
*-*-mingw*)
|
|
|
|
|
AC_MSG_NOTICE([using winapi locale])
|
|
|
|
|
XSLT_LOCALE_WINAPI=1;;
|
|
|
|
|
esac
|
2008-06-12 09:43:28 +00:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AC_SUBST(XSLT_LOCALE_XLOCALE)
|
2008-08-01 08:27:18 +00:00
|
|
|
|
AC_SUBST(XSLT_LOCALE_WINAPI)
|
2008-06-03 16:40:54 +00:00
|
|
|
|
|
2001-01-25 11:16:26 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Math detection
|
|
|
|
|
dnl
|
|
|
|
|
|
2001-04-11 12:30:25 +00:00
|
|
|
|
AC_CHECK_HEADERS(ieeefp.h nan.h math.h fp_class.h float.h ansidecl.h)
|
2004-07-04 13:53:02 +00:00
|
|
|
|
AC_CHECK_HEADERS(sys/timeb.h time.h sys/stat.h sys/select.h stdarg.h)
|
2001-08-23 21:20:28 +00:00
|
|
|
|
AC_CHECK_FUNCS(stat _stat)
|
2001-01-25 11:16:26 +00:00
|
|
|
|
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)]))
|
|
|
|
|
|
2002-01-14 09:36:51 +00:00
|
|
|
|
AC_CHECK_FUNC(floor, , AC_CHECK_LIB(m, floor,
|
2001-01-25 11:16:26 +00:00
|
|
|
|
[M_LIBS="-lm"; AC_DEFINE(HAVE_FLOOR)]))
|
|
|
|
|
|
2002-01-14 09:36:51 +00:00
|
|
|
|
AC_CHECK_FUNC(fabs, , AC_CHECK_LIB(m, fabs,
|
2001-01-25 11:16:26 +00:00
|
|
|
|
[M_LIBS="-lm"; AC_DEFINE(HAVE_FABS)]))
|
2001-07-07 21:24:06 +00:00
|
|
|
|
AC_CHECK_FUNCS(gettimeofday)
|
2004-10-15 05:46:56 +00:00
|
|
|
|
AC_CHECK_FUNCS(mktime localtime localtime_r asctime time gmtime_r ftime)
|
2001-01-25 11:16:26 +00:00
|
|
|
|
|
2002-11-04 17:04:59 +00:00
|
|
|
|
dnl Checking the standard string functions availability
|
|
|
|
|
AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf,,
|
|
|
|
|
NEED_TRIO=1)
|
2004-10-15 05:46:56 +00:00
|
|
|
|
|
2002-11-04 17:04:59 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Check for trio string functions
|
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
if test "${NEED_TRIO}" = "1" ; then
|
|
|
|
|
echo Reusing trio library for string functions
|
|
|
|
|
WITH_TRIO=1
|
|
|
|
|
else
|
|
|
|
|
WITH_TRIO=0
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(WITH_TRIO)
|
|
|
|
|
|
2004-07-04 13:53:02 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Some packages need to be checked against version numbers so we
|
|
|
|
|
dnl define a function here for later use
|
|
|
|
|
dnl
|
2005-01-09 15:43:24 +00:00
|
|
|
|
AC_DEFUN([VERSION_TO_NUMBER],
|
2004-07-04 13:53:02 +00:00
|
|
|
|
[`$1 | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`])
|
|
|
|
|
|
2001-05-11 14:23:17 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Perl is just needed for generating some data for XSLtmark
|
|
|
|
|
dnl
|
|
|
|
|
|
2001-05-20 18:57:32 +00:00
|
|
|
|
AC_CHECK_PROG(PERL, perl, perl, false)
|
|
|
|
|
AM_CONDITIONAL(WITH_PERL, test "$PERL" != "false")
|
2001-01-25 11:16:26 +00:00
|
|
|
|
|
2002-02-04 18:51:53 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl check for python
|
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
PYTHON_VERSION=
|
|
|
|
|
PYTHON_INCLUDES=
|
|
|
|
|
PYTHON_SITE_PACKAGES=
|
2003-05-15 20:28:53 +00:00
|
|
|
|
pythondir=
|
2002-02-04 18:51:53 +00:00
|
|
|
|
AC_ARG_WITH(python, [ --with-python[=DIR] Build Python bindings if found])
|
|
|
|
|
if test "$with_python" != "no" ; then
|
2003-02-25 15:20:58 +00:00
|
|
|
|
if test -x "$with_python/bin/python"
|
2002-02-04 18:51:53 +00:00
|
|
|
|
then
|
2003-02-25 15:20:58 +00:00
|
|
|
|
echo Found python in $with_python/bin/python
|
|
|
|
|
PYTHON="$with_python/bin/python"
|
2002-02-04 18:51:53 +00:00
|
|
|
|
else
|
2003-02-25 15:20:58 +00:00
|
|
|
|
if test -x "$with_python"
|
|
|
|
|
then
|
|
|
|
|
echo Found python in $with_python
|
|
|
|
|
PYTHON="$with_python"
|
|
|
|
|
else
|
2006-04-25 13:14:09 +00:00
|
|
|
|
if test -x "$PYTHON"
|
|
|
|
|
then
|
|
|
|
|
echo Found python in environment PYTHON=$PYTHON
|
|
|
|
|
with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
2005-09-10 12:34:55 +00:00
|
|
|
|
else
|
2006-04-25 13:14:09 +00:00
|
|
|
|
AC_PATH_PROG(PYTHON, python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5)
|
2005-09-10 12:34:55 +00:00
|
|
|
|
fi
|
2003-02-25 15:20:58 +00:00
|
|
|
|
fi
|
2002-02-04 18:51:53 +00:00
|
|
|
|
fi
|
|
|
|
|
if test "$PYTHON" != ""
|
|
|
|
|
then
|
2006-12-11 11:11:06 +00:00
|
|
|
|
echo "PYTHON is pointing at $PYTHON"
|
2002-02-04 18:51:53 +00:00
|
|
|
|
PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"`
|
|
|
|
|
echo Found Python version $PYTHON_VERSION
|
2003-10-15 15:31:56 +00:00
|
|
|
|
LIBXML2_PYTHON=`$PYTHON -c "try : import libxml2 ; print 1
|
2002-02-05 16:37:05 +00:00
|
|
|
|
except: print 0"`
|
2002-02-09 18:06:02 +00:00
|
|
|
|
if test "$LIBXML2_PYTHON" = "1"
|
2002-02-05 16:37:05 +00:00
|
|
|
|
then
|
|
|
|
|
echo Found libxml2-python module
|
|
|
|
|
else
|
2002-08-01 12:30:37 +00:00
|
|
|
|
echo Warning: Missing libxml2-python
|
2002-02-05 16:37:05 +00:00
|
|
|
|
fi
|
2002-02-04 18:51:53 +00:00
|
|
|
|
fi
|
2002-08-01 12:30:37 +00:00
|
|
|
|
if test "$PYTHON_VERSION" != ""
|
2002-02-04 18:51:53 +00:00
|
|
|
|
then
|
|
|
|
|
if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
|
|
|
|
|
-d $with_python/lib/python$PYTHON_VERSION/site-packages
|
|
|
|
|
then
|
|
|
|
|
PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
|
2006-11-23 14:32:26 +00:00
|
|
|
|
PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
|
2002-02-04 18:51:53 +00:00
|
|
|
|
else
|
|
|
|
|
if test -r $prefix/include/python$PYTHON_VERSION/Python.h
|
|
|
|
|
then
|
2006-04-25 13:14:09 +00:00
|
|
|
|
PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
|
2006-05-01 21:25:09 +00:00
|
|
|
|
PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
|
2002-02-04 18:51:53 +00:00
|
|
|
|
else
|
|
|
|
|
if test -r /usr/include/python$PYTHON_VERSION/Python.h
|
|
|
|
|
then
|
|
|
|
|
PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
|
2006-05-01 21:25:09 +00:00
|
|
|
|
PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
|
2002-02-04 18:51:53 +00:00
|
|
|
|
else
|
|
|
|
|
echo could not find python$PYTHON_VERSION/Python.h
|
|
|
|
|
fi
|
|
|
|
|
fi
|
2004-01-06 15:41:32 +00:00
|
|
|
|
if test ! -d "$PYTHON_SITE_PACKAGES"
|
2002-08-14 16:56:52 +00:00
|
|
|
|
then
|
|
|
|
|
PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
|
|
|
|
|
fi
|
2002-02-04 18:51:53 +00:00
|
|
|
|
fi
|
|
|
|
|
fi
|
2003-05-15 20:28:53 +00:00
|
|
|
|
if test "$with_python" != ""
|
|
|
|
|
then
|
2006-06-01 13:04:44 +00:00
|
|
|
|
pythondir='$(PYTHON_SITE_PACKAGES)'
|
2003-05-15 20:28:53 +00:00
|
|
|
|
else
|
2006-05-01 21:25:09 +00:00
|
|
|
|
pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
|
2003-05-15 20:28:53 +00:00
|
|
|
|
fi
|
2002-02-04 18:51:53 +00:00
|
|
|
|
fi
|
|
|
|
|
AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "")
|
2002-09-23 08:16:17 +00:00
|
|
|
|
if test "$PYTHON_INCLUDES" != ""
|
|
|
|
|
then
|
|
|
|
|
PYTHON_SUBDIR=python
|
|
|
|
|
else
|
|
|
|
|
PYTHON_SUBDIR=
|
|
|
|
|
fi
|
2003-05-15 20:28:53 +00:00
|
|
|
|
AC_SUBST(pythondir)
|
2002-09-23 08:16:17 +00:00
|
|
|
|
AC_SUBST(PYTHON_SUBDIR)
|
2002-02-04 18:51:53 +00:00
|
|
|
|
|
2004-07-16 10:17:29 +00:00
|
|
|
|
AC_ARG_WITH(crypto, [ --with-crypto Add crypto support to exslt (on)])
|
|
|
|
|
WITH_CRYPTO=0
|
|
|
|
|
if test "$with_crypto" = "no" ; then
|
|
|
|
|
echo Disabling crypto support
|
2004-07-04 13:53:02 +00:00
|
|
|
|
LIBGCRYPT_CFLAGS=""
|
|
|
|
|
LIBGCRYPT_LIBS=""
|
2004-06-30 16:43:53 +00:00
|
|
|
|
else
|
2004-07-16 10:17:29 +00:00
|
|
|
|
AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
|
|
|
|
|
if test "$LIBGCRYPT_CONFIG" != "no" ; then
|
|
|
|
|
LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version`
|
|
|
|
|
if test VERSION_TO_NUMBER(echo $LIBGCRYPT_VERSION) -lt VERSION_TO_NUMBER(echo "1.1.42")
|
|
|
|
|
then
|
|
|
|
|
LIBGCRYPT_CFLAGS=""
|
|
|
|
|
LIBGCRYPT_LIBS=""
|
2007-11-29 10:45:29 +00:00
|
|
|
|
echo 'gcrypt library version < 1.1.42 - Crypto extensions will not be available.'
|
2004-07-16 10:17:29 +00:00
|
|
|
|
else
|
|
|
|
|
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`
|
|
|
|
|
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`
|
|
|
|
|
AC_DEFINE(HAVE_GCRYPT, 1, [Define if gcrypt library is available.])
|
2007-11-29 10:45:29 +00:00
|
|
|
|
echo 'Crypto extensions will be available.'
|
2004-07-16 10:17:29 +00:00
|
|
|
|
WITH_CRYPTO=1
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
LIBGCRYPT_CFLAGS=""
|
|
|
|
|
LIBGCRYPT_LIBS=""
|
2007-11-29 10:45:29 +00:00
|
|
|
|
echo 'Crypto extensions will not be available. Install libgcrypt and reconfigure to make available.'
|
2004-07-16 10:17:29 +00:00
|
|
|
|
fi
|
2004-06-30 16:43:53 +00:00
|
|
|
|
fi
|
2004-07-16 10:17:29 +00:00
|
|
|
|
AC_SUBST(WITH_CRYPTO)
|
2004-06-30 16:43:53 +00:00
|
|
|
|
AC_SUBST(LIBGCRYPT_CFLAGS)
|
|
|
|
|
AC_SUBST(LIBGCRYPT_LIBS)
|
2004-07-16 10:17:29 +00:00
|
|
|
|
|
2001-01-08 18:57:17 +00:00
|
|
|
|
dnl
|
2001-05-22 14:59:48 +00:00
|
|
|
|
dnl Debug for DV (-Wunreachable-code)
|
2001-01-08 18:57:17 +00:00
|
|
|
|
dnl
|
2003-10-17 04:49:04 +00:00
|
|
|
|
if [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ]] || \
|
added new function replace from Joel Reed. added new test case for above.
* libexslt/strings.c: added new function replace from Joel
Reed.
* tests/exslt/Makefile.am, replace.1.xml, replace.1.xsl,
replace.1.out: added new test case for above.
* libxslt.spec.in: trivial change from Gnome to GNOME
* configure.in: trivial change for flags on my compilations
* libxslt/documents.c, libxslt/documents.h, libxslt/keys.c,
libxslt/keys.h, libxslt/variables.c, libxslt/templates.c,
libxslt/transform.c, libxslt/variables.c, libxslt/xslt.c,
libxslt/xsltutils.c: fixed some documentation/comments and
compilation warnings - no change to logic.
* re-generated the documentation.
svn path=/trunk/; revision=1413
2007-01-11 03:13:13 +00:00
|
|
|
|
[[ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxslt" ]]
|
2003-10-17 04:49:04 +00:00
|
|
|
|
then
|
2004-08-06 18:12:26 +00:00
|
|
|
|
if test "${with_mem_debug}" = "" ;
|
|
|
|
|
then
|
2001-01-08 18:57:17 +00:00
|
|
|
|
with_mem_debug="yes"
|
|
|
|
|
fi
|
2001-03-24 18:41:26 +00:00
|
|
|
|
CFLAGS="-Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline "
|
2007-01-12 23:49:56 +00:00
|
|
|
|
if test "`uname -m`" != "x86_64" ;
|
2004-09-26 17:52:58 +00:00
|
|
|
|
then
|
|
|
|
|
STATIC_BINARIES="-static"
|
|
|
|
|
else
|
2008-07-28 12:49:05 +00:00
|
|
|
|
STATIC_BINARIES="-static"
|
2004-09-26 17:52:58 +00:00
|
|
|
|
fi
|
2004-08-03 22:06:36 +00:00
|
|
|
|
if test "$LOGNAME" = "veillard"
|
2004-07-16 10:17:29 +00:00
|
|
|
|
then
|
|
|
|
|
LIBXML_SRC="/u/veillard/XML"
|
2005-01-15 12:56:23 +00:00
|
|
|
|
EXTRA_LIBS="$EXTRA_LIBS -ldl"
|
2004-07-16 10:17:29 +00:00
|
|
|
|
fi
|
2003-02-25 15:20:58 +00:00
|
|
|
|
else
|
|
|
|
|
STATIC_BINARIES=
|
2001-01-08 18:57:17 +00:00
|
|
|
|
fi
|
2003-02-25 15:20:58 +00:00
|
|
|
|
AC_SUBST(STATIC_BINARIES)
|
2001-01-17 16:47:36 +00:00
|
|
|
|
|
2001-04-22 20:31:17 +00:00
|
|
|
|
AC_ARG_WITH(debug, [ --with-debug Add the debugging code (on)])
|
2001-04-29 09:52:50 +00:00
|
|
|
|
if test "$with_debug" = "no" ; then
|
2001-04-22 20:31:17 +00:00
|
|
|
|
echo Disabling debug support
|
|
|
|
|
WITH_XSLT_DEBUG=0
|
|
|
|
|
else
|
|
|
|
|
WITH_XSLT_DEBUG=1
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(WITH_XSLT_DEBUG)
|
|
|
|
|
|
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-11-05 13:34:01 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Is debugger support requested
|
|
|
|
|
dnl
|
2008-07-26 19:42:39 +00:00
|
|
|
|
AC_ARG_WITH(debugger, [ --with-debugger Add the debugging support (on)])
|
2001-11-05 13:34:01 +00:00
|
|
|
|
if test "$with_debugger" = "no" ; then
|
|
|
|
|
echo Disabling debugger
|
|
|
|
|
WITH_DEBUGGER=0
|
|
|
|
|
else
|
|
|
|
|
echo Enabling debugger
|
|
|
|
|
WITH_DEBUGGER=1
|
|
|
|
|
AC_DEFINE(WITH_DEBUGGER)
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(WITH_DEBUGGER)
|
|
|
|
|
|
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
|
2001-10-30 18:33:50 +00:00
|
|
|
|
dnl original work - Mathieu Lacage 30/03/2000
|
|
|
|
|
dnl some tweaking - David H<>rdeman 30/10/2001
|
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
LIBXML_CONFIG_PREFIX=""
|
|
|
|
|
LIBXML_SRC=""
|
|
|
|
|
|
2001-01-07 14:01:28 +00:00
|
|
|
|
AC_ARG_WITH(libxml-prefix,
|
2001-10-30 18:33:50 +00:00
|
|
|
|
[ --with-libxml-prefix=[PFX] Specify location of libxml config],
|
|
|
|
|
LIBXML_CONFIG_PREFIX=$withval
|
2001-01-07 14:01:28 +00:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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],
|
2001-10-04 13:29:22 +00:00
|
|
|
|
LIBXML_LIBS="-L$withval"
|
2001-01-07 14:01:28 +00:00
|
|
|
|
)
|
|
|
|
|
|
2001-10-30 18:33:50 +00:00
|
|
|
|
AC_ARG_WITH(libxml-src,
|
|
|
|
|
[ --with-libxml-src=[DIR] For libxml thats not installed yet (sets all three above)],
|
|
|
|
|
LIBXML_SRC="$withval"
|
|
|
|
|
)
|
2003-10-28 14:33:17 +00:00
|
|
|
|
AC_SUBST(LIBXML_SRC)
|
2001-01-07 14:01:28 +00:00
|
|
|
|
|
|
|
|
|
dnl
|
2001-10-30 18:33:50 +00:00
|
|
|
|
dnl where is xml2-config
|
2001-01-07 14:01:28 +00:00
|
|
|
|
dnl
|
2001-10-30 18:33:50 +00:00
|
|
|
|
|
2001-07-23 21:47:41 +00:00
|
|
|
|
AC_SUBST(LIBXML_REQUIRED_VERSION)
|
2001-06-18 13:45:59 +00:00
|
|
|
|
AC_MSG_CHECKING(for libxml libraries >= $LIBXML_REQUIRED_VERSION)
|
2001-10-30 18:33:50 +00:00
|
|
|
|
if test "x$LIBXML_CONFIG_PREFIX" != "x"
|
|
|
|
|
then
|
|
|
|
|
XML_CONFIG=${LIBXML_CONFIG_PREFIX}/bin/xml2-config
|
|
|
|
|
else
|
|
|
|
|
XML_CONFIG=xml2-config
|
|
|
|
|
fi
|
|
|
|
|
|
2002-04-14 13:35:25 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl imported from libxml2, c.f. #77827
|
|
|
|
|
dnl
|
|
|
|
|
if test "${GCC}" != "yes" ; then
|
|
|
|
|
case "${host}" in
|
|
|
|
|
*-*-hpux* )
|
|
|
|
|
CFLAGS="${CFLAGS} -Wp,-H30000"
|
|
|
|
|
;;
|
|
|
|
|
*-dec-osf* )
|
|
|
|
|
CFLAGS="${CFLAGS} -ieee"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
else
|
|
|
|
|
CFLAGS="${CFLAGS} -Wall"
|
|
|
|
|
case "${host}" in
|
|
|
|
|
alpha*-*-linux* )
|
|
|
|
|
CFLAGS="${CFLAGS} -mieee"
|
|
|
|
|
;;
|
|
|
|
|
alpha*-*-osf* )
|
|
|
|
|
CFLAGS="${CFLAGS} -mieee"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
fi
|
|
|
|
|
|
2001-10-30 18:33:50 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl Override other variables if LIBXML_SRC is set
|
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
if test "x$LIBXML_SRC" != "x"
|
2001-01-07 14:01:28 +00:00
|
|
|
|
then
|
2001-10-30 18:33:50 +00:00
|
|
|
|
CWD=`pwd`
|
|
|
|
|
if cd $LIBXML_SRC
|
2001-01-07 14:01:28 +00:00
|
|
|
|
then
|
2001-10-30 18:33:50 +00:00
|
|
|
|
SRC_DIR=`pwd`
|
|
|
|
|
XML_CONFIG=${SRC_DIR}/xml2-config
|
|
|
|
|
LIBXML_CFLAGS="-I${SRC_DIR}/include"
|
|
|
|
|
LIBXML_LIBS="-L${SRC_DIR}"
|
|
|
|
|
cd $CWD
|
2001-01-07 14:01:28 +00:00
|
|
|
|
else
|
2001-10-30 18:33:50 +00:00
|
|
|
|
AC_MSG_ERROR([libxml source dir not found (${LIBXML_SRC}), typo?])
|
2001-01-07 14:01:28 +00:00
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
dnl
|
2001-10-30 18:33:50 +00:00
|
|
|
|
dnl make sure xml2-config is executable,
|
2001-01-07 14:01:28 +00:00
|
|
|
|
dnl test version and init our variables
|
|
|
|
|
dnl
|
2001-10-30 18:33:50 +00:00
|
|
|
|
|
|
|
|
|
if ${XML_CONFIG} --libs print > /dev/null 2>&1
|
2001-01-07 14:01:28 +00:00
|
|
|
|
then
|
2001-10-30 18:33:50 +00:00
|
|
|
|
XMLVERS=`$XML_CONFIG --version`
|
|
|
|
|
if test VERSION_TO_NUMBER(echo $XMLVERS) -ge VERSION_TO_NUMBER(echo $LIBXML_REQUIRED_VERSION)
|
2001-01-07 14:01:28 +00:00
|
|
|
|
then
|
2001-10-04 13:29:22 +00:00
|
|
|
|
LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`"
|
|
|
|
|
LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`"
|
2001-10-30 18:33:50 +00:00
|
|
|
|
AC_MSG_RESULT($XMLVERS found)
|
2001-01-07 14:01:28 +00:00
|
|
|
|
else
|
2001-10-30 18:33:50 +00:00
|
|
|
|
AC_MSG_ERROR(Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt)
|
2001-01-07 14:01:28 +00:00
|
|
|
|
fi
|
|
|
|
|
else
|
2001-10-30 18:33:50 +00:00
|
|
|
|
AC_MSG_ERROR([Could not find libxml2 anywhere, check ftp://xmlsoft.org/.])
|
2001-01-07 14:01:28 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2001-10-30 18:33:50 +00:00
|
|
|
|
|
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
|
AC_SUBST(CPPFLAGS)
|
|
|
|
|
AC_SUBST(LDFLAGS)
|
|
|
|
|
|
2005-01-09 15:43:24 +00:00
|
|
|
|
AC_ARG_WITH(plugins,
|
|
|
|
|
[ --with-plugins Add plugin extension support (on)])
|
|
|
|
|
if test "$with_plugins" = ""
|
|
|
|
|
then
|
|
|
|
|
with_plugins=yes
|
|
|
|
|
fi
|
|
|
|
|
|
2005-01-19 12:59:19 +00:00
|
|
|
|
AC_MSG_CHECKING([whether shared libraries will be built (required for plugins)])
|
|
|
|
|
if test "$enable_shared" = "no" -a "$with_plugins" = "yes"; then
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
AC_MSG_WARN([Disabling plugin support.])
|
|
|
|
|
AC_MSG_WARN([Plugins require that shared libraries be built.])
|
|
|
|
|
with_plugins=no
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
|
fi
|
|
|
|
|
|
2005-01-09 15:43:24 +00:00
|
|
|
|
if test "$with_plugins" = "yes" ; then
|
|
|
|
|
AC_MSG_CHECKING([libxml2 module support])
|
|
|
|
|
WITH_MODULES="`$XML_CONFIG --modules`"
|
|
|
|
|
if test "${WITH_MODULES}" = "1"; then
|
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
WITH_MODULES="0"
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
WITH_MODULES="0"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AC_SUBST(WITH_MODULES)
|
2007-01-17 14:40:20 +00:00
|
|
|
|
AM_CONDITIONAL(WITH_MODULES, test "$WITH_MODULES" = "1")
|
2005-01-09 15:43:24 +00:00
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
|
dnl setup default module path
|
|
|
|
|
dnl
|
|
|
|
|
module_prefix=$prefix
|
|
|
|
|
test "x$module_prefix" = xNONE && module_prefix=$ac_default_prefix
|
2005-10-02 09:52:09 +00:00
|
|
|
|
LIBXSLT_DEFAULT_PLUGINS_PATH="$module_prefix/lib/libxslt-plugins"
|
2005-01-09 15:43:24 +00:00
|
|
|
|
AC_SUBST(LIBXSLT_DEFAULT_PLUGINS_PATH)
|
|
|
|
|
|
2001-08-16 12:08:02 +00:00
|
|
|
|
dnl
|
|
|
|
|
dnl In build tree I use a static version with memory debug enabled
|
|
|
|
|
dnl
|
2001-10-16 09:27:50 +00:00
|
|
|
|
if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ; then
|
2008-07-28 12:49:05 +00:00
|
|
|
|
dnl if test "`uname -i`" != "x86_64" -a -e $HOME/XML/.libs/libxml2.a ;
|
|
|
|
|
if test -e $HOME/XML/.libs/libxml2.a ;
|
2004-09-26 17:52:58 +00:00
|
|
|
|
then
|
2005-01-17 15:51:34 +00:00
|
|
|
|
LIBXML_LIBS="$HOME/XML/.libs/libxml2.a -lpthread -lz"
|
2004-09-26 17:52:58 +00:00
|
|
|
|
fi
|
2001-10-16 09:27:50 +00:00
|
|
|
|
DV_LINK="1"
|
2002-01-17 09:35:52 +00:00
|
|
|
|
XSLTPROCDV="xsltproc.dv"
|
2003-03-26 00:41:28 +00:00
|
|
|
|
INSTALLED_XSLT_LIB=""
|
2005-01-17 15:51:34 +00:00
|
|
|
|
LIBXML_SRC="$HOME/XML/"
|
2001-10-16 09:27:50 +00:00
|
|
|
|
fi
|
2001-01-07 14:01:28 +00:00
|
|
|
|
|
2003-08-18 22:41:26 +00:00
|
|
|
|
WIN32_EXTRA_LIBADD=
|
|
|
|
|
WIN32_EXTRA_LDFLAGS=
|
|
|
|
|
case "$host" in
|
2008-11-14 14:08:37 +00:00
|
|
|
|
*-*-cygwin*)
|
|
|
|
|
WIN32_EXTRA_LDFLAGS="-no-undefined"
|
|
|
|
|
;;
|
2003-08-18 22:41:26 +00:00
|
|
|
|
*-*-mingw*)
|
|
|
|
|
WIN32_EXTRA_LIBADD="-lwsock32"
|
|
|
|
|
WIN32_EXTRA_LDFLAGS="-no-undefined"
|
|
|
|
|
AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation])
|
|
|
|
|
AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around])
|
|
|
|
|
AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling work-around])
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
AC_SUBST(WIN32_EXTRA_LIBADD)
|
|
|
|
|
AC_SUBST(WIN32_EXTRA_LDFLAGS)
|
|
|
|
|
|
|
|
|
|
|
2002-01-17 09:35:52 +00:00
|
|
|
|
AC_SUBST(XSLTPROCDV)
|
2002-02-05 23:23:15 +00:00
|
|
|
|
AC_SUBST(PYTHONSODV)
|
2001-01-07 14:01:28 +00:00
|
|
|
|
AC_SUBST(XML_CONFIG)
|
|
|
|
|
AC_SUBST(LIBXML_LIBS)
|
|
|
|
|
AC_SUBST(LIBXML_CFLAGS)
|
2002-02-04 18:51:53 +00:00
|
|
|
|
AC_SUBST(PYTHON)
|
|
|
|
|
AC_SUBST(PYTHON_VERSION)
|
|
|
|
|
AC_SUBST(PYTHON_INCLUDES)
|
|
|
|
|
AC_SUBST(PYTHON_SITE_PACKAGES)
|
2001-01-07 14:01:28 +00:00
|
|
|
|
|
|
|
|
|
XSLT_LIBDIR='-L${libdir}'
|
|
|
|
|
XSLT_INCLUDEDIR='-I${includedir}'
|
2001-11-30 12:01:25 +00:00
|
|
|
|
XSLT_LIBS="-lxslt $LIBXML_LIBS $M_LIBS"
|
2001-01-07 14:01:28 +00:00
|
|
|
|
AC_SUBST(XSLT_LIBDIR)
|
|
|
|
|
AC_SUBST(XSLT_INCLUDEDIR)
|
2003-11-14 17:46:01 +00:00
|
|
|
|
AC_SUBST(XSLT_LIBS)
|
|
|
|
|
|
|
|
|
|
EXSLT_LIBDIR='-L${libdir}'
|
|
|
|
|
EXSLT_INCLUDEDIR='-I${includedir}'
|
2004-06-30 16:43:53 +00:00
|
|
|
|
EXSLT_LIBS="-lexslt $XSLT_LIBS $LIBGCRYPT_LIBS"
|
2003-11-14 17:46:01 +00:00
|
|
|
|
AC_SUBST(EXSLT_LIBDIR)
|
|
|
|
|
AC_SUBST(EXSLT_INCLUDEDIR)
|
|
|
|
|
AC_SUBST(EXSLT_LIBS)
|
|
|
|
|
|
2005-01-15 12:56:23 +00:00
|
|
|
|
EXTRA_LIBS="$EXTRA_LIBS $LIBXML_LIBS $M_LIBS"
|
2001-01-25 11:16:26 +00:00
|
|
|
|
AC_SUBST(EXTRA_LIBS)
|
2003-11-14 17:46:01 +00:00
|
|
|
|
|
2001-11-22 11:13:21 +00:00
|
|
|
|
AC_SUBST(M_LIBS)
|
2001-01-07 14:01:28 +00:00
|
|
|
|
|
2002-11-25 16:31:39 +00:00
|
|
|
|
dnl for the spec file
|
|
|
|
|
RELDATE=`date +'%a %b %e %Y'`
|
|
|
|
|
AC_SUBST(RELDATE)
|
|
|
|
|
|
2003-10-28 14:33:17 +00:00
|
|
|
|
( cd $srcdir
|
2003-02-04 17:20:09 +00:00
|
|
|
|
rm -f COPYING.LIB COPYING
|
2003-10-28 14:33:17 +00:00
|
|
|
|
$LN_S Copyright COPYING
|
|
|
|
|
)
|
2002-02-08 16:09:27 +00:00
|
|
|
|
|
2001-11-05 13:34:01 +00:00
|
|
|
|
|
2001-01-07 14:01:28 +00:00
|
|
|
|
AC_OUTPUT([
|
|
|
|
|
Makefile
|
2001-12-20 13:59:22 +00:00
|
|
|
|
libxslt.pc
|
2003-11-14 17:46:01 +00:00
|
|
|
|
libexslt.pc
|
2001-01-07 14:01:28 +00:00
|
|
|
|
libxslt/Makefile
|
2001-01-08 18:57:17 +00:00
|
|
|
|
libxslt/xsltconfig.h
|
2001-06-28 14:23:39 +00:00
|
|
|
|
libxslt/xsltwin32config.h
|
2001-07-15 18:30:53 +00:00
|
|
|
|
libexslt/Makefile
|
|
|
|
|
libexslt/exsltconfig.h
|
|
|
|
|
xsltproc/Makefile
|
2002-02-04 18:51:53 +00:00
|
|
|
|
python/Makefile
|
2002-02-06 10:35:19 +00:00
|
|
|
|
python/tests/Makefile
|
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-09-17 12:52:18 +00:00
|
|
|
|
tests/reports/Makefile
|
2001-07-04 13:22:40 +00:00
|
|
|
|
tests/extensions/Makefile
|
2001-02-27 21:09:59 +00:00
|
|
|
|
tests/namespaces/Makefile
|
2002-04-15 12:02:03 +00:00
|
|
|
|
tests/keys/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-04-02 15:13:28 +00:00
|
|
|
|
tests/multiple/Makefile
|
2005-03-30 12:12:53 +00:00
|
|
|
|
tests/xinclude/Makefile
|
2001-04-02 15:13:28 +00:00
|
|
|
|
tests/XSLTMark/Makefile
|
2001-02-24 22:42:36 +00:00
|
|
|
|
tests/docbook/Makefile
|
2001-07-27 02:15:58 +00:00
|
|
|
|
tests/exslt/Makefile
|
|
|
|
|
tests/exslt/common/Makefile
|
|
|
|
|
tests/exslt/functions/Makefile
|
|
|
|
|
tests/exslt/math/Makefile
|
|
|
|
|
tests/exslt/sets/Makefile
|
2001-09-03 00:17:54 +00:00
|
|
|
|
tests/exslt/strings/Makefile
|
2002-03-04 11:03:26 +00:00
|
|
|
|
tests/exslt/date/Makefile
|
2005-07-10 14:20:06 +00:00
|
|
|
|
tests/exslt/dynamic/Makefile
|
2005-01-17 15:51:34 +00:00
|
|
|
|
tests/plugins/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
|
|
|
|
])
|