Check for dlopen in standard libraries first (needed for DEC OSF).
This commit is contained in:
parent
c9591bd1de
commit
9391efe4e8
1 changed files with 6 additions and 3 deletions
|
@ -29,8 +29,11 @@ AC_DEFUN(tinc_OPENSSL,
|
|||
[AC_MSG_ERROR("OpenSSL libraries not found.")]
|
||||
)
|
||||
|
||||
AC_CHECK_LIB(dl, dlopen,
|
||||
[LIBS="$LIBS -ldl"],
|
||||
[AC_MSG_ERROR("OpenSSL depends on libdl.")]
|
||||
AC_CHECK_FUNC(dlopen,
|
||||
[],
|
||||
AC_CHECK_LIB(dl, dlopen,
|
||||
[LIBS="$LIBS -ldl"],
|
||||
[AC_MSG_ERROR("OpenSSL depends on libdl.")]
|
||||
)
|
||||
)
|
||||
])
|
||||
|
|
Loading…
Reference in a new issue