3 AC_INIT([avsystem], [1.0])
4 AM_INIT_AUTOMAKE([-Wall foreign])
5 AC_CONFIG_HEADERS([config.h:config.hin])
7 AC_CONFIG_MACRO_DIR([m4])
10 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
17 AC_FUNC_SELECT_ARGTYPES
23 AC_PROG_GCC_TRADITIONAL
26 # Checks for libraries.
27 PKG_CHECK_MODULES(AVSYSTEM, avsysaudio)
28 AC_SUBST(AVSYSTEM_CFLAGS)
29 AC_SUBST(AVSYSTEM_LIBS)
31 PKG_CHECK_MODULES(MMCOMMON, mm-common)
32 AC_SUBST(MMCOMMON_CFLAGS)
33 AC_SUBST(MMCOMMON_LIBS)
35 if [test "x$IS_SDK" = "xyes"];
37 echo "SDK build does not use mm-log"
39 PKG_CHECK_MODULES(MMLOG, mm-log)
40 AC_SUBST(MMLOG_CFLAGS)
44 PKG_CHECK_MODULES(MMSESSION, mm-session)
45 AC_SUBST(MMSESSION_CFLAGS)
46 AC_SUBST(MMSESSION_LIBS)
48 PKG_CHECK_MODULES(AUDIOSESSIONMGR, audio-session-mgr)
49 AC_SUBST(AUDIOSESSIONMGR_CFLAGS)
50 AC_SUBST(AUDIOSESSIONMGR_LIBS)
52 PKG_CHECK_MODULES(GLIB2, glib-2.0 gthread-2.0)
53 AC_SUBST(GLIB2_CFLAGS)
56 PKG_CHECK_MODULES(VCONF, vconf)
57 AC_SUBST(VCONF_CFLAGS)
60 PKG_CHECK_MODULES(HEYNOTI, heynoti)
61 AC_SUBST(HEYNOTI_CFLAGS)
62 AC_SUBST(HEYNOTI_LIBS)
64 AC_ARG_ENABLE(pulse, AC_HELP_STRING([--enable-pulse], [enable pulseaudio client]),
66 case "${enableval}" in
69 *) AC_MSG_ERROR(bad value ${enableval} for --enable-pulse) ;;
72 if test "x$USE_PULSE" = "xyes"; then
73 PKG_CHECK_MODULES(PULSE, libpulse)
74 AC_SUBST(PULSE_CFLAGS)
77 AM_CONDITIONAL([USE_PULSE], [test "x$USE_PULSE" = "xyes"])
79 AC_ARG_ENABLE(policy, AC_HELP_STRING([--enable-policy], [enable use of samsung policy module in pulse]),
81 case "${enableval}" in
82 yes) USE_POLICY=yes ; AC_MSG_NOTICE([using samsung policy]);;
83 no) USE_POLICY=no ; AC_MSG_NOTICE([not using samsung policy]);;
84 *) AC_MSG_ERROR(bad value ${enableval} for --enable-policy) ;;
88 AM_CONDITIONAL([USE_POLICY], [test "x$USE_POLICY" = "xyes"])
89 if test "x$USE_POLICY" = "xyes"; then
90 AC_DEFINE([USE_POLICY], 1, [enable samsung policy])
94 # Checks for header files.
96 AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h errno.h sys/types.h sys/stat.h])
98 # Checks for typedefs, structures, and compiler characteristics.
103 # Checks for library functions.
108 AC_FUNC_SELECT_ARGTYPES
110 AC_CHECK_FUNCS([memset select])
115 server/plugin/Makefile
116 server/plugin/wav/Makefile
117 server/plugin/keytone/Makefile
118 server/plugin/tone/Makefile
120 pkgconfig/mm-sound.pc
121 pkgconfig/mm-keysound.pc