Merge commit 'refs/top-bases/linux-have-mntent' into linux-have-mntent
This commit is contained in:
commit
87e680bb8b
|
@ -84,13 +84,14 @@ AC_DEFUN([ZFS_AC_KERNEL], [
|
||||||
2>/dev/null | grep -v obj | tail -1)
|
2>/dev/null | grep -v obj | tail -1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -e $sourcelink; then
|
if test -n "$sourcelink" && test -e ${sourcelink}; then
|
||||||
kernelsrc=`readlink -f ${sourcelink}`
|
kernelsrc=`readlink -f ${sourcelink}`
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([Not found])
|
AC_MSG_RESULT([Not found])
|
||||||
AC_MSG_ERROR([
|
AC_MSG_ERROR([
|
||||||
*** Please specify the location of the kernel source
|
*** Please make sure the kernel devel package for your distribution
|
||||||
*** with the '--with-linux=PATH' option])
|
*** is installed then try again. If that fails you can specify the
|
||||||
|
*** location of the kernel source with the '--with-linux=PATH' option.])
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if test "$kernelsrc" = "NONE"; then
|
if test "$kernelsrc" = "NONE"; then
|
||||||
|
@ -101,12 +102,12 @@ AC_DEFUN([ZFS_AC_KERNEL], [
|
||||||
AC_MSG_RESULT([$kernelsrc])
|
AC_MSG_RESULT([$kernelsrc])
|
||||||
AC_MSG_CHECKING([kernel build directory])
|
AC_MSG_CHECKING([kernel build directory])
|
||||||
if test -z "$kernelbuild"; then
|
if test -z "$kernelbuild"; then
|
||||||
if test -d ${kernelsrc}-obj/`arch`/`arch`; then
|
if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
|
||||||
kernelbuild=${kernelsrc}-obj/`arch`/`arch`
|
kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
|
||||||
elif test -d ${kernelsrc}-obj/`arch`/default; then
|
elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
|
||||||
kernelbuild=${kernelsrc}-obj/`arch`/default
|
kernelbuild=${kernelsrc}-obj/${target_cpu}/default
|
||||||
elif test -d `dirname ${kernelsrc}`/build-`arch`; then
|
elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
|
||||||
kernelbuild=`dirname ${kernelsrc}`/build-`arch`
|
kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
|
||||||
else
|
else
|
||||||
kernelbuild=${kernelsrc}
|
kernelbuild=${kernelsrc}
|
||||||
fi
|
fi
|
||||||
|
@ -206,8 +207,9 @@ AC_DEFUN([ZFS_AC_SPL], [
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([Not found])
|
AC_MSG_RESULT([Not found])
|
||||||
AC_MSG_ERROR([
|
AC_MSG_ERROR([
|
||||||
*** Please specify the location of the spl source
|
*** Please make sure the spl devel package for your distribution
|
||||||
*** with the '--with-spl=PATH' option])
|
*** is installed then try again. If that fails you can specify the
|
||||||
|
*** location of the spl source with the '--with-spl=PATH' option.])
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if test "$splsrc" = "NONE"; then
|
if test "$splsrc" = "NONE"; then
|
||||||
|
|
Loading…
Reference in New Issue