From 04916db6847765b676b457f17ac5131fb80c5ae8 Mon Sep 17 00:00:00 2001 From: SASANO Takayoshi Date: Tue, 3 Jan 2023 17:33:12 +0900 Subject: [PATCH] disable -ldl check for *BSDs, find path Closes: https://github.com/alsa-project/alsa-plugins/pull/48 Signed-off-by: SASANO Takayoshi Signed-off-by: Jaroslav Kysela --- configure.ac | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 3215b96..4ba0e73 100644 --- a/configure.ac +++ b/configure.ac @@ -17,14 +17,25 @@ AC_HEADER_STDC CC_NOUNDEFINED PKG_CHECK_MODULES(ALSA, alsa >= 1.1.6) -AC_CHECK_LIB(asound, snd_pcm_ioplug_create,, +case $host_os in +netbsd* | freebsd* | dragonfly* | openbsd*) + AC_CHECK_LIB(asound, snd_pcm_ioplug_create,, + AC_ERROR([*** libasound has no external plugin SDK])) + ;; +*) + AC_CHECK_LIB(asound, snd_pcm_ioplug_create,, AC_ERROR([*** libasound has no external plugin SDK]), -ldl) + ;; +esac AC_ARG_ENABLE([oss], AS_HELP_STRING([--disable-oss], [Disable building of OSS plugin])) -AS_IF([test "x$enable_oss" != "xno"], - [AM_CONDITIONAL(HAVE_OSS, true)], - [AM_CONDITIONAL(HAVE_OSS, false)]) +if test "x$enable_oss" != "xno"; then + AM_CONDITIONAL(HAVE_OSS, true) + AC_CHECK_HEADERS([sys/soundcard.h soundcard.h]) +else + AM_CONDITIONAL(HAVE_OSS, false) +fi AC_ARG_ENABLE([mix], AS_HELP_STRING([--disable-mix], [Disable building of upmix and vdownmix plugins])) -- 2.47.1