Autodetect lua5.1 (not sure how to detect lua-5.1 or just lua)
This commit is contained in:
parent
268795eec1
commit
929d99f80c
15
SConscript
15
SConscript
@ -77,12 +77,15 @@ except:
|
|||||||
env.Append(CPPPATH=GetOption("sdl-dir"))
|
env.Append(CPPPATH=GetOption("sdl-dir"))
|
||||||
|
|
||||||
#Find correct lua include dir
|
#Find correct lua include dir
|
||||||
if(GetOption("lua-dir")):
|
try:
|
||||||
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
|
env.ParseConfig('pkg-config --cflags lua5.1')
|
||||||
print "lua5.1 headers not found or not installed"
|
except:
|
||||||
raise SystemExit(1)
|
if(GetOption("lua-dir")):
|
||||||
else:
|
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
|
||||||
env.Append(CPPPATH=GetOption("lua-dir"))
|
print "lua5.1 headers not found or not installed"
|
||||||
|
raise SystemExit(1)
|
||||||
|
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 conf.CheckLib('fftw3f') and not conf.CheckLib('fftw3f-3'):
|
||||||
|
Reference in New Issue
Block a user