From 3f30f744146dc41be31f529eb4bc23a3770715bd Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Mon, 8 Mar 2010 16:04:25 -0800 Subject: [PATCH] Check for spl in ../spl if not found in install path If the spl source could not be found in /usr/src/spl-*, also try to find it in ../spl. This makes finding it in a development sandbox more natural. --- config/kernel.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/kernel.m4 b/config/kernel.m4 index 303ab4cd7c..302ba1f435 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -189,6 +189,10 @@ AC_DEFUN([ZFS_AC_SPL], [ sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \ 2>/dev/null | tail -1` + if test -z "$sourcelink" || test ! -e $sourcelink; then + sourcelink=../spl + fi + if test -e $sourcelink; then splsrc=`readlink -f ${sourcelink}` else