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

Make Lua support fully optional

parent 20210238
...@@ -270,6 +270,7 @@ HTOP_LUA_VERSION=5.3.4 ...@@ -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") AC_ARG_ENABLE(lua, [AS_HELP_STRING([--enable-lua], [enable Lua support])], ,enable_lua="yes")
if test "x$enable_lua" = xyes; then 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") 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 ...@@ -281,7 +282,7 @@ if test "x$enable_lua" = xyes; then
AC_MSG_ERROR([Could not find Lua libraries in the system.]) AC_MSG_ERROR([Could not find Lua libraries in the system.])
else else
AX_LUA_HEADERS 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.]) AC_MSG_ERROR([Could not find a suitable version of Lua.])
]) ])
fi fi
...@@ -293,7 +294,7 @@ if test "x$enable_lua" = xyes; then ...@@ -293,7 +294,7 @@ if test "x$enable_lua" = xyes; then
enable_bundled_lua=yes enable_bundled_lua=yes
else else
AX_LUA_HEADERS 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
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