From 939875133a2c389d621a9999a8ede3ddbc9b6637 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 2 Jun 2011 21:16:50 +0000 Subject: Zend Signal Handling (see RFC: https://wiki.php.net/rfc/zendsignals) This needs to go into 5.4 as well, but will wait for Pierre to review win32 situation # Patch by Lucas Nealan, Arnaud Le Blanc, Brian Shire & Ilia Alshanetsky --- Zend/Zend.m4 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Zend/Zend.m4') diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index ececf783b5..67b9ba09d7 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -392,8 +392,22 @@ int main() AC_CHECK_FUNCS(mremap) + +AC_CHECK_FUNC(sigaction, [ + ZEND_SIGNALS=yes + AC_DEFINE(ZEND_SIGNALS, 1, [Use zend signal handling]) + AC_DEFINE(HAVE_SIGACTION, 1, [Whether sigaction() is available]) +], [ + ZEND_SIGNALS=no ]) +if test "$ZEND_SIGNALS" = "yes"; then + CFLAGS="$CFLAGS -DZEND_SIGNALS" +fi +AC_MSG_CHECKING(whether to enable zend signal handling) +AC_MSG_RESULT($ZEND_SIGNALS) + +]) AC_DEFUN([LIBZEND_CPLUSPLUS_CHECKS],[ -- cgit v1.2.1