From: Andi K. <an...@fi...> - 2011-03-11 19:00:22
|
From: Andi Kleen <ak...@li...> Most people should use 2.6 kernels by now. So make --with-kernel-support default and allow a --without-kernel-support for 2.4 kernels instead. Signed-off-by: Andi Kleen <ak...@li...> --- README | 4 ++-- m4/findkernel.m4 | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README b/README index 74b0a12..806affc 100644 --- a/README +++ b/README @@ -39,8 +39,8 @@ ACLOCAL=aclocal-1.5 AUTOMAKE=automake-1.5 AUTOCONF=autoconf-2.13 AUTOHEADER=auto 2.4 kernels - ./configure --with-linux=/path/to/kernel/source + ./configure --without-kernel-support --with-linux=/path/to/kernel/source 2.6 kernels - ./configure --with-kernel-support + ./configure diff --git a/m4/findkernel.m4 b/m4/findkernel.m4 index 4f66437..c084147 100644 --- a/m4/findkernel.m4 +++ b/m4/findkernel.m4 @@ -2,11 +2,9 @@ dnl Find the kernel and handle 2.6 settings AC_DEFUN([AX_FIND_KERNEL], [ AC_MSG_CHECKING([for kernel OProfile support]) -AC_ARG_WITH(kernel-support, [ --with-kernel-support Use 2.6 kernel (no kernel source tree required)], -if test "$withval" = "yes"; then - OPROFILE_26=yes -fi -) +OPROFILE_26=yes +AC_ARG_WITH(kernel-support, [ --without-kernel-support Use 2.4 kernel. Kernel source tree needed. ], +OPROFILE_26=no) if test "$OPROFILE_26" != "yes"; then dnl --- Find the Linux kernel, at least the headers --- -- 1.7.4 |