The gnutls_digest_get_id function was added in GnuTLS 3.2.2:
That was released in 2013, so I think it's OK to depend on it by now.
Please consider applying this patch to update the configure.in check:
Currently master fails to compile with older GnuTLS (e.g. on Debian
7/wheezy) after configure succeeded.