1 AC_INIT([libcec], 1:3:0)
2 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
10 PKG_CHECK_MODULES([UDEV],[libudev],,[has_libudev="no";AC_MSG_WARN("library 'udev' is missing - adapter detection will not be available")])
14 LIBS+="-framework CoreVideo -framework IOKit"
18 if test "x$has_libudev" != "xno"; then
19 INCLUDES="$INCLUDES $UDEV_CFLAGS";LIBS="$LIBS $UDEV_LIBS"
20 AC_DEFINE([HAVE_LIBUDEV],[1],["Define to 1 if libudev is installed"])
24 AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR("required library 'pthread' is missing"))
27 AC_SEARCH_LIBS(dlopen, [dl],
28 [test "$ac_cv_search_dlopen" = "none required" || LIBS_DL=$ac_cv_search_dlopen],
29 AC_MSG_ERROR("required library 'dl' is missing"))
33 CXXFLAGS="-fPIC -Wall -Wextra $CXXFLAGS"
36 AC_CONFIG_FILES([src/lib/libcec.pc])
37 AC_OUTPUT([Makefile src/lib/Makefile src/testclient/Makefile])