diff options
author | Kim Alvefur <zash@zash.se> | 2016-12-05 21:46:06 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-12-05 21:46:06 +0100 |
commit | 7b00ac62089347c7c20f744ba115ab7ee683be88 (patch) | |
tree | df72cd08a121228145bae92dcb8cb536b4d7a6fa /util/dependencies.lua | |
parent | e26a813c0d40adb6ce4d1f9f2aafee6212a83e63 (diff) | |
download | prosody-7b00ac62089347c7c20f744ba115ab7ee683be88.tar.gz prosody-7b00ac62089347c7c20f744ba115ab7ee683be88.zip |
util.dependencies: Add check and info about lua-bitops (for mod_websockets)
Diffstat (limited to 'util/dependencies.lua')
-rw-r--r-- | util/dependencies.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua index a070807d..d2024c4f 100644 --- a/util/dependencies.lua +++ b/util/dependencies.lua @@ -99,6 +99,16 @@ local function check_dependencies() }, "SSL/TLS support will not be available"); end + local bit = _G.bit32 or softreq"bit"; + + if not bit then + missingdep("lua-bitops", { + ["Debian/Ubuntu"] = "sudo apt-get install lua-bitop"; + ["luarocks"] = "luarocks install luabitop"; + ["Source"] = "http://bitop.luajit.org/"; + }, "WebSocket support will not be available"); + end + local encodings, err = softreq "util.encodings" if not encodings then if err:match("module '[^']*' not found") then @@ -132,6 +142,7 @@ local function check_dependencies() end fatal = true; end + return not fatal; end |