]> sourceware.org Git - lvm2.git/commitdiff
Require libudev >= 143 when compiling with udev support.
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 22 Apr 2011 11:56:41 +0000 (11:56 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 22 Apr 2011 11:56:41 +0000 (11:56 +0000)
Old versions of libudev < 143 were experimental and unstable. Require recent
and stable versions only (version 143 is old enough anyway).

WHATS_NEW_DM
configure.in
libdm/libdm-common.c
tools/dmsetup.c
tools/lvmcmdline.c

index eb14d38fcce31987faf5e2f7f1d92df057092159..1a450261b1400ec76774114f84cc16ecfd69607e 100644 (file)
@@ -1,5 +1,6 @@
 Version 1.02.64 - 
 ===================================
+  Require libudev >= 143 when compiling with udev support.
   Use word alignment for dm_pool_strdup() and dm_pool_strndup().
   Use dm_snprintf() to fix signess warning in dm_set_dev_dir().
   Use unsigned loop counter to fix signess warning in _other_node_ops().
index c531c8a5c8bfa615d06c16917ee9411a130a13c8..c19b8ce6bea0b0471879588d071ad4a28320fb01 100644 (file)
@@ -803,9 +803,7 @@ AC_ARG_ENABLE(udev_sync,
 AC_MSG_RESULT($UDEV_SYNC)
 
 if test x$UDEV_SYNC = xyes; then
-       AC_CHECK_LIB(udev, udev_queue_get_udev_is_active,
-                    [UDEV_PC="libudev"; UDEV_LIBS="-ludev"],
-                    [AC_MSG_ERROR([bailing out... libudev library is required])])
+       PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"])
        AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.])
 fi
 
index 1ae1027c8574bc033f964fd0de0c13d32707133c..43d78588b2f6105a23fd5504cb4221817a13a928 100644 (file)
@@ -29,7 +29,6 @@
 #  include <sys/types.h>
 #  include <sys/ipc.h>
 #  include <sys/sem.h>
-#  define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
 #  include <libudev.h>
 #endif
 
index db9ad1b70e6e506203f975547b4af25328c78a4a..2a8e5a66e64fe584f99890f1dfc144e5f72e3d73 100644 (file)
@@ -45,7 +45,6 @@
 #  include <sys/types.h>
 #  include <sys/ipc.h>
 #  include <sys/sem.h>
-#  define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
 #  include <libudev.h>
 #endif
 
index ddf0b5ed4ba29f1485a47e3405b45c41ffa545c5..eb198840bee1f0cbc104987ac0dd9c0af7633420 100644 (file)
@@ -43,7 +43,6 @@ extern char *optarg;
 #endif
 
 #ifdef UDEV_SYNC_SUPPORT
-#  define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
 #  include <libudev.h>
 #endif
 
This page took 0.041724 seconds and 5 git commands to generate.