1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
AC_LIB_HAVE_LINKFLAGS(gnutls-openssl,,
[
#include <string.h>
#include <gnutls/openssl.h>
],
[
MD5_CTX context;
MD5_Init (&context);
])
AS_IF([test "x$ac_cv_libgnutls_openssl" = "xno"],
[
AC_LIB_HAVE_LINKFLAGS(crypto,,
[
#include <string.h>
#include <openssl/md5.h>
],
[
MD5_CTX context;
MD5_Init (&context);
])
AS_IF([test "x$ac_cv_libcrypto" = "xno"],
AC_MSG_WARN([MD5 not found in either gnutls or crypto lib not building md5 plugin. On Debian this is found in libgnutls-dev. On RedHat it is in gnutls-devel.]))
])
|