~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/md5/plugin.ac

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_LIB_HAVE_LINKFLAGS(gcrypt,,[
2
 
    #include <gcrypt.h>
3
 
  ],[
4
 
    void *digest, *source;
5
 
    gcry_md_hash_buffer(GCRY_MD_MD5, digest, source, 0);
6
 
  ])
7
 
AS_IF([test "x$ac_cv_libgcrypt" = "xno"],[
8
 
    AC_MSG_WARN([MD5 not found in libgcrypt: not building md5 plugin. On Debian this is found in libgcrypt11-dev. On RedHat it is in libgcrypt-devel.])
 
1
AC_LIB_HAVE_LINKFLAGS(gnutls-openssl,,[
 
2
    #include <string.h>
 
3
    #include <gnutls/openssl.h>
 
4
  ],[
 
5
    MD5_CTX context;
 
6
    MD5_Init (&context);
 
7
  ])
 
8
AS_IF([test "x$ac_cv_libgnutls_openssl" = "xyes"],[
 
9
  ac_cv_build_md5=yes
 
10
  LTMD5PLUGINDEP=${LTLIBGNUTLS_OPENSSL}
 
11
],[
 
12
  AC_LIB_HAVE_LINKFLAGS(crypto,,[
 
13
    #include <string.h>
 
14
    #include <openssl/md5.h>
 
15
  ],[
 
16
    MD5_CTX context;
 
17
    MD5_Init (&context);
 
18
  ])
 
19
  AS_IF([test "x$ac_cv_libcrypto" = "xyes"],[
 
20
    ac_cv_build_md5=yes
 
21
    LTMD5PLUGINDEP=${LTLIBCRYPTO}
 
22
  ],[
 
23
    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.])
 
24
  ])
9
25
])
 
26
AC_SUBST(LTMD5PLUGINDEP)