Skip to content

Commit 8181567

Browse files
committed
Fix PEAR installation and add various improvements
- Configure log now also lists always-enabled PHP extensions and makes it more clear what is being enabled - Added missing "php" libdir prefix (will be refactored further) - PEAR temporary directory is now customizable and is created inside the DESTDIR when it is defined - Removed non-existent 'detect_unicode' INI directive in PEAR - Added fixes for the Windows installation and its absolute path format
1 parent e6b9d3a commit 8181567

File tree

13 files changed

+165
-34
lines changed

13 files changed

+165
-34
lines changed

cmake/cmake/Configuration.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ mark_as_advanced(PHP_INCLUDE_PREFIX)
6262
set(
6363
PHP_CONFIG_FILE_SCAN_DIR ""
6464
CACHE PATH "The path where to scan for additional INI configuration files; By\
65-
default it is empty value; Pass it as a relative string inside the install\
65+
default it is empty value; Pass it as a relative path inside the install\
6666
prefix, which will be automatically prepended; If given as an absolute path,\
6767
prefix is not prepended."
6868
)

cmake/cmake/modules/PHP/FeatureSummary.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ block()
6262
endforeach()
6363

6464
if(sapis)
65-
message(STATUS "Enabled SAPIs:\n\n${sapis}")
65+
message(STATUS "Enabled PHP SAPIs:\n\n${sapis}")
6666
endif()
6767

6868
if(extensions)
69-
message(STATUS "Enabled extensions:\n\n${extensions}")
69+
message(STATUS "Enabled PHP extensions:\n\n${extensions}")
7070
endif()
7171

7272
if(php)

cmake/ext/date/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
include(CheckIncludeFile)
2+
include(FeatureSummary)
3+
4+
add_feature_info(
5+
"ext/date"
6+
ON
7+
"Date and time"
8+
)
29

310
# Check for headers needed by timelib.
411
check_include_file(io.h HAVE_IO_H)

cmake/ext/hash/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
include(FeatureSummary)
22
include(PHP/CheckCompilerFlag)
33

4+
add_feature_info(
5+
"ext/hash"
6+
ON
7+
"HASH message digest framework"
8+
)
9+
410
option(EXT_HASH_MHASH "Enable the mhash support (deprecated as of PHP 8.1)" OFF)
511

612
add_feature_info(

cmake/ext/json/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
include(FeatureSummary)
2+
3+
add_feature_info(
4+
"ext/json"
5+
ON
6+
"JavaScript Object Notation"
7+
)
8+
19
add_library(php_json STATIC)
210

311
target_sources(

cmake/ext/pcre/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ include(CMakePushCheckState)
44
include(FeatureSummary)
55
include(PHP/CheckCompilerFlag)
66

7+
add_feature_info(
8+
"ext/pcre"
9+
ON
10+
"(Perl-compatible) regular expressions"
11+
)
12+
713
option(
814
EXT_PCRE_EXTERNAL
915
"Use external (system) PCRE library in pcre extension instead of the bundled\

cmake/ext/random/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
include(CheckIncludeFiles)
22
include(CheckSymbolExists)
3+
include(FeatureSummary)
4+
5+
add_feature_info(
6+
"ext/random"
7+
ON
8+
"Random number generators and functions related to randomness"
9+
)
310

411
add_library(php_random STATIC)
512

cmake/ext/reflection/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
include(FeatureSummary)
2+
3+
add_feature_info(
4+
"ext/reflection"
5+
ON
6+
"Reflection API to introspect PHP code"
7+
)
8+
19
add_library(php_reflection STATIC php_reflection.c)
210

311
target_compile_definitions(

cmake/ext/spl/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
include(FeatureSummary)
2+
3+
add_feature_info(
4+
"ext/spl"
5+
ON
6+
"Standard PHP library"
7+
)
8+
19
add_library(php_spl STATIC)
210

311
target_sources(

cmake/ext/standard/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ include(CMakePushCheckState)
66
include(FeatureSummary)
77
include(PHP/SearchLibraries)
88

9+
add_feature_info(
10+
"ext/standard"
11+
ON
12+
"PHP core extension"
13+
)
14+
915
option(EXT_STANDARD_ARGON2 "Include the Argon2 support in password_*" OFF)
1016

1117
add_feature_info(

0 commit comments

Comments
 (0)