summaryrefslogtreecommitdiffstats
path: root/config/kernel-fpu.m4
blob: 1c5690969d4801e81d0979f2a3a29992a4db53ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl #
dnl # 4.2 API change
dnl # asm/i387.h is replaced by asm/fpu/api.h
dnl #
AC_DEFUN([ZFS_AC_KERNEL_FPU], [
	AC_MSG_CHECKING([whether asm/fpu/api.h exists])
	ZFS_LINUX_TRY_COMPILE([
		#include <linux/kernel.h>
		#include <asm/fpu/api.h>
	],[
		__kernel_fpu_begin();
	],[
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_FPU_API_H, 1, [kernel has <asm/fpu/api.h> interface])
	],[
		AC_MSG_RESULT(no)
	])
])