diff options
-rw-r--r-- | config/kernel.m4 | 7 | ||||
-rwxr-xr-x | configure | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4 index c08b6a22c..efb408c40 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -302,6 +302,13 @@ AC_DEFUN([ZFS_AC_SPL], [ sourcelink=../spl ]) + dnl # + dnl # Look in the kernel directory + dnl # + AS_IF([test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h], [ + sourcelink="$LINUX" + ]) + AS_IF([test -e $sourcelink/spl_config.h], [ splsrc=`readlink -f ${sourcelink}` ], [ @@ -12306,6 +12306,13 @@ fi fi + if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then + + sourcelink="$LINUX" + +fi + + if test -e $sourcelink/spl_config.h; then splsrc=`readlink -f ${sourcelink}` @@ -19915,6 +19922,13 @@ fi fi + if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then + + sourcelink="$LINUX" + +fi + + if test -e $sourcelink/spl_config.h; then splsrc=`readlink -f ${sourcelink}` |