We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 211dc60 commit 037855fCopy full SHA for 037855f
ext/intl/config.m4
@@ -80,7 +80,16 @@ if test "$PHP_INTL" != "no"; then
80
breakiterator/codepointiterator_methods.cpp"
81
82
PHP_REQUIRE_CXX()
83
- PHP_CXX_COMPILE_STDCXX(11, mandatory, PHP_INTL_STDCXX)
+
84
+ AC_MSG_CHECKING([if intl requires -std=gnu++17])
85
+ AS_IF([test "$PKG_CONFIG icu-uc --atleast-version=74"],[
86
+ AC_MSG_RESULT([yes])
87
+ PHP_CXX_COMPILE_STDCXX(17, mandatory, PHP_INTL_STDCXX)
88
+ ],[
89
+ AC_MSG_RESULT([no])
90
+ PHP_CXX_COMPILE_STDCXX(11, mandatory, PHP_INTL_STDCXX)
91
+ ])
92
93
PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS"
94
case $host_alias in
95
*cygwin*) PHP_INTL_CXX_FLAGS="$PHP_INTL_CXX_FLAGS -D_POSIX_C_SOURCE=200809L"
0 commit comments