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@xxxxxxxxxxxxxxx Creator: Andres Salomon <dilinger@xxxxxxxxx> 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@xxxxxxxxxxxxxxx/devmapper--dilinger--1--patch-6 Summary: fix libselinux autoconf check Keywords: * added files {arch}/devmapper/devmapper--dilinger/devmapper--dilinger--1/dilinger@xxxxxxxxxxxxxxx/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