check for lib named 'lua' when using --lua52
This commit is contained in:
parent
e308dd73bb
commit
b80cc932d1
@ -262,7 +262,7 @@ def findLibs(env, conf):
|
|||||||
env.Append(CPPDEFINES=["LUAJIT"])
|
env.Append(CPPDEFINES=["LUAJIT"])
|
||||||
luaver = "luajit"
|
luaver = "luajit"
|
||||||
elif GetOption('lua52'):
|
elif GetOption('lua52'):
|
||||||
if not conf.CheckLib(['lua5.2', 'lua-5.2', 'lua52']):
|
if not conf.CheckLib(['lua5.2', 'lua-5.2', 'lua52', 'lua']):
|
||||||
FatalError("lua5.2 development library not found or not installed")
|
FatalError("lua5.2 development library not found or not installed")
|
||||||
env.Append(CPPDEFINES=["LUA_COMPAT_ALL"])
|
env.Append(CPPDEFINES=["LUA_COMPAT_ALL"])
|
||||||
luaver = "lua5.2"
|
luaver = "lua5.2"
|
||||||
@ -295,8 +295,8 @@ def findLibs(env, conf):
|
|||||||
FatalError("lua.h not found")
|
FatalError("lua.h not found")
|
||||||
|
|
||||||
#needed for static lua compiles (in some cases)
|
#needed for static lua compiles (in some cases)
|
||||||
if platform == "Linux" and not conf.CheckLib('dl'):
|
if platform == "Linux":
|
||||||
FatalError("libdl not found")
|
conf.CheckLib('dl')
|
||||||
|
|
||||||
#Look for fftw
|
#Look for fftw
|
||||||
if not GetOption('nofft') and not conf.CheckLib(['fftw3f', 'fftw3f-3', 'libfftw3f-3', 'libfftw3f']):
|
if not GetOption('nofft') and not conf.CheckLib(['fftw3f', 'fftw3f-3', 'libfftw3f-3', 'libfftw3f']):
|
||||||
|
Reference in New Issue
Block a user