Skip to content

Commit 21e01f3

Browse files
authored
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).
1 parent 0d36701 commit 21e01f3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

build/php.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,8 @@ no[)]
659659
;;
660660
esac
661661
662-
PHP_ALWAYS_SHARED([$1])
662+
dnl When using phpize, automatically enable and build extension as shared.
663+
m4_ifdef([PHP_ALWAYS_SHARED], [PHP_ALWAYS_SHARED([$1])])
663664
])
664665

665666
dnl

configure.ac

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ PHP_SUBST([PHP_MINOR_VERSION])
7676
PHP_SUBST([PHP_RELEASE_VERSION])
7777
PHP_SUBST([PHP_EXTRA_VERSION])
7878

79-
AC_DEFUN([PHP_ALWAYS_SHARED],[])dnl
80-
8179
dnl Setting up the PHP version based on the information above.
8280
dnl ----------------------------------------------------------------------------
8381

0 commit comments

Comments
 (0)