]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.in (HAVE_EXECSHIELD): Only define on x86.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 25 Sep 2004 20:41:08 +0000 (20:41 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 25 Sep 2004 20:41:08 +0000 (20:41 +0000)
* configure: Rebuild.

ChangeLog
configure
configure.in

index a06d464ea914dc5430b2593a1eff517f8bf0e9ab..3b77d5097271c1e8d9e7d3594ea820b0cabb71a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * configure.in (HAVE_EXECSHIELD): Only define on x86.
+       * configure: Rebuild.
+
 2004-09-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
 
        * configure.in: Check for exec-shield.
index 204bf90b06d6aaf8469bed69a49dee407386cbf9..6cbdf0b2e99e8630805529ff80d5cf8692d914fa 100755 (executable)
--- a/configure
+++ b/configure
@@ -4302,7 +4302,7 @@ else
 fi
 
 if test "$emacs_cv_execshield" = 1; then
-   # Extract the first word of "setarch", so it can be a program name with args.
+  # Extract the first word of "setarch", so it can be a program name with args.
 set dummy setarch; ac_word=$2
 echo "$as_me:$LINENO: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
@@ -4343,13 +4343,25 @@ echo "${ECHO_T}no" >&6
 fi
 
 
-   if test "$setarch" != no; then
+  if test "$setarch" != no && test "$machine" = "intel386"; then
 
 cat >>confdefs.h <<\_ACEOF
 #define HAVE_EXECSHIELD 1
 _ACEOF
 
-   fi
+  else
+    case "`cat /proc/sys/kernel/exec-shield`" in
+      0) ;;
+      *)
+        { { echo "$as_me:$LINENO: error: Exec-shield is turned on.
+Emacs can not dump itself if exec-shield is turned on.
+See \`etc/PROBLEMS' for further information." >&5
+echo "$as_me: error: Exec-shield is turned on.
+Emacs can not dump itself if exec-shield is turned on.
+See \`etc/PROBLEMS' for further information." >&2;}
+   { (exit 1); exit 1; }; }
+    esac
+  fi
 fi
 
 #### Extract some information from the operating system and machine files.
index 52c35bb2b097db7c44546ec39f06cfb7da257cb2..95ff1f855f7d3d08f4b3f405f71e25b2dfa5ed6c 100644 (file)
@@ -1288,13 +1288,22 @@ AC_AIX
 
 dnl check if exec-shield is present.
 AC_CHECK_FILE(/proc/sys/kernel/exec-shield, emacs_cv_execshield=1,
-                                           emacs_cv_execshield=0)
+                                            emacs_cv_execshield=0)
 if test "$emacs_cv_execshield" = 1; then
-   AC_PATH_PROG(SETARCH, setarch, no)
-   AC_SUBST(SETARCH)
-   if test "$setarch" != no; then
-     AC_DEFINE(HAVE_EXECSHIELD, 1, [Define to 1 if this OS has exec shield.])
-   fi
+  AC_PATH_PROG(SETARCH, setarch, no)
+  AC_SUBST(SETARCH)
+  if test "$setarch" != no && test "$machine" = "intel386"; then
+    AC_DEFINE(HAVE_EXECSHIELD, 1,
+    [Define to 1 if this OS has exec shield and we can handle it.])
+  else
+    case "`cat /proc/sys/kernel/exec-shield`" in
+      0) ;;
+      *)
+        AC_MSG_ERROR([Exec-shield is turned on.
+Emacs can not dump itself if exec-shield is turned on.
+See `etc/PROBLEMS' for further information.])
+    esac
+  fi
 fi
 
 #### Extract some information from the operating system and machine files.