@@ -220,6 +220,10 @@ s{PG_VERSION_STR "[^"]+"}{PG_VERSION_STR "PostgreSQL $self->{strver}$extraver, c
220220{
221221print $o " #define ENABLE_GSS 1\n " ;
222222}
223+ if ($self -> {options }-> {icu })
224+ {
225+ print $o " #define USE_ICU 1\n " ;
226+ }
223227if (my $port =$self -> {options }-> {" --with-pgport" })
224228{
225229print $o " #undef DEF_PGPORT\n " ;
@@ -555,6 +559,13 @@ sub AddProject
555559$proj -> AddIncludeDir($self -> {options }-> {iconv } .' \include' );
556560$proj -> AddLibrary($self -> {options }-> {iconv } .' \lib\iconv.lib' );
557561}
562+ if ($self -> {options }-> {icu })
563+ {
564+ $proj -> AddIncludeDir($self -> {options }-> {icu } .' \include' );
565+ $proj -> AddLibrary($self -> {options }-> {icu } .' \lib\icuin.lib' );
566+ $proj -> AddLibrary($self -> {options }-> {icu } .' \lib\icuuc.lib' );
567+ $proj -> AddLibrary($self -> {options }-> {icu } .' \lib\icudt.lib' );
568+ }
558569if ($self -> {options }-> {xml })
559570{
560571$proj -> AddIncludeDir($self -> {options }-> {xml } .' \include' );
@@ -677,6 +688,7 @@ sub GetFakeConfigure
677688$cfg .=' --with-libxml' if ($self -> {options }-> {xml });
678689$cfg .=' --with-libxslt' if ($self -> {options }-> {xslt });
679690$cfg .=' --with-gssapi' if ($self -> {options }-> {gss });
691+ $cfg .=' --with-icu' if ($self -> {options }-> {icu });
680692$cfg .=' --with-tcl' if ($self -> {options }-> {tcl });
681693$cfg .=' --with-perl' if ($self -> {options }-> {perl });
682694$cfg .=' --with-python' if ($self -> {options }-> {python });