aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2004-09-25 20:41:08 +0000
committerJan Djärv2004-09-25 20:41:08 +0000
commitdd571c2fb007f7a2fc5f32dcc08fe4e7f0a703f2 (patch)
tree149878951035a184bf91a111e8d97422168905c3
parent1f02a4ba8d725336e678baf503d12a9d063bea39 (diff)
downloademacs-dd571c2fb007f7a2fc5f32dcc08fe4e7f0a703f2.tar.gz
emacs-dd571c2fb007f7a2fc5f32dcc08fe4e7f0a703f2.zip
* configure.in (HAVE_EXECSHIELD): Only define on x86.
* configure: Rebuild.
-rw-r--r--ChangeLog5
-rwxr-xr-xconfigure18
-rw-r--r--configure.in21
3 files changed, 35 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index a06d464ea91..3b77d509727 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12004-09-25 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * configure.in (HAVE_EXECSHIELD): Only define on x86.
4 * configure: Rebuild.
5
12004-09-24 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 62004-09-24 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 7
3 * configure.in: Check for exec-shield. 8 * configure.in: Check for exec-shield.
diff --git a/configure b/configure
index 204bf90b06d..6cbdf0b2e99 100755
--- a/configure
+++ b/configure
@@ -4302,7 +4302,7 @@ else
4302fi 4302fi
4303 4303
4304if test "$emacs_cv_execshield" = 1; then 4304if test "$emacs_cv_execshield" = 1; then
4305 # Extract the first word of "setarch", so it can be a program name with args. 4305 # Extract the first word of "setarch", so it can be a program name with args.
4306set dummy setarch; ac_word=$2 4306set dummy setarch; ac_word=$2
4307echo "$as_me:$LINENO: checking for $ac_word" >&5 4307echo "$as_me:$LINENO: checking for $ac_word" >&5
4308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
@@ -4343,13 +4343,25 @@ echo "${ECHO_T}no" >&6
4343fi 4343fi
4344 4344
4345 4345
4346 if test "$setarch" != no; then 4346 if test "$setarch" != no && test "$machine" = "intel386"; then
4347 4347
4348cat >>confdefs.h <<\_ACEOF 4348cat >>confdefs.h <<\_ACEOF
4349#define HAVE_EXECSHIELD 1 4349#define HAVE_EXECSHIELD 1
4350_ACEOF 4350_ACEOF
4351 4351
4352 fi 4352 else
4353 case "`cat /proc/sys/kernel/exec-shield`" in
4354 0) ;;
4355 *)
4356 { { echo "$as_me:$LINENO: error: Exec-shield is turned on.
4357Emacs can not dump itself if exec-shield is turned on.
4358See \`etc/PROBLEMS' for further information." >&5
4359echo "$as_me: error: Exec-shield is turned on.
4360Emacs can not dump itself if exec-shield is turned on.
4361See \`etc/PROBLEMS' for further information." >&2;}
4362 { (exit 1); exit 1; }; }
4363 esac
4364 fi
4353fi 4365fi
4354 4366
4355#### Extract some information from the operating system and machine files. 4367#### Extract some information from the operating system and machine files.
diff --git a/configure.in b/configure.in
index 52c35bb2b09..95ff1f855f7 100644
--- a/configure.in
+++ b/configure.in
@@ -1288,13 +1288,22 @@ AC_AIX
1288 1288
1289dnl check if exec-shield is present. 1289dnl check if exec-shield is present.
1290AC_CHECK_FILE(/proc/sys/kernel/exec-shield, emacs_cv_execshield=1, 1290AC_CHECK_FILE(/proc/sys/kernel/exec-shield, emacs_cv_execshield=1,
1291 emacs_cv_execshield=0) 1291 emacs_cv_execshield=0)
1292if test "$emacs_cv_execshield" = 1; then 1292if test "$emacs_cv_execshield" = 1; then
1293 AC_PATH_PROG(SETARCH, setarch, no) 1293 AC_PATH_PROG(SETARCH, setarch, no)
1294 AC_SUBST(SETARCH) 1294 AC_SUBST(SETARCH)
1295 if test "$setarch" != no; then 1295 if test "$setarch" != no && test "$machine" = "intel386"; then
1296 AC_DEFINE(HAVE_EXECSHIELD, 1, [Define to 1 if this OS has exec shield.]) 1296 AC_DEFINE(HAVE_EXECSHIELD, 1,
1297 fi 1297 [Define to 1 if this OS has exec shield and we can handle it.])
1298 else
1299 case "`cat /proc/sys/kernel/exec-shield`" in
1300 0) ;;
1301 *)
1302 AC_MSG_ERROR([Exec-shield is turned on.
1303Emacs can not dump itself if exec-shield is turned on.
1304See `etc/PROBLEMS' for further information.])
1305 esac
1306 fi
1298fi 1307fi
1299 1308
1300#### Extract some information from the operating system and machine files. 1309#### Extract some information from the operating system and machine files.