diff options
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 97723be9..aaeaef1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -311,10 +311,10 @@ IF(ALSA) CHECK_INCLUDE_FILE(alsa/asoundlib.h HAVE_ALSA_ASOUNDLIB_H) IF(HAVE_ALSA_ASOUNDLIB_H) CHECK_SHARED_LIBRARY_EXISTS(asound snd_pcm_open 4 "" HAVE_LIBASOUND) - IF(HAVE_DLFCN_H OR HAVE_LIBASOUND) + IF(HAVE_LIBASOUND OR HAVE_DLFCN_H OR WIN32) SET(HAVE_ALSA 1) SET(ALC_OBJS ${ALC_OBJS} Alc/alsa.c) - IF(HAVE_DLFCN_H) + IF(HAVE_DLFCN_H OR WIN32) SET(BACKENDS "${BACKENDS} ALSA,") ELSE() SET(BACKENDS "${BACKENDS} ALSA \(linked\),") @@ -349,11 +349,11 @@ IF(DSOUND) CHECK_INCLUDE_FILE(dsound.h HAVE_DSOUND_H) IF(HAVE_DSOUND_H) CHECK_SHARED_LIBRARY_EXISTS(dsound DirectSoundCreate 3 "" HAVE_LIBDSOUND) - IF(HAVE_LIBDSOUND OR WIN32) + IF(HAVE_LIBDSOUND OR HAVE_DLFCN_H OR WIN32) SET(HAVE_DSOUND 1) SET(ALC_OBJS ${ALC_OBJS} Alc/dsound.c) - IF(WIN32) + IF(HAVE_DLFCN_H OR WIN32) SET(BACKENDS "${BACKENDS} DirectSound,") ELSE() SET(BACKENDS "${BACKENDS} DirectSound \(linked\),") @@ -383,10 +383,10 @@ IF(PORTAUDIO) CHECK_INCLUDE_FILE(portaudio.h HAVE_PORTAUDIO_H) IF(HAVE_PORTAUDIO_H) CHECK_SHARED_LIBRARY_EXISTS(portaudio Pa_Initialize 0 "" HAVE_LIBPORTAUDIO) - IF(HAVE_LIBPORTAUDIO) + IF(HAVE_LIBPORTAUDIO OR HAVE_DLFCN_H OR WIN32) SET(HAVE_PORTAUDIO 1) SET(ALC_OBJS ${ALC_OBJS} Alc/portaudio.c) - IF(HAVE_DLFCN_H) + IF(HAVE_DLFCN_H OR WIN32) SET(BACKENDS "${BACKENDS} PortAudio,") ELSE() SET(BACKENDS "${BACKENDS} PortAudio \(linked\),") @@ -401,10 +401,10 @@ IF(PULSEAUDIO) CHECK_INCLUDE_FILE(pulse/pulseaudio.h HAVE_PULSE_PULSEAUDIO_H) IF(HAVE_PULSE_PULSEAUDIO_H) CHECK_SHARED_LIBRARY_EXISTS(pulse pa_context_new 2 "" HAVE_LIBPULSE) - IF(HAVE_LIBPULSE) + IF(HAVE_LIBPULSE OR HAVE_DLFCN_H OR WIN32) SET(HAVE_PULSEAUDIO 1) SET(ALC_OBJS ${ALC_OBJS} Alc/pulseaudio.c) - IF(HAVE_DLFCN_H) + IF(HAVE_DLFCN_H OR WIN32) SET(BACKENDS "${BACKENDS} PulseAudio,") ELSE() SET(BACKENDS "${BACKENDS} PulseAudio \(linked\),") |