diff options
author | Keyur Govande <kgovande@gmail.com> | 2013-03-07 18:54:34 +0000 |
---|---|---|
committer | Keyur Govande <kgovande@gmail.com> | 2013-03-07 18:54:34 +0000 |
commit | a0a995cff356a6e7526188ad1979fac6c24b9e7e (patch) | |
tree | 9d2660c6174f6dcab5f11a1418dc3dbbd585ffed /sapi/cli/config.m4 | |
parent | d77eb411ea5d80379ee92a908f543b91fa293383 (diff) | |
download | php-git-a0a995cff356a6e7526188ad1979fac6c24b9e7e.tar.gz |
Support for CLI process title (https://wiki.php.net/rfc/cli_process_title)
A new commit into branch 5.5
Diffstat (limited to 'sapi/cli/config.m4')
-rw-r--r-- | sapi/cli/config.m4 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 index cdfa1f7daf..9a1b98da46 100644 --- a/sapi/cli/config.m4 +++ b/sapi/cli/config.m4 @@ -6,6 +6,23 @@ PHP_ARG_ENABLE(cli,, [ --disable-cli Disable building CLI version of PHP (this forces --without-pear)], yes, no) +AC_CHECK_FUNCS(setproctitle) + +AC_CHECK_HEADERS([sys/pstat.h]) + +AC_CACHE_CHECK([for PS_STRINGS], [cli_cv_var_PS_STRINGS], +[AC_TRY_LINK( +[#include <machine/vmparam.h> +#include <sys/exec.h> +], +[PS_STRINGS->ps_nargvstr = 1; +PS_STRINGS->ps_argvstr = "foo";], +[cli_cv_var_PS_STRINGS=yes], +[cli_cv_var_PS_STRINGS=no])]) +if test "$cli_cv_var_PS_STRINGS" = yes ; then + AC_DEFINE([HAVE_PS_STRINGS], [], [Define to 1 if the PS_STRINGS thing exists.]) +fi + AC_MSG_CHECKING(for CLI build) if test "$PHP_CLI" != "no"; then PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/sapi/cli/Makefile.frag) @@ -14,7 +31,7 @@ if test "$PHP_CLI" != "no"; then SAPI_CLI_PATH=sapi/cli/php dnl Select SAPI - PHP_SELECT_SAPI(cli, program, php_cli.c php_http_parser.c php_cli_server.c,, '$(SAPI_CLI_PATH)') + PHP_SELECT_SAPI(cli, program, php_cli.c php_http_parser.c php_cli_server.c ps_title.c php_cli_process_title.c,, '$(SAPI_CLI_PATH)') case $host_alias in *aix*) |