[gnutls-devel] --with-nettle-mini is ineffective

Ludovic Courtès ludo at gnu.org
Mon Feb 22 21:56:32 CET 2016


AFAICS, --with-nettle-mini does not have the desired effect since
‘configure’ unconditionally looks for Nettle with pkg-config.

Quoting hooks.m4:

--8<---------------cut here---------------start------------->8---
  PKG_CHECK_MODULES(NETTLE, [nettle >= 3.1], [cryptolib="nettle"], [
AC_MSG_ERROR([[
  *** 
  *** Libnettle 3.1 was not found. 
]])
  ])
  PKG_CHECK_MODULES(HOGWEED, [hogweed >= 3.1], [], [
AC_MSG_ERROR([[
  *** 
  *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
]])
  ])
  AM_CONDITIONAL(ENABLE_NETTLE, test "$cryptolib" = "nettle")
  AC_DEFINE([HAVE_LIBNETTLE], 1, [nettle is enabled])

  GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed"

  AC_ARG_WITH(nettle-mini,
    AS_HELP_STRING([--with-nettle-mini], [Link against a mini-nettle (that includes mini-gmp)]),
      mini_nettle=$withval,
      mini_nettle=no)
--8<---------------cut here---------------end--------------->8---

I think the logic should be changed to be like that of
$included_libtasn1.

Ludo’.



More information about the Gnutls-devel mailing list