*** empty log message ***
[arla.git] / cf / bsd-uvm-only.m4
blob73c64f594b65fba7bc7046efe0560df5c3d0d7e1
1 dnl
2 dnl $Id$
3 dnl
5 AC_DEFUN([AC_CHECK_BSD_UVM_ONLY],[
6 AC_CACHE_CHECK(if we can only include uvm headers,
7 ac_cv_kernel_uvm_only,
8 AC_TRY_COMPILE_KERNEL([
9 #include <sys/types.h>
10 #include <sys/param.h>
11 #ifdef HAVE_SYS_QUEUE_H
12 #include <sys/queue.h>
13 #endif
14 #ifdef HAVE_VM_VM_H
15 #include <vm/vm.h>
16 #endif
17 #ifdef HAVE_VM_VM_EXTERN_H
18 #include <vm/vm_extern.h>
19 #endif
20 #ifdef HAVE_VM_VM_ZONE_H
21 #include <vm/vm_zone.h>
22 #endif
23 #ifdef HAVE_VM_VM_OBJECT_H
24 #include <vm/vm_object.h>
25 #endif
26 #ifdef HAVE_UVM_UVM_EXTERN_H
27 #include <uvm/uvm_extern.h>
28 #endif
29 ], [int suvmtiuk = 1;
31 ac_cv_kernel_uvm_only=yes,
32 ac_cv_kernel_uvm_only=no))]
33 if test "$ac_cv_kernel_uvm_only" = no; then
34 AC_DEFINE(HAVE_KERNEL_UVM_ONLY, 1,
35 [define if we only can include uvm headers])