AC_ARG_WITH(linux-kernel-headers,
[ --with-linux-kernel-headers=path use the kernel headers found at path(optional, defaults to /usr/src/linux)]
)
+AC_ARG_WITH(bsd-kernel-headers,
+[ --with-bsd-kernel-headers=path use the kernel headers found at path(optional, defaults to /usr/src/sys)]
+)
AC_ARG_ENABLE(kernel-module,
[ --disable-kernel-module disable compilation of the kernel module (defaults to enabled)],, enable_kernel_module="yes"
)
WITH_INSECURE=YES
fi
+if test "x$with_bsd_kernel_headers" != "x"; then
+ BSD_KERNEL_PATH="$with_bsd_kernel_headers"
+else
+ BSD_KERNEL_PATH="/usr/src/sys"
+fi
+
# Fast restart
if test "$enable_supergroups" = "yes"; then
AC_DEFINE(SUPERGROUPS, 1, [define if you want to have support for nested pts groups])
AC_SUBST(ENABLE_KERNEL_MODULE)
AC_SUBST(LIB_AFSDB)
AC_SUBST(LINUX_KERNEL_PATH)
+AC_SUBST(BSD_KERNEL_PATH)
AC_SUBST(LINUX_VERSION)
AC_SUBST(MKAFS_OSTYPE)
AC_SUBST(TOP_OBJDIR)
# System specific build commands and flags
-KSRC = /usr/src/sys
+KSRC = @BSD_KERNEL_PATH@
KDEFS=-Wall -fformat-extensions -ansi -nostdinc -I/usr/include -D_KERNEL \
-DKLD_MODULE -elf -mpreferred-stack-boundary=2
DBUG = -O2
include @TOP_OBJDIR@/src/config/Makefile.config
# System specific build commands and flags
-KSRC = /usr/src/sys
+KSRC = @BSD_KERNEL_PATH@
KFLAGS= -Wall -nostdinc
<i386_obsd33>
KFLAGS+= -fno-stack-protector