cec: changed to use dlopen instead of static linkage. shuffled headers a bit. bumped...
[deb_libcec.git] / configure.ac
CommitLineData
acec5f48 1AC_INIT([libcec], 0:7:0)
abbca718
LOK
2AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
3
4AC_PROG_CXX
5AC_PROG_LIBTOOL
6
3e703e8e 7case "${host}" in
8 *-*-linux*)
3e703e8e 9 AC_CHECK_LIB([udev], [main],, AC_MSG_ERROR("required library 'udev' is missing"))
10 REQUIRES="udev"
11 ;;
12 *-apple-darwin*)
13 LIBS+="-framework CoreVideo -framework IOKit"
14 ;;
15esac
16
abbca718 17AC_CHECK_LIB([pthread], [main],, AC_MSG_ERROR("required library 'pthread' is missing"))
acec5f48 18AC_CHECK_LIB([dl], [main],, AC_MSG_ERROR("required library 'dl' is missing"))
abbca718 19
7eb13cca
LOK
20CXXFLAGS="-fPIC -Wall -Wextra $CXXFLAGS"
21
3e703e8e 22AC_SUBST(REQUIRES)
abbca718 23AC_CONFIG_FILES([src/lib/libcec.pc])
c3f9951c 24AC_OUTPUT([Makefile src/lib/Makefile src/testclient/Makefile])