fixed: cleaned up configure, trying to once again recombine AC_MSG_WARN into single...
[deb_libcec.git] / configure.ac
index fbae268c6de4abac8dc9fea414c0b7db94437b99..d64bbc7aa31cff9b99285c9a2e93e698035602d9 100644 (file)
@@ -4,13 +4,10 @@ AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 AC_PROG_CXX
 AC_PROG_LIBTOOL
 
-echo ${host}
-
 has_libudev="yes"
 case "${host}" in
   *-*-linux*)
-    PKG_CHECK_MODULES([UDEV],[libudev],,[has_libudev="no"])
-    PKG_CHECK_MODULES([UDEV],[libudev],,AC_MSG_WARN("library 'udev' is missing - adapter detection will not be available"))
+    PKG_CHECK_MODULES([UDEV],[libudev],,[has_libudev="no"]; AC_MSG_WARN("library 'udev' is missing - adapter detection will not be available"))
     LIBS+=" -lrt"
     ;;
   *-apple-darwin*)