summaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-05-07 17:09:24 +0000
committerBram Moolenaar <Bram@vim.org>2008-05-07 17:09:24 +0000
commit588ebeb7a5a7ae7c86b4fe5c3aa34ad117b93b70 (patch)
tree4260a2d4f4d6debb7add7a4ae36758354ee33440 /src/configure.in
parent2b57078d735b72fdbfa70eb9fcad1a4c1800f959 (diff)
downloadvim-588ebeb7a5a7ae7c86b4fe5c3aa34ad117b93b70.zip
updated for version 7.1-296
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/configure.in b/src/configure.in
index 898e79cc9..628c2c304 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -299,6 +299,19 @@ case `uname` in
esac
fi
+dnl Link with -lselinux for SELinux stuff; if not found
+AC_MSG_CHECKING(--disable-selinux argument)
+AC_ARG_ENABLE(selinux,
+ [ --disable-selinux Don't check for SELinux support.],
+ , enable_selinux="yes")
+if test "$enable_selinux" = "yes"; then
+ AC_MSG_RESULT(no)
+ AC_CHECK_LIB(selinux, is_selinux_enabled,
+ [LIBS="$LIBS -lselinux"
+ AC_DEFINE(HAVE_SELINUX)])
+else
+ AC_MSG_RESULT(yes)
+fi
dnl Check user requested features.