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>,