diff --git a/m4/ac_lua_devel.m4 b/m4/ac_lua_devel.m4 index 9737d78..8d1df01 100644 --- a/m4/ac_lua_devel.m4 +++ b/m4/ac_lua_devel.m4 @@ -8,11 +8,12 @@ AC_ARG_WITH(lua, [ac_cv_use_lua="$with_lua"], [ac_cv_use_lua="yes"]) AC_CACHE_CHECK([whether to compile with Lua support], [ac_cv_use_lua], [ac_cv_use_lua=no]) -if test "xac_cv_use_lua" != "xno"; then +if test "x$ac_cv_use_lua" != "xno"; then AC_DEFINE(HAVE_LUA, 1, [Define to 1 if you have Lua headers and libraries]) -AM_CONDITIONAL(USE_LUA, test "x$ac_cv_use_lua" != "x") fi + +AM_CONDITIONAL(USE_LUA, test "x$ac_cv_use_lua" != "xno") ])