mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user