[gnome-control-center] build: Add explicit option for cheese



commit 8c6024b9673608db89da6c5fe7bae81e98f00da3
Author: Saleem Abdulrasool <compnerd compnerd org>
Date:   Sun Dec 19 19:06:15 2010 -0800

    build: Add explicit option for cheese
    
    https://bugzilla.gnome.org/show_bug.cgi?id=643263

 configure.ac |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 966967c..d69d601 100644
--- a/configure.ac
+++ b/configure.ac
@@ -158,10 +158,13 @@ fi
 AM_CONDITIONAL(BUILD_PRINTERS, [test x"$enable_cups" = x"yes"])
 
 # Optional dependency for the user accounts panel
-PKG_CHECK_MODULES(CHEESE, gstreamer-0.10 cheese-gtk >= 2.29.90, have_cheese=yes, have_cheese=no)
+AC_ARG_WITH([cheese],
+            AS_HELP_STRING([--with-cheese], [enable cheese webcam support]),,
+            with_cheese=yes)
 
-if test x$have_cheese = xyes ; then
-        AC_DEFINE(HAVE_CHEESE, 1, [Define to 1 to enable cheese webcam support])
+if test x"$with_cheese" != x"no" ; then
+   PKG_CHECK_MODULES(CHEESE, gstreamer-0.10 cheese-gtk >= 2.29.90)
+   AC_DEFINE(HAVE_CHEESE, 1, [Define to 1 to enable cheese webcam support])
 fi
 
 # This is a hard-dependency for the region and user-accounts panels



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]