]> git.alsa-project.org Git - alsa-lib.git/commitdiff
alsa.m4: another fix to not link all binaries with -latopology
authorJaroslav Kysela <perex@perex.cz>
Tue, 18 Feb 2020 18:44:36 +0000 (19:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 18 Feb 2020 18:45:19 +0000 (19:45 +0100)
Preserve LIBS when the -latopology is tested. It's added later.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
utils/alsa.m4

index 320e4336a925bc7e2ebe4c585d7ebc0371ba7234..04cc8808902e561d1c507765c4ba6881f56e7ede 100644 (file)
@@ -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