| Revision 641,
1.1 KB
checked in by dcarter, 4 years ago
(diff) |
|
see #111 - merge release 0.8 to main branch
|
| Line | |
|---|
| 1 | # Copyright (C) 2005-2008 David Carter <arm4@arm4.org> |
|---|
| 2 | # |
|---|
| 3 | # This file is free software; as a special exception the author gives |
|---|
| 4 | # unlimited permission to copy and/or distribute it, with or without |
|---|
| 5 | # modifications, as long as this notice is preserved. |
|---|
| 6 | # |
|---|
| 7 | # This program is distributed in the hope that it will be useful, but |
|---|
| 8 | # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the |
|---|
| 9 | # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|---|
| 10 | |
|---|
| 11 | # Macros to check for selinux |
|---|
| 12 | |
|---|
| 13 | AC_DEFUN([ARM4_CHECK_SELINUX], |
|---|
| 14 | [ |
|---|
| 15 | AC_MSG_CHECKING(for selinux) |
|---|
| 16 | AC_ARG_ENABLE(selinux, |
|---|
| 17 | [ --enable-selinux enable selinux module], |
|---|
| 18 | [case "${enableval}" in |
|---|
| 19 | yes) selinux=yes ;; |
|---|
| 20 | no) selinux=no ;; |
|---|
| 21 | *) AC_MSG_ERROR([bad value ${enableval} for --enable-tests]) ;; |
|---|
| 22 | esac], |
|---|
| 23 | [selinux=no]) |
|---|
| 24 | if test "$selinux" = "yes" && test ! -f /usr/share/selinux/devel/Makefile > /dev/null 2>&1 ; then |
|---|
| 25 | selinux=no |
|---|
| 26 | AC_MSG_ERROR([the --enable-selinux requires the selinux-policy-devel package be installed.]) |
|---|
| 27 | fi |
|---|
| 28 | AC_MSG_RESULT($selinux) |
|---|
| 29 | AM_CONDITIONAL([BUILD_SELINUX], [test "$selinux" = "yes" ]) |
|---|
| 30 | ]) |
|---|
Note: See
TracBrowser
for help on using the repository browser.