1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
From ce92707eba5153c7ba0ee107f887480f2db494f2 Mon Sep 17 00:00:00 2001
From: Gilles Dartiguelongue <eva@gentoo.org>
Date: Tue, 24 Nov 2015 11:32:37 +0100
Subject: [PATCH] Make libgudev dependency controllable by configure switch
---
configure.ac | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
index 67dede9..e8f4887 100644
--- a/configure.ac
+++ b/configure.ac
@@ -209,13 +209,26 @@ AS_IF([test "x$have_cogl_osx" = xyes],
AC_SUBST([GL_LDFLAGS])
])
-PKG_CHECK_MODULES(GUDEV,
- [gudev-1.0],
- [
- have_gudev=yes
- AC_DEFINE([HAVE_GUDEV], [1],
- ["Defined if gudev is available"])
- ],[ have_gudev=no ])
+AC_ARG_WITH([udev],
+ [AS_HELP_STRING([--with-udev],
+ [Enable camera listing through libgudev]),
+ [], [with_udev=auto])
+ ])
+
+AS_IF([test "$with_udev" != "no"],
+ [
+ PKG_CHECK_MODULES(GUDEV,
+ [gudev-1.0],
+ [
+ have_gudev=yes
+ AC_DEFINE([HAVE_GUDEV], [1],
+ ["Defined if gudev is available"])
+ ],[
+ AS_IF([test "$with_udev" = "yes"],
+ [AC_MSG_ERROR([Could not find libgudev])],
+ [have_gudev=no])
+ ])
+ ])
dnl ========================================================================
dnl Experimental support for hardware accelerated decoders.
--
2.6.3
|