From: Rob Richards Date: Sun, 18 Jul 2004 13:22:46 +0000 (+0000) Subject: enable exslt support for win32 builds X-Git-Tag: php-5.0.1RC1~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17ad61bd7f71c8f5394e94782659e1e1f2715e9e;p=php enable exslt support for win32 builds WS fixes for exslt tests --- diff --git a/ext/xsl/config.w32 b/ext/xsl/config.w32 index 2a92a7b037..37da4bd630 100644 --- a/ext/xsl/config.w32 +++ b/ext/xsl/config.w32 @@ -6,16 +6,28 @@ ARG_WITH("xsl", "xsl support", "no"); if (PHP_XSL != "no") { if (PHP_DOM == "yes" && PHP_LIBXML == "yes") { var ext_xsl_lib_found = false; + var ext_exslt_lib_found = false; if (CHECK_LIB("libxslt_a.lib", "xsl", PHP_XSL)) { - ADD_FLAG("CFLAGS_XSL", "/D LIBXSLT_STATIC "); ext_xsl_lib_found = true; + ADD_FLAG("CFLAGS_XSL", "/D LIBXSLT_STATIC "); + if (CHECK_LIB("libexslt_a.lib", "xsl", PHP_XSL)) { + ADD_FLAG("CFLAGS_XSL", "/D LIBEXSLT_STATIC "); + ext_exslt_lib_found = true; + } } else if (CHECK_LIB("libxslt.lib", "xsl", PHP_XSL)) { ext_xsl_lib_found = true; + if (CHECK_LIB("libexslt.lib", "xsl", PHP_XSL)) { + ext_exslt_lib_found = true; + } } if (ext_xsl_lib_found && CHECK_HEADER_ADD_INCLUDE("libxslt\\xslt.h", "CFLAGS_XSL")) { - + if (ext_exslt_lib_found) { + if (CHECK_HEADER_ADD_INCLUDE("libexslt\\exslt.h", "CFLAGS_XSL")) { + AC_DEFINE("HAVE_XSL_EXSLT", 1, ""); + } + } 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) { diff --git a/ext/xsl/tests/exslt.xml b/ext/xsl/tests/exslt.xml index 0d9c8eb75b..54913c6f5d 100644 --- a/ext/xsl/tests/exslt.xml +++ b/ext/xsl/tests/exslt.xml @@ -1,10 +1,9 @@ - - - - - - - - - - + + + + + + + + + diff --git a/ext/xsl/tests/exslt.xsl b/ext/xsl/tests/exslt.xsl index 06ffd8d60d..8f0baef6ca 100644 --- a/ext/xsl/tests/exslt.xsl +++ b/ext/xsl/tests/exslt.xsl @@ -1,46 +1,45 @@ - - - - - - - Test Date : - - year : - - leap-year : - - month-in-year : - - month-name : - - month-abbreviation : - - week-in-year : - - day-in-year : - - day-in-month : - - day-of-week-in-month : - - day-in-week : - - day-name : - - day-abbreviation : - - time : - - hour-in-day : - - minute-in-hour : - - second-in-minute : - - - - + + + + + + + Test Date : + + year : + + leap-year : + + month-in-year : + + month-name : + + month-abbreviation : + + week-in-year : + + day-in-year : + + day-in-month : + + day-of-week-in-month : + + day-in-week : + + day-name : + + day-abbreviation : + + time : + + hour-in-day : + + minute-in-hour : + + second-in-minute : + + +