/[emacs]/emacs/configure.in
ViewVC logotype

Diff of /emacs/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.351.2.7 by miles, Thu Oct 14 08:50:07 2004 UTC revision 1.351.2.8 by miles, Fri Oct 22 10:13:47 2004 UTC
# Line 1450  AC_CHECK_HEADERS(sys/select.h sys/timeb. Line 1450  AC_CHECK_HEADERS(sys/select.h sys/timeb.
1450    linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \    linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
1451    termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \    termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
1452    sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h)    sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h)
1453    
1454    AC_MSG_CHECKING(if personality LINUX32 can be set)
1455    AC_TRY_COMPILE([#include <sys/personality.h>], [personality (PER_LINUX32)],
1456                   emacs_cv_personality_linux32=yes,
1457                   emacs_cv_personality_linux32=no)
1458    AC_MSG_RESULT($emacs_cv_personality_linux32)
1459    
1460    if test $emacs_cv_personality_linux32 = yes; then
1461      AC_DEFINE(HAVE_PERSONALITY_LINUX32, 1,
1462                [Define to 1 if personality LINUX32 can be set.])
1463    fi
1464    
1465  dnl On Solaris 8 there's a compilation warning for term.h because  dnl On Solaris 8 there's a compilation warning for term.h because
1466  dnl it doesn't define `bool'.  dnl it doesn't define `bool'.
1467  AC_CHECK_HEADERS(term.h, , , -)  AC_CHECK_HEADERS(term.h, , , -)
# Line 1572  AH_TEMPLATE(POINTER_TYPE, Line 1584  AH_TEMPLATE(POINTER_TYPE,
1584              [Define as `void' if your compiler accepts `void *'; otherwise              [Define as `void' if your compiler accepts `void *'; otherwise
1585               define as `char'.])dnl               define as `char'.])dnl
1586    
 dnl Test if heap start address is randomized (exec-shield does this).  
 dnl The test program requires unistd.h and stdlib.h.  They are present  
 dnl on the systems that currently have exec-shield.  
 AC_MSG_CHECKING(whether heap start address is randomized)  
 if test x"$ac_cv_header_unistd_h" != x && test x"$ac_cv_header_stdlib_h" != x  
 then  
   AC_TRY_RUN([#include <stdio.h>  
 #include <unistd.h>  
 #include <stdlib.h>  
 int main (int argc, char *argv[])  
 {  
   unsigned long old_sbrk = 0;  
   unsigned long this_sbrk = (unsigned long) sbrk(0);  
   int nr = 1;  
   if (argc != 1) {  
     old_sbrk = strtoul (argv[1], 0, 0);  
     nr = atoi (argv[2])+1;  
   }  
   if (argc == 1 || (old_sbrk == this_sbrk && nr < 3))  
   {  
     char buf1[32], buf2[32];  
     sprintf (buf1, "%lu", this_sbrk);  
     sprintf (buf2, "%d", nr);  
     execl (argv[0], argv[0], buf1, buf2, 0);  
     exit (-1);  
   }  
   exit (this_sbrk == old_sbrk);  
 }], emacs_cv_randomheap=yes, emacs_cv_randomheap=no,  
      emacs_cv_randomheap='assuming no')  
 else  
   emacs_cv_randomheap='assuming no'  
 fi  
 AC_MSG_RESULT($emacs_cv_randomheap)  
   
 if test "$emacs_cv_randomheap" = yes; then  
   AC_PATH_PROG(SETARCH, setarch, no)  
   AC_SUBST(SETARCH)  
   if test "$SETARCH" != no && test "$machine" = "intel386"; then  
     AC_DEFINE(HAVE_RANDOM_HEAPSTART, 1,  
     [Define to 1 if this OS randomizes the start address of the heap.])  
   else  
     dnl We do the warning at the end of the configure run so it is seen.  
     emacs_cv_randomheap=warn  
   fi  
 fi  
1587    
1588    
1589  dnl This could be used for targets which can have both byte sexes.  dnl This could be used for targets which can have both byte sexes.

Legend:
Removed from v.1.351.2.7  
changed lines
  Added in v.1.351.2.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26