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

ChangeLog
m4/gc-rijndael.m4
modules/crypto/gc-rijndael

index 6a9580a..39a83f5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-06-16  Bruno Haible  <bruno@clisp.org>
 
+       crypto/gc-rijndael: Fix recent regression.
+       * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
+       (configure.ac): Invoke AC_LIBOBJ here.
+       * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
+       Reported by Tom G. Christensen <tgc@jupiterrise.com>.
+
        crypto/gc-hmac-sha1: Fix recent regression.
        * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
        (configure.ac): Invoke AC_LIBOBJ here.
index 8fd93f5..709427d 100644 (file)
@@ -1,4 +1,4 @@
-# gc-rijndael.m4 serial 2
+# gc-rijndael.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,
@@ -7,7 +7,4 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_GC_RIJNDAEL],
 [
   AC_REQUIRE([gl_GC])
-  if test "$ac_cv_libgcrypt" != yes; then
-    gl_RIJNDAEL
-  fi
 ])
index bfcd48e..e01e12d 100644 (file)
@@ -7,7 +7,6 @@ lib/rijndael-alg-fst.c
 lib/rijndael-alg-fst.h
 lib/rijndael-api-fst.c
 lib/rijndael-api-fst.h
-m4/rijndael.m4
 
 Depends-on:
 stdint
@@ -15,6 +14,10 @@ crypto/gc
 
 configure.ac:
 gl_GC_RIJNDAEL
+if test "$ac_cv_libgcrypt" != yes; then
+  AC_LIBOBJ([rijndael-alg-fst])
+  AC_LIBOBJ([rijndael-api-fst])
+fi
 gl_MODULE_INDICATOR([gc-rijndael])
 
 Makefile.am: