]> git.alsa-project.org Git - alsa-lib.git/commit
utils/alsa.m4: conditionally enable libdl in AM_PATH_ALSA m4 macro
authorThomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Thu, 1 Nov 2018 14:40:07 +0000 (15:40 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 2 Nov 2018 13:57:50 +0000 (14:57 +0100)
commit178fe66bc88c6ccdd3b90195e7178293d368a83b
tree52d4f821568bd036cac872f92cebd037603a4bb8
parent9a8d0b0ad56d70f1822fb2219b090c66dcb6618d
utils/alsa.m4: conditionally enable libdl in AM_PATH_ALSA m4 macro

The AM_PATH_ALSA macro in utils/alsa.m4 unconditionally uses
-ldl. This breaks compilation of alsa-utils (and probably other
packages using this macro) for targets that do not support dynamic
loading.

This patch updates the macro to check if dlopen is available, and use
that result to conditionally add -ldl to the list of libraries.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
utils/alsa.m4