diff options
author | Brian Behlendorf <[email protected]> | 2009-07-22 06:59:28 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-07-22 06:59:28 -0700 |
commit | 749e5eb1edaa86b60e3b0c925a587925873ec560 (patch) | |
tree | 756d017c9ecb102a51c0a0c4fa5e31ce8c37300f /config | |
parent | 78d6de97bd0749b03af86ff5f76edae4bfb18b42 (diff) |
Check arch/default/ path when detecting kernel objects on SLES
We still preferentially use arch/arch looking for a native version
but if that fails it is acceptable to use default.
Diffstat (limited to 'config')
-rw-r--r-- | config/spl-build.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index eee9a783f..a528e0f63 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -115,8 +115,10 @@ AC_DEFUN([SPL_AC_KERNEL], [ AC_MSG_RESULT([$kernelsrc]) AC_MSG_CHECKING([kernel build directory]) if test -z "$kernelbuild"; then - if test -d ${kernelsrc}-obj; then + if test -d ${kernelsrc}-obj/`arch`/`arch`; then kernelbuild=${kernelsrc}-obj/`arch`/`arch` + elif test -d ${kernelsrc}-obj/`arch`/default; then + kernelbuild=${kernelsrc}-obj/`arch`/default elif test -d `dirname ${kernelsrc}`/build-`arch`; then kernelbuild=`dirname ${kernelsrc}`/build-`arch` else |