1AC_DEFUN([AC_PROG_CHECKPOLICY],
2[dnl
3  # check for a checkpolicy binary with support for -t xen
4  AC_CHECK_TOOL([CHECKPOLICY],[checkpolicy],[no])
5
6  if test "$CHECKPOLICY" != "no"; then
7     CHECKPOLICYHELP=`$CHECKPOLICY -h | grep xen`
8     if test "$CHECKPOLICYHELP" = ""; then
9        CHECKPOLICY=no
10     fi
11  fi
12])
13