From 13dd8043cda1efeb683a05b995cb134e9662b87b Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Wed, 13 Feb 2013 16:06:57 +0000 Subject: tools/flask: add FLASK policy to build This patch enables the compilation of the FLASK policy as part of the tools build if the needed prerequisites are present. Signed-off-by: Daniel De Graaf Signed-off-by: Ian Jackson --- m4/checkpolicy.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 m4/checkpolicy.m4 (limited to 'm4') diff --git a/m4/checkpolicy.m4 b/m4/checkpolicy.m4 new file mode 100644 index 0000000000..f727a7d31a --- /dev/null +++ b/m4/checkpolicy.m4 @@ -0,0 +1,12 @@ +AC_DEFUN([AC_PROG_CHECKPOLICY], +[dnl + # check for a checkpolicy binary with support for -t xen + AC_CHECK_TOOL([CHECKPOLICY],[checkpolicy],[no]) + + if test "$CHECKPOLICY" != "no"; then + CHECKPOLICYHELP=`$CHECKPOLICY -h | grep xen` + if test "$CHECKPOLICYHELP" = ""; then + CHECKPOLICY=no + fi + fi +]) -- cgit v1.2.3