1
0
Fork 0

[configure.ac] Let build with lua52 or lua53 also. Refs #46

Preferred is lua51, but next are checked 53, and finally 52
This commit is contained in:
Witold Filipczyk 2020-05-22 21:01:15 +02:00
parent b3ae1caf8b
commit 058c3f6d0a
1 changed files with 1 additions and 1 deletions

View File

@ -893,7 +893,7 @@ if test -z "$disable_lua"; then
withval="";
fi
for luadir in "$withval" "" /usr /usr/local; do
for suffix in "" 5.1 51; do
for suffix in "" 5.1 51 5.3 53 5.2 52; do
if test "$cf_result" = no && ( test -f "$luadir/include/lua.h" || \
test -f "$luadir/include/lua$suffix/lua.h" ) ; then
LUA_LIBS="-L$luadir/lib -llua$suffix -lm"