@@ -234,6 +234,10 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
234234print O" #define DEF_PGPORT$port \n " ;
235235print O" #define DEF_PGPORT_STR\" $port \"\n " ;
236236}
237+ if ($self -> {options }-> {icu })
238+ {
239+ print O" #define USE_ICU\n " ;
240+ }
237241print O" #define VAL_CONFIGURE\" "
238242 .$self -> GetFakeConfigure() ." \"\n " ;
239243print O" #endif /* IGNORE_CONFIGURED_SETTINGS */\n " ;
@@ -528,6 +532,14 @@ sub AddProject
528532$proj -> AddIncludeDir($self -> {options }-> {xslt } .' \include' );
529533$proj -> AddLibrary($self -> {options }-> {xslt } .' \lib\libxslt.lib' );
530534}
535+ if ($self -> {options }-> {icu })
536+ {
537+ my $libdir =$self -> {options }-> {icu }.' \lib' ;
538+ $libdir .=' \lib64' if $self -> {platform }eq ' x64' ;
539+ $proj -> AddIncludeDir($self -> {options }-> {icu } .' \include' );
540+ $proj -> AddLibrary($libdir .' \icuin.lib' );
541+ $proj -> AddLibrary($libdir .' \icuuc.lib' );
542+ }
531543return $proj ;
532544}
533545
@@ -639,7 +651,7 @@ sub GetFakeConfigure
639651$cfg .=' --with-tcl' if ($self -> {options }-> {tcl });
640652$cfg .=' --with-perl' if ($self -> {options }-> {perl });
641653$cfg .=' --with-python' if ($self -> {options }-> {python });
642-
654+ $cfg .= ' --with-icu ' if ( $self -> { options } -> { icu });
643655return $cfg ;
644656}
645657