2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([libmm-player],[0.3.0])
6 AC_CONFIG_SRCDIR([src])
7 AC_CONFIG_HEADER([config.h])
8 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
10 # Checks for programs.
11 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
18 AC_FUNC_SELECT_ARGTYPES
24 AC_PROG_GCC_TRADITIONAL
26 # Checks for libraries.
28 # Checks for header files.
30 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h syslog.h unistd.h])
32 # Checks for typedefs, structures, and compiler characteristics.
38 # Checks for library functions.
42 AC_CHECK_FUNCS([gettimeofday memset strchr strstr])
44 PKG_CHECK_MODULES(MMCOMMON,mm-common)
45 AC_SUBST(MMCOMMON_CFLAGS)
46 AC_SUBST(MMCOMMON_LIBS)
48 PKG_CHECK_MODULES(MMSOUND,mm-sound)
49 AC_SUBST(MMSOUND_CFLAGS)
50 AC_SUBST(MMSOUND_LIBS)
52 PKG_CHECK_MODULES(GLIB, glib-2.0)
56 PKG_CHECK_MODULES(GST, gstreamer-1.0 >= 1.2.0)
60 PKG_CHECK_MODULES(GST_PLUGIN_BASE, gstreamer-plugins-base-1.0 >= 1.2.0)
61 AC_SUBST(GST_PLUGIN_BASE_CFLAGS)
62 AC_SUBST(GST_PLUGIN_BASE_LIBS)
64 AC_ARG_ENABLE(wayland, AC_HELP_STRING([--enable-wayland], [enable wayland]),
66 case "${enableval}" in
67 yes) WAYLAND_SUPPORT=yes ;;
68 no) WAYLAND_SUPPORT=no ;;
69 *) AC_MSG_ERROR(bad value ${enableval} for --enable-wayland) ;;
71 ],[WAYLAND_SUPPORT=no])
72 if test "x$WAYLAND_SUPPORT" = "xyes"; then
73 PKG_CHECK_MODULES(GST_WAYLAND, gstreamer-wayland-1.0 >= 1.2.0)
74 AC_SUBST(GST_WAYLAND_CFLAGS)
75 AC_SUBST(GST_WAYLAND_LIBS)
77 AM_CONDITIONAL([WAYLAND_SUPPORT], [test "x$WAYLAND_SUPPORT" = "xyes"])
79 PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-1.0 >= 1.2.0)
80 AC_SUBST(GST_VIDEO_CFLAGS)
81 AC_SUBST(GST_VIDEO_LIBS)
83 PKG_CHECK_MODULES(GST_APP, gstreamer-app-1.0 >= 1.2.0)
84 AC_SUBST(GST_APP_CFLAGS)
85 AC_SUBST(GST_APP_LIBS)
87 PKG_CHECK_MODULES(APPFWK, appcore-efl)
88 AC_SUBST(APPFWK_CFLAGS)
91 PKG_CHECK_MODULES(ELEMENTARY, elementary)
92 AC_SUBST(ELEMENTARY_CFLAGS)
93 AC_SUBST(ELEMENTARY_LIBS)
96 PKG_CHECK_MODULES(MMUTIL, mmutil-imgp)
97 AC_SUBST(MMUTIL_CFLAGS)
100 PKG_CHECK_MODULES(EVAS, evas)
101 AC_SUBST(EVAS_CFLAGS)
104 PKG_CHECK_MODULES(ECORE, ecore)
105 AC_SUBST(ECORE_CFLAGS)
108 PKG_CHECK_MODULES(INIPARSER, iniparser)
109 AC_SUBST(INIPARSER_CFLAGS)
110 AC_SUBST(INIPARSER_LIBS)
112 PKG_CHECK_MODULES(VCONF, vconf)
113 AC_SUBST(VCONF_CFLAGS)
116 PKG_CHECK_MODULES(ICU, icu-i18n)
120 PKG_CHECK_MODULES(MEDIAPACKET, capi-media-tool)
121 AC_SUBST(MEDIAPACKET_CFLAGS)
122 AC_SUBST(MEDIAPACKET_LIBS)
124 PKG_CHECK_MODULES(MRP_RESOURCE, murphy-resource)
125 AC_SUBST(MRP_RESOURCE_CFLAGS)
126 AC_SUBST(MRP_RESOURCE_LIBS)
128 PKG_CHECK_MODULES(MRP_GLIB, murphy-glib)
129 AC_SUBST(MRP_GLIB_CFLAGS)
130 AC_SUBST(MRP_GLIB_LIBS)
132 PKG_CHECK_MODULES(DLOG, dlog)
133 AC_SUBST(DLOG_CFLAGS)
136 AC_ARG_ENABLE(sdk, AC_HELP_STRING([--enable-sdk], [sdk build]),
138 case "${enableval}" in
141 *) AC_MSG_ERROR(bad value ${enableval} for --enable-sdk) ;;
145 AM_CONDITIONAL([IS_SDK], [test "x$IS_SDK" = "xyes"])
147 AC_CONFIG_FILES([Makefile