AC_INIT([pulseaudio-murphy-ivi],[PAVER],[janos.kovacs@intel.com])
AC_CONFIG_SRCDIR([murphy/module-murphy-ivi.c])
+AC_CONFIG_HEADER([foo.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign 1.8.5 -Wall])
AM_PROG_CC_C_O
AC_PROG_GCC_TRADITIONAL
AC_USE_SYSTEM_EXTENSIONS
+AM_PROG_AR
AC_PATH_PROG([M4], [m4 gm4], [no])
if test "x$M4" = xno ; then
PKG_CHECK_MODULES(PULSEDEVEL, [pulseaudio-module-devel])
AC_SUBST(PULSEDEVEL_CFLAGS)
AC_SUBST(PULSEDEVEL_LIBS)
+PKG_CHECK_VAR([modlibexecdir], [pulseaudio-module-devel], [modlibexecdir])
+AC_SUBST([modlibexecdir])
PKG_CHECK_MODULES(MURPHYCOMMON, [murphy-common])
AC_SUBST(MURPHYCOMMON_CFLAGS)
AC_SUBST(MURPHYCOMMON_LIBS)
-PKG_CHECK_MODULES(MURPHYCORE, [murphy-core])
-AC_SUBST(MURPHYCORE_CFLAGS)
-AC_SUBST(MURPHYCORE_LIBS)
-
PKG_CHECK_MODULES(LUAUTILS, [murphy-lua-utils])
AC_SUBST(LUAUTILS_CFLAGS)
AC_SUBST(LUAUTILS_LIBS)
AC_SUBST(LUA_CFLAGS)
AC_SUBST(LUA_LIBS)
+PKG_CHECK_MODULES(AUL, aul, [have_aul=yes], [have_aul=no])
+if test "$have_aul" = "no" -a "$enable_aul" = "yes"; then
+ AC_MSG_ERROR([AUL development headers not found.])
+fi
+AC_SUBST(AUL_CFLAGS)
+AC_SUBST(AUL_LIBS)
+
+AM_CONDITIONAL(HAVE_AUL, [ test x$have_aul = "xyes" ])
# D-Bus
AC_ARG_WITH([dbus],
AM_CONDITIONAL(BUILD_WITH_DBUS, [ test "x$build_with_dbus" = "xyes" ])
-
-# module directory
-AC_ARG_WITH([module-dir],
- [AS_HELP_STRING([--with-module-dir], [Directory where to install the modules to (defaults to ${LIBDIR}/pulse-${PA_MAJORMINOR}/modules/])],
- [modlibexecdir=$withval],
- [modlibexecdir=${LIBDIR}/pulse-${PA_MAJORMINOR}/modules]
+# murphy interface
+AC_ARG_WITH([murphyif],
+ [ AS_HELP_STRING([--with-murphyif],
+ [Enable murphy domain-controller interface])
+ ],
+ [ build_with_murphyif="yes" ;
+ PKG_CHECK_MODULES(MURPHYIF,
+ [murphy-domain-controller murphy-pulse])
+ AC_SUBST(MURPHYIF_CFLAGS)
+ AC_SUBST(MURPHYIF_LIBS)
+ AC_DEFINE([WITH_MURPHYIF], 1, [Enable Murphy interface ?])
+ ],
+ [ build_with_murphyif="no" ]
)
-AC_SUBST(modlibexecdir)
+AM_CONDITIONAL(BUILD_WITH_MURPHYIF, [ test "x$build_with_murphyif" = "xyes" ])
+
+
+PKG_CHECK_MODULES(MURPHYDOMCTL, [murphy-domain-controller murphy-pulse])
+AC_SUBST(MURPHYDOMCTL_CFLAGS)
+AC_SUBST(MURPHYDOMCTL_LIBS)
# documentation
AC_ARG_WITH([documentation],
LIBPULSE_LIBS: ${LIBPULSE_LIBS}
LIBPULSECORE_CFLAGS: ${LIBPULSECORE_CFLAGS}
LIBPULSECORE_LIBS: ${LIBPULSECORE_LIBS}
+ PULSEDEVEL_CFLAGS ${PULSEDEVEL_CFLAGS}
+ PULSEDEVEL_LIBS ${PULSEDEVEL_LIBS}
MAJORMINOR: ${PA_MAJORMINOR}
DBUS_CFLAGS: ${DBUS_CFLAGS}
DBUS_LIBS: ${DBUS_LIBS}
MURPHYCOMMON_CFLAGS ${MURPHYCOMMON_CFLAGS}
MURPHYCOMMON_LIBS ${MURPHYCOMMON_LIBS}
- MURPHYCORE_CFLAGS ${MURPHYCORE_CFLAGS}
- MURPHYCORE_LIBS ${MURPHYCORE_LIBS}
+ LUAUTILS_CFLAGS ${LUAUTILS_CFLAGS}
+ LUAUTILS_LIBS ${LUAUTILS_LIBS}
LUAUTILS_CFLAGS ${LUAUTILS_CFLAGS}
LUAUTILS_LIBS ${LUAUTILS_LIBS}
LUA_CFLAGS: ${LUA_CFLAGS}
LUA_LIBS: ${LUA_LIBS}
+ AUL_CFLAGS ${AUL_CFLAGS}
+ AUL_LIBS ${AUL_LIBS}
+ murphyif enabled: $build_with_murphyif
+ MURPHYIF_CFLAGS ${MURPHYIF_CFLAGS}
+ MURPHYIF_LIBS ${MURPHYIF_LIBS}
"