X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=configure.in;h=c339fe5cea54682da6632fd810008715acad30a3;hp=7bd36409db948d91e3cf83cca0267bd3abd600c2;hb=827382972316d6856301f31d06ccc194686b128d;hpb=266bcb55dbeb328bc583f3b712e7ab90d7ff004e 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 " | 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= proper installed in ,