Skip to content

Commit

Permalink
fix(build): Check for luarocks if not configured --with-system-luarocks
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 2, 2020
1 parent 6fb42db commit e8770ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ esac
AX_LUA_HEADERS
AX_LUA_LIBS

AS_IF([test "x$with_system_luarocks" != "xyes"], [], [
AS_IF([test "x$with_system_luarocks" = "xyes"], [
AX_LUA_MODULE([bit32], [bit32])
AX_LUA_MODULE([lpeg], [lpeg])
AX_LUA_MODULE([cassowary], [cassowary])
Expand All @@ -122,6 +122,9 @@ AS_IF([test "x$with_system_luarocks" != "xyes"], [], [
AX_LUA_MODULE([pl], [penlight])
AX_LUA_MODULE([std], [stdlib])
AX_LUA_MODULE([vstruct], [vstruct])
], [
AC_CHECK_PROG(HASLUAROCKS, luarocks, yes)
test "x$HASLUAROCKS" == "xyes" || AC_MSG_ERROR([luarocks is required])
])

AC_ARG_ENABLE([linklua],
Expand Down

0 comments on commit e8770ce

Please sign in to comment.