Don't check for libs that are frameworks under OS X
This commit is contained in:
parent
f30ef6004a
commit
9ba08768a4
49
SConscript
49
SConscript
@ -68,33 +68,36 @@ if GetOption("toolprefix"):
|
|||||||
#Check for headers and libraries
|
#Check for headers and libraries
|
||||||
conf = Configure(env)
|
conf = Configure(env)
|
||||||
|
|
||||||
try:
|
if not GetOption("macosx"):
|
||||||
env.ParseConfig('sdl-config --cflags')
|
try:
|
||||||
env.ParseConfig('sdl-config --libs')
|
env.ParseConfig('sdl-config --cflags')
|
||||||
except:
|
env.ParseConfig('sdl-config --libs')
|
||||||
conf.CheckLib("SDL")
|
except:
|
||||||
if(GetOption("sdl-dir")):
|
conf.CheckLib("SDL")
|
||||||
if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'):
|
if(GetOption("sdl-dir")):
|
||||||
print "sdl headers not found or not installed"
|
if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'):
|
||||||
raise SystemExit(1)
|
print "sdl headers not found or not installed"
|
||||||
else:
|
raise SystemExit(1)
|
||||||
env.Append(CPPPATH=GetOption("sdl-dir"))
|
else:
|
||||||
|
env.Append(CPPPATH=GetOption("sdl-dir"))
|
||||||
|
|
||||||
#Find correct lua include dir
|
#Find correct lua include dir
|
||||||
try:
|
if not GetOption("macosx"):
|
||||||
env.ParseConfig('pkg-config --cflags lua5.1')
|
try:
|
||||||
except:
|
env.ParseConfig('pkg-config --cflags lua5.1')
|
||||||
if(GetOption("lua-dir")):
|
except:
|
||||||
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
|
if(GetOption("lua-dir")):
|
||||||
print "lua5.1 headers not found or not installed"
|
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
|
||||||
raise SystemExit(1)
|
print "lua5.1 headers not found or not installed"
|
||||||
else:
|
raise SystemExit(1)
|
||||||
env.Append(CPPPATH=GetOption("lua-dir"))
|
else:
|
||||||
|
env.Append(CPPPATH=GetOption("lua-dir"))
|
||||||
|
|
||||||
#Check for FFT lib
|
#Check for FFT lib
|
||||||
if not conf.CheckLib('fftw3f') and not conf.CheckLib('fftw3f-3'):
|
if not GetOption("macosx"):
|
||||||
print "libfftw3f not found or not installed"
|
if not conf.CheckLib('fftw3f') and not conf.CheckLib('fftw3f-3'):
|
||||||
raise SystemExit(1)
|
print "libfftw3f not found or not installed"
|
||||||
|
raise SystemExit(1)
|
||||||
|
|
||||||
#Check for Bzip lib
|
#Check for Bzip lib
|
||||||
if not conf.CheckLib('bz2'):
|
if not conf.CheckLib('bz2'):
|
||||||
|
Loading…
Reference in New Issue
Block a user