mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +03:00
integrated the module patch from Joel Reed with just a couple of changes
* configure.in win32/configure.js libxslt/extensions.c libxslt/xsltconfig.h.in libxslt/xsltwin32config.h.in: integrated the module patch from Joel Reed with just a couple of changes and cleanup. Daniel
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
Sun Jan 9 16:41:59 CET 2005 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* configure.in win32/configure.js libxslt/extensions.c
|
||||
libxslt/xsltconfig.h.in libxslt/xsltwin32config.h.in:
|
||||
integrated the module patch from Joel Reed with just a couple
|
||||
of changes and cleanup.
|
||||
|
||||
Tue Dec 27 17:50:10 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||
|
||||
* libxslt/pattern.c: fixed a problem with the expression
|
||||
|
32
configure.in
32
configure.in
@ -140,7 +140,7 @@ dnl
|
||||
dnl Some packages need to be checked against version numbers so we
|
||||
dnl define a function here for later use
|
||||
dnl
|
||||
AC_DEFUN(VERSION_TO_NUMBER,
|
||||
AC_DEFUN([VERSION_TO_NUMBER],
|
||||
[`$1 | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`])
|
||||
|
||||
dnl
|
||||
@ -435,6 +435,36 @@ AC_SUBST(CFLAGS)
|
||||
AC_SUBST(CPPFLAGS)
|
||||
AC_SUBST(LDFLAGS)
|
||||
|
||||
AC_ARG_WITH(plugins,
|
||||
[ --with-plugins Add plugin extension support (on)])
|
||||
if test "$with_plugins" = ""
|
||||
then
|
||||
with_plugins=yes
|
||||
fi
|
||||
|
||||
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)
|
||||
|
||||
dnl
|
||||
dnl setup default module path
|
||||
dnl
|
||||
module_prefix=$prefix
|
||||
test "x$module_prefix" = xNONE && module_prefix=$ac_default_prefix
|
||||
LIBXSLT_DEFAULT_PLUGINS_PATH="\"$module_prefix/lib/libxslt/$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION/\""
|
||||
AC_SUBST(LIBXSLT_DEFAULT_PLUGINS_PATH)
|
||||
|
||||
dnl
|
||||
dnl In build tree I use a static version with memory debug enabled
|
||||
dnl
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -106,6 +106,19 @@ extern "C" {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* WITH_MODULES:
|
||||
*
|
||||
* Whether module support is configured into libxslt
|
||||
* Note: no default module path for win32 platforms
|
||||
*/
|
||||
#if @WITH_MODULES@
|
||||
#ifndef WITH_MODULES
|
||||
#define WITH_MODULES
|
||||
#endif
|
||||
#define LIBXSLT_DEFAULT_PLUGINS_PATH() @LIBXSLT_DEFAULT_PLUGINS_PATH@
|
||||
#endif
|
||||
|
||||
/**
|
||||
* ATTRIBUTE_UNUSED:
|
||||
*
|
||||
|
@ -40,11 +40,11 @@ extern "C" {
|
||||
#define LIBXSLT_VERSION_STRING "10112"
|
||||
|
||||
/**
|
||||
* LIBXSLT_VERSION_EXTRA
|
||||
* LIBXSLT_VERSION_EXTRA:
|
||||
*
|
||||
* extra version information, used to show a CVS compilation
|
||||
*/
|
||||
#define LIBXML_VERSION_EXTRA "-CVS975"
|
||||
#define LIBXML_VERSION_EXTRA "-CVS977"
|
||||
|
||||
/**
|
||||
* WITH_XSLT_DEBUG:
|
||||
@ -57,6 +57,18 @@ extern "C" {
|
||||
#define WITH_XSLT_DEBUG
|
||||
#endif
|
||||
|
||||
/**
|
||||
* WITH_MODULES:
|
||||
*
|
||||
* Whether module support is configured into libxslt
|
||||
*/
|
||||
#if 0
|
||||
#ifndef WITH_MODULES
|
||||
#define WITH_MODULES
|
||||
#endif
|
||||
#define LIBXSLT_PLUGINS_PATH() getenv("LIBXSLT_PLUGINS_PATH")
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* DEBUG_MEMORY:
|
||||
|
@ -40,7 +40,7 @@ extern "C" {
|
||||
#define LIBXSLT_VERSION_STRING "@LIBXSLT_VERSION_NUMBER@"
|
||||
|
||||
/**
|
||||
* LIBXSLT_VERSION_EXTRA
|
||||
* LIBXSLT_VERSION_EXTRA:
|
||||
*
|
||||
* extra version information, used to show a CVS compilation
|
||||
*/
|
||||
@ -57,6 +57,18 @@ extern "C" {
|
||||
#define WITH_XSLT_DEBUG
|
||||
#endif
|
||||
|
||||
/**
|
||||
* WITH_MODULES:
|
||||
*
|
||||
* Whether module support is configured into libxslt
|
||||
*/
|
||||
#if @WITH_MODULES@
|
||||
#ifndef WITH_MODULES
|
||||
#define WITH_MODULES
|
||||
#endif
|
||||
#define LIBXSLT_PLUGINS_PATH() getenv("LIBXSLT_PLUGINS_PATH")
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* DEBUG_MEMORY:
|
||||
|
@ -48,6 +48,7 @@ var withDebugger = true;
|
||||
var withIconv = true;
|
||||
var withZlib = false;
|
||||
var withCrypto = true;
|
||||
var withModules = false;
|
||||
/* Win32 build options. */
|
||||
var dirSep = "\\";
|
||||
var compiler = "msvc";
|
||||
@ -105,6 +106,7 @@ function usage()
|
||||
txt += " iconv: Use iconv library (" + (withIconv? "yes" : "no") + ")\n";
|
||||
txt += " zlib: Use zlib library (" + (withZlib? "yes" : "no") + ")\n";
|
||||
txt += " crypto: Enable Crypto support (" + (withCrypto? "yes" : "no") + ")\n";
|
||||
txt += " modules: Enable Module support (" + (withModules? "yes" : "no") + ")\n";
|
||||
txt += "\nWin32 build options, default value given in parentheses:\n\n";
|
||||
txt += " compiler: Compiler to be used [msvc|mingw] (" + compiler + ")\n";
|
||||
txt += " cruntime: C-runtime compiler option (only msvc) (" + cruntime + ")\n";
|
||||
@ -188,6 +190,7 @@ function discoverVersion()
|
||||
vf.WriteLine("WITH_ICONV=" + (withIconv? "1" : "0"));
|
||||
vf.WriteLine("WITH_ZLIB=" + (withZlib? "1" : "0"));
|
||||
vf.WriteLine("WITH_CRYPTO=" + (withCrypto? "1" : "0"));
|
||||
vf.WriteLine("WITH_MODULES=" + (withModules? "1" : "0"));
|
||||
vf.WriteLine("DEBUG=" + (buildDebug? "1" : "0"));
|
||||
vf.WriteLine("STATIC=" + (buildStatic? "1" : "0"));
|
||||
vf.WriteLine("PREFIX=" + buildPrefix);
|
||||
@ -233,6 +236,10 @@ function configureXslt()
|
||||
of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebug? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_DEBUGGER\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_DEBUGGER\@/, withDebugger? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_MODULES\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_MODULES\@/, withModules? "1" : "0"));
|
||||
} else if (s.search(/\@LIBXSLT_DEFAULT_PLUGINS_PATH\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@LIBXSLT_DEFAULT_PLUGINS_PATH\@/, "NULL"));
|
||||
} else
|
||||
of.WriteLine(ln);
|
||||
}
|
||||
@ -262,6 +269,8 @@ function configureExslt()
|
||||
of.WriteLine(s.replace(/\@LIBEXSLT_VERSION_EXTRA\@/, verCvs));
|
||||
} else if (s.search(/\@WITH_CRYPTO\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_CRYPTO\@/, withCrypto? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_MODULES\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_MODULES\@/, withModules? "1" : "0"));
|
||||
} else
|
||||
of.WriteLine(ln);
|
||||
}
|
||||
@ -332,6 +341,8 @@ for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
|
||||
withZlib = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||
else if (opt == "crypto")
|
||||
withCrypto = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||
else if (opt == "modules")
|
||||
withModules = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||
else if (opt == "compiler")
|
||||
compiler = arg.substring(opt.length + 1, arg.length);
|
||||
else if (opt == "cruntime")
|
||||
@ -446,6 +457,7 @@ txtOut += " Debugger support: " + boolToStr(withDebugger) + "\n";
|
||||
txtOut += " Use iconv: " + boolToStr(withIconv) + "\n";
|
||||
txtOut += " With zlib: " + boolToStr(withZlib) + "\n";
|
||||
txtOut += " Crypto: " + boolToStr(withCrypto) + "\n";
|
||||
txtOut += " Modules: " + boolToStr(withModules) + "\n";
|
||||
txtOut += "\n";
|
||||
txtOut += "Win32 build configuration\n";
|
||||
txtOut += "-------------------------\n";
|
||||
|
Reference in New Issue
Block a user