summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJeongmo Yang <jm80.yang@samsung.com>2024-09-12 17:52:19 +0900
committerJeongmo Yang <jm80.yang@samsung.com>2024-09-12 18:13:47 +0900
commit172cdbe1d8ce48121ebf0a7ad33a2ec572053aad (patch)
tree739a8c3d47e8d6c850474a500ee2621f5d3c7398 /configure.ac
parent130e9f03e105671991116a30d376bba3e81f83dc (diff)
downloadcamera-v4l2-accepted/tizen_unified_x_asan.tar.gz
camera-v4l2-accepted/tizen_unified_x_asan.tar.bz2
camera-v4l2-accepted/tizen_unified_x_asan.zip
- The I420 format is needed for some TC, but it's not supported when libv4l2 dependency is removed with Logitech C920 webcam. So, libv4l2 dependency is added for temporary, and it will be removed later. [Version] 1.3.2 [Issue Type] Compatibility Change-Id: Ife16b7ac3fdec0ce9bc4aa32799bff438dbde738 Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac35
1 files changed, 32 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index fe7779d..9bdd6e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,9 +23,38 @@ AC_HEADER_TIME
AC_PROG_GCC_TRADITIONAL
AC_PROG_LIBTOOL
-PKG_CHECK_MODULES(HAL_ROOTSTRAP, hal-rootstrap)
-AC_SUBST(HAL_ROOTSTRAP_CFLAGS)
-AC_SUBST(HAL_ROOTSTRAP_LIBS)
+PKG_CHECK_MODULES(GLIB, glib-2.0)
+AC_SUBST(GLIB_CFLAGS)
+AC_SUBST(GLIB_LIBS)
+
+PKG_CHECK_MODULES(TBM, libtbm)
+AC_SUBST(TBM_CFLAGS)
+AC_SUBST(TBM_LIBS)
+
+PKG_CHECK_MODULES(DLOG, dlog)
+AC_SUBST(DLOG_CFLAGS)
+AC_SUBST(DLOG_LIBS)
+
+PKG_CHECK_MODULES(HAL_API_COMMON, hal-api-common)
+AC_SUBST(HAL_API_COMMON_CFLAGS)
+
+PKG_CHECK_MODULES(HAL_API_CAMERA, hal-api-camera)
+AC_SUBST(HAL_API_CAMERA_CFLAGS)
+
+AC_ARG_ENABLE(libv4l2, AC_HELP_STRING([--enable-libv4l2], [enable libv4l2]),
+[
+ case "${enableval}" in
+ yes) HAVE_LIBV4L2=yes ;;
+ no) HAVE_LIBV4L2=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-libv4l2) ;;
+ esac
+],[HAVE_LIBV4L2=no])
+if test "x$HAVE_LIBV4L2" = "xyes"; then
+PKG_CHECK_MODULES(LIBV4L2, libv4l2)
+AC_SUBST(LIBV4L2_CFLAGS)
+AC_SUBST(LIBV4L2_LIBS)
+fi
+AM_CONDITIONAL([HAVE_LIBV4L2], [test "x$HAVE_LIBV4L2" = "xyes"])
# Checks for header files.
AC_HEADER_STDC