aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 951e67e..b100b48 100755
--- a/configure
+++ b/configure
@@ -354,12 +354,16 @@ CONFIG_LUA=0
if test "$lua" != "no" ; then
- printf "checking for liblua...\n"
+ printf "checking for liblua >= 5.2 ...\n"
cat > "$tmpc" <<EOF
#include <lua.h>
#include <lauxlib.h>
+#if LUA_VERSION_NUM < 502
+#error "Need at least Lua 5.2"
+#endif
+
int main(int argc, char *argv[]) {
lua_State *L = luaL_newstate();
luaL_openlibs(L);