File: selinux.m4

package info (click to toggle)
gssproxy 0.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,472 kB
  • sloc: ansic: 19,391; python: 1,196; xml: 611; makefile: 458; sh: 200
file content (25 lines) | stat: -rw-r--r-- 1,028 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dnl A macro to check the availability of SELinux
AC_DEFUN([AM_CHECK_SELINUX],
[
    AC_CHECK_HEADERS(selinux/selinux.h,
                     [AC_CHECK_LIB(selinux, is_selinux_enabled,
                                            [SELINUX_LIBS="-lselinux"],
                                            [AC_MSG_ERROR([SELinux library is missing])]
                                  )
                     ],
                     [AC_MSG_ERROR([SELinux headers are missing])])
    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)
])