diff --git a/configure.ac b/configure.ac index aaf869df..ff82c6e8 100644 --- a/configure.ac +++ b/configure.ac @@ -255,19 +255,10 @@ AC_ARG_WITH(libdl, [ have_libdl="$withval" ], [ have_libdl="yes" ]) HAVE_LIBDL= if test "$have_libdl" = "yes"; then - case $host_os in - netbsd* | freebsd* | dragonfly* | openbsd*) - HAVE_LIBDL=yes + AC_SEARCH_LIBS([dlsym], [dl], [HAVE_LIBDL="yes"]) + if test "$HAVE_LIBDL" = "yes" ; then AC_DEFINE([HAVE_LIBDL], 1, [Have libdl]) - ;; - *) - AC_CHECK_LIB([dl], [dlsym], [HAVE_LIBDL="yes"]) - if test "$HAVE_LIBDL" = "yes" ; then - ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl" - AC_DEFINE([HAVE_LIBDL], 1, [Have libdl]) - fi - ;; - esac + fi else AC_MSG_RESULT(no) fi