repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename LibCECC implementation of GetMinLibVersion call to match the prototype in...
[deb_libcec.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index 124c013c0ee7cf69a752d9ad508fb0982da108ef..6c8c7fda33a0c5ae35968149defae2b53c73ef48 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-1,19
+1,26
@@
-AC_INIT([libcec],
0:8
:0)
+AC_INIT([libcec],
1:3
:0)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AC_PROG_CXX
AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AC_PROG_CXX
AC_PROG_LIBTOOL
+has_libudev="yes"
case "${host}" in
*-*-linux*)
case "${host}" in
*-*-linux*)
- AC_SEARCH_LIBS([udev_new], [udev],, AC_MSG_ERROR("required library 'udev' is missing"))
- REQUIRES="udev"
+ PKG_CHECK_MODULES([UDEV],[libudev],,[has_libudev="no";AC_MSG_WARN("library 'udev' is missing - adapter detection will not be available")])
;;
*-apple-darwin*)
;;
*-apple-darwin*)
+ has_libudev="no";
LIBS+="-framework CoreVideo -framework IOKit"
;;
esac
LIBS+="-framework CoreVideo -framework IOKit"
;;
esac
+if test "x$has_libudev" != "xno"; then
+ INCLUDES="$INCLUDES $UDEV_CFLAGS";LIBS="$LIBS $UDEV_LIBS"
+ AC_DEFINE([HAVE_LIBUDEV],[1],["Define to 1 if libudev is installed"])
+ REQUIRES="udev"
+fi
+
AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR("required library 'pthread' is missing"))
libs_pre_dl=$LIBS
AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR("required library 'pthread' is missing"))
libs_pre_dl=$LIBS
@@
-23,11
+30,6
@@
libs_pre_dl=$LIBS
AC_SUBST([LIBS_DL])
LIBS=$libs_pre_dl
AC_SUBST([LIBS_DL])
LIBS=$libs_pre_dl
-AC_LANG_PUSH([C++])
-AC_CHECK_HEADERS([boost/shared_ptr.hpp], [],
- [AC_MSG_ERROR(You need the Boost libraries.)])
-AC_LANG_POP([C++])
-
CXXFLAGS="-fPIC -Wall -Wextra $CXXFLAGS"
AC_SUBST(REQUIRES)
CXXFLAGS="-fPIC -Wall -Wextra $CXXFLAGS"
AC_SUBST(REQUIRES)