1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Autotools: Simplify PHP_ALWAYS_SHARED macro (#15129)

Instead of defining an empty M4 macro PHP_ALWAYS_SHARED when configuring
extensions in php-src using the main configure.ac, the m4_ifdef can be
used to conditionally call the macro when it is defined (when using
phpize).
This commit is contained in:
Peter Kokot
2024-07-28 01:33:05 +02:00
committed by GitHub
parent 0d36701b32
commit 21e01f3e70
2 changed files with 2 additions and 3 deletions

View File

@@ -659,7 +659,8 @@ no[)]
;;
esac
PHP_ALWAYS_SHARED([$1])
dnl When using phpize, automatically enable and build extension as shared.
m4_ifdef([PHP_ALWAYS_SHARED], [PHP_ALWAYS_SHARED([$1])])
])
dnl

View File

@@ -76,8 +76,6 @@ PHP_SUBST([PHP_MINOR_VERSION])
PHP_SUBST([PHP_RELEASE_VERSION])
PHP_SUBST([PHP_EXTRA_VERSION])
AC_DEFUN([PHP_ALWAYS_SHARED],[])dnl
dnl Setting up the PHP version based on the information above.
dnl ----------------------------------------------------------------------------