aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel.m4
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-03-07 13:03:48 -0800
committerBrian Behlendorf <[email protected]>2011-03-07 13:09:20 -0800
commita60b1c0a8e7e760088c51717614205bd5e43f560 (patch)
treec3cc6c4b6232fd3c4958fe3916d54f780524e12d /config/kernel.m4
parent15805c7711a69a293d7ab974a7e8f19c388836b4 (diff)
Make Missing Modules.symvers Fatal
Detect early on in configure if the Modules.symvers file is missing. Without this file there will be build failures later and it's best to catch this early and provide a useful error. In this case the most likely problem is the kernel-devel packages are not installed. It may also be possible that they are using an unbuilt custom kernel in which case they must build the kernel first. Closes #127
Diffstat (limited to 'config/kernel.m4')
-rw-r--r--config/kernel.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4
index 8b4a5c79a..2b4df7023 100644
--- a/config/kernel.m4
+++ b/config/kernel.m4
@@ -61,6 +61,14 @@ AC_DEFUN([ZFS_AC_MODULE_SYMVERS], [
else
LINUX_SYMBOLS=Module.symvers
fi
+
+ if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
+ AC_MSG_ERROR([
+ *** Please make sure the kernel devel package for your distribution
+ *** is installed. If your building with a custom kernel make sure the
+ *** kernel is configured, built, and the '--with-linux=PATH' configure
+ *** option refers to the location of the kernel source.])
+ fi
else
LINUX_SYMBOLS=NONE
fi