cvs: php4 /ext/pcntl config.m4

From: Date: Wed, 04 Jul 2001 21:51:23 +0000
Subject: cvs: php4 /ext/pcntl config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6079@lists.php.net to get a copy of this message
jason Wed Jul 4 17:51:23 2001 EDT Modified files: /php4/ext/pcntl config.m4 Log: Actually check for the needed system calls. Currently require sigaction, fork, waitpit. Index: php4/ext/pcntl/config.m4 diff -u php4/ext/pcntl/config.m4:1.1 php4/ext/pcntl/config.m4:1.2 --- php4/ext/pcntl/config.m4:1.1 Tue Jun 12 04:54:25 2001 +++ php4/ext/pcntl/config.m4 Wed Jul 4 17:51:22 2001 @@ -1,4 +1,4 @@ -dnl $Id: config.m4,v 1.1 2001/06/12 08:54:25 jason Exp $ +dnl $Id: config.m4,v 1.2 2001/07/04 21:51:22 jason Exp $ dnl config.m4 for extension pcntl dnl Process Control (pcntl) extentsion --EXPERIMENTAL-- @@ -9,7 +9,12 @@ if test "$PHP_PCNTL" != "no"; then if test "$PHP_SAPI" != "cgi"; then AC_MSG_ERROR(pcntl currently only accepts the CGI SAPI, this will save you from harming your webserver.) - else - PHP_EXTENSION(pcntl, $ext_shared) fi + + AC_CHECK_FUNCS(fork, [ AC_DEFINE(HAVE_FORK,1,[ ]) ], [ AC_MSG_ERROR(pcntl: fork() not supported by this platform) ]) + AC_CHECK_FUNCS(waitpid, [ AC_DEFINE(HAVE_WAITPID,1,[ ]) ], [ AC_MSG_ERROR(pcntl: fork() not supported by this platform) ]) + AC_CHECK_FUNCS(sigaction, [ AC_DEFINE(HAVE_SIGACTION,1,[ ]) ], [ AC_MSG_ERROR(pcntl: sigaction() not supported by this platform) ]) + + PHP_EXTENSION(pcntl, $ext_shared) + fi

« previous php.cvs (#6079) next »