File: virt-selinux.m4

package info (click to toggle)
libvirt-sandbox 0.5.1%2Bgit20160404-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,104 kB
  • ctags: 1,964
  • sloc: ansic: 12,696; python: 2,110; makefile: 447; sh: 302; xml: 151; perl: 110
file content (15 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
AC_DEFUN([LIBVIRT_SANDBOX_SELINUX], [
  fail=0
  SELINUX_CFLAGS=
  SELINUX_LIBS=
  old_LIBS=$LIBS
  old_CFLAGS=$CFLAGS
  AC_CHECK_HEADER([selinux/selinux.h],[],[fail=1])
  AC_CHECK_LIB([selinux], [fgetfilecon],[SELINUX_LIBS="$SELINUX_LIBS -lselinux"],[fail=1])
  LIBS=$old_LIBS
  CFLAGS=$old_CFLAGS
  test $fail = 1 &&
    AC_MSG_ERROR([You must install the libselinux development package in order to compile libvirt-sandbox])
  AC_SUBST([SELINUX_CFLAGS])
  AC_SUBST([SELINUX_LIBS])
])