@@ -63,19 +63,6 @@ include(CMakePushCheckState)
6363include (FeatureSummary)
6464include (PHP/AddCustomCommand)
6565
66- ################################################################################
67- # Configuration.
68- ################################################################################
69-
70- cmake_dependent_option(
71- ZEND_SIGNALS
72- "Enable Zend signal handling"
73- ON
74- [[NOT CMAKE_SYSTEM_NAME STREQUAL "Windows"]]
75- OFF
76- )
77- mark_as_advanced (ZEND_SIGNALS)
78-
7966################################################################################
8067# Add library.
8168################################################################################
@@ -426,28 +413,7 @@ include(cmake/Fibers.cmake)
426413include (cmake/GenerateGrammar.cmake)
427414include (cmake/GlobalRegisterVariables.cmake)
428415include (cmake/MaxExecutionTimers.cmake)
429-
430- ################################################################################
431- # Zend signals.
432- ################################################################################
433-
434- message (CHECK_START "Checking whether to enable Zend signal handling" )
435- check_symbol_exists(sigaction signal.h HAVE_SIGACTION)
436- if (HAVE_SIGACTION AND ZEND_SIGNALS)
437- message (CHECK_PASS "yes" )
438-
439- # zend_config.h (or its parent php_config.h) isn't included in some zend_*
440- # files, therefore also compilation definition is added.
441- target_compile_definitions (zend PUBLIC ZEND_SIGNALS)
442- else ()
443- set (ZEND_SIGNALS OFF )
444- message (CHECK_FAIL "no" )
445- endif ()
446- add_feature_info(
447- "Zend signals"
448- ZEND_SIGNALS
449- "signal handling for performance"
450- )
416+ include (cmake/Signals.cmake)
451417
452418################################################################################
453419# Create files and set installation.
0 commit comments