From: Jan-E Date: Fri, 7 Oct 2016 01:48:45 +0000 (+0200) Subject: Enable libicu (IDNA2008/IDNA2003) X-Git-Tag: RELEASE_3_1_0~6^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=90e717d5004580060deedae505512148e910c768;p=m6w6%2Fext-http Enable libicu (IDNA2008/IDNA2003) https://github.com/m6w6/ext-http/issues/55 Add PHP_HTTP_HAVE_LIBICU support --- diff --git a/config.w32 b/config.w32 index de89b5f..74b852f 100644 --- a/config.w32 +++ b/config.w32 @@ -90,6 +90,17 @@ if (PHP_HTTP != "no") { ADD_EXTENSION_DEP("http", "iconv", true); } + if (PHP_INTL != "no") { + ADD_EXTENSION_DEP("http", "intl", true); + AC_DEFINE("HAVE_IDNA2008", 1, ""); + AC_DEFINE("HAVE_UIDNA_IDNTOASCII", 1, ""); + AC_DEFINE("HAVE_UIDNA_NAMETOASCII_UTF8", 1, ""); + 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"); + } + if (PHP_CURL != "no") { ADD_EXTENSION_DEP("http", "curl", true); }