From 2d1bd5158e9d62fa9a45729f5e2ae64737eb0057 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Wed, 30 Sep 2015 19:33:19 -0400 Subject: [PATCH] scons: tweak configuration steps --- SConstruct | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 393d5154..f9268ab2 100644 --- a/SConstruct +++ b/SConstruct @@ -177,10 +177,14 @@ if path.exists('deps/lib'): if path.exists('deps/include'): env.Append(CPPPATH='deps/include') +env['CONFIGUREDIR'] = '#build/conf' +env['CONFIGURELOG'] = '#build/conf/config.log' if not env.GetOption('clean'): - env['CONFIGUREDIR'] = '#build/conf' - env['CONFIGURELOG'] = '#build/conf/config.log' conf = Configure(env) + + if not conf.CheckCC() or not conf.CheckCXX(): + print "There's a problem with your compiler!" + Exit(1) if not conf.CheckLib('zlib' if str(platform) == "win32" else 'z'): print 'zlib must be installed!'