[v4l-utils] Add configure option to allow qv4l2 disable

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

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux