summaryrefslogtreecommitdiff
path: root/debian/patches/selinux-autoconf.patch
blob: 934f885c88662f44aa26eff3905fe915211f5eb6 (plain)
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
26
27
28
29
30
31
32
33
Index: b/configure
===================================================================
--- a/configure
+++ b/configure
@@ -28011,6 +28011,8 @@
 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
 if test $ac_cv_lib_selinux_setexeccon = yes; then
    LIBSELINUX="-lselinux"
+			  LIBS="$LIBS -lselinux"
+
 else
   { { $as_echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
 $as_echo "$as_me: error: SELinux support requires libselinux library" >&2;}
Index: b/configure.ac
===================================================================
--- a/configure.ac
+++ b/configure.ac
@@ -3422,9 +3422,12 @@
 		AC_DEFINE(WITH_SELINUX,1,[Define if you want SELinux support.])
 		SELINUX_MSG="yes"
 		AC_CHECK_HEADER([selinux/selinux.h], ,
-		    AC_MSG_ERROR(SELinux support requires selinux.h header))
-		AC_CHECK_LIB(selinux, setexeccon, [ LIBSELINUX="-lselinux" ],
-		    AC_MSG_ERROR(SELinux support requires libselinux library))
+			AC_MSG_ERROR(SELinux support requires selinux.h header))
+		AC_CHECK_LIB(selinux, setexeccon,
+			[ LIBSELINUX="-lselinux"
+			  LIBS="$LIBS -lselinux"
+			],
+			AC_MSG_ERROR(SELinux support requires libselinux library))
 		SSHDLIBS="$SSHDLIBS $LIBSELINUX"
 		AC_CHECK_FUNCS(getseuserbyname get_default_context_with_level)
 		LIBS="$save_LIBS"