From 07f3ebae70d76e7636d0c87faa38443e41fae58a Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 8 Aug 2003 21:42:16 +0000 Subject: [PATCH] added check for include/linux/version.h --- m4/linux.m4 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/m4/linux.m4 b/m4/linux.m4 index e7958bb4..2f72e1a9 100644 --- a/m4/linux.m4 +++ b/m4/linux.m4 @@ -51,6 +51,11 @@ AC_DEFUN(DS_LINUX, DS_LINUX_DIR() AC_MSG_CHECKING([Linux version]) + if [[ ! -f "${LINUX_DIR}/include/linux/version.h" ]];then + AC_MSG_ERROR([The header file include/linux/version.h does not exist. + For 2.6 kernels, it can be generated by running 'make prepare' in + the kernel source directory.]) + fi LINUX_VERSION=$(grep UTS_RELEASE ${LINUX_DIR}/include/linux/version.h | \ sed 's/[[^"]]*"\(.*\)\{1\}"/\1/') @@ -82,7 +87,7 @@ AC_DEFUN(DS_LINUX_2_6, rm -rf ${tmpdir} mkdir ${tmpdir} - + cat >${tmpdir}/Makefile <