*** empty log message ***
[arla.git] / cf / osf-func-ubc-lookup.m4
blobb88d1e0c6788d3f45ca5c94592605469b2b3a69c
1 dnl
2 dnl $Id$
3 dnl
5 AC_DEFUN([AC_OSF_FUNC_UBC_LOOKUP], [
6 AC_CACHE_CHECK(if ubc_lookup takes six arguments,
7 ac_cv_func_ubc_lookup_six_args,
8 AC_TRY_COMPILE_KERNEL([
9 #if defined(__osf__) && defined(__GNUC__)
10 #define asm __foo_asm
11 #endif
12 #include <sys/types.h>
13 #include <sys/param.h>
14 #include <sys/proc.h>
15 #include <sys/lock.h>
16 #include <vm/vm_ubc.h>
17 ], [ubc_lookup(NULL, 0, 0, 0, NULL, NULL)],
18 ac_cv_func_ubc_lookup_six_args=yes,
19 ac_cv_func_ubc_lookup_six_args=no))
20 if test "$ac_cv_func_ubc_lookup_six_args" = yes; then
21         AC_DEFINE(HAVE_SIX_ARGUMENT_UBC_LOOKUP, 1,
22         [define if ubc_lookup takes six arguments])