From e687c4c3c73f1991f05d821e109f289f805306cf Mon Sep 17 00:00:00 2001
From: Andrew Dunstan <andrew@dunslane.net>
Date: Wed, 4 Apr 2007 18:45:59 +0000
Subject: [PATCH] Don't install files for xml2 when building without libxml.

---
 src/tools/msvc/Install.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
index c7b18b7cf94..599a5009785 100644
--- a/src/tools/msvc/Install.pm
+++ b/src/tools/msvc/Install.pm
@@ -3,7 +3,7 @@ package Install;
 #
 # Package that provides 'make install' functionality for msvc builds
 #
-# $PostgreSQL: pgsql/src/tools/msvc/Install.pm,v 1.8 2007/04/04 16:34:43 mha Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/Install.pm,v 1.9 2007/04/04 18:45:59 adunstan Exp $
 #
 use strict;
 use warnings;
@@ -226,6 +226,7 @@ sub CopyContribFiles
         next if ($d =~ /^\./);
         next unless (-f "contrib/$d/Makefile");
         next if ($d eq "sslinfo" && !defined($config->{openssl}));
+        next if ($d eq "xml2" && !defined($config->{xml}));
 
         my $mf = read_file("contrib/$d/Makefile");
         $mf =~ s{\\s*[\r\n]+}{}mg;