diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2007-11-23 21:31:20 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:30:18 +0200 |
| commit | 6e71c81158706f7b9bbf8a6e8cbea41beed1aeae (patch) | |
| tree | 9c39262ab3d87129da595f36f3ecd8bcfe3523ed /configure.ac | |
| parent | 552c2436cf26a4d4c37906bdf855109cf8dd4373 (diff) | |
Various configure and Makefile changes for MinGW (gps).
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 7141656..78eb85a 100644 --- a/configure.ac +++ b/configure.ac @@ -85,12 +85,6 @@ case $host in fi ;; - *-sgi*) - AC_SUBST( audio_apis, ["-D__IRIX_AL__ -LANG:std -w"] ) - AC_MSG_RESULT(using IRIX AL) - AC_CHECK_LIB(audio, alOpenPort, , AC_MSG_ERROR(IRIX audio support requires the audio library!) ) - ;; - *-apple*) AC_SUBST( sound_api, [_NO_API_] ) AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (unix only)], [AC_SUBST( sound_api, [-D__UNIX_JACK__] ) AC_MSG_RESULT(using JACK)], ) @@ -118,6 +112,27 @@ case $host in fi ;; + *-mingw32*) + AC_SUBST( sound_api, [_NO_API_] ) + AC_ARG_WITH(asio, [ --with-asio = choose ASIO API support (windoze only)], [AC_SUBST( sound_api, [-D__WINDOWS_ASIO__] ) AC_MSG_RESULT(using ASIO)], ) + if [test $sound_api = -D__UNIX_ASIO__;] then + audio_apis="-D__WINDOWS_ASIO__" + fi + + # Look for DirectSound flag + AC_ARG_WITH(ds, [ --with-ds = choose DirectSound API support (windoze only)], [AC_SUBST( sound_api, [-D__WINDOWS_DS__] ) AC_MSG_RESULT(using DirectSound)], ) + if test $sound_api = -D__WINDOWS_DS__; then + audio_apis="-D__WINDOWS_DS__ $audio_apis" + fi + + # If no audio api flags specified, use DirectSound + if [test $sound_api = _NO_API_;] then + AC_SUBST( sound_api, [-D__WINDOWS_DS__] ) + AC_MSG_RESULT(using DirectSound) + audio_apis="-D__WINDOWS_DS__" + fi + ;; + *) # Default case for unknown realtime systems. AC_MSG_ERROR(Unknown system type for realtime support!) |
