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
|
if test "${WIN32}" = "no"; then
|
||||||
dnl dl support
|
dnl dl support
|
||||||
AC_CHECK_LIB(
|
AC_SEARCH_LIBS([dlopen], [dl dld], [], [
|
||||||
[dl],
|
AC_MSG_ERROR([unable to find the dlopen() function])
|
||||||
[dlopen],
|
])
|
||||||
,
|
|
||||||
[AC_MSG_ERROR([libdl required])]
|
|
||||||
)
|
|
||||||
|
|
||||||
dnl Special check for pthread support.
|
dnl Special check for pthread support.
|
||||||
AX_PTHREAD(
|
AX_PTHREAD(
|
||||||
|
|
Loading…
Reference in New Issue