Commit d08cb255 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Make Lua support fully optional

parent 20210238
Showing with 3 additions and 2 deletions
+3 -2
......@@ -270,6 +270,7 @@ HTOP_LUA_VERSION=5.3.4
AC_ARG_ENABLE(lua, [AS_HELP_STRING([--enable-lua], [enable Lua support])], ,enable_lua="yes")
if test "x$enable_lua" = xyes; then
AC_DEFINE(HAVE_LUA, 1, [Define if Lua scripting is to be enabled.])
AC_ARG_ENABLE(bundled-lua, [AC_HELP_STRING([--enable-bundled-lua], [compile bundled copy of Lua])],, enable_bundled_lua="default")
......@@ -281,7 +282,7 @@ if test "x$enable_lua" = xyes; then
AC_MSG_ERROR([Could not find Lua libraries in the system.])
else
AX_LUA_HEADERS
AX_LUA_TRY_LIB_VERSION([501], [504], [], [
AX_LUA_TRY_LIB_VERSION([503], [504], [], [
AC_MSG_ERROR([Could not find a suitable version of Lua.])
])
fi
......@@ -293,7 +294,7 @@ if test "x$enable_lua" = xyes; then
enable_bundled_lua=yes
else
AX_LUA_HEADERS
AX_LUA_TRY_LIB_VERSION([501], [504], [], [enable_bundled_lua="yes"])
AX_LUA_TRY_LIB_VERSION([503], [504], [], [enable_bundled_lua="yes"])
fi
fi
......
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