[don't use udev support even if available]),
[enable_udev=${enableval}])
if (test "${enable_udev}" != "no"); then
- PKG_CHECK_MODULES(UDEV, libudev >= 143,
- [enable_udev="yes"], [enable_udev="no"])
-fi
-if (test "${enable_udev}" = "yes"); then
+ PKG_CHECK_MODULES(UDEV, libudev >= 143, [enable_udev="yes"],
+ AC_MSG_ERROR(libudev >= 143 is required))
UDEV_DATADIR="`$PKG_CONFIG --variable=udevdir udev`"
if (test -z "${UDEV_DATADIR}"); then
UDEV_DATADIR="${sysconfdir}/udev/rules.d"