From: Jaroslav Kysela Date: Tue, 18 Feb 2020 18:44:36 +0000 (+0100) Subject: alsa.m4: another fix to not link all binaries with -latopology X-Git-Tag: v1.2.2~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=78fea15390a9d1c8e81a059e9685e4df38fb381e;p=alsa-lib.git alsa.m4: another fix to not link all binaries with -latopology Preserve LIBS when the -latopology is tested. It's added later. Signed-off-by: Jaroslav Kysela --- diff --git a/utils/alsa.m4 b/utils/alsa.m4 index 320e4336..04cc8808 100644 --- a/utils/alsa.m4 +++ b/utils/alsa.m4 @@ -160,11 +160,13 @@ AC_CHECK_LIB([asound], [snd_ctl_open],, ) if test "x$enable_atopology" = "xyes"; then alsa_topology_found=yes +alsa_save_LIBS2="$LIBS" AC_CHECK_LIB([atopology], [snd_tplg_new],, [ifelse([$3], , [AC_MSG_ERROR(No linkable libatopology was found.)]) alsa_topology_found=no, ] ) +LIBS="$alsa_save_LIBS2" fi else if test "x$enable_atopology" = "xyes"; then