- 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('%(WXCONFIG)s --cxx' % self.__dict__, '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('%(WXCONFIG)s --cc' % self.__dict__, 'r').read()[:-1]
+ if not self.CC:
+ print "Warning: C compiler not specified (CC). Assuming cc"
+ self.CC = 'cc'