[pkg-opensc-commit] [libp11] 41/67: find dlopen() if it's not in libdl
Eric Dorland
eric at moszumanska.debian.org
Sat Jan 30 05:34:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libp11.
commit 8986c89e53578618f8d348fb56e7c70ac15692d1
Author: Christoph Moench-Tegeder <cmt at burggraben.net>
Date: Thu Jan 7 10:32:14 2016 +0100
find dlopen() if it's not in libdl
some systems (e.g. FreeBSD) have dlopen() and friends in libc (-lc)
and do not habe libdl. AC_SEARCH_LIBS handles this case much better
than AC_CHECK_LIB and should be preferred anyways, according to
the autoconf documentation.
---
configure.ac | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index b437122..6491280 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,11 +133,11 @@ AC_CHECK_PROGS([DOXYGEN],[doxygen])
test "${enable_api_doc}" = "yes" -a -z "${DOXYGEN}" && AC_MSG_ERROR([doxygen is required for api doc])
if test "${WIN32}" != "yes"; then
- AC_CHECK_LIB(
- [dl],
+ AC_SEARCH_LIBS(
[dlopen],
+ [dl],
,
- [AC_MSG_ERROR([libdl required])]
+ [AC_MSG_ERROR([dlopen required])]
)
AC_CHECK_FUNCS([__register_atfork],,)
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git
More information about the pkg-opensc-commit
mailing list