-AC_INIT([libcec], 1:4:0)
+AC_INIT([libcec], 1:6:0)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
-AM_SILENT_RULES([yes])
-
AC_PROG_CXX
AC_PROG_LIBTOOL
has_libudev="yes"
case "${host}" in
*-*-linux*)
- PKG_CHECK_MODULES([UDEV],[libudev],,[has_libudev="no";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*)
has_libudev="no";
LIBS+="-framework CoreVideo -framework IOKit"
;;
+ *-freebsd*)
+ has_libudev="no"
+ ;;
esac
if test "x$has_libudev" != "xno"; then
AC_SUBST(REQUIRES)
AC_CONFIG_FILES([src/lib/libcec.pc])
-AC_OUTPUT([Makefile src/lib/Makefile src/testclient/Makefile])
+AC_OUTPUT([Makefile src/lib/Makefile src/testclient/Makefile src/cec-config/Makefile])