diff options
Diffstat (limited to 'config/user-libudev.m4')
-rw-r--r-- | config/user-libudev.m4 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/config/user-libudev.m4 b/config/user-libudev.m4 index 5164d17cd..8c3c1d7e0 100644 --- a/config/user-libudev.m4 +++ b/config/user-libudev.m4 @@ -2,17 +2,15 @@ dnl # dnl # Check for libudev - needed for vdev auto-online and auto-replace dnl # AC_DEFUN([ZFS_AC_CONFIG_USER_LIBUDEV], [ - FIND_SYSTEM_LIBRARY(LIBUDEV, [libudev], [libudev.h], [], [udev], [], [user_libudev=yes], [user_libudev=no]) + ZFS_AC_FIND_SYSTEM_LIBRARY(LIBUDEV, [libudev], [libudev.h], [], [udev], [], [user_libudev=yes], [user_libudev=no]) AS_IF([test "x$user_libudev" = xyes], [ AX_SAVE_FLAGS CFLAGS="$CFLAGS $LIBUDEV_CFLAGS" - LDFLAGS="$LDFLAGS $LIBUDEV_LIBS" + LIBS="$LIBUDEV_LIBS $LIBS" - AC_CHECK_LIB([udev], [udev_device_get_is_initialized], [ - AC_DEFINE([HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED], 1, [ - Define if udev_device_get_is_initialized is available])], []) + AC_CHECK_FUNCS([udev_device_get_is_initialized]) AX_RESTORE_FLAGS ]) |