crypto/gc-hmac-sha1: Fix recent regression.
authorBruno Haible <bruno@clisp.org>
Thu, 16 Jun 2011 22:53:04 +0000 (00:53 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 16 Jun 2011 23:11:46 +0000 (01:11 +0200)
* modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
(configure.ac): Invoke AC_LIBOBJ here.
* m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
Reported by Tom G. Christensen <tgc@jupiterrise.com>.

ChangeLog
m4/gc-hmac-sha1.m4
modules/crypto/gc-hmac-sha1

index 1fafdc1..6a9580a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-06-16  Bruno Haible  <bruno@clisp.org>
 
+       crypto/gc-hmac-sha1: Fix recent regression.
+       * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
+       (configure.ac): Invoke AC_LIBOBJ here.
+       * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
+       Reported by Tom G. Christensen <tgc@jupiterrise.com>.
+
        crypto/gc-hmac-md5: Fix recent regression.
        * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
        (configure.ac): Invoke AC_LIBOBJ here.
index f49989f..dd241b1 100644 (file)
@@ -1,4 +1,4 @@
-# gc-hmac-sha1.m4 serial 2
+# gc-hmac-sha1.m4 serial 3
 dnl Copyright (C) 2005, 2007, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,6 @@ AC_DEFUN([gl_GC_HMAC_SHA1],
   AC_REQUIRE([gl_GC])
   if test "$ac_cv_libgcrypt" != yes; then
     gl_SHA1
-    gl_HMAC_SHA1
     gl_MEMXOR
   fi
 ])
index 603c28e..c73351b 100644 (file)
@@ -8,7 +8,6 @@ lib/sha1.c
 m4/sha1.m4
 lib/hmac.h
 lib/hmac-sha1.c
-m4/hmac-sha1.m4
 lib/memxor.h
 lib/memxor.c
 m4/memxor.m4
@@ -19,6 +18,11 @@ crypto/gc
 
 configure.ac:
 gl_GC_HMAC_SHA1
+if test "$ac_cv_libgcrypt" != yes; then
+  AC_LIBOBJ([sha1])
+  AC_LIBOBJ([hmac-sha1])
+  AC_LIBOBJ([memxor])
+fi
 gl_MODULE_INDICATOR([gc-hmac-sha1])
 
 Makefile.am: