]> git.proxmox.com Git - mirror_zfs.git/blame - config/user-makedev.m4
kernel_fpu fixes
[mirror_zfs.git] / config / user-makedev.m4
CommitLineData
10cb2e0a
OF
1dnl #
2dnl # glibc 2.25
3dnl #
4AC_DEFUN([ZFS_AC_CONFIG_USER_MAKEDEV_IN_SYSMACROS], [
5 AC_MSG_CHECKING([makedev() is declared in sys/sysmacros.h])
6 AC_TRY_COMPILE(
7 [
8 #include <sys/sysmacros.h>
9 ],[
10 int k;
11 k = makedev(0,0);
12 ],[
13 AC_MSG_RESULT(yes)
14 AC_DEFINE(HAVE_MAKEDEV_IN_SYSMACROS, 1,
15 [makedev() is declared in sys/sysmacros.h])
16 ],[
17 AC_MSG_RESULT(no)
18 ])
19])
20
21dnl #
22dnl # glibc X < Y < 2.25
23dnl #
24AC_DEFUN([ZFS_AC_CONFIG_USER_MAKEDEV_IN_MKDEV], [
25 AC_MSG_CHECKING([makedev() is declared in sys/mkdev.h])
26 AC_TRY_COMPILE(
27 [
28 #include <sys/mkdev.h>
29 ],[
30 int k;
31 k = makedev(0,0);
32 ],[
33 AC_MSG_RESULT(yes)
34 AC_DEFINE(HAVE_MAKEDEV_IN_MKDEV, 1,
35 [makedev() is declared in sys/mkdev.h])
36 ],[
37 AC_MSG_RESULT(no)
38 ])
39])