forked from enlightenment/efl
eeze: Add configure check for older libudev version
Summary: This adds a check in configure to test the libudev version > 199. Older versions of udev do not provide udev_device_set_sysattr_value function and thus compile of efl would break with older versions. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
d059e1af95
commit
5eac1ebf28
10
configure.ac
10
configure.ac
|
@ -2947,6 +2947,12 @@ EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
|
||||||
[EEZE_MOUNT], [mount >= 2.18.0])
|
[EEZE_MOUNT], [mount >= 2.18.0])
|
||||||
EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
|
EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
|
||||||
|
|
||||||
|
PKG_CHECK_EXISTS([libudev < 199],
|
||||||
|
[have_libudev_old="yes"],
|
||||||
|
[have_libudev_old="no"])
|
||||||
|
AC_MSG_CHECKING([Use old libudev API (before 199)])
|
||||||
|
AC_MSG_RESULT([${have_libudev_old}])
|
||||||
|
|
||||||
PKG_CHECK_EXISTS([mount < 2.19.0],
|
PKG_CHECK_EXISTS([mount < 2.19.0],
|
||||||
[have_libmount_old="yes"],
|
[have_libmount_old="yes"],
|
||||||
[have_libmount_old="no"])
|
[have_libmount_old="no"])
|
||||||
|
@ -2965,6 +2971,10 @@ PKG_CHECK_EXISTS([mount > 2.19.0],
|
||||||
AC_MSG_CHECKING([Use new libmount API (newer than 2.19.0)])
|
AC_MSG_CHECKING([Use new libmount API (newer than 2.19.0)])
|
||||||
AC_MSG_RESULT([${have_libmount_new}])
|
AC_MSG_RESULT([${have_libmount_new}])
|
||||||
|
|
||||||
|
if test "x${have_libudev_old}" = "xyes"; then
|
||||||
|
AC_DEFINE_UNQUOTED([OLD_LIBUDEV], [1], [using older version of libudev])
|
||||||
|
fi
|
||||||
|
|
||||||
if test "x${have_libmount_old}" = "xyes"; then
|
if test "x${have_libmount_old}" = "xyes"; then
|
||||||
AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
|
AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue