mirror of
https://github.com/php/php-src.git
synced 2026-04-09 09:03:04 +02:00
@ of the CGI sapi which is more suited for writing shell scripts. Some of @ the differences are: it prints no HTTP headers, displays plain text @ error messages, etc. (Edin) Added CLI (command line intrerface) sapi. # Let's see if a build expert can make this compile along # side some other sapi.
22 lines
416 B
Plaintext
22 lines
416 B
Plaintext
dnl
|
|
dnl $Id$
|
|
dnl
|
|
|
|
AC_MSG_CHECKING(for CLI build)
|
|
AC_ARG_WITH(cli,
|
|
[ --with-cli Build PHP as CLI application],[
|
|
if test "$withval" = "yes"; then
|
|
CLIPATH=/usr/local
|
|
else
|
|
CLIPATH=$withval
|
|
fi
|
|
PHP_SAPI=cli
|
|
PHP_PROGRAM=php
|
|
INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_PROGRAM \$(bindir)/$PHP_PROGRAM"
|
|
RESULT=yes
|
|
PHP_SUBST(EXT_PROGRAM_LDADD)
|
|
],[
|
|
RESULT=no
|
|
])
|
|
AC_MSG_RESULT($RESULT)
|