[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] AC_FUNC_GETLOADAVG: don't define SVR4 on cygwin
From: |
Eric Blake |
Subject: |
[PATCH] AC_FUNC_GETLOADAVG: don't define SVR4 on cygwin |
Date: |
Tue, 24 Aug 2010 07:46:44 -0600 |
* lib/autoconf/functions.m4 (_AC_LIBOBJ_GETLOADAVG): Only define
SVR4 when -lkvm is required.
* THANKS: Update.
Reported by Yaakov Selkowitz.
Signed-off-by: Eric Blake <address@hidden>
---
ChangeLog | 8 ++++++++
THANKS | 1 +
lib/autoconf/functions.m4 | 3 ++-
3 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9b27194..e82f811 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-08-24 Eric Blake <address@hidden>
+
+ AC_FUNC_GETLOADAVG: don't define SVR4 on cygwin
+ * lib/autoconf/functions.m4 (_AC_LIBOBJ_GETLOADAVG): Only define
+ SVR4 when -lkvm is required.
+ * THANKS: Update.
+ Reported by Yaakov Selkowitz.
+
2010-08-23 Eric Blake <address@hidden>
AC_HEADER_STDBOOL: avoid spurious clang failure
diff --git a/THANKS b/THANKS
index c79e21e..748c4e4 100644
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 576de02..d7058c8 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -672,7 +672,8 @@ AC_CHECK_FUNCS(setlocale)
# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
# Irix 4.0.5F has the header but not the library.
-if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
+if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
+ && test "$ac_cv_lib_kvm_kvm_open" = yes; then
ac_have_func=yes
AC_DEFINE(SVR4, 1, [Define to 1 on System V Release 4.])
fi
--
1.7.2.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] AC_FUNC_GETLOADAVG: don't define SVR4 on cygwin,
Eric Blake <=