e8027d9ed9b916689bfb04641763197768df12fe
[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             BSD_KERNEL_BUILD="${BSD_KERNEL_PATH}/${HOST_CPU}/compile/GENERIC"
14             ;;
15         *_nbsd*)
16             BSD_KERNEL_BUILD="${BSD_KERNEL_PATH}/arch/${HOST_CPU}/compile/GENERIC"
17     esac
18 fi
19 ])