error on udev that's too old

SVN revision: 51883
This commit is contained in:
Mike Blumenkrantz 2010-09-04 11:59:19 +00:00
parent 05cf40fc4d
commit c09d90f6c6
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ PKG_CHECK_MODULES([LIBUDEV], [libudev])
udev_version=$(pkg-config libudev --modversion)
if test $udev_version -lt 148;then
if test $udev_version -lt 143;then
AC_MSG_ERROR([udev version is too old!])
elif test $udev_version -lt 148;then
AC_MSG_WARN([Old udev version detected, enabling compat code])
AC_DEFINE([OLD_UDEV_RRRRRRRRRRRRRR],[1],[compat functionality for udev < 148])
fi