aboutsummaryrefslogtreecommitdiffstats
path: root/config/user-makedev.m4
blob: 4383681a8f4c1cf11f749cc4740ff7c4def3f40c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
dnl #
dnl # glibc 2.25
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_MAKEDEV_IN_SYSMACROS], [
	AC_MSG_CHECKING([makedev() is declared in sys/sysmacros.h])
	AC_TRY_COMPILE(
	[
		#include <sys/sysmacros.h>
	],[
		int k;
		k = makedev(0,0);
	],[
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_MAKEDEV_IN_SYSMACROS, 1,
		    [makedev() is declared in sys/sysmacros.h])
	],[
		AC_MSG_RESULT(no)
	])
])

dnl #
dnl # glibc X < Y < 2.25
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_MAKEDEV_IN_MKDEV], [
	AC_MSG_CHECKING([makedev() is declared in sys/mkdev.h])
	AC_TRY_COMPILE(
	[
		#include <sys/mkdev.h>
	],[
		int k;
		k = makedev(0,0);
	],[
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_MAKEDEV_IN_MKDEV, 1,
		    [makedev() is declared in sys/mkdev.h])
	],[
		AC_MSG_RESULT(no)
	])
])