AC_HEADER_TIME
AC_PROG_GCC_TRADITIONAL
AC_PROG_LIBTOOL
+AC_PROG_CXX
+AC_SUBST(GCC_CXXFLAGS)
# Checks for libraries.
PKG_CHECK_MODULES(GST, gstreamer-1.0 >= 1.2.0)
AC_SUBST(GST_PLUGIN_BASE_CFLAGS)
AC_SUBST(GST_PLUGIN_BASE_LIBS)
+PKG_CHECK_MODULES(GST_ALLOCATORS, gstreamer-allocators-1.0 >= 1.2.0)
+AC_SUBST(GST_ALLOCATORS_CFLAGS)
+AC_SUBST(GST_ALLOCATORS_LIBS)
+
PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-1.0 >= 1.2.0)
AC_SUBST(GST_VIDEO_CFLAGS)
AC_SUBST(GST_VIDEO_LIBS)
AC_SUBST(GST_APP_CFLAGS)
AC_SUBST(GST_APP_LIBS)
-AC_ARG_ENABLE(wayland, AC_HELP_STRING([--enable-wayland], [enable wayland]),
-[
- case "${enableval}" in
- yes) WAYLAND_SUPPORT=yes ;;
- no) WAYLAND_SUPPORT=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-wayland) ;;
- esac
-],[WAYLAND_SUPPORT=no])
-if test "x$WAYLAND_SUPPORT" = "xyes"; then
-PKG_CHECK_MODULES(GST_WAYLAND, gstreamer-wayland-1.0 >= 1.2.0)
-AC_SUBST(GST_WAYLAND_CFLAGS)
-AC_SUBST(GST_WAYLAND_LIBS)
-fi
-AM_CONDITIONAL([WAYLAND_SUPPORT], [test "x$WAYLAND_SUPPORT" = "xyes"])
-
PKG_CHECK_MODULES(MM_COMMON, mm-common)
AC_SUBST(MM_COMMON_CFLAGS)
AC_SUBST(MM_COMMON_LIBS)
-PKG_CHECK_MODULES(MURPHY_RESOURCE, murphy-resource)
-AC_SUBST(MURPHY_RESOURCE_CFLAGS)
-AC_SUBST(MURPHY_RESOURCE_LIBS)
-
-PKG_CHECK_MODULES(MURPHY_GLIB, murphy-glib)
-AC_SUBST(MURPHY_GLIB_CFLAGS)
-AC_SUBST(MURPHY_GLIB_LIBS)
-
-PKG_CHECK_MODULES(MM_SOUND, mm-sound)
-AC_SUBST(MM_SOUND_CFLAGS)
-AC_SUBST(MM_SOUND_LIBS)
+AC_ARG_ENABLE(mm-resource-manager, AC_HELP_STRING([--enable-mm-resource-manager], [enable mm-resource-manager]),
+[
+ case "${enableval}" in
+ yes) MM_RESOURCE_MANAGER_SUPPORT=yes ;;
+ no) MM_RESOURCE_MANAGER_SUPPORT=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-mm-resource-manager) ;;
+ esac
+],[MM_RESOURCE_MANAGER_SUPPORT=no])
+if test "x$MM_RESOURCE_MANAGER_SUPPORT" = "xyes"; then
+PKG_CHECK_MODULES(MM_RESOURCE_MANAGER, mm-resource-manager)
+AC_SUBST(MM_RESOURCE_MANAGER_CFLAGS)
+AC_SUBST(MM_RESOURCE_MANAGER_LIBS)
+fi
+AM_CONDITIONAL([MM_RESOURCE_MANAGER_SUPPORT], [test "x$MM_RESOURCE_MANAGER_SUPPORT" = "xyes"])
PKG_CHECK_MODULES(EXIF, libexif)
AC_SUBST(EXIF_CFLAGS)
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)
-PKG_CHECK_MODULES(MMSOUND, mm-sound)
-AC_SUBST(MMSOUND_CFLAGS)
-AC_SUBST(MMSOUND_LIBS)
-
PKG_CHECK_MODULES(MMUTIL_IMGP, mmutil-imgp)
AC_SUBST(MMUTIL_IMGP_CFLAGS)
AC_SUBST(MMUTIL_IMGP_LIBS)
AC_SUBST(TBM_CFLAGS)
AC_SUBST(TBM_LIBS)
+AC_ARG_ENABLE(rm, AC_HELP_STRING([--enable-rm], [enable rm]),
+[
+ case "${enableval}" in
+ yes) RM_SUPPORT=yes ;;
+ no) RM_SUPPORT=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-rm) ;;
+ esac
+],[RM_SUPPORT=no])
+if test "x$RM_SUPPORT" = "xyes"; then
+PKG_CHECK_MODULES(RM, tv-resource-manager)
+AC_SUBST(RM_CFLAGS)
+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)
AC_SUBST(TTRACE_CFLAGS)
AC_SUBST(TTRACE_LIBS)
+PKG_CHECK_MODULES(DPM, dpm)
+AC_SUBST(DPM_CFLAGS)
+AC_SUBST(DPM_LIBS)
+
+PKG_CHECK_MODULES(DLOG, dlog)
+AC_SUBST(DLOG_CFLAGS)
+AC_SUBST(DLOG_LIBS)
+
+AC_ARG_ENABLE(product-tv, AC_HELP_STRING([--enable-product-tv],[enable tv defined code]),
+[
+ case "${enableval}" in
+ yes) PRODUCT_TV=yes ;;
+ no) PRODUCT_TV=no ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-product-tv]) ;;
+ esac
+],[PRODUCT_TV=no])
+AM_CONDITIONAL([PRODUCT_TV], [test "x$PRODUCT_TV" = "xyes"])
+
+AC_ARG_ENABLE(gtests, AC_HELP_STRING([--enable-gtests], [enable gtests]),
+[
+ case "${enableval}" in
+ yes) GTESTS=yes ;;
+ no) GTESTS=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-gtests) ;;
+ esac
+],[GTESTS=no])
+if test "x$GTESTS" = "xyes"; then
+PKG_CHECK_MODULES(GMOCK, gmock)
+AC_SUBST(GMOCK_CFLAGS)
+AC_SUBST(GMOCK_LIBS)
+fi
+AM_CONDITIONAL([GTESTS], [test "x$GTESTS" = "xyes"])
+
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
-test/Makefile
+unittest/Makefile
mm-camcorder.pc
])
AC_OUTPUT