All of lore.kernel.org
 help / color / mirror / Atom feed
* [v4l-utils] Add configure option to allow qv4l2 disable
@ 2012-05-30 13:42 Ezequiel Garcia
  2012-05-31  7:07 ` Gregor Jasny
  0 siblings, 1 reply; 7+ messages in thread
From: Ezequiel Garcia @ 2012-05-30 13:42 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Hans Verkuil; +Cc: linux-media, Ezequiel Garcia

This patch could ease the job of a few people, 
by providing an option they actually need. 
OpenWRT [1] and Openembedded [2] are already disabling 
qv4l2 by applying ugly patches.

[1] https://dev.openwrt.org/browser/packages/libs/libv4l/patches/004-disable-qv4l2.patch
[2] http://patches.openembedded.org/patch/21469/

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
 configure.ac |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 98fad38..92ee050 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,8 +83,17 @@ AS_IF([test "x$with_jpeg" != xno],
 
 AM_CONDITIONAL([HAVE_JPEG], [$have_jpeg])
 
+AC_ARG_ENABLE(qv4l2,
+  [  --disable-qv4l2         disable qv4l2 compilation],
+  [case "${enableval}" in
+     yes | no ) with_qv4l2="${enableval}" ;;
+     *) AC_MSG_ERROR(bad value ${enableval} for --disable-qv4l2) ;;
+   esac],
+  [with_qv4l2="yes"]
+)
+
 PKG_CHECK_MODULES(QT, [QtCore >= 4.4 QtGui >= 4.4], [qt_pkgconfig=true], [qt_pkgconfig=false])
-if test "x$qt_pkgconfig" = "xtrue"; then
+if test "x$qt_pkgconfig" = "xtrue" && test "x$with_qv4l2" = "xyes"; then
    AC_SUBST(QT_CFLAGS)
    AC_SUBST(QT_LIBS)
    MOC=`$PKG_CONFIG --variable=moc_location QtCore`
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-06-20 15:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-30 13:42 [v4l-utils] Add configure option to allow qv4l2 disable Ezequiel Garcia
2012-05-31  7:07 ` Gregor Jasny
2012-05-31 16:29   ` Ezequiel Garcia
2012-06-18 22:01     ` Mauro Carvalho Chehab
2012-06-19 12:46       ` Ezequiel Garcia
2012-06-20 15:35         ` Gregor Jasny
2012-06-20 15:55           ` Mauro Carvalho Chehab

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.