diff options
Diffstat (limited to 'config/user-libudev.m4')
-rw-r--r-- | config/user-libudev.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/user-libudev.m4 b/config/user-libudev.m4 new file mode 100644 index 000000000..143f77f76 --- /dev/null +++ b/config/user-libudev.m4 @@ -0,0 +1,13 @@ +dnl # +dnl # Check for libudev - needed for vdev auto-online and auto-replace +dnl # +AC_DEFUN([ZFS_AC_CONFIG_USER_LIBUDEV], [ + LIBUDEV= + + AC_CHECK_HEADER([libudev.h], [AC_SUBST([LIBUDEV], ["-ludev"]) + AC_DEFINE([HAVE_LIBUDEV], 1, [Define if you have libudev])], []) + + AC_SEARCH_LIBS(i[udev_device_get_is_initialized], [udev], [ + AC_DEFINE([HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED], 1, [ + Define if udev_device_get_is_initialized is available])], []) +]) |