2002-01-06 14:08:14 +00:00
|
|
|
dnl
|
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for CLI build)
|
2002-01-12 14:51:54 +00:00
|
|
|
|
2002-01-24 17:55:13 +00:00
|
|
|
AC_ARG_ENABLE(cli,
|
|
|
|
[ --disable-cli Disable building CLI version of PHP.],
|
|
|
|
[
|
|
|
|
if test "$enable_cli" != "no"; then
|
|
|
|
PHP_SAPI_CLI=yes
|
|
|
|
else
|
|
|
|
PHP_SAPI_CLI=no
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[PHP_SAPI_CLI=yes]
|
|
|
|
)
|
2002-01-12 14:51:54 +00:00
|
|
|
|
2002-01-24 17:55:13 +00:00
|
|
|
if test "$PHP_SAPI_CLI" != "no"; then
|
2002-03-07 14:20:02 +00:00
|
|
|
INSTALL_CLI="\$(INSTALL) -m 0755 sapi/cli/php \$(INSTALL_ROOT)\$(bindir)/php"
|
|
|
|
PHP_SUBST(INSTALL_CLI)
|
2002-01-24 17:55:13 +00:00
|
|
|
else
|
|
|
|
PHP_DISABLE_CLI
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_RESULT($PHP_SAPI_CLI)
|