diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-06-30 15:22:22 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-06-30 15:22:24 +0200 |
commit | 3c9c273b405779b6cf8da7d6b3c077b383fab82f (patch) | |
tree | 9c4e45e5059589d0f68dc5a5e39850c62724e619 | |
parent | 4d900a97ea73f0deaba5978ff4088ec134c12603 (diff) | |
download | gnutls-3c9c273b405779b6cf8da7d6b3c077b383fab82f.tar.gz |
configure: check for libdl irrespective of FIPS140 configuration
This allows to link to libdl for the tests that require it.
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index fcef13a7cf..b6653d1c37 100644 --- a/configure.ac +++ b/configure.ac @@ -381,12 +381,13 @@ AC_ARG_ENABLE(self-checks, AS_HELP_STRING([--enable-self-checks], [enable self checking functionality]), enable_self_checks=$enableval, enable_self_checks=no) +AC_LIB_HAVE_LINKFLAGS(dl,, [#include <dlfcn.h>], [dladdr (0, 0);]) + AC_ARG_ENABLE(fips140-mode, AS_HELP_STRING([--enable-fips140-mode], [enable FIPS140-2 mode (implies self checks)]), enable_fips=$enableval, enable_fips=no) AM_CONDITIONAL(ENABLE_FIPS140, test "$enable_fips" = "yes") if [ test "$enable_fips" = "yes" ];then - AC_LIB_HAVE_LINKFLAGS(dl,, [#include <dlfcn.h>], [dladdr (0, 0);]) if test "x$HAVE_LIBDL" = "xyes";then enable_self_checks=yes |