6 dnl check for number of arguments to vfs_object_create
9 AC_DEFUN([AC_BSD_FUNC_VFS_OBJECT_CREATE], [
10 AC_CHECK_KERNEL_FUNCS(vfs_object_create)
11 if test "$ac_cv_kernel_func_vfs_object_create" = "yes"; then
12 AC_CACHE_CHECK(if vfs_object_create takes four arguments,
13 ac_cv_func_vfs_object_create_four_args,
14 AC_TRY_COMPILE_KERNEL([
15 #include <sys/types.h>
16 #include <sys/param.h>
17 #include <sys/vnode.h>
19 [vfs_object_create(0, 0, 0, 0);],
20 ac_cv_func_vfs_object_create_four_args=yes,
21 ac_cv_func_vfs_object_create_four_args=no))
22 if test "$ac_cv_func_vfs_object_create_four_args" = "yes"; then
24 AC_DEFINE(HAVE_FOUR_ARGUMENT_VFS_OBJECT_CREATE, 1,
25 [if vfs_object_create takes four arguments])