zdb: Fix false leak report for BRT objects
[zfs.git] / config / user-libudev.m4
blob8c3c1d7e0087500153c1b3342a349ee2250739e4
1 dnl #
2 dnl # Check for libudev - needed for vdev auto-online and auto-replace
3 dnl #
4 AC_DEFUN([ZFS_AC_CONFIG_USER_LIBUDEV], [
5         ZFS_AC_FIND_SYSTEM_LIBRARY(LIBUDEV, [libudev], [libudev.h], [], [udev], [], [user_libudev=yes], [user_libudev=no])
7         AS_IF([test "x$user_libudev" = xyes], [
8             AX_SAVE_FLAGS
10             CFLAGS="$CFLAGS $LIBUDEV_CFLAGS"
11             LIBS="$LIBUDEV_LIBS $LIBS"
13             AC_CHECK_FUNCS([udev_device_get_is_initialized])
15             AX_RESTORE_FLAGS
16         ])