AM_CONDITIONAL([WITH_LIBV4L], [test x$with_libv4l = xyes])
AM_CONDITIONAL([WITH_V4LUTILS], [test x$with_v4lutils = xyes])
AM_CONDITIONAL([WITH_QV4L2], [test ${qt_pkgconfig} = true -a x$with_qv4l2 = xyes])
+AM_CONDITIONAL([WITH_V4L_WRAPPERS], [test x$with_libv4l = xyes -a x$enable_shared = xyes])
# append -static to libtool compile and link command to enforce static libs
AS_IF([test x$with_libdvbv5 != xyes], [AC_SUBST([ENFORCE_LIBDVBV5_STATIC], ["-static"])])
if WITH_LIBV4L
lib_LTLIBRARIES = libv4l1.la
include_HEADERS = ../include/libv4l1.h ../include/libv4l1-videodev.h
-libv4l1priv_LTLIBRARIES = v4l1compat.la
pkgconfig_DATA = libv4l1.pc
+if WITH_V4L_WRAPPERS
+libv4l1priv_LTLIBRARIES = v4l1compat.la
+endif
else
noinst_LTLIBRARIES = libv4l1.la
endif
if WITH_LIBV4L
lib_LTLIBRARIES = libv4l2.la
include_HEADERS = ../include/libv4l2.h ../include/libv4l-plugin.h
-libv4l2priv_LTLIBRARIES = v4l2convert.la
pkgconfig_DATA = libv4l2.pc
+if WITH_V4L_WRAPPERS
+libv4l2priv_LTLIBRARIES = v4l2convert.la
+endif
else
noinst_LTLIBRARIES = libv4l2.la
endif