]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/distrib/build.py
fixed bug in reference to tnoneng.tex
[wxWidgets.git] / utils / wxPython / distrib / build.py
index 3ff35d745d02b1615e632e48da0b28ec2b4b9a0f..5b4692ceca25a441297fc904d9d37a659cfdfc4b 100755 (executable)
@@ -119,7 +119,7 @@ import sys, os, string, getopt
 # This is really the wxPython version number, and will be placed in the
 # Makefiles for use with the distribution related targets.
 
-__version__ = '2.1.5'
+__version__ = '2.1.12'
 
 #----------------------------------------------------------------------------
 
@@ -322,11 +322,15 @@ class BuildConfig:
         # so we can do some sanity checking...
         if sys.platform != 'win32':
            if not self.CCC:
-               print "Warning: C++ compiler not specified (CCC). Assuming c++"
-               self.CCC = 'c++'
-           if not self.CC:
-               print "Warning: C compiler not specified (CC). Assuming cc"
-               self.CC = 'cc'
+                self.CCC = os.popen('wx-config --cxx', 'r').read()[:-1]
+                if not self.CCC:
+                    print "Warning: C++ compiler not specified (CCC). Assuming c++"
+                    self.CCC = 'c++'
+            if not self.CC:
+                self.CCC = os.popen('wx-config --cc', 'r').read()[:-1]
+                if not self.CC:
+                    print "Warning: C compiler not specified (CC). Assuming cc"
+                    self.CC = 'cc'
 
     #------------------------------------------------------------
     def findMFValue(self, mfText, st):