2017-03-31 19:32:00 +03:00
|
|
|
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])
|
2021-01-03 03:55:55 +03:00
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
2017-03-31 19:32:00 +03:00
|
|
|
#include <sys/sysmacros.h>
|
2021-01-03 03:55:55 +03:00
|
|
|
]], [[
|
2017-03-31 19:32:00 +03:00
|
|
|
int k;
|
|
|
|
k = makedev(0,0);
|
2021-01-03 03:55:55 +03:00
|
|
|
]])],[
|
2017-03-31 19:32:00 +03:00
|
|
|
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])
|
2021-01-03 03:55:55 +03:00
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
2017-03-31 19:32:00 +03:00
|
|
|
#include <sys/mkdev.h>
|
2021-01-03 03:55:55 +03:00
|
|
|
]], [[
|
2017-03-31 19:32:00 +03:00
|
|
|
int k;
|
|
|
|
k = makedev(0,0);
|
2021-01-03 03:55:55 +03:00
|
|
|
]])],[
|
2017-03-31 19:32:00 +03:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(HAVE_MAKEDEV_IN_MKDEV, 1,
|
|
|
|
[makedev() is declared in sys/mkdev.h])
|
|
|
|
],[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|
|
|
|
])
|