emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r109437: * configure.ac: Disable paxc


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109437: * configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header.
Date: Sat, 04 Aug 2012 22:00:52 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109437
fixes bug: http://debbugs.gnu.org/11979
author: Ulrich Müller <address@hidden>
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Sat 2012-08-04 22:00:52 -0700
message:
  * configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header.
modified:
  ChangeLog
  configure.ac
=== modified file 'ChangeLog'
--- a/ChangeLog 2012-08-03 10:02:48 +0000
+++ b/ChangeLog 2012-08-05 05:00:52 +0000
@@ -1,3 +1,8 @@
+2012-08-05  Ulrich Müller  <address@hidden>
+
+       * configure.ac: Disable paxctl if binaries don't have a
+       PT_PAX_FLAGS program header.  (Bug#11979)
+
 2012-08-03  Eli Zaretskii  <address@hidden>
 
        * lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/stat-time.$(O),

=== modified file 'configure.ac'
--- a/configure.ac      2012-08-03 20:34:35 +0000
+++ b/configure.ac      2012-08-05 05:00:52 +0000
@@ -731,6 +731,12 @@
 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]