Software /
code /
prosody
Comparison
util/dependencies.lua @ 6065:9ab23488a17c
util.dependencies: Check for Lua 5.1. We don't currently support any other versions. LuaJIT identifies as 5.1.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 09 Apr 2014 14:01:02 -0400 |
parent | 6043:29d2dd705148 |
child | 6067:dab7ad6fa23c |
child | 7675:decb657bc0a0 |
comparison
equal
deleted
inserted
replaced
6064:c4a3222165c4 | 6065:9ab23488a17c |
---|---|
47 error("module 'util.ztact' has been deprecated in Prosody 0.8."); | 47 error("module 'util.ztact' has been deprecated in Prosody 0.8."); |
48 end | 48 end |
49 end; | 49 end; |
50 | 50 |
51 function check_dependencies() | 51 function check_dependencies() |
52 if _VERSION ~= "Lua 5.1" then | |
53 print "***********************************" | |
54 print("Unsupported Lua version: ".._VERSION); | |
55 print("Only Lua 5.1 is supported."); | |
56 print "***********************************" | |
57 return false; | |
58 end | |
59 | |
52 local fatal; | 60 local fatal; |
53 | 61 |
54 local lxp = softreq "lxp" | 62 local lxp = softreq "lxp" |
55 | 63 |
56 if not lxp then | 64 if not lxp then |