Skip to content

Commit f6dcca0

Browse files
authored
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.
1 parent a2a3c5b commit f6dcca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/embed/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ if test "$PHP_EMBED" != "no"; then
2323

2424
AS_VAR_IF([PHP_EMBED_TYPE], [no],, [
2525
PHP_SUBST([LIBPHP_CFLAGS])
26+
AC_SUBST([PHP_EMBED_TYPE])
2627
PHP_SELECT_SAPI([embed],
2728
[$PHP_EMBED_TYPE],
2829
[php_embed.c],
2930
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
3031
PHP_INSTALL_HEADERS([sapi/embed], [php_embed.h])
3132
])
3233
AC_MSG_RESULT([$PHP_EMBED_TYPE])
33-
AC_SUBST([PHP_EMBED_TYPE])
3434
else
3535
AC_MSG_RESULT([no])
3636
fi

0 commit comments

Comments
 (0)