diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2018-07-13 19:48:58 -0400 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2018-07-14 12:42:15 -0400 |
| commit | 0c67992a5e96522792aebb622965c4bec3c866d7 (patch) | |
| tree | d7a8f492688939bf0fef529a91571ff46805df0d | |
| parent | c2c79729f3a5ced8d303c2b6a6c1651cc7719376 (diff) | |
Allow to disable an implicitly-selected system using --without-*api*
| -rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7d48af2..90cf02f 100644 --- a/configure.ac +++ b/configure.ac @@ -169,11 +169,21 @@ AS_IF([test "x$systems" = "x"], [*-mingw32*], [systems="asio ds wasapi jack"] )) +# If any were specifically requested disabled, do it. +AS_IF([test "x$with_jack" = "xno"], [systems=`echo $systems|tr ' ' \\\\n|grep -v jack`]) +AS_IF([test "x$with_alsa" = "xno"], [systems=`echo $systems|tr ' ' \\\\n|grep -v alsa`]) +AS_IF([test "x$with_pulse" = "xno"], [systems=`echo $systems|tr ' ' \\\\n|grep -v pulse`]) +AS_IF([test "x$with_oss" = "xno"], [systems=`echo $systems|tr ' ' \\\\n|grep -v oss`]) +AS_IF([test "x$with_core" = "xno"], [systems=`echo $systems|tr ' ' \\\\n|grep -v core`]) +AS_IF([test "x$with_asio" = "xno"], [systems=`echo $systems|tr ' ' \\\\n|grep -v asio`]) +AS_IF([test "x$with_dsound" = "xno"], [systems=`echo $systems|tr ' ' \\\\n|grep -v dsound`]) +AS_IF([test "x$with_wasapi" = "xno"], [systems=`echo $systems|tr ' ' \\\\n|grep -v wasapi`]) +systems=" `echo $systems|tr \\\\n ' '` " + # For each audio system, check if it is selected and found. # Note: Order specified above is not necessarily respected. However, # *actual* priority is set at run-time, see RtAudio::openRtApi. # One AS_CASE per system, since they are not mutually-exclusive. -systems=" $systems " AS_CASE(["$systems"], [*" alsa "*], [ AC_CHECK_LIB(asound, snd_pcm_open, |
