aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Antipov2014-08-26 18:42:06 +0400
committerDmitry Antipov2014-08-26 18:42:06 +0400
commit75c76162ab1a60717ef9665cfb9d8ce0bc6d39b1 (patch)
tree866c6983f8b7f738f454a5bafd2e5d7f482de8d9
parentea2791432d8fdea62b640eec5e52e2a3280efa8c (diff)
downloademacs-75c76162ab1a60717ef9665cfb9d8ce0bc6d39b1.tar.gz
emacs-75c76162ab1a60717ef9665cfb9d8ce0bc6d39b1.zip
* configure.ac (HAVE_LINUX_SYSINFO): Avoid false positive on Solaris.
-rw-r--r--ChangeLog2
-rw-r--r--configure.ac7
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 67fc0b87bcb..9eb4637694f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
5 support. Unconditionally check for sigsetjmp and siglongjmp. 5 support. Unconditionally check for sigsetjmp and siglongjmp.
6 (HAVE_STACK_OVERFLOW_HANDLING): Define if we can support it. 6 (HAVE_STACK_OVERFLOW_HANDLING): Define if we can support it.
7 7
8 (HAVE_LINUX_SYSINFO): Avoid false positive on Solaris.
9
82014-08-25 Ken Brown <kbrown@cornell.edu> 102014-08-25 Ken Brown <kbrown@cornell.edu>
9 11
10 * configure.ac (G_SLICE_ALWAYS_MALLOC): Remove obsolete macro. 12 * configure.ac (G_SLICE_ALWAYS_MALLOC): Remove obsolete macro.
diff --git a/configure.ac b/configure.ac
index d6476d2e1c7..4f22be4745d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1526,10 +1526,15 @@ if test $emacs_cv_personality_linux32 = yes; then
1526 [Define to 1 if personality LINUX32 can be set.]) 1526 [Define to 1 if personality LINUX32 can be set.])
1527fi 1527fi
1528 1528
1529# Note that Solaris has sys/sysinfo.h which defines struct
1530# sysinfo as well. To make sure that we're using GNU/Linux
1531# sysinfo, we explicitly set one of its fields.
1529if test "$ac_cv_header_sys_sysinfo_h" = yes; then 1532if test "$ac_cv_header_sys_sysinfo_h" = yes; then
1530 AC_MSG_CHECKING([if Linux sysinfo may be used]) 1533 AC_MSG_CHECKING([if Linux sysinfo may be used])
1531 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/sysinfo.h>]], 1534 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/sysinfo.h>]],
1532 [[struct sysinfo si; sysinfo (&si)]])], 1535 [[struct sysinfo si;
1536 si.totalram = 0;
1537 sysinfo (&si)]])],
1533 emacs_cv_linux_sysinfo=yes, emacs_cv_linux_sysinfo=no) 1538 emacs_cv_linux_sysinfo=yes, emacs_cv_linux_sysinfo=no)
1534 AC_MSG_RESULT($emacs_cv_linux_sysinfo) 1539 AC_MSG_RESULT($emacs_cv_linux_sysinfo)
1535 if test $emacs_cv_linux_sysinfo = yes; then 1540 if test $emacs_cv_linux_sysinfo = yes; then