From 0403a45216dd958243fc0e19bd95b5c0505f806e Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 14 Aug 2024 01:37:31 +0200 Subject: [PATCH] Autotools: Substitute PHP_EMBED_TYPE conditionally 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 86856124f232..7029f94c7137 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