On Linux I've built my qt-embedded-free-3.3.2 library with the -threaded 
option. My qt library gets installed as libqte-mt:

$ ls libqt*
libqte-mt.la   libqte-mt.so    libqte-mt.so.3.3
libqte-mt.prl  libqte-mt.so.3  libqte-mt.so.3.3.2

sip-4.0.1 doesn't recognize this configuration. Attached is a diff to teach it 
about "qte-mt".

--gilbert
--- configure.py.orig	2004-07-28 22:14:31.000000000 -0500
+++ configure.py	2004-07-28 22:16:15.000000000 -0500
@@ -103,7 +103,7 @@
     print "    -d dir         where the SIP module will be installed [default %s]" % opt_sipmoddir
     print "    -e dir         where the SIP header file will be installed [default %s]" % opt_sipincdir
     print "    -k             build the SIP module as a static library"
-    print "    -l Qt-library  explicitly specify the type of Qt library, either qt, qt-mt, qte or qtmt"
+    print "    -l Qt-library  explicitly specify the type of Qt library, either qt, qt-mt, qte-mt, qte or qtmt"
     print "    -p platform    the platform/compiler configuration [default the Qt configuration if enabled or %s]" % default_platform
     print "    -u             build with debugging symbols"
     print "    -v dir         where .sip files are normally installed [default %s]" % opt_sipsipdir
@@ -395,6 +395,7 @@
         edlib = is_qt_library(generator, "qt-mtedu")
         evlib = is_qt_library(generator, "qt-mteval")
         emlib = is_qt_library(generator, "qte")
+        etlib = is_qt_library(generator, "qte-mt")
 
         # Borland likes to be a little different.
         bmtlib = is_qt_library(generator, "qtmt")
@@ -423,6 +424,10 @@
             opt_qtlib = "qte"
             names.append(opt_qtlib)
 
+        if etlib:
+            opt_qtlib = "qte-mt"
+            names.append(opt_qtlib)
+
         if bmtlib:
             opt_qtlib = "qtmt"
             names.append(opt_qtlib)
@@ -442,7 +447,7 @@
             siputils.error("These Qt libraries were found: %s. Use the -l argument to explicitly specify which you want to use." % string.join(names))
 
     # See if Qt has thread support.
-    if opt_qtlib in ("qt-mt", "qt-mtedu", "qt-mteval", "qtmt", "qtmtedu", "qtmteval"):
+    if opt_qtlib in ("qt-mt", "qte-mt", "qt-mtedu", "qt-mteval", "qtmt", "qtmtedu", "qtmteval"):
         global qt_threaded
         qt_threaded = 1
 
@@ -775,7 +780,7 @@
         elif opt == "-k":
             opt_static = 1
         elif opt == "-l":
-            if arg in ("qt", "qt-mt", "qt-mtedu", "qt-mteval", "qte", "qtmt", "qtmtedu"):
+            if arg in ("qt", "qt-mt", "qte-mt", "qt-mtedu", "qt-mteval", "qte", "qtmt", "qtmtedu"):
                 opt_qtlib = arg
             else:
                 usage()

Reply via email to