summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-13 20:19:15 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-13 20:19:51 +0200
commitc16dc1680b23c379640fc56973bc7807468b6432 (patch)
tree77209a921cfbdbc85cdfa631c58933aee1af181a
parenta523d2afa6b083401c589576b54ac5af91482647 (diff)
downloadgnutls-c16dc1680b23c379640fc56973bc7807468b6432.tar.gz
check for libdl that pakchois needs.
-rw-r--r--NEWS2
-rw-r--r--lib/Makefile.am2
-rw-r--r--lib/configure.ac2
3 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 8f316c5344..91236eff75 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ See the end for copying conditions.
* Version 2.12.3 (unreleased)
+* libgnutls: depend on libdl.
+
* libgnutls: gnutls_transport_set_global_errno() was deprecated.
Use your system's errno fascility or gnutls_transport_set_errno().
diff --git a/lib/Makefile.am b/lib/Makefile.am
index f4c3403a08..27e4478a53 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -123,7 +123,7 @@ libgnutls_la_LDFLAGS = -no-undefined \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
libgnutls_la_LIBADD = gl/liblgnu.la x509/libgnutls_x509.la \
- $(LTLIBZ) $(LTLIBINTL) $(LIBSOCKET)
+ $(LTLIBZ) $(LTLIBINTL) $(LIBSOCKET) $(LTLIBDL)
if ENABLE_OPENPGP
libgnutls_la_LIBADD += openpgp/libgnutls_openpgp.la
diff --git a/lib/configure.ac b/lib/configure.ac
index 73c5e47bff..e70e8c1946 100644
--- a/lib/configure.ac
+++ b/lib/configure.ac
@@ -93,6 +93,8 @@ lgl_INIT
AC_CHECK_FUNCS(getrusage,,)
AC_LIB_HAVE_LINKFLAGS(pthread,, [#include <pthread.h>], [pthread_mutex_lock (0);])
+dnl for pakchois
+AC_LIB_HAVE_LINKFLAGS(dl,, [#include <dlfcn.h>], [dlclose (0);])
LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
LIBGNUTLS_CFLAGS="-I${includedir}"