# HG changeset patch # User Christian Brabandt # Date 1512682207 -3600 # Node ID 035f78f42953fafea92482f335af0766540f7f43 # Parent 0bbb5611d14e3ec42d0b73b7c5be53dc05b084f7 patch 8.0.1379: configure check for selinux does not check for header file commit https://github.com/vim/vim/commit/e4b78e2a42e9030348770764c478b73caa925539 Author: Bram Moolenaar Date: Thu Dec 7 22:29:11 2017 +0100 patch 8.0.1379: configure check for selinux does not check for header file Problem: Configure check for selinux does not check for header file. Solution: Add an AC_CHECK_HEADER(). (Benny Siegert) diff --git a/src/auto/configure b/src/auto/configure --- a/src/auto/configure +++ b/src/auto/configure @@ -4781,8 +4781,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : + ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" +if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : LIBS="$LIBS -lselinux" - $as_echo "#define HAVE_SELINUX 1" >>confdefs.h + $as_echo "#define HAVE_SELINUX 1" >>confdefs.h + +fi + fi diff --git a/src/configure.ac b/src/configure.ac --- a/src/configure.ac +++ b/src/configure.ac @@ -433,8 +433,9 @@ if test "x$found_smack" = "x"; then if test "$enable_selinux" = "yes"; then AC_MSG_RESULT(no) AC_CHECK_LIB(selinux, is_selinux_enabled, + [AC_CHECK_HEADER(selinux/selinux.h, [LIBS="$LIBS -lselinux" - AC_DEFINE(HAVE_SELINUX)]) + AC_DEFINE(HAVE_SELINUX)])]) else AC_MSG_RESULT(yes) fi diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1379, +/**/ 1378, /**/ 1377,