mixer: Don't build simple_abst when no libdl is available

Check BUILD_MODULES conditional not to compile simple_abst.c.
Also return -ENXIO to caller statically in that case.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2012-12-07 09:28:06 +01:00
parent 8d14698931
commit 1b428e7719
2 changed files with 15 additions and 1 deletions

View file

@ -1,6 +1,10 @@
EXTRA_LTLIBRARIES=libmixer.la
libmixer_la_SOURCES = bag.c mixer.c simple.c simple_none.c simple_abst.c
libmixer_la_SOURCES = bag.c mixer.c simple.c simple_none.c
if BUILD_MODULES
libmixer_la_SOURCES += simple_abst.c
endif
noinst_HEADERS = mixer_local.h mixer_simple.h