diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2018-07-13 20:24:52 -0400 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2018-07-14 12:42:15 -0400 |
| commit | 598a21f4114a4d49e4403215448ff4156778c616 (patch) | |
| tree | f513457ede08decdbdb137ec4026d7a5fca17c42 /configure.ac | |
| parent | ebd023a3c07aad609d8ee1c0195b0016b300c4e8 (diff) | |
Check for headers for Windows APIs (except ASIO)
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 20 |
1 files changed, 11 insertions, 9 deletions
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"]) |
