mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-21 23:45:20 +02:00
Autodetect lua5.1 (not sure how to detect lua-5.1 or just lua)
This commit is contained in:
committed by
Simon Robertshaw
parent
268795eec1
commit
929d99f80c
@@ -77,7 +77,10 @@ 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:
|
||||||
|
env.ParseConfig('pkg-config --cflags lua5.1')
|
||||||
|
except:
|
||||||
|
if(GetOption("lua-dir")):
|
||||||
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
|
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
|
||||||
print "lua5.1 headers not found or not installed"
|
print "lua5.1 headers not found or not installed"
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
Reference in New Issue
Block a user