@@ -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################################################################################ 
@@ -460,28 +447,7 @@ include(cmake/Fibers.cmake)
460447include (cmake/GenerateGrammar.cmake)
461448include (cmake/GlobalRegisterVariables.cmake)
462449include (cmake/MaxExecutionTimers.cmake)
463- 
464- ################################################################################ 
465- # Zend signals. 
466- ################################################################################ 
467- 
468- message (CHECK_START "Checking whether to enable Zend signal handling" )
469- check_symbol_exists(sigaction signal.h HAVE_SIGACTION)
470- if (HAVE_SIGACTION AND  ZEND_SIGNALS)
471-   message (CHECK_PASS "yes" )
472- 
473-   # zend_config.h (or its parent php_config.h) isn't included in some zend_* 
474-   # files, therefore also compilation definition is added. 
475-   target_compile_definitions (zend PUBLIC  ZEND_SIGNALS)
476- else ()
477-   set (ZEND_SIGNALS OFF )
478-   message (CHECK_FAIL "no" )
479- endif ()
480- add_feature_info(
481-   "Zend signals" 
482-   ZEND_SIGNALS
483-   "signal handling for performance" 
484- )
450+ include (cmake/Signals.cmake)
485451
486452################################################################################ 
487453# Create files and set installation. 
0 commit comments