]> git.alsa-project.org Git - alsa-utils.git/commitdiff
configure: Fix linking of alsatplg with the older libs
authorJaroslav Kysela <perex@perex.cz>
Tue, 3 Dec 2019 19:51:56 +0000 (20:51 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 3 Dec 2019 19:52:42 +0000 (20:52 +0100)
BugLink: https://github.com/alsa-project/alsa-utils/issues/33
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
configure.ac

index a4a2dd4480f7bedd5d3a830ab4ff559dfc8a6ff5..4bee49be81ba823e59c0db3e075fc8e1e942c48e 100644 (file)
@@ -70,6 +70,11 @@ AM_CONDITIONAL(HAVE_TOPOLOGY, test "$have_topology" = "yes")
 AM_CONDITIONAL(HAVE_SAMPLERATE, test "$have_samplerate" = "yes")
 AM_CONDITIONAL(HAVE_FFADO, test "$have_ffado" = "yes")
 
+# old libasound with the topology routines in the main library
+if test "x$have_topology" = "xyes" -a "x$ALSA_TOPOLOGY_LIBS" = "x"; then
+  ALSA_TOPOLOGY_LIBS="$ALSA_LIBS"
+fi
+
 dnl Use tinyalsa
 alsabat_backend_tiny=
 AC_ARG_ENABLE(alsabat_backend_tiny,