DS_LINUX_DIR()
AC_MSG_CHECKING([Linux version])
+
+ if [[ ! -f "${LINUX_DIR}/.config" ]];then
+ AC_MSG_ERROR([
+The kernel source tree at ${LINUX_DIR} is not configured.
+Fix before continuing.])
+ fi
+
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.])
+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 | \
[
AC_MSG_CHECKING(for Linux CFLAGS)
+ if [[ ! -f "${LINUX_DIR}/.hdepend" ]];then
+ AC_MSG_ERROR([
+You need to run 'make dep' on the kernel source before continuing.])
+ fi
+
tmpdir="`pwd`/tmp-noicrwa"
rm -rf ${tmpdir}