mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
configure: avoid libdl detecion on *BSD
NetBSD and OpenBSD has no libdl FreeBSD and DragonFlyBSD has libdl but dummy These OSes are no need to use -ldl to use dlopen() Fixes: https://github.com/alsa-project/alsa-lib/pull/290 Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2f9bbefb8d
commit
fea9fc2298
1 changed files with 1 additions and 2 deletions
|
|
@ -255,9 +255,8 @@ AC_ARG_WITH(libdl,
|
|||
[ have_libdl="$withval" ], [ have_libdl="yes" ])
|
||||
HAVE_LIBDL=
|
||||
if test "$have_libdl" = "yes"; then
|
||||
AC_CHECK_LIB([dl], [dlsym], [HAVE_LIBDL="yes"])
|
||||
AC_SEARCH_LIBS([dlsym], [dl], [HAVE_LIBDL="yes"])
|
||||
if test "$HAVE_LIBDL" = "yes" ; then
|
||||
ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl"
|
||||
AC_DEFINE([HAVE_LIBDL], 1, [Have libdl])
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue