@@ -25,16 +25,32 @@ block()
2525 string (
2626 APPEND
2727 info
28- " * PHP version: ${PHP_VERSION} \n "
29- " * PHP API version: ${PHP_API_VERSION} \n "
30- " * Zend Engine version: ${zendVersion} \n "
31- " * Zend extension API number: ${zendExtensionApiNumber} \n "
32- " * Zend module API number: ${zendModuleApiNumber} \n "
28+ " * PHP version ................ : ${PHP_VERSION} \n "
29+ " * PHP API version ............ : ${PHP_API_VERSION} \n "
30+ " * Zend Engine version ........ : ${zendVersion} \n "
31+ " * Zend extension API number .. : ${zendExtensionApiNumber} \n "
32+ " * Zend module API number ..... : ${zendModuleApiNumber} \n "
33+ " * C compiler ................. : ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} (${CMAKE_C_COMPILER} )\n "
3334 )
3435
35- message (STATUS "-----------" )
36+ if (CMAKE_CXX_COMPILER_LOADED)
37+ string (
38+ APPEND
39+ info
40+ " * CXX compiler ............... : ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} (${CMAKE_CXX_COMPILER} )\n "
41+ )
42+ endif ()
43+
44+ string (
45+ APPEND
46+ info
47+ " * Install prefix ............. : ${CMAKE_INSTALL_PREFIX} \n "
48+ )
49+
50+ message (STATUS "" )
51+ message (STATUS "" )
3652 message (STATUS "PHP summary" )
37- message (STATUS "----------- \n\n ${info} " )
53+ message (STATUS "=========== \n\n ${info} " )
3854endblock()
3955
4056# Output enabled features.
@@ -47,16 +63,22 @@ block()
4763
4864 list (SORT enabledFeatures COMPARE NATURAL CASE INSENSITIVE)
4965
66+ set (php "" )
5067 set (sapis "" )
5168 set (extensions "" )
52- set (php "" )
5369
54- foreach (feature ${ enabledFeatures} )
70+ foreach (feature IN LISTS enabledFeatures)
5571 if (parent AND feature MATCHES "^${parent} " )
56- set (item " * ${feature} " )
72+ string (REGEX REPLACE "^${parent} [ ]+" "" item "${feature} " )
73+
74+ if (NOT item MATCHES "^(with|without) " )
75+ string (PREPEND item "with " )
76+ endif ()
77+ string (PREPEND item " - " )
5778 else ()
5879 set (parent "${feature} " )
59- set (item " * ${feature} " )
80+ string (REGEX REPLACE "^(ext|sapi)/" "" item "${feature} " )
81+ string (PREPEND item " * " )
6082 if (feature MATCHES "^ext/([^ ]+)$" )
6183 if (CMAKE_MATCH_1)
6284 get_target_property (type php_${CMAKE_MATCH_1} TYPE )
0 commit comments