trying to fix windows/configure issues reported by Tim Van Holder Daniel

* configure.in xml2-config.in: trying to fix windows/configure
  issues reported by Tim Van Holder
Daniel
diff --git a/configure.in b/configure.in
index 253b63a..2bff06b 100644
--- a/configure.in
+++ b/configure.in
@@ -624,6 +624,17 @@
     hppa*-hp-mpeix)
         NEED_TRIO=1
 	;;
+    *-*-mingw* | *-*-cygwin* | *-*-msvc* )
+        # If the host is Windows, and shared libraries are disabled, we
+        # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
+        # work properly (without it, xmlexports.h would force the use of
+        # DLL imports, which obviously aren't present in a static
+        # library).
+        if test "x$enable_shared" = "xno"; then
+            XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
+            CFLAGS="$CFLAGS -DLIBXML_STATIC"
+        fi
+        ;;
 esac