Commit 47508ae9 authored by Dominique Martinet's avatar Dominique Martinet Committed by Rémi Denis-Courmont

configure.ac - lua checks

Makes the configure throw an error when lua is not found and
--enable-lua has been specified.
Also checks for liblua with libmath, so it actually works when there
is no pkgconfig file.

Slightly modified by Rémi Denis-Courmont
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 370f9167
......@@ -1702,8 +1702,10 @@ then
AC_CHECK_LIB( lua , luaL_newstate,
[LUA_LIBS="-llua"],
[ have_lua=no
AC_MSG_WARN([lua >= 5.1 not found!])
])
AS_IF([test "x${enable_lua}" = "xyes"],
[AC_MSG_ERROR([lua >= 5.1 not found!])],
[AC_MSG_WARN([lua >= 5.1 not found!])])
], [-lm])
)
)
])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment