diff -Naur PyQt-x11-gpl-3.16/configure.py PyQt-x11-gpl-3.16.patched/configure.py --- PyQt-x11-gpl-3.16/configure.py 2006-03-25 01:09:06.000000000 +0100 +++ PyQt-x11-gpl-3.16.patched/configure.py 2006-07-08 20:56:33.000000000 +0200 @@ -1026,9 +1026,9 @@ """ # Get the name of the qmake configuration file to take the macros from. if "QMAKESPEC" in os.environ.keys(): - fname = os.path.join(qt_dir, "mkspecs", os.environ["QMAKESPEC"], "qmake.conf") + fname = os.path.join(os.environ["QTDATADIR"], "mkspecs", os.environ["QMAKESPEC"], "qmake.conf") else: - fname = os.path.join(qt_dir, "mkspecs", "default", "qmake.conf") + fname = os.path.join(os.environ["QTDATADIR"], "mkspecs", "default", "qmake.conf") if not os.access(fname, os.F_OK): sipconfig.error("Unable to find the default configuration file %s. You can use the QMAKESPEC environment variable to specify the correct platform instead of \"default\"." % fname)