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.
This commit is contained in:
parent
0ec3b7e122
commit
3f30f74414
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue