libao-1.2.0 faulty configure check for wmm driver
Hello
The AC_LANG_SOURCE() function in configure.ac for the wmm detection code is misplaced and disable the test altogether.
I've joined a small patch that fix the problem.
--- libao-1.2.0-bug/configure.ac 2014-01-27 18:02:05.000000000 +0100
+++ libao-1.2.0-fix/configure.ac 2015-06-15 02:49:42.994291600 +0200
@@ -224,13 +224,13 @@ AC_ARG_ENABLE([wmm],
[include WMM output plugin @<:@default=check@:>@])],
[],[enable_wmm="check"]
)
-AS_IF([AC_LANG_SOURCE([test "x$enable_wmm" != "xno"],
+AS_IF([test "x$enable_wmm" != "xno"],
[AC_CHECK_HEADERS([mmsystem.h],
[
AC_MSG_CHECKING([waveOut family functions])
waveout_old_LIBS="$LIBS"; LIBS="$LIBS -lwinmm"
dnl Can't use AC_SEARCH_LIBS because symbols are decorated
- AC_LINK_IFELSE([
+ AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <windows.h>
#include <mmsystem.h>
int main(int na, char ** a) {
-- G.B