com php-src: ext/xsl: Use PKG_CHECK_MODULES to detect the EXSLT library: ext/xsl/config.m4

From: Date: Fri, 07 Jun 2019 07:35:14 +0000
Subject: com php-src: ext/xsl: Use PKG_CHECK_MODULES to detect the EXSLT library: ext/xsl/config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106600@lists.php.net to get a copy of this message
Commit: d4c275d8acdc3012da2aef191c1cac1389eaaef8 Author: Hugh McMaster <hugh.mcmaster@outlook.com> Thu, 6 Jun 2019 22:22:00 +1000 Committer: Nikita Popov <nikita.ppv@gmail.com> Fri, 7 Jun 2019 09:35:14 +0200 Parents: ab66179227dfce5c916592f47a66cd5f09e86359 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d4c275d8acdc3012da2aef191c1cac1389eaaef8 Log: ext/xsl: Use PKG_CHECK_MODULES to detect the EXSLT library Changed paths: M ext/xsl/config.m4 Diff: diff --git a/ext/xsl/config.m4 b/ext/xsl/config.m4 index ab70ad6..14af536 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)

« previous php.cvs (#106600) next »