|
Mark Wielaard |
e5f214 |
commit bf803555d10b5b4c9223b24bf13845ee88d8f3b5
|
|
Mark Wielaard |
e5f214 |
Author: cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9>
|
|
Mark Wielaard |
e5f214 |
Date: Mon Feb 23 20:19:03 2015 +0000
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
Fix configure for Linux kernel >= 4.0-rc1
|
|
Mark Wielaard |
e5f214 |
In addition raise the minimal Linux version to 2.6 as there is almost
|
|
Mark Wielaard |
e5f214 |
no test coverage for 2.4 and 2.6 was released in 2003.
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14955 a5019735-40e9-0310-863c-91ae7b9d1cf9
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
diff --git a/configure.ac b/configure.ac
|
|
Mark Wielaard |
e5f214 |
index fe2897b..ebb0798 100644
|
|
Mark Wielaard |
e5f214 |
--- a/configure.ac
|
|
Mark Wielaard |
e5f214 |
+++ b/configure.ac
|
|
Mark Wielaard |
e5f214 |
@@ -325,20 +325,14 @@ case "${host_os}" in
|
|
Mark Wielaard |
e5f214 |
kernel=`uname -r`
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
case "${kernel}" in
|
|
Mark Wielaard |
e5f214 |
- 2.6.*|3.*)
|
|
Mark Wielaard |
e5f214 |
- AC_MSG_RESULT([2.6.x/3.x family (${kernel})])
|
|
Mark Wielaard |
e5f214 |
- AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x])
|
|
Mark Wielaard |
e5f214 |
- ;;
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
- 2.4.*)
|
|
Mark Wielaard |
e5f214 |
- AC_MSG_RESULT([2.4 family (${kernel})])
|
|
Mark Wielaard |
e5f214 |
- AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
|
|
Mark Wielaard |
e5f214 |
- ;;
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
- *)
|
|
Mark Wielaard |
e5f214 |
+ 0.*|1.*|2.0.*|2.1.*|2.2.*|2.3.*|2.4.*|2.5.*)
|
|
Mark Wielaard |
e5f214 |
AC_MSG_RESULT([unsupported (${kernel})])
|
|
Mark Wielaard |
e5f214 |
- AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
|
|
Mark Wielaard |
e5f214 |
+ AC_MSG_ERROR([Valgrind needs a Linux kernel >= 2.6])
|
|
Mark Wielaard |
e5f214 |
;;
|
|
Mark Wielaard |
e5f214 |
+
|
|
Mark Wielaard |
e5f214 |
+ *)
|
|
Mark Wielaard |
e5f214 |
+ AC_MSG_RESULT([2.6 or later (${kernel})])
|
|
Mark Wielaard |
e5f214 |
+ ;;
|
|
Mark Wielaard |
e5f214 |
esac
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
;;
|
|
Mark Wielaard |
e5f214 |
diff -ur valgrind-3.10.1.orig/config.h.in valgrind-3.10.1/config.h.in
|
|
Mark Wielaard |
e5f214 |
--- valgrind-3.10.1.orig/config.h.in 2015-06-19 11:36:36.495314032 +0200
|
|
Mark Wielaard |
e5f214 |
+++ valgrind-3.10.1/config.h.in 2015-06-19 11:36:50.000000000 +0200
|
|
Mark Wielaard |
e5f214 |
@@ -280,12 +280,6 @@
|
|
Mark Wielaard |
e5f214 |
/* Define to 1 if you have the `utimensat' function. */
|
|
Mark Wielaard |
e5f214 |
#undef HAVE_UTIMENSAT
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
-/* Define to 1 if you're using Linux 2.4.x */
|
|
Mark Wielaard |
e5f214 |
-#undef KERNEL_2_4
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
-/* Define to 1 if you're using Linux 2.6.x or Linux 3.x */
|
|
Mark Wielaard |
e5f214 |
-#undef KERNEL_2_6
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
/* configured default page size 4k */
|
|
Mark Wielaard |
e5f214 |
#undef MIPS_PAGE_SHIFT
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
diff -ur valgrind-3.10.1.orig/configure valgrind-3.10.1/configure
|
|
Mark Wielaard |
e5f214 |
--- valgrind-3.10.1.orig/configure 2015-06-19 11:36:36.496314042 +0200
|
|
Mark Wielaard |
e5f214 |
+++ valgrind-3.10.1/configure 2015-06-19 11:36:56.837523466 +0200
|
|
Mark Wielaard |
e5f214 |
@@ -5554,27 +5554,16 @@
|
|
Mark Wielaard |
e5f214 |
kernel=`uname -r`
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
case "${kernel}" in
|
|
Mark Wielaard |
e5f214 |
- 2.6.*|3.*)
|
|
Mark Wielaard |
e5f214 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6.x/3.x family (${kernel})" >&5
|
|
Mark Wielaard |
e5f214 |
-$as_echo "2.6.x/3.x family (${kernel})" >&6; }
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
-$as_echo "#define KERNEL_2_6 1" >>confdefs.h
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
- ;;
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
- 2.4.*)
|
|
Mark Wielaard |
e5f214 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
|
|
Mark Wielaard |
e5f214 |
-$as_echo "2.4 family (${kernel})" >&6; }
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
-$as_echo "#define KERNEL_2_4 1" >>confdefs.h
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
- ;;
|
|
Mark Wielaard |
e5f214 |
-
|
|
Mark Wielaard |
e5f214 |
- *)
|
|
Mark Wielaard |
e5f214 |
+ 0.*|1.*|2.0.*|2.1.*|2.2.*|2.3.*|2.4.*|2.5.*)
|
|
Mark Wielaard |
e5f214 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
|
|
Mark Wielaard |
e5f214 |
$as_echo "unsupported (${kernel})" >&6; }
|
|
Mark Wielaard |
e5f214 |
- as_fn_error $? "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
|
|
Mark Wielaard |
e5f214 |
+ as_fn_error $? "Valgrind needs a Linux kernel >= 2.6" "$LINENO" 5
|
|
Mark Wielaard |
e5f214 |
;;
|
|
Mark Wielaard |
e5f214 |
+
|
|
Mark Wielaard |
e5f214 |
+ *)
|
|
Mark Wielaard |
e5f214 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 or later (${kernel})" >&5
|
|
Mark Wielaard |
e5f214 |
+$as_echo "2.6 or later (${kernel})" >&6; }
|
|
Mark Wielaard |
e5f214 |
+ ;;
|
|
Mark Wielaard |
e5f214 |
esac
|
|
Mark Wielaard |
e5f214 |
|
|
Mark Wielaard |
e5f214 |
;;
|