From 827382972316d6856301f31d06ccc194686b128d Mon Sep 17 00:00:00 2001
From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= <caglar@cs.princeton.edu>
Date: Thu, 28 Jan 2010 14:32:12 +0000
Subject: [PATCH] no need to check to kernel source (also fixes the nightly
 builds)

---
 configure.in | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/configure.in b/configure.in
index 7bd3640..c339fe5 100644
--- a/configure.in
+++ b/configure.in
@@ -25,25 +25,6 @@ dnl Checks for library functions.
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS(socket strerror)
 
-dnl Checks for kernel source directory.
-AC_MSG_CHECKING([kernel source directory])
-KSRC="/lib/modules/`uname -r`/build"
-AC_ARG_WITH(kernel,
-    --with-kernel=DIR			kernel source directory,
-    [ KSRC="$withval" ],
-)
-# Check if kernel source directory has been configured
-if test -f "$KSRC/include/linux/version.h" ; then
-    # Get kernel version number
-    eval KVER=$(echo "#include <linux/version.h>" | cpp -I "$KSRC/include" -dM - | awk '/UTS_RELEASE/ { print $3 }')
-    AC_MSG_RESULT([$KVER])
-else
-    AC_MSG_RESULT([$KSRC/include/linux/version.h not found])
-    AC_MSG_ERROR(kernel source directory not specified or not configured)
-fi
-AC_SUBST(KSRC)
-AC_SUBST(KVER)
-
 dnl NetFlow prerequisites.
 AC_ARG_WITH(proper,
     --with-proper=<directory>		proper installed in <directory>,
-- 
2.47.0