Thu, 22 Jan 2009 14:29:29 +0000
util.dependencies: Show useful messages when our own libraries are not found, too
util/dependencies.lua | file | annotate | diff | comparison | revisions |
--- a/util/dependencies.lua Sat Jan 17 14:57:21 2009 +0000 +++ b/util/dependencies.lua Thu Jan 22 14:29:29 2009 +0000 @@ -62,5 +62,18 @@ end end +local encodings = softreq "util.encodings" +if not encodings then + missingdep("util.encodings", { ["Windows"] = "Make sure you have encodings.dll from the Prosody distribution in util/"; + ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/encodings.so"; + }); +end + +local encodings = softreq "util.hashes" +if not encodings then + missingdep("util.hashes", { ["Windows"] = "Make sure you have hashes.dll from the Prosody distribution in util/"; + ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/hashes.so"; + }); +end if fatal then os.exit(1); end