build: check for dlopen() in a BSD-friendly way.
From http://www.flameeyes.eu/autotools-mythbuster/autoconf/finding.html
This commit is contained in:
parent
32ed309037
commit
11ff81367a
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue