summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2004-09-24 07:18:15 +0000
committerJan Djärv <jan.h.d@swipnet.se>2004-09-24 07:18:15 +0000
commit4489ece2663ff713da6e5b08e8e3cb96a8af9fdc (patch)
treeb8ddca12a44a892980538af29515fa4f69b2fd8d /configure.in
parent988c3fe319b24d20ff12d0a9a87e31f355d04cbf (diff)
* configure.in: Check for exec-shield.
* configure: Rebuild.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index b7318b8f80..52c35bb2b0 100644
--- a/configure.in
+++ b/configure.in
@@ -1286,6 +1286,17 @@ AC_LINK_IFELSE([main(){return 0;}],
dnl checks for Unix variants
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)
+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
+fi
+
#### Extract some information from the operating system and machine files.
AC_CHECKING([the machine- and system-dependent files to find out
@@ -2342,7 +2353,7 @@ utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
sendto recvfrom getsockopt setsockopt getsockname getpeername \
gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
-memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign)
+memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign)
AC_CHECK_HEADERS(sys/un.h)