FBSD: Set KERNBUILDDIR for --with-bsd-kernel-build
[openafs.git] / src / cf / bsd.m4
1 AC_DEFUN([OPENAFS_BSD_CHECKS],[
2 if test "x$with_bsd_kernel_headers" != "x"; then
3     BSD_KERNEL_PATH="$with_bsd_kernel_headers"
4 else
5     BSD_KERNEL_PATH="/usr/src/sys"
6 fi
7
8 if test "x$with_bsd_kernel_build" != "x"; then
9     BSD_KERNEL_BUILD="$with_bsd_kernel_build"
10 else
11     case $AFS_SYSNAME in
12         *_fbsd_*)
13             AS_IF([test -d "${BSD_KERNEL_PATH}/${HOST_CPU}/compile/GENERIC"],
14                   [BSD_KERNEL_BUILD="${BSD_KERNEL_PATH}/${HOST_CPU}/compile/GENERIC"])
15             ;;
16         *_nbsd*)
17             BSD_KERNEL_BUILD="${BSD_KERNEL_PATH}/arch/${HOST_CPU}/compile/GENERIC"
18     esac
19 fi
20 ])