From: Andreas Metzler Date: Sat, 3 Dec 2016 13:29:51 +0000 (+0100) Subject: Prevent unwanted linkage to -lhogweed X-Git-Tag: gnutls_3_5_7~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0a103cb56d254d167a963bd955c42acb3155ce7;p=thirdparty%2Fgnutls.git Prevent unwanted linkage to -lhogweed Specify action-if-found for AC_CHECK_LIB when checking for !SuiteB curves to keep autoconf from adding -lhogweed to LIBS. This caused linkage of e.g. openssl wrapper and C++ library to -lhogweed. The issue only shows up if --disable-libdane is specified, since the dane autoconf test resets LIBS. --- diff --git a/configure.ac b/configure.ac index 4278d2ba94..2e518b9097 100644 --- a/configure.ac +++ b/configure.ac @@ -514,7 +514,7 @@ AC_ARG_ENABLE(non-suiteb-curves, if test "$enable_non_suiteb" = "yes";then dnl nettle_secp_192r1 is not really a function - AC_CHECK_LIB(hogweed, nettle_secp_192r1,, enable_non_suiteb=no, [$HOGWEED_LIBS]) + AC_CHECK_LIB(hogweed, nettle_secp_192r1, enable_non_suiteb=yes, enable_non_suiteb=no, [$HOGWEED_LIBS]) if test "$enable_non_suiteb" = "yes";then AC_DEFINE([ENABLE_NON_SUITEB_CURVES], 1, [Enable all curves])