From 074e72953cb3229e270e384f4dabd6d05c836060 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Sat, 25 Aug 2012 18:32:54 -0400 Subject: Check kernel source directory for SPL ZFS fails to build when SPL is built into the kernel on unless --with-spl=/path/to/kernel/sources is specified. We fallback to the kernel sources directory when SPL is not found elsewhere to resolve that. Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf Closed #896 --- configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 83fc2a89c..714aaad2c 100755 --- a/configure +++ b/configure @@ -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}` -- cgit v1.2.3