From 32d9ba9ac2ae534cb687b81d990355f77c65aaf2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich=20M=C3=BCller?= Date: Sat, 4 Aug 2012 22:00:52 -0700 Subject: [PATCH] * configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header. Fixes: debbugs:11979 --- ChangeLog | 5 +++++ configure.ac | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 76aae066a85..cdf55a377eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-08-05 Ulrich Müller + + * configure.ac: Disable paxctl if binaries don't have a + PT_PAX_FLAGS program header. (Bug#11979) + 2012-08-03 Eli Zaretskii * lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/stat-time.$(O), diff --git a/configure.ac b/configure.ac index e9e04a4daef..2a6291e8243 100644 --- a/configure.ac +++ b/configure.ac @@ -731,6 +731,12 @@ AC_PATH_PROG(GZIP_PROG, gzip) if test $opsys = gnu-linux; then AC_PATH_PROG(PAXCTL, paxctl,, [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin]) + if test "X$PAXCTL" != X; then + AC_MSG_CHECKING([whether binaries have a PT_PAX_FLAGS header]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], + [if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then AC_MSG_RESULT(yes) + else AC_MSG_RESULT(no); PAXCTL=""; fi]) + fi fi ## Need makeinfo >= 4.7 (?) to build the manuals. -- 2.39.2