build: Add explicit option for cheese

https://bugzilla.gnome.org/show_bug.cgi?id=643263
This commit is contained in:
Saleem Abdulrasool 2010-12-19 19:06:15 -08:00 committed by Bastien Nocera
parent 88cf391846
commit 8c6024b967

View file

@ -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