From: Ian Campbell Date: Mon, 10 Oct 2011 15:49:48 +0000 (+0100) Subject: tools/check: check for yajl (needed by libxl) X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=080559d289bb3410a148b4cb4a0a4adbdcdf9540;p=xen.git tools/check: check for yajl (needed by libxl) 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 Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/check/check_yajl_devel b/tools/check/check_yajl_devel new file mode 100755 index 0000000000..b8dac4f767 --- /dev/null +++ b/tools/check/check_yajl_devel @@ -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 index 0000000000..a0f6c02ab8 --- /dev/null +++ b/tools/check/check_yajl_lib @@ -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"