diff options
| author | Brian Behlendorf <behlendorf1@llnl.gov> | 2012-11-30 04:19:25 +0000 |
|---|---|---|
| committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2012-11-29 23:08:35 +0000 |
| commit | 56a517ae3ab9b2d848a5e671d276396970ed4718 (patch) | |
| tree | 829ca292aa9d0aac8e901a3d38e169ee53db9fb8 /config | |
| parent | 38b344d22a80a173e50ab992f81b57b872e6da7c (diff) | |
Diffstat (limited to 'config')
| -rw-r--r-- | config/kernel.m4 | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4 index 34969c3163a9..2312730c55c3 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -146,11 +146,7 @@ AC_DEFUN([ZFS_AC_KERNEL], [ AS_IF([test -n "$sourcelink" && test -e ${sourcelink}], [ kernelsrc=`readlink -f ${sourcelink}` ], [ - AC_MSG_RESULT([Not found]) - AC_MSG_ERROR([ - *** Please make sure the kernel devel package for your distribution - *** is installed then try again. If that fails you can specify the - *** location of the kernel source with the '--with-linux=PATH' option.]) + kernelsrc="[Not found]" ]) ], [ AS_IF([test "$kernelsrc" = "NONE"], [ @@ -159,6 +155,13 @@ AC_DEFUN([ZFS_AC_KERNEL], [ ]) AC_MSG_RESULT([$kernelsrc]) + AS_IF([test ! -d "$kernelsrc"], [ + AC_MSG_ERROR([ + *** Please make sure the kernel devel package for your distribution + *** is installed then try again. If that fails you can specify the + *** location of the kernel source with the '--with-linux=PATH' option.]) + ]) + AC_MSG_CHECKING([kernel build directory]) AS_IF([test -z "$kernelbuild"], [ AS_IF([test -e "/lib/modules/$(uname -r)/build"], [ |
