2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([libmm-player],[0.0.1])
6 AC_CONFIG_SRCDIR([src/mm_player_priv.c])
7 AC_CONFIG_HEADER([config.h])
8 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
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(MMTA, mm-ta)
48 PKG_CHECK_MODULES(MMCOMMON,mm-common)
49 AC_SUBST(MMCOMMON_CFLAGS)
50 AC_SUBST(MMCOMMON_LIBS)
52 PKG_CHECK_MODULES(MMSOUND,mm-sound)
53 AC_SUBST(MMSOUND_CFLAGS)
54 AC_SUBST(MMSOUND_LIBS)
56 PKG_CHECK_MODULES(GLIB, glib-2.0)
60 PKG_CHECK_MODULES(GST, gstreamer-0.10 >= 0.10)
64 PKG_CHECK_MODULES(GST_PLUGIN_BASE, gstreamer-plugins-base-0.10 >= 0.10)
65 AC_SUBST(GST_PLUGIN_BASE_CFLAGS)
66 AC_SUBST(GST_PLUGIN_BASE_LIBS)
68 PKG_CHECK_MODULES(GST_INTERFACE, gstreamer-interfaces-0.10 >= 0.10)
69 AC_SUBST(GST_INTERFACE_CFLAGS)
72 PKG_CHECK_MODULES(GST_APP, gstreamer-app-0.10 >= 0.10)
73 AC_SUBST(GST_APP_CFLAGS)
74 AC_SUBST(GST_APP_LIBS)
76 PKG_CHECK_MODULES(MMSESSION, mm-session)
77 AC_SUBST(MMSESSION_CFLAGS)
78 AC_SUBST(MMSESSION_LIBS)
80 PKG_CHECK_MODULES(MMUTIL, mmutil-imgp)
81 AC_SUBST(MMUTIL_CFLAGS)
84 PKG_CHECK_MODULES(AUDIOSESSIONMGR, audio-session-mgr)
85 AC_SUBST(AUDIOSESSIONMGR_CFLAGS)
86 AC_SUBST(AUDIOSESSIONMGR_LIBS)
88 PKG_CHECK_MODULES(ICU, icu-i18n)
92 PKG_CHECK_MODULES(INIPARSER, iniparser)
93 AC_SUBST(INIPARSER_CFLAGS)
94 AC_SUBST(INIPARSER_LIBS)
96 PKG_CHECK_MODULES(VCONF, vconf)
97 AC_SUBST(VCONF_CFLAGS)
100 AC_CONFIG_FILES([Makefile