From: Stephen Sinclair Date: Sat, 14 Jul 2018 00:24:52 +0000 (-0400) Subject: Check for headers for Windows APIs (except ASIO) X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=598a21f4114a4d49e4403215448ff4156778c616;p=rtaudio-cdist.git Check for headers for Windows APIs (except ASIO) --- diff --git a/configure.ac b/configure.ac index 4585cd4..33634a0 100644 --- a/configure.ac +++ b/configure.ac @@ -259,18 +259,20 @@ AS_CASE(["$systems"], [*" asio "*], [ ]) AS_CASE(["$systems"], [*" ds "*], [ - api="$api -D__WINDOWS_DS__" - need_ole32=yes - found="$found DirectSound" - LIBS="-ldsound -lwinmm $LIBS" + AC_CHECK_HEADERS(mmsystem.h mmreg.h dsound.h, + [api="$api -D__WINDOWS_DS__" + need_ole32=yes + found="$found DirectSound" + LIBS="-ldsound -lwinmm $LIBS"]) ]) AS_CASE(["$systems"], [*" wasapi "*], [ - api="$api -D__WINDOWS_WASAPI__" - CPPFLAGS="-I$srcdir/include $CPPFLAGS" - need_ole32=yes - found="$found WASAPI" - LIBS="-lwinmm -luuid -lksuser $LIBS" + AC_CHECK_HEADERS(windows.h audioclient.h avrt.h mmdeviceapi.h, + [api="$api -D__WINDOWS_WASAPI__" + CPPFLAGS="-I$srcdir/include $CPPFLAGS" + need_ole32=yes + found="$found WASAPI" + LIBS="-lwinmm -luuid -lksuser $LIBS"]) ]) AS_IF([test -n "$need_ole32"], [LIBS="-lole32 $LIBS"])