Fix coverity issue
[platform/core/multimedia/libmm-camcorder.git] / configure.ac
index 52a670d..ffd914b 100644 (file)
@@ -112,9 +112,47 @@ AC_SUBST(RM_LIBS)
 PKG_CHECK_MODULES(AUL, aul)
 AC_SUBST(AUL_CFLAGS)
 AC_SUBST(AUL_LIBS)
+
+PKG_CHECK_MODULES(RI, tv-resource-information)
+AC_SUBST(RI_CFLAGS)
+AC_SUBST(RI_LIBS)
+
+PKG_CHECK_MODULES(RC, resource-center-api)
+AC_SUBST(RC_CFLAGS)
+AC_SUBST(RC_LIBS)
 fi
 AM_CONDITIONAL([RM_SUPPORT], [test "x$RM_SUPPORT" = "xyes"])
 
+AC_ARG_ENABLE(camera-conf-mgr-tv, AC_HELP_STRING([--enable-camera-conf-mgr-tv], [enable camera-conf-mgr-tv]),
+[
+  case "${enableval}" in
+    yes) CAMERA_CONF_MGR_SUPPORT=yes ;;
+    no)  CAMERA_CONF_MGR_SUPPORT=no ;;
+    *) AC_MSG_ERROR(bad value ${enableval} for --enable-camera-conf-mgr-tv) ;;
+  esac
+],[CAMERA_CONF_MGR_SUPPORT=no])
+if test "x$CAMERA_CONF_MGR_SUPPORT" = "xyes"; then
+PKG_CHECK_MODULES(CAMERA_CONF_MGR, camera-conf-mgr-tv)
+AC_SUBST(CAMERA_CONF_MGR_CFLAGS)
+AC_SUBST(CAMERA_CONF_MGR_LIBS)
+fi
+AM_CONDITIONAL([CAMERA_CONF_MGR_SUPPORT], [test "x$CAMERA_CONF_MGR_SUPPORT" = "xyes"])
+
+AC_ARG_ENABLE(boost, AC_HELP_STRING([--enable-boost], [enable boost]),
+[
+  case "${enableval}" in
+    yes) BOOST_TV=yes ;;
+    no)  BOOST_TV=no ;;
+    *) AC_MSG_ERROR(bad value ${enableval} for --enable-boost) ;;
+  esac
+],[BOOST_TV=no])
+if test "x$BOOST_TV" = "xyes"; then
+PKG_CHECK_MODULES(BOOST, capi-boost-tv)
+AC_SUBST(BOOST_TV_CFLAGS)
+AC_SUBST(BOOST_TV_LIBS)
+fi
+AM_CONDITIONAL([BOOST_TV], [test "x$BOOST_TV" = "xyes"])
+
 PKG_CHECK_MODULES(STORAGE, storage)
 AC_SUBST(STORAGE_CFLAGS)
 AC_SUBST(STORAGE_LIBS)