Commits

Anonymous committed 4af52f1 Merge

merge

Comments (0)

Files changed (1)

     missing=[]
 
     env.Append(CPPDEFINES=["HAVE_CONFIG_H"])
+
+    #Compiler check
+    if not conf.CheckCC():
+        print "C compiler does not work"
+        missing.append("C compiler")
+    if not conf.CheckCXX():
+        print "CXX compiler does not work"
+        missing.append("CXX compiler")
+
     #Simple checks for required libraries
     if not conf.CheckLib("SDL") and not server_only:
         print "Could not find libSDL"
     except AttributeError:
         env.Clone = env.Copy
     
-    if not env['CC']:
-        print "No compiler found in PATH. Please install gcc or another compiler."
-        Exit(1)
-    
     env["VERSION"] = "0.9.4.4"
     establish_options(env)
     #Add the paths to important mingw libraries