diff -urN PyQt-x11-gpl-4.8.1.old/configure.py PyQt-x11-gpl-4.8.1/configure.py
--- PyQt-x11-gpl-4.8.1.old/configure.py 2010-12-10 09:21:48.000000000 +0100
+++ PyQt-x11-gpl-4.8.1/configure.py     2010-12-10 10:16:42.485684357 +0100
@@ -871,7 +871,7 @@
         makefile.generate()
         tool.append("pyuic")

-        if "QtXml" in pyqt_modules:
+        if "QtXml" in pyqt_modules and "QtGui" in pyqt_modules:
             sipconfig.inform("Creating pylupdate4 Makefile...")

             makefile = sipconfig.ProgramMakefile(
@@ -896,6 +896,14 @@
             makefile = pyrccMakefile()
             makefile.generate()
             tool.append("pyrcc")
+
+        elif "QtXml" in pyqt_modules:
+            sipconfig.inform("Creating pyrcc4 Makefile...")
+
+            makefile = pyrccMakefile()
+            makefile.generate()
+            tool.append("pyrcc")
+
         else:
             sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")

