aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac26
-rw-r--r--libempathy/Makefile.am4
2 files changed, 29 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e960bb0b0..29873caab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -351,6 +351,31 @@ fi
AM_CONDITIONAL(HAVE_WEBKIT, test "x$have_webkit" = "xyes")
# -----------------------------------------------------------
+# gudev
+# -----------------------------------------------------------
+AC_ARG_ENABLE(gudev,
+ AS_HELP_STRING([--enable-gudev=@<:@no/yes/auto@:>@],
+ [build with gudev support]), ,
+ enable_gudev=auto)
+
+if test "x$enable_gudev" != "xno"; then
+
+ PKG_CHECK_MODULES(UDEV, [gudev-1.0],
+ have_gudev="yes", have_gudev="no")
+
+ if test "x$have_gudev" = "xyes"; then
+ AC_DEFINE(HAVE_UDEV, 1, [Define if you have gudev])
+ fi
+else
+ have_gudev=no
+fi
+
+if test "x$enable_gudev" = "xyes" -a "x$have_gudev" != "xyes"; then
+ AC_MSG_ERROR([Could not find gudev dependencies.])
+fi
+AM_CONDITIONAL(HAVE_UDEV, test "x$have_gudev" = "xyes")
+
+# -----------------------------------------------------------
# spellchecking checks: enchant and iso-codes
# -----------------------------------------------------------
AC_ARG_ENABLE(spell,
@@ -632,6 +657,7 @@ Configure summary:
Meego widgets...............: ${have_meego}
Control center embedding....: ${have_control_center_embedding}
Cheese webcam support ......: ${have_cheese}
+ Camera monitoring...........: ${have_gudev}
Connectivity:
NetworkManager integration..: ${have_nm}
diff --git a/libempathy/Makefile.am b/libempathy/Makefile.am
index b20c49bf3..f701f7480 100644
--- a/libempathy/Makefile.am
+++ b/libempathy/Makefile.am
@@ -15,6 +15,7 @@ AM_CPPFLAGS = \
$(GEOCODE_CFLAGS) \
$(NETWORK_MANAGER_CFLAGS) \
$(CONNMAN_CFLAGS) \
+ $(UDEV_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)
@@ -125,7 +126,8 @@ libempathy_la_LIBADD = \
$(GEOCLUE_LIBS) \
$(GEOCODE_LIBS) \
$(NETWORK_MANAGER_LIBS) \
- $(CONNMAN_LIBS)
+ $(CONNMAN_LIBS) \
+ $(UDEV_LIBS)
check_c_sources = \
$(libempathy_handwritten_source)