]> granicus.if.org Git - python/commitdiff
Patch #629126: Detect BLT by also looking for libBLT.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 12 Dec 2002 20:23:38 +0000 (20:23 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 12 Dec 2002 20:23:38 +0000 (20:23 +0000)
setup.py

index 2827af752bb3fd5bc727fbb3b96bd3ee411a1ae2..bc49d743262b09ed84b79ec1fe97a0c394e5bab4 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -950,6 +950,10 @@ class PyBuildExt(build_ext):
                                            'BLT8.0'):
             defs.append( ('WITH_BLT', 1) )
             libs.append('BLT8.0')
+        elif self.compiler.find_library_file(lib_dirs + added_lib_dirs,
+                                           'BLT'):
+            defs.append( ('WITH_BLT', 1) )
+            libs.append('BLT')
 
         # Add the Tcl/Tk libraries
         libs.append('tk'+version)