Skip to content

Commit

Permalink
Merge pull request #35 from ngie-eign/fix-botched-lua-m4
Browse files Browse the repository at this point in the history
m4/lua.m4: make detection work again with pkgconf
  • Loading branch information
ngie-eign authored Jan 5, 2025
2 parents 9190270 + 51dbeb2 commit 5735970
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions m4/lua.m4
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,16 @@ dnl
AC_DEFUN([KYUA_LUA], [
lua_found=no
for lua_release in ${LUA_VERSION:-5.4 5.3}; do
AS_IF([test "${lua_found}" = no],[
PKG_CHECK_MODULES([LUA], [lua${lua_release} >= ${lua_release}],
[lua_found="lua${lua_release}"; break],[])
])
AS_IF([test "${lua_found}" = no],[
PKG_CHECK_MODULES([LUA], [lua-${lua_release} >= ${lua_release}],
[lua_found="lua-${lua_release}"; break],[])
])
AS_IF([test "${lua_found}" = no],[
PKG_CHECK_MODULES([LUA], [lua >= ${lua_release}],
[lua_found=lua; break],[])
])
PKG_CHECK_MODULES([LUA], [lua-${lua_release} >= ${lua_release}],
[lua_found="lua-${lua_release}"],[
PKG_CHECK_MODULES([LUA], [lua${lua_release} >= ${lua_release}],
[lua_found="lua${lua_release}"],[
PKG_CHECK_MODULES([LUA], [lua >= ${lua_release}],
[lua_found="lua"],[])
])])
if test "${lua_found}" != no; then
break
fi
done
AS_IF([test "${lua_found}" = no],[],[
Expand Down

0 comments on commit 5735970

Please sign in to comment.