Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: RELEASE_0_1_2
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (28 sloc) 0.986 kb
dnl $Id$
dnl config.m4 for extension proctitle
PHP_ARG_ENABLE(proctitle, whether to enable proctitle support,
[ --enable-proctitle Enable proctitle support])
if test "$PHP_PROCTITLE" != "no"; then
AC_CACHE_VAL(php_system_provides_setproctitle_call,[
AC_CHECK_FUNCS(setproctitle, [
php_system_provides_setproctitle_call=yes
break
],[
php_system_provides_setproctitle_call=no
])])
AC_MSG_CHECKING([for prctl])
AC_TRY_COMPILE([ #include <sys/prctl.h> ], [prctl(0, 0, 0, 0, 0);], [
AC_DEFINE([HAVE_PRCTL], 1, [do we have prctl?])
AC_MSG_RESULT([yes])
], [
AC_MSG_RESULT([no])
])
AC_MSG_CHECKING([if your OS provides a native way to change a process title])
if test "$php_system_provides_setproctitle_call" = "yes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(PHP_SYSTEM_PROVIDES_SETPROCTITLE,1, [Define if your system has setproctitle])
else
AC_MSG_RESULT(no)
fi
PHP_NEW_EXTENSION(proctitle, proctitle.c, $ext_shared)
fi
Jump to Line
Something went wrong with that request. Please try again.