mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
Disable installing pear when --disable-cli is used since pear installer
needs cli to function.
This commit is contained in:
parent
b7cab12d21
commit
acae873a6b
@ -642,7 +642,7 @@ PHP_ARG_WITH(pear, [whether to install PEAR, and where],
|
||||
[ --with-pear=DIR Install PEAR in DIR (default PREFIX/lib/php)
|
||||
--without-pear Do not install PEAR], DEFAULT)
|
||||
|
||||
if test "$PHP_PEAR" != "no"; then
|
||||
if test "$PHP_PEAR" != "no" && test "$disable_cli" != "1"; then
|
||||
install_pear="install-pear install-build install-headers install-programs"
|
||||
PEAR_INSTALLDIR=$PHP_PEAR
|
||||
fi
|
||||
|
@ -5,7 +5,8 @@ dnl
|
||||
AC_MSG_CHECKING(for CLI build)
|
||||
|
||||
AC_ARG_ENABLE(cli,
|
||||
[ --disable-cli Disable building CLI version of PHP.],
|
||||
[ --disable-cli Disable building CLI version of PHP
|
||||
(this forces --without-pear).],
|
||||
[
|
||||
PHP_SAPI_CLI=$enableval
|
||||
],[
|
||||
|
Loading…
Reference in New Issue
Block a user