make --with-lua=no disable lua support

This commit is contained in:
Mark Callaghan
2009-09-30 11:03:11 -07:00
parent 652eb760c3
commit def3c5981c

View File

@ -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")
])