--- a/CMakeLists.txt 2015-06-04 23:19:26.543647639 +0200 +++ b/CMakeLists.txt 2015-06-04 23:22:08.863655630 +0200 @@ -79,7 +79,10 @@ endif() find_package(Alsa) -alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h) +if(ALSA_FOUND) + alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h) + add_definitions(-DHAVE_LIBASOUND2) +endif(ALSA_FOUND) add_definitions (${QT_DEFINITIONS} ${QT_QTDBUS_DEFINITIONS} ${KDE4_DEFINITIONS} ) add_definitions(-DKDE_DEFAULT_DEBUG_AREA=67100) --- a/backends/kmix-backends.cpp 2015-06-04 23:11:58.084625559 +0200 +++ b/backends/kmix-backends.cpp 2015-06-04 23:12:34.194627337 +0200 @@ -23,7 +23,9 @@ /* This code is being #include'd from mixer.cpp */ #include +#ifdef HAVE_LIBASOUND2 #include +#endif #include "mixer_backend.h" #include "core/mixer.h"