Diff

util/dependencies.lua @ 742:b9f59372eb4e

util.dependencies: Show useful messages when our own libraries are not found, too
author Matthew Wild <mwild1@gmail.com>
date Thu, 22 Jan 2009 14:29:29 +0000
parent 615:4ae3e81513f3
child 743:99ef95e119ad
line wrap: on
line diff
--- 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