AC_PREREQ(2.52)
-AC_INIT([avsystem], [1.0])
-AM_INIT_AUTOMAKE([-Wall foreign])
+AC_INIT([libmm-sound], [1.0])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_HEADERS([config.h:config.hin])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
-m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+m4_pattern_allow([AM_PROG_AR])
+AM_PROG_AR
AC_PROG_CC
AC_C_CONST
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
# Checks for libraries.
-PKG_CHECK_MODULES(AVSYSTEM, avsysaudio)
-AC_SUBST(AVSYSTEM_CFLAGS)
-AC_SUBST(AVSYSTEM_LIBS)
-
PKG_CHECK_MODULES(MMCOMMON, mm-common)
AC_SUBST(MMCOMMON_CFLAGS)
AC_SUBST(MMCOMMON_LIBS)
AC_SUBST(MMSESSION_CFLAGS)
AC_SUBST(MMSESSION_LIBS)
-PKG_CHECK_MODULES(AUDIOSESSIONMGR, audio-session-mgr)
-AC_SUBST(AUDIOSESSIONMGR_CFLAGS)
-AC_SUBST(AUDIOSESSIONMGR_LIBS)
-
PKG_CHECK_MODULES(GLIB2, glib-2.0 gthread-2.0)
AC_SUBST(GLIB2_CFLAGS)
AC_SUBST(GLIB2_LIBS)
+PKG_CHECK_MODULES(GIO, gio-2.0)
+AC_SUBST(GIO_CFLAGS)
+AC_SUBST(GIO_LIBS)
+
PKG_CHECK_MODULES(VCONF, vconf)
AC_SUBST(VCONF_CFLAGS)
AC_SUBST(VCONF_LIBS)
-PKG_CHECK_MODULES(HEYNOTI, heynoti)
-AC_SUBST(HEYNOTI_CFLAGS)
-AC_SUBST(HEYNOTI_LIBS)
-
AC_ARG_ENABLE(pulse, AC_HELP_STRING([--enable-pulse], [enable pulseaudio client]),
[
case "${enableval}" in
esac
],[USE_PULSE=no])
if test "x$USE_PULSE" = "xyes"; then
-PKG_CHECK_MODULES(PULSE, libpulse)
-AC_SUBST(PULSE_CFLAGS)
-AC_SUBST(PULSE_LIBS)
+PKG_CHECK_MODULES(PASIMPLE, libpulse-simple)
+AC_SUBST(PASIMPLE_CFLAGS)
+AC_SUBST(PASIMPLE_LIBS)
+PKG_CHECK_MODULES(PA, libpulse)
+AC_SUBST(PA_CFLAGS)
+AC_SUBST(PA_LIBS)
fi
AM_CONDITIONAL([USE_PULSE], [test "x$USE_PULSE" = "xyes"])
-dnl use security --------------------------------------------------------------------------
-AC_ARG_ENABLE(security, AC_HELP_STRING([--enable-security], [using security]),
+AC_ARG_ENABLE(ogg, AC_HELP_STRING([--enable-ogg], [enable ogg client]),
[
case "${enableval}" in
- yes) USE_SECURITY=yes ;;
- no) USE_SECURITY=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-security) ;;
+ yes) OGG_SUPPORT=yes ;;
+ no) OGG_SUPPORT=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-ogg) ;;
+ esac
+ ],[OGG_SUPPORT=no])
+if test "x$OGG_SUPPORT" = "xyes"; then
+PKG_CHECK_MODULES(TREMOLO, libtremolo)
+AC_SUBST(TREMOLO_CFLAGS)
+AC_SUBST(TREMOLO_LIBS)
+fi
+AM_CONDITIONAL([OGG_SUPPORT], [test "x$OGG_SUPPORT" = "xyes"])
+
+AC_ARG_ENABLE(lwipc, AC_HELP_STRING([--enable-lwipc], [enable light weight ipc]),
+[
+ case "${enableval}" in
+ yes) USE_LWIPC=yes ;;
+ no) USE_LWIPC=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-lwipc) ;;
esac
- ],[USE_SECURITY=no])
+ ],[USE_LWIPC=no])
+if test "x$USE_LWIPC" = "xyes"; then
+PKG_CHECK_MODULES(LWIPC, lwipc)
+AC_SUBST(LWIPC_CFLAGS)
+AC_SUBST(LWIPC_LIBS)
+fi
+AM_CONDITIONAL([USE_LWIPC], [test "x$USE_LWIPC" = "xyes"])
+
+dnl use security ---------------------------------------------------------------
+AC_ARG_ENABLE(security, AC_HELP_STRING([--enable-security], [using security]),
+[
+ case "${enableval}" in
+ yes) USE_SECURITY=yes ;;
+ no) USE_SECURITY=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-security) ;;
+ esac
+],[USE_SECURITY=no])
if test "x$USE_SECURITY" = "xyes"; then
-PKG_CHECK_MODULES(SECURITY, security-server)
-AC_SUBST(SECURITY_CFLAGS)
-AC_SUBST(SECURITY_LIBS)
+ PKG_CHECK_MODULES(SECURITY, security-server)
+ AC_SUBST(SECURITY_CFLAGS)
+ AC_SUBST(SECURITY_LIBS)
fi
AM_CONDITIONAL(USE_SECURITY, test "x$USE_SECURITY" = "xyes")
-dnl end --------------------------------------------------------------------
+dnl end ------------------------------------------------------------------------
+
+
+AC_ARG_ENABLE(focus, AC_HELP_STRING([--enable-focus], [enable focus feature]),
+[
+ case "${enableval}" in
+ yes) USE_FOCUS=yes ;;
+ no) USE_FOCUS=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-focus) ;;
+ esac
+ ],[USE_FOCUS=no])
+AM_CONDITIONAL([USE_FOCUS], [test "x$USE_FOCUS" = "xyes"])
+AC_ARG_ENABLE(prelink, AC_HELP_STRING([--enable-prelink], [enable pre-link feature]),
+[
+ case "${enableval}" in
+ yes) USE_PRELINK=yes ;;
+ no) USE_PRELINK=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-prelink) ;;
+ esac
+ ],[USE_PRELINK=no])
+AM_CONDITIONAL([USE_PRELINK], [test "x$USE_PRELINK" = "xyes"])
+
+AC_ARG_WITH(plugindir, AS_HELP_STRING([--with-plugindir=<path>],[sound-server plugin dir]))
+if test -z "$with_plugindir" ; then
+PLUGIN_DIR=/usr/lib/soundplugins/
+else
+PLUGIN_DIR=$with_plugindir
+fi
+AC_SUBST(PLUGIN_DIR)
+AC_DEFINE_UNQUOTED(PLUGIN_DIR,"$PLUGIN_DIR", [sound-server plugin dir])
# Checks for header files.
AC_HEADER_STDC
server/Makefile
server/plugin/Makefile
server/plugin/wav/Makefile
-server/plugin/keytone/Makefile
+server/plugin/ogg/Makefile
server/plugin/tone/Makefile
+focus_server/Makefile
pkgconfig/Makefile
pkgconfig/mm-sound.pc
pkgconfig/mm-keysound.pc
+pkgconfig/mm-bootsound.pc
testsuite/Makefile
-init/Makefile
])
AC_OUTPUT