Explicitly link to the nettle/gcrypt libraries
authorMartin Storsjo <martin@martin.st>
Thu, 26 Jan 2012 23:50:35 +0000 (00:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 28 Jan 2012 13:09:51 +0000 (14:09 +0100)
commitf710aa40b326377b6834b59cc937bf50e929aba7
tree869c066e261fd8b174317c92e5c16383459d6c26
parentf4d3c0cbfb648917a0b78d291ac9855fd12975a9
Explicitly link to the nettle/gcrypt libraries

When support for nettle was added in 64f328c787ab, I overlooked
the fact that AC_CHECK_LIB doesn't add the tested lib to LIBS
if the check succeeded, if a custom success code block was present.
(The previous version of the check had an empty block for
successful checks, adding the lib to LIBS implicitly.)

Therefore, explicitly add either nettle or gcrypt to LIBS, after
deciding which one to use. Even if they can be linked in
transitively, it is safer to actually link explicitly to them.

This fixes building with gnutls with linkers that don't allow
linking transitively, such as for windows.
configure.ac