From: Jan Ehrhardt Date: Thu, 24 Oct 2019 15:23:36 +0000 (+0200) Subject: config.w32: fix missing icule.lib and iculx.lib X-Git-Tag: RELEASE_3_2_3~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f94c237788db6949e7ea63f360ad45412de50267;p=m6w6%2Fext-http config.w32: fix missing icule.lib and iculx.lib icule.lib and iculx.lib have been removed in ICU 58.1. Add thesame checks as in https://github.com/php/php-src/blob/PHP-7.4/ext/intl/config.w32#L123 --- diff --git a/config.w32 b/config.w32 index 929faaa..e7f265d 100644 --- a/config.w32 +++ b/config.w32 @@ -98,7 +98,14 @@ if (PHP_HTTP != "no") { AC_DEFINE("PHP_HTTP_HAVE_LIBICU", 1, ""); AC_DEFINE("PHP_HTTP_HAVE_IDNA2003", 1, ""); AC_DEFINE("PHP_HTTP_HAVE_IDNA2008", 1, ""); - ADD_FLAG("LIBS_HTTP", "icuuc.lib icudt.lib icuin.lib icuio.lib icule.lib iculx.lib"); + ADD_FLAG("LIBS_HTTP", "icuuc.lib icudt.lib icuin.lib icuio.lib"); + /* Compat for ICU before 58.1.*/ + if (CHECK_LIB("icule.lib", "http", PHP_HTTP)) { + ADD_FLAG("LIBS_HTTP", "icule.lib"); + } + if (CHECK_LIB("iculx.lib", "http", PHP_HTTP)) { + ADD_FLAG("LIBS_HTTP", "iculx.lib"); + } } if (PHP_CURL != "no") {