]> git.proxmox.com Git - mirror_zfs-debian.git/blob - config/kernel-bio-empty-barrier.m4
Fix configure tests to play nice with GCC 4.6
[mirror_zfs-debian.git] / config / kernel-bio-empty-barrier.m4
1 dnl #
2 dnl # 2.6.24 API change
3 dnl # Empty write barriers are now supported and we should use them.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_BIO_EMPTY_BARRIER], [
6 AC_MSG_CHECKING([whether bio_empty_barrier() is defined])
7 EXTRA_KCFLAGS="-Werror"
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/bio.h>
10 ],[
11 struct bio bio;
12 (void)bio_empty_barrier(&bio);
13 ],[
14 AC_MSG_RESULT(yes)
15 AC_DEFINE(HAVE_BIO_EMPTY_BARRIER, 1,
16 [bio_empy_barrier() is defined])
17 ],[
18 AC_MSG_RESULT(no)
19 ])
20 ])