diff options
Diffstat (limited to 'ext/xsl')
| -rw-r--r-- | ext/xsl/config.w32 | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ext/xsl/config.w32 b/ext/xsl/config.w32 index e5ad29fc58..252caeb786 100644 --- a/ext/xsl/config.w32 +++ b/ext/xsl/config.w32 @@ -5,13 +5,21 @@ ARG_WITH("xsl", "xsl support", "no"); if (PHP_XSL != "no") { if (PHP_DOM == "yes" && PHP_LIBXML == "yes") { - if (CHECK_LIB("libxslt_a.lib;libxslt.lib", "xsl", PHP_XSL) && - CHECK_HEADER_ADD_INCLUDE("libxslt\\xslt.h", "CFLAGS_XSL")) { + var ext_xsl_lib_found = false; + + if (CHECK_LIB("libxslt_a.lib", "xsl", PHP_XSL)) { + ADD_FLAG("CFLAGS_XSL", "/D LIBXSL_STATIC "); + ext_xsl_lib_found = true; + } else if (CHECK_LIB("libxslt.lib", "xsl", PHP_XSL)) { + ext_xsl_lib_found = true; + } + + if (ext_xsl_lib_found && CHECK_HEADER_ADD_INCLUDE("libxslt\\xslt.h", "CFLAGS_XSL")) { EXTENSION("xsl", "php_xsl.c xsltprocessor.c", PHP_XSL_SHARED); AC_DEFINE("HAVE_XSL", 1, "Define if xsl extension is enabled"); if (! PHP_XSL_SHARED) { - ADD_FLAG("CFLAGS_XSL", "/D DOM_EXPORTS "); + ADD_FLAG("CFLAGS_XSL", "/D DOM_EXPORTS /D LIBXML_STATIC"); } } else { WARNING("xsl not enabled; libraries and headers not found"); |
