tools/check: check for yajl (needed by libxl)
authorIan Campbell <ian.campbell@citrix.com>
Mon, 10 Oct 2011 15:49:48 +0000 (16:49 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 10 Oct 2011 15:49:48 +0000 (16:49 +0100)
We need precisely version 1 so check for .so.1. In the future we should handle
yajl v2 as well.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/check/check_yajl_devel [new file with mode: 0755]
tools/check/check_yajl_lib [new file with mode: 0755]

diff --git a/tools/check/check_yajl_devel b/tools/check/check_yajl_devel
new file mode 100755 (executable)
index 0000000..b8dac4f
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+# CHECK-BUILD
+
+. ./funcs.sh
+
+has_header yajl/yajl_parse.h || fail "can't find yajl/yajl_parse.h"
+has_header yajl/yajl_gen.h || fail "can't find yajl/yajl_gen.h"
+has_lib libyajl.so || fail "can't find libyajl.so"
diff --git a/tools/check/check_yajl_lib b/tools/check/check_yajl_lib
new file mode 100755 (executable)
index 0000000..a0f6c02
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+# CHECK-BUILD CHECK-INSTALL
+
+. ./funcs.sh
+
+has_lib libyajl.so.1 || fail "can't find libyajl.so.1 version 1"