From 6f6d60821e25c1b978c8b3f8e3e3d8128e277f06 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Tue, 15 Feb 2011 08:48:24 +0000 Subject: [PATCH] - fix intl build with ICU < 4.2, windows part --- ext/intl/config.w32 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/ext/intl/config.w32 b/ext/intl/config.w32 index e0c2cb2177..437fedb7d3 100755 --- a/ext/intl/config.w32 +++ b/ext/intl/config.w32 @@ -71,12 +71,17 @@ if (PHP_INTL != "no") { resourcebundle_class.c \ resourcebundle_iterator.c", "intl"); - ADD_SOURCES(configure_module_dirname + "/spoofchecker", "\ - spoofchecker.c \ - spoofchecker_class.c \ - spoofchecker_create.c \ - spoofchecker_main.c", - "intl"); + + if (CHECK_HEADER_ADD_INCLUDE("unicode/uspoof.h", "CFLAGS_INTL")) { + ADD_SOURCES(configure_module_dirname + "/spoofchecker", "\ + spoofchecker.c \ + spoofchecker_class.c \ + spoofchecker_create.c \ + spoofchecker_main.c", + "intl"); + AC_DEFINE("HAVE_INTL", 1, "Internationalization support enabled"); + } + ADD_SOURCES(configure_module_dirname + "/transliterator", "\ transliterator.c \ transliterator_class.c \ -- 2.40.0