Change-Id: I836e25ea38a1d319863d47b114865639a5ce315e
fi
AC_SUBST(AUDIO_SESSION_MANAGER_CFLAGS)
AC_SUBST(AUDIO_SESSION_MANAGER_LIBS)
+
+ # check for AUL
+ 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)
+
enable_resource_asm="$have_resource_asm"
else
AC_MSG_NOTICE([Audio Session Manager support is disabled.])
%endif
%if %{?_with_audiosession:1}%{!?_with_audiosession:0}
BuildRequires: pkgconfig(audio-session-mgr)
+BuildRequires: pkgconfig(aul)
%endif
%if %{?_with_websockets:1}%{!?_with_websockets:0}
BuildRequires: libwebsockets-devel
# Audio Session Manager plugin
RESOURCE_ASM_PLUGIN_SOURCES = plugins/plugin-resource-asm.c
-RESOURCE_ASM_PLUGIN_CFLAGS = $(AUDIO_SESSION_MANAGER_CFLAGS)
-RESOURCE_ASM_PLUGIN_LIBS = # no library support needed
+RESOURCE_ASM_PLUGIN_CFLAGS = $(AUDIO_SESSION_MANAGER_CFLAGS) $(AUL_CFLAGS)
+RESOURCE_ASM_PLUGIN_LIBS = $(AUL_LIBS)
if RESOURCE_ASM_ENABLED