summaryrefslogtreecommitdiffstats
path: root/src/external/selinux.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/external/selinux.m4')
-rw-r--r--src/external/selinux.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/src/external/selinux.m4 b/src/external/selinux.m4
index 0c5d5294e..d1b961a49 100644
--- a/src/external/selinux.m4
+++ b/src/external/selinux.m4
@@ -11,3 +11,15 @@ AC_DEFUN([AM_CHECK_SELINUX],
AC_SUBST(SELINUX_LIBS)
])
+dnl A macro to check the availability of SELinux management library
+AC_DEFUN([AM_CHECK_SEMANAGE],
+[
+ AC_CHECK_HEADERS(semanage/semanage.h,
+ [AC_CHECK_LIB(semanage, semanage_handle_create,
+ [SEMANAGE_LIBS="-lsemanage"],
+ [AC_MSG_ERROR([libsemanage is missing])]
+ )
+ ],
+ [AC_MSG_ERROR([libsemanage is missing])])
+ AC_SUBST(SEMANAGE_LIBS)
+])