From 25218fa57abe7ade75af02c6fdce0d011c5efd8a Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 30 Jun 2016 15:22:22 +0200 Subject: configure: check for libdl irrespective of FIPS140 configuration This allows to link to libdl for the tests that require it. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4597a02891..ccbec3b26f 100644 --- a/configure.ac +++ b/configure.ac @@ -317,12 +317,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 ], [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 ], [dladdr (0, 0);]) if test "x$HAVE_LIBDL" = "xyes";then enable_self_checks=yes -- cgit v1.2.1