@@ -64,19 +64,6 @@ include(FeatureSummary)
6464include (PHP/AddCustomCommand)
6565include (PHP/SearchLibraries)
6666
67- ################################################################################
68- # Configuration.
69- ################################################################################
70-
71- cmake_dependent_option(
72- ZEND_SIGNALS
73- "Enable Zend signal handling"
74- ON
75- [[NOT CMAKE_SYSTEM_NAME STREQUAL "Windows"]]
76- OFF
77- )
78- mark_as_advanced (ZEND_SIGNALS)
79-
8067################################################################################
8168# Add library.
8269################################################################################
@@ -462,28 +449,7 @@ include(cmake/Fibers.cmake)
462449include (cmake/GenerateGrammar.cmake)
463450include (cmake/GlobalRegisterVariables.cmake)
464451include (cmake/MaxExecutionTimers.cmake)
465-
466- ################################################################################
467- # Zend signals.
468- ################################################################################
469-
470- message (CHECK_START "Checking whether to enable Zend signal handling" )
471- check_symbol_exists(sigaction signal.h HAVE_SIGACTION)
472- if (HAVE_SIGACTION AND ZEND_SIGNALS)
473- message (CHECK_PASS "yes" )
474-
475- # zend_config.h (or its parent php_config.h) isn't included in some zend_*
476- # files, therefore also compilation definition is added.
477- target_compile_definitions (zend PUBLIC ZEND_SIGNALS)
478- else ()
479- set (ZEND_SIGNALS OFF )
480- message (CHECK_FAIL "no" )
481- endif ()
482- add_feature_info(
483- "Zend signals"
484- ZEND_SIGNALS
485- "signal handling for performance"
486- )
452+ include (cmake/Signals.cmake)
487453
488454################################################################################
489455# Create files and set installation.
0 commit comments