1288 |
|
|
1289 |
dnl check if exec-shield is present. |
dnl check if exec-shield is present. |
1290 |
AC_CHECK_FILE(/proc/sys/kernel/exec-shield, emacs_cv_execshield=1, |
AC_CHECK_FILE(/proc/sys/kernel/exec-shield, emacs_cv_execshield=1, |
1291 |
emacs_cv_execshield=0) |
emacs_cv_execshield=0) |
1292 |
if test "$emacs_cv_execshield" = 1; then |
if test "$emacs_cv_execshield" = 1; then |
1293 |
AC_PATH_PROG(SETARCH, setarch, no) |
AC_PATH_PROG(SETARCH, setarch, no) |
1294 |
AC_SUBST(SETARCH) |
AC_SUBST(SETARCH) |
1295 |
if test "$setarch" != no; then |
if test "$setarch" != no && test "$machine" = "intel386"; then |
1296 |
AC_DEFINE(HAVE_EXECSHIELD, 1, [Define to 1 if this OS has exec shield.]) |
AC_DEFINE(HAVE_EXECSHIELD, 1, |
1297 |
fi |
[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. |
1303 |
|
Emacs can not dump itself if exec-shield is turned on. |
1304 |
|
See `etc/PROBLEMS' for further information.]) |
1305 |
|
esac |
1306 |
|
fi |
1307 |
fi |
fi |
1308 |
|
|
1309 |
#### Extract some information from the operating system and machine files. |
#### Extract some information from the operating system and machine files. |