aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-07-01 13:27:30 -0700
committerBrian Behlendorf <[email protected]>2010-07-01 13:52:46 -0700
commite2d28a3743807c8708727cf51b94e4e8407bea65 (patch)
treea03e2421671b53aa873deadac1118885e57460b4 /config
parent8fd4e3af2e7e4d7c45288f9dad1290b7532d7dc9 (diff)
Use $target_cpu instead of `arch`
We should not be using arch for a few reasons. First off it might not be installed on their system, and secondly they may be trying to cross-compile.
Diffstat (limited to 'config')
-rw-r--r--config/spl-build.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index 89b7162c3..3bbfd0195 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -135,12 +135,12 @@ 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/`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`
+ if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
+ kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
+ elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
+ kernelbuild=${kernelsrc}-obj/${target_cpu}/default
+ elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
+ kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
else
kernelbuild=${kernelsrc}
fi