The following commit has been merged in the master branch:
commit a888de4b1c2e1bc867fee487e04bd561f5aa2f7d
Author: Felipe Contreras <[email protected]>
Date: Sun Oct 25 15:40:15 2009 +0200
build: If there's no libselinux.pc file fallback to hardcoded list
Signed-off-by: Felipe Contreras <[email protected]>
Signed-off-by: Guillem Jover <[email protected]>
diff --git a/m4/dpkg-libs.m4 b/m4/dpkg-libs.m4
index 255a7ef..aefbb2b 100644
--- a/m4/dpkg-libs.m4
+++ b/m4/dpkg-libs.m4
@@ -70,10 +70,18 @@ if test "x$with_selinux" != "xno"; then
AC_CHECK_LIB([selinux], [is_selinux_enabled],
[AC_DEFINE(WITH_SELINUX, 1,
[Define to 1 to compile in SELinux support])
- if test "x$with_selinux" = "xstatic"; then
- dpkg_selinux_libs="-Wl,-Bstatic "$(pkg-config --static
--libs libselinux)" -Wl,-Bdynamic"
+ if test $(pkg-config --exists libselinux); then
+ if test "x$with_selinux" = "xstatic"; then
+ dpkg_selinux_libs="-Wl,-Bstatic "$(pkg-config
--static --libs libselinux)" -Wl,-Bdynamic"
+ else
+ dpkg_selinux_libs=$(pkg-config --libs
libselinux)
+ fi
else
- dpkg_selinux_libs=$(pkg-config --libs libselinux)
+ if test "x$with_selinux" = "xstatic"; then
+ dpkg_selinux_libs="-Wl,-Bstatic -lselinux
-lsepol -Wl,-Bdynamic"
+ else
+ dpkg_selinux_libs="-lselinux"
+ fi
fi
SELINUX_LIBS="${SELINUX_LIBS:+$SELINUX_LIBS
}$dpkg_selinux_libs"
with_selinux="yes"],
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]