From f6dcca00bc94fe1734dea67e31add7d8a949a9df Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 14 Aug 2024 16:40:10 +0200 Subject: [PATCH] Autotools: Substitute PHP_EMBED_TYPE conditionally (#15396) If passing wrong argument at --enable-embed=ARGUMENT the AC_SUBST don't need to be used for it in php-config. --- sapi/embed/config.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/embed/config.m4 b/sapi/embed/config.m4 index 86856124f23..7029f94c713 100644 --- a/sapi/embed/config.m4 +++ b/sapi/embed/config.m4 @@ -23,6 +23,7 @@ if test "$PHP_EMBED" != "no"; then AS_VAR_IF([PHP_EMBED_TYPE], [no],, [ PHP_SUBST([LIBPHP_CFLAGS]) + AC_SUBST([PHP_EMBED_TYPE]) PHP_SELECT_SAPI([embed], [$PHP_EMBED_TYPE], [php_embed.c], @@ -30,7 +31,6 @@ if test "$PHP_EMBED" != "no"; then PHP_INSTALL_HEADERS([sapi/embed], [php_embed.h]) ]) AC_MSG_RESULT([$PHP_EMBED_TYPE]) - AC_SUBST([PHP_EMBED_TYPE]) else AC_MSG_RESULT([no]) fi