[cheese] Require libgudev on Linux
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [cheese] Require libgudev on Linux
- Date: Tue, 19 Jan 2010 13:35:50 +0000 (UTC)
commit 475abc8a90e5649306a246455bde6f9cb25e4c88
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 19 13:34:31 2010 +0000
Require libgudev on Linux
Rather than fail to find any webcams when started.
configure.ac | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a828d48..d2ab951 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,12 +86,31 @@ DBUS_GLIB_REQUIRED=0.7
PANGOCAIRO_REQUIRED=1.18.0
LIBRSVG_REQUIRED=2.18.0
+#*******************************************************************************
+# Check for udev
+#*******************************************************************************
+
UDEV_PKG=
PKG_CHECK_MODULES(UDEV, gudev-1.0,
[AC_DEFINE(HAVE_UDEV, 1, [Define to 1 to enable udev support])
UDEV_PKG=gudev-1.0],
[UDEV_PKG=])
+AC_MSG_CHECKING([operating system])
+case $host in
+ *-linux*)
+ AC_DEFINE(OS_LINUX, [], [Linux backend])
+ AC_SUBST(OS_LINUX)
+ AC_MSG_RESULT([Linux])
+ if test x$UDEV_PKG = "x" ; then
+ AC_MSG_ERROR([libgudev is required under Linux and not installed])
+ fi
+ ;;
+ *)
+ AC_MSG_RESULT([unsupported operating system])
+esac
+
+
AC_CHECK_HEADER([sys/videoio.h],
[AC_DEFINE(USE_SYS_VIDEOIO_H, 1, define to 1 if sys/videoio.h is present)],
[AC_DEFINE(USE_SYS_VIDEOIO_H, 0, define to 1 if sys/videoio.h is present)], [])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]