|
3 | 3 | ARG_ENABLE("intl", "Enable internationalization support", "no");
|
4 | 4 |
|
5 | 5 | if (PHP_INTL != "no") {
|
6 |
| - if (CHECK_LIB("icuuc.lib", "intl", PHP_INTL) && |
| 6 | + if (CHECK_LIB("icudt.lib", "intl", PHP_INTL) && |
| 7 | + CHECK_LIB("icuin.lib", "intl", PHP_INTL) && |
| 8 | + CHECK_LIB("icuio.lib", "intl", PHP_INTL) && |
| 9 | + CHECK_LIB("icuuc.lib", "intl", PHP_INTL) && |
7 | 10 | CHECK_HEADER_ADD_INCLUDE("unicode/utf.h", "CFLAGS_INTL")) {
|
8 | 11 | // always build as shared - zend_strtod.c/ICU type conflict
|
9 | 12 | EXTENSION("intl", "php_intl.c intl_convert.c intl_convertcpp.cpp intl_error.c ", true,
|
@@ -116,16 +119,9 @@ if (PHP_INTL != "no") {
|
116 | 119 | codepointiterator_methods.cpp ",
|
117 | 120 | "intl");
|
118 | 121 |
|
119 |
| - ADD_FLAG("LIBS_INTL", "icudt.lib icuin.lib icuio.lib"); |
120 |
| - |
121 | 122 | /* Compat for ICU before 58.1.*/
|
122 |
| - if (CHECK_LIB("icule.lib", "intl", PHP_INTL)) { |
123 |
| - ADD_FLAG("LIBS_INTL", "icule.lib"); |
124 |
| - } |
125 |
| - if (CHECK_LIB("iculx.lib", "intl", PHP_INTL)) { |
126 |
| - ADD_FLAG("LIBS_INTL", "iculx.lib"); |
127 |
| - } |
128 |
| - |
| 123 | + CHECK_LIB("icule.lib", "intl", PHP_INTL); |
| 124 | + CHECK_LIB("iculx.lib", "intl", PHP_INTL); |
129 | 125 | ADD_FLAG("CFLAGS_INTL", "/std:c++17 /EHsc /DUNISTR_FROM_CHAR_EXPLICIT=explicit /DUNISTR_FROM_STRING_EXPLICIT=explicit /DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 /DU_HIDE_OBSOLETE_UTF_OLD_H=1");
|
130 | 126 | } else {
|
131 | 127 | WARNING("intl not enabled; libraries and/or headers not found");
|
|
0 commit comments