--- qt4/configure.orig	2011-11-10 18:48:29.351058392 -0500
+++ qt4/configure	2011-11-10 18:50:40.971711056 -0500
@@ -8255,11 +8255,13 @@
 fi

 # X11/Unix/Mac only configs
+if [ "$XPLATFORM_MINGW" != "yes" ]; then
 [ "$CFG_ICONV" = "no" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICONV"
 [ "$CFG_GLIB" != "yes" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GLIB"
 [ "$CFG_QGTKSTYLE" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STYLE_GTK"
-if [ "$XPLATFORM_SYMBIAN" = "no" ]; then
-    # Do not apply following negative X11/Unix/Mac only flags on Symbian, so that
+fi
+if [ "$XPLATFORM_SYMBIAN" = "no" -a "$XPLATFORM_MINGW" != "yes" ]; then
+    # Do not apply following negative X11/Unix/Mac only flags on Symbian or MinGW, so that
     # configuration matches with the one generated by configure executable tool
     [ "$CFG_CUPS" = "no" ]       && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CUPS"
     [ "$CFG_GSTREAMER" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GSTREAMER"
