-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Since we changed the default location for the kernel headers to respect --prefix in the SPL, we must search that location to prevent user builds from breaking. Signed-off-by: Richard Yao <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -273,10 +273,12 @@ AC_DEFUN([ZFS_AC_SPL], [ | |
dnl # source directory. In order of preference: | ||
dnl # | ||
splsrc0="/var/lib/dkms/spl/${VERSION}/build" | ||
splsrc1="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | ||
splsrc2="/usr/src/spl-${VERSION}" | ||
splsrc3="../spl/" | ||
splsrc4="$LINUX" | ||
splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | ||
splsrc2="/usr/local/src/spl-${VERSION}" | ||
splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | ||
splsrc4="/usr/src/spl-${VERSION}" | ||
splsrc5="../spl/" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
behlendorf
|
||
splsrc6="$LINUX" | ||
AC_MSG_CHECKING([spl source directory]) | ||
AS_IF([test -z "${splsrc}"], [ | ||
|
@@ -290,6 +292,10 @@ AC_DEFUN([ZFS_AC_SPL], [ | |
splsrc=$(readlink -f "${splsrc3}") | ||
], [ test -e "${splsrc4}/spl.release.in" ], [ | ||
splsrc=${splsrc4} | ||
], [ test -e "${splsrc5}/spl.release.in"], [ | ||
splsrc=$(readlink -f "${splsrc5}") | ||
], [ test -e "${splsrc6}/spl.release.in" ], [ | ||
splsrc=${splsrc6} | ||
], [ | ||
splsrc="[Not found]" | ||
]) | ||
|
Is there no better way to find spl, than hard coding it like this?! My spl is in
/usr/src/spl
(granted,splsrc5
would catch my setup, but still).