[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] [PATCH] fix selinux check



Currently, the autoconf check for selinux simply checks for the shared
library; it doesn't check to see whether selinux.h exists.  This patch
fixes that.


Revision: devmapper--dilinger--1--patch-6
Archive: dilinger voxel net--2004
Creator: Andres Salomon <dilinger voxel net>
Date: Mon May 17 03:20:00 EDT 2004
Standard-date: 2004-05-17 07:20:00 GMT
Modified-files: configure.in
New-patches: dilinger voxel net--2004/devmapper--dilinger--1--patch-6
Summary: fix libselinux autoconf check
Keywords: 

* added files

    {arch}/devmapper/devmapper--dilinger/devmapper--dilinger--1/dilinger voxel net--2004/patch-log/patch-6

* modified files

--- orig/configure.in
+++ mod/configure.in
@@ -112,7 +112,8 @@
 AC_CHECK_HEADERS(getopt.h, CFLAGS="$CFLAGS -DHAVE_GETOPTLONG")
 
 dnl Check for is_selinux_enabled
-AC_CHECK_LIB(selinux, is_selinux_enabled, HAVE_SELINUX=yes, HAVE_SELINUX=no)
+AC_CHECK_HEADERS([selinux/selinux.h],
+	[AC_CHECK_LIB(selinux, is_selinux_enabled, HAVE_SELINUX=yes, HAVE_SELINUX=no)])
 
 if test x$HAVE_SELINUX = xyes; then
 	CFLAGS="$CFLAGS -DHAVE_SELINUX"



Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]