]> Savannah Git Hosting - gnulib.git/commitdiff
modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Nov 2011 06:08:54 +0000 (22:08 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Nov 2011 06:09:26 +0000 (22:09 -0800)
stdalign problem reported by Ian Beckwith in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
* modules/crypto/gc-arcfour (Depends-on):
Depend conditionally on crypto/arcfour.
* modules/crypto/gc-arctwo (Depends-on):
Depend conditionally on crypto/arctwo.
* modules/crypto/gc-des (Depends-on):
Depend conditionally on crypto/des.
* modules/crypto/gc-hmac-md5 (Depends-on):
Depend conditionally on crypto/hmac-md5.
* modules/crypto/gc-hmac-sha1 (Depends-on):
Depend conditionally on crypto/hmac-sha1.
* modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
* modules/crypto/gc-md4 (Depends-on):
Depend conditionally on crypto/md4.
* modules/crypto/gc-md5 (Depends-on):
Depend conditionally on crypto/md5.
* modules/crypto/gc-rijndael (Depends-on):
Depend conditionally on crypto/rijndael.
* modules/crypto/gc-sha1 (Depends-on):
Depend conditionally on crypto/sha1.
* modules/crypto/gc-arcfour:
* modules/crypto/gc-arctwo:
* modules/crypto/gc-des:
* modules/crypto/gc-hmac-md5:
* modules/crypto/gc-hmac-sha1:
* modules/crypto/gc-md2:
* modules/crypto/gc-md4:
* modules/crypto/gc-md5:
* modules/crypto/gc-rijndael:
* modules/crypto/gc-sha1:
(Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
now that the conditional dependencies do the work for us.

ChangeLog
modules/crypto/gc-arcfour
modules/crypto/gc-arctwo
modules/crypto/gc-des
modules/crypto/gc-hmac-md5
modules/crypto/gc-hmac-sha1
modules/crypto/gc-md2
modules/crypto/gc-md4
modules/crypto/gc-md5
modules/crypto/gc-rijndael
modules/crypto/gc-sha1

index 7f2bb5f68a53f666af020478a1f770b72ceeeb03..68c90deb893d35045cb2bed0a8361a445579c6db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,40 @@
+2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
+       stdalign problem reported by Ian Beckwith in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
+       * modules/crypto/gc-arcfour (Depends-on):
+       Depend conditionally on crypto/arcfour.
+       * modules/crypto/gc-arctwo (Depends-on):
+       Depend conditionally on crypto/arctwo.
+       * modules/crypto/gc-des (Depends-on):
+       Depend conditionally on crypto/des.
+       * modules/crypto/gc-hmac-md5 (Depends-on):
+       Depend conditionally on crypto/hmac-md5.
+       * modules/crypto/gc-hmac-sha1 (Depends-on):
+       Depend conditionally on crypto/hmac-sha1.
+       * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
+       * modules/crypto/gc-md4 (Depends-on):
+       Depend conditionally on crypto/md4.
+       * modules/crypto/gc-md5 (Depends-on):
+       Depend conditionally on crypto/md5.
+       * modules/crypto/gc-rijndael (Depends-on):
+       Depend conditionally on crypto/rijndael.
+       * modules/crypto/gc-sha1 (Depends-on):
+       Depend conditionally on crypto/sha1.
+       * modules/crypto/gc-arcfour:
+       * modules/crypto/gc-arctwo:
+       * modules/crypto/gc-des:
+       * modules/crypto/gc-hmac-md5:
+       * modules/crypto/gc-hmac-sha1:
+       * modules/crypto/gc-md2:
+       * modules/crypto/gc-md4:
+       * modules/crypto/gc-md5:
+       * modules/crypto/gc-rijndael:
+       * modules/crypto/gc-sha1:
+       (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
+       now that the conditional dependencies do the work for us.
+
 2011-11-17  Jim Meyering  <meyering@redhat.com>
 
        tests: factor st_ctime-comparison out of two headers
index 34a310c60f4dac562902f275b7f41ecbab0619fb..7df6b954ed91a83b19d540f4f68eb236194e4ff2 100644 (file)
@@ -3,18 +3,13 @@ Generic crypto wrappers for ARCFOUR stream cipher.
 
 Files:
 m4/gc-arcfour.m4
-lib/arcfour.h
-lib/arcfour.c
 
 Depends-on:
-stdint
 crypto/gc
+crypto/arcfour [test "$ac_cv_libgcrypt" != yes]
 
 configure.ac:
 gl_GC_ARCFOUR
-if test "$ac_cv_libgcrypt" != yes; then
-  AC_LIBOBJ([arcfour])
-fi
 gl_MODULE_INDICATOR([gc-arcfour])
 
 Makefile.am:
index 49006679f67125115409f99ccce06959015aeee0..bbd9ba910c7224b5e0518928dcfb2237bce9290a 100644 (file)
@@ -3,20 +3,13 @@ Generic crypto wrappers for ARCTWO block cipher.
 
 Files:
 m4/gc-arctwo.m4
-lib/arctwo.h
-lib/arctwo.c
-m4/arctwo.m4
 
 Depends-on:
-stdint
 crypto/gc
-bitrotate
+crypto/arctwo [test "$ac_cv_libgcrypt" != yes]
 
 configure.ac:
 gl_GC_ARCTWO
-if test "$ac_cv_libgcrypt" != yes; then
-  AC_LIBOBJ([arctwo])
-fi
 gl_MODULE_INDICATOR([gc-arctwo])
 
 Makefile.am:
index fd7cb764c405bbd90e935f594a556ee821496323..685899dc9410ed625dbb9c293415707fcb9b963a 100644 (file)
@@ -3,19 +3,13 @@ Generic crypto wrappers for DES block cipher.
 
 Files:
 m4/gc-des.m4
-lib/des.h
-lib/des.c
 
 Depends-on:
-stdint
-stdbool
 crypto/gc
+crypto/des [test "$ac_cv_libgcrypt" != yes]
 
 configure.ac:
 gl_GC_DES
-if test "$ac_cv_libgcrypt" != yes; then
-  AC_LIBOBJ([des])
-fi
 gl_MODULE_INDICATOR([gc-des])
 
 Makefile.am:
index cd1973eeb83d7884352c4738043077ef20bb6f74..109ec5e0f7a7ce1a9a7b33b64f26677fb380f14e 100644 (file)
@@ -3,26 +3,13 @@ Generic crypto wrappers for HMAC-MD5 functions.
 
 Files:
 m4/gc-hmac-md5.m4
-lib/md5.h
-lib/md5.c
-m4/md5.m4
-lib/hmac.h
-lib/hmac-md5.c
-lib/memxor.h
-lib/memxor.c
-m4/memxor.m4
 
 Depends-on:
-stdint
 crypto/gc
+crypto/hmac-md5 [test "$ac_cv_libgcrypt" != yes]
 
 configure.ac:
 gl_GC_HMAC_MD5
-if test "$ac_cv_libgcrypt" != yes; then
-  AC_LIBOBJ([md5])
-  AC_LIBOBJ([hmac-md5])
-  AC_LIBOBJ([memxor])
-fi
 gl_MODULE_INDICATOR([gc-hmac-md5])
 
 Makefile.am:
index c73351bb1179d6ac35eef910559d7050ac5da5cf..6235125bbdfedcd33d93d9e3da24975d7e1c45a6 100644 (file)
@@ -3,26 +3,13 @@ Generic crypto wrappers for HMAC-SHA1 functions.
 
 Files:
 m4/gc-hmac-sha1.m4
-lib/sha1.h
-lib/sha1.c
-m4/sha1.m4
-lib/hmac.h
-lib/hmac-sha1.c
-lib/memxor.h
-lib/memxor.c
-m4/memxor.m4
 
 Depends-on:
-stdint
 crypto/gc
+crypto/hmac-sha1 [test "$ac_cv_libgcrypt" != yes]
 
 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:
index 12405492476a8cb056a28f0b90ba7f8197b5ee25..5e5beaad187114cfa1c5375cdcefe8d65d8aca06 100644 (file)
@@ -5,8 +5,6 @@ Files:
 m4/gc-md2.m4
 
 Depends-on:
-stdint
-minmax
 crypto/gc
 crypto/md2
 
index e527db58970bf86a97699f14fcce9ba999e5a37f..e46589b091e342779a5f4c4f0cccf0176e8abca0 100644 (file)
@@ -3,20 +3,13 @@ Generic crypto wrappers for MD4 functions.
 
 Files:
 m4/gc-md4.m4
-lib/md4.h
-lib/md4.c
-m4/md4.m4
 
 Depends-on:
-stdalign
-stdint
 crypto/gc
+crypto/md4 [test "$ac_cv_libgcrypt" != yes]
 
 configure.ac:
 gl_GC_MD4
-if test "$ac_cv_libgcrypt" != yes; then
-  AC_LIBOBJ([md4])
-fi
 gl_MODULE_INDICATOR([gc-md4])
 
 Makefile.am:
index efa1c1832ef77238ba3641598cdccc54e46d66e7..0d6b272d2e8885d9cdbbbf35cd177f0c544471bd 100644 (file)
@@ -3,20 +3,13 @@ Generic crypto wrappers for MD5 functions.
 
 Files:
 m4/gc-md5.m4
-lib/md5.h
-lib/md5.c
-m4/md5.m4
 
 Depends-on:
-stdalign
-stdint
 crypto/gc
+crypto/md5 [test "$ac_cv_libgcrypt" != yes]
 
 configure.ac:
 gl_GC_MD5
-if test "$ac_cv_libgcrypt" != yes; then
-  AC_LIBOBJ([md5])
-fi
 gl_MODULE_INDICATOR([gc-md5])
 
 Makefile.am:
index e01e12d332601c787868dc64a793f1b6a201b5e4..249f47d0b42653669ddb142ff4aa0cff7316441a 100644 (file)
@@ -3,21 +3,13 @@ Generic crypto wrappers for rijndael block cipher.
 
 Files:
 m4/gc-rijndael.m4
-lib/rijndael-alg-fst.c
-lib/rijndael-alg-fst.h
-lib/rijndael-api-fst.c
-lib/rijndael-api-fst.h
 
 Depends-on:
-stdint
 crypto/gc
+crypto/rijndael [test "$ac_cv_libgcrypt" != yes]
 
 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:
index 4ee0a221f883390223a5b283660ac95e37472ab2..f959005583333240b662ff5909fe895b26539617 100644 (file)
@@ -3,20 +3,13 @@ Generic crypto wrappers for SHA-1 functions.
 
 Files:
 m4/gc-sha1.m4
-lib/sha1.h
-lib/sha1.c
-m4/sha1.m4
 
 Depends-on:
-stdalign
-stdint
 crypto/gc
+crypto/sha1 [test "$ac_cv_libgcrypt" != yes]
 
 configure.ac:
 gl_GC_SHA1
-if test "$ac_cv_libgcrypt" != yes; then
-  AC_LIBOBJ([sha1])
-fi
 gl_MODULE_INDICATOR([gc-sha1])
 
 Makefile.am: