summaryrefslogtreecommitdiff
path: root/ext/xsl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xsl')
-rw-r--r--ext/xsl/config.m421
1 files changed, 6 insertions, 15 deletions
diff --git a/ext/xsl/config.m4 b/ext/xsl/config.m4
index ab70ad6b87..14af536fa7 100644
--- a/ext/xsl/config.m4
+++ b/ext/xsl/config.m4
@@ -18,21 +18,12 @@ if test "$PHP_XSL" != "no"; then
PHP_EVAL_INCLINE($XSL_CFLAGS)
PHP_EVAL_LIBLINE($XSL_LIBS, XSL_SHARED_LIBADD)
- AC_MSG_CHECKING([for EXSLT support])
- for i in /usr/local /usr; do
- if test -r "$i/include/libexslt/exslt.h"; then
- PHP_XSL_EXSL_DIR=$i
- break
- fi
- done
- if test -z "$PHP_XSL_EXSL_DIR"; then
- AC_MSG_RESULT(not found)
- else
- AC_MSG_RESULT(found)
- PHP_ADD_LIBRARY_WITH_PATH(exslt, $PHP_XSL_EXSL_DIR/$PHP_LIBDIR, XSL_SHARED_LIBADD)
- PHP_ADD_INCLUDE($PHP_XSL_EXSL_DIR/include)
- AC_DEFINE(HAVE_XSL_EXSLT,1,[ ])
- fi
+ PKG_CHECK_MODULES([EXSLT], [libexslt],
+ [
+ PHP_EVAL_INCLINE($EXSLT_CFLAGS)
+ PHP_EVAL_LIBLINE($EXSLT_LIBS, XSL_SHARED_LIBADD)
+ AC_DEFINE(HAVE_XSL_EXSLT, 1, [ ])
+ ], [ ])
AC_DEFINE(HAVE_XSL,1,[ ])
PHP_NEW_EXTENSION(xsl, php_xsl.c xsltprocessor.c, $ext_shared)