aboutsummaryrefslogtreecommitdiffstats
path: root/m4/checkpolicy.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/checkpolicy.m4')
-rw-r--r--m4/checkpolicy.m412
1 files changed, 12 insertions, 0 deletions
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
+])