dnl dnl $KTH: bsd-func-lockmgr.m4,v 1.3 2000/03/24 03:36:23 assar Exp $ dnl AC_DEFUN(AC_BSD_FUNC_LOCKMGR, [ AC_CACHE_CHECK(if lockmgr takes four arguments, ac_cv_func_lockmgr_four_args, AC_TRY_COMPILE_KERNEL([ #ifdef HAVE_SYS_CDEFS_H #include #endif #include #include #include #include #include ], [lockmgr(NULL, 0, NULL, NULL)], ac_cv_func_lockmgr_four_args=yes, ac_cv_func_lockmgr_four_args=no)) if test "$ac_cv_func_lockmgr_four_args" = yes; then AC_DEFINE(HAVE_FOUR_ARGUMENT_LOCKMGR, 1, [define if lockmgr takes four arguments]) fi ])