@@ -84,6 +84,10 @@ sub GenerateFiles {
8484print O" #define USE_SSL 1\n " if ($self -> {options }-> {openssl });
8585print O" #define ENABLE_NLS 1\n " if ($self -> {options }-> {nls });
8686print O" #define LOCALEDIR\" /usr/local/pgsql/share/locale\"\n " if ($self -> {options }-> {nls });
87+ if ($self -> {options }-> {xml }) {
88+ print O" #define HAVE_LIBXML2\n " ;
89+ print O" #define USE_LIBXML\n " ;
90+ }
8791if ($self -> {options }-> {krb5 }) {
8892print O" #define KRB5 1\n " ;
8993print O" #define HAVE_KRB5_ERROR_TEXT_DATA 1\n " ;
@@ -246,6 +250,11 @@ sub AddProject {
246250$proj -> AddLibrary($self -> {options }-> {krb5 } .' \lib\i386\krb5_32.lib' );
247251$proj -> AddLibrary($self -> {options }-> {krb5 } .' \lib\i386\comerr32.lib' );
248252}
253+ if ($self -> {options }-> {xml }) {
254+ $proj -> AddIncludeDir($self -> {options }-> {xml } .' \include' );
255+ $proj -> AddIncludeDir($self -> {options }-> {iconv } .' \include' );
256+ $proj -> AddLibrary($self -> {options }-> {xml } .' \lib\libxml2.lib' );
257+ }
249258return $proj ;
250259}
251260