no need to check to kernel source (also fixes the nightly builds)
S.Çağlar Onur [Thu, 28 Jan 2010 14:32:12 +0000 (14:32 +0000)]
configure.in

index 7bd3640..c339fe5 100644 (file)
@@ -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>,