build: check for dlopen() in a BSD-friendly way.

From http://www.flameeyes.eu/autotools-mythbuster/autoconf/finding.html
This commit is contained in:
Martin Paljak 2013-03-16 00:30:11 +02:00
parent 32ed309037
commit 11ff81367a
1 changed files with 3 additions and 6 deletions

View File

@ -286,12 +286,9 @@ AC_CHECK_LIB(
if test "${WIN32}" = "no"; then
dnl dl support
AC_CHECK_LIB(
[dl],
[dlopen],
,
[AC_MSG_ERROR([libdl required])]
)
AC_SEARCH_LIBS([dlopen], [dl dld], [], [
AC_MSG_ERROR([unable to find the dlopen() function])
])
dnl Special check for pthread support.
AX_PTHREAD(