* configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header.

Fixes: debbugs:11979
This commit is contained in:
Ulrich Müller 2012-08-04 22:00:52 -07:00 committed by Glenn Morris
parent 615b0bf0b4
commit 32d9ba9ac2
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2012-08-05 Ulrich Müller <ulm@gentoo.org>
* configure.ac: Disable paxctl if binaries don't have a
PT_PAX_FLAGS program header. (Bug#11979)
2012-08-03 Eli Zaretskii <eliz@gnu.org>
* lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/stat-time.$(O),

View file

@ -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.