diff --git a/build/build.mk b/build/build.mk index 2e261b7824f..678cbe90afd 100644 --- a/build/build.mk +++ b/build/build.mk @@ -31,8 +31,10 @@ $(stamp): build/buildcheck.sh @build/buildcheck.sh $@ configure: configure.ac $(PHP_M4_FILES) +# Remove aclocal.m4 if present. It is automatically included by autoconf but +# not used by the PHP build system since PHP 7.4. @echo rebuilding $@ - @rm -f $@ + @rm -f $@ aclocal.m4 @$(PHP_AUTOCONF) $(PHP_AUTOCONF_FLAGS) $(config_h_in): configure diff --git a/scripts/phpize.in b/scripts/phpize.in index 7a10a369bf8..0d89341a75f 100644 --- a/scripts/phpize.in +++ b/scripts/phpize.in @@ -157,6 +157,10 @@ phpize_replace_prefix() phpize_autotools() { + # Remove aclocal.m4 if present. It is automatically included by autoconf but + # not used by the PHP build system since PHP 7.4. + rm -f aclocal.m4 + $PHP_AUTOCONF || exit 1 $PHP_AUTOHEADER || exit 1