Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (28 sloc) 0.986 kb
f75ecf2 * Added proctitle extension in CVS (see http://pecl.php.net/proctitle )
magicaltux authored
1 dnl $Id$
2 dnl config.m4 for extension proctitle
3
4 PHP_ARG_ENABLE(proctitle, whether to enable proctitle support,
5 [ --enable-proctitle Enable proctitle support])
6
7 if test "$PHP_PROCTITLE" != "no"; then
d721f75 * Added BSD system autodetection (native call "setproctitle")
magicaltux authored
8 AC_CACHE_VAL(php_system_provides_setproctitle_call,[
9 AC_CHECK_FUNCS(setproctitle, [
10 php_system_provides_setproctitle_call=yes
11 break
12 ],[
13 php_system_provides_setproctitle_call=no
14 ])])
c692c82 Add a function to set the thread name
bjori authored
15
16 AC_MSG_CHECKING([for prctl])
17
18 AC_TRY_COMPILE([ #include <sys/prctl.h> ], [prctl(0, 0, 0, 0, 0);], [
19 AC_DEFINE([HAVE_PRCTL], 1, [do we have prctl?])
20 AC_MSG_RESULT([yes])
21 ], [
22 AC_MSG_RESULT([no])
23 ])
24
d721f75 * Added BSD system autodetection (native call "setproctitle")
magicaltux authored
25 AC_MSG_CHECKING([if your OS provides a native way to change a process title])
26 if test "$php_system_provides_setproctitle_call" = "yes"; then
27 AC_MSG_RESULT(yes)
28 AC_DEFINE(PHP_SYSTEM_PROVIDES_SETPROCTITLE,1, [Define if your system has setproctitle])
29 else
30 AC_MSG_RESULT(no)
31 fi
f75ecf2 * Added proctitle extension in CVS (see http://pecl.php.net/proctitle )
magicaltux authored
32 PHP_NEW_EXTENSION(proctitle, proctitle.c, $ext_shared)
33 fi
34
Something went wrong with that request. Please try again.