summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-10-15 06:17:45 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-10-15 06:17:45 +0000
commitdd8398a3c642b1397f64e338d2b0008e33790dec (patch)
treee74087d4d653ebb99f546e0cd894ba85c758d2f0 /m4
parent443d5095786055328de8ede2648b9331405de083 (diff)
downloadcoreutils-dd8398a3c642b1397f64e338d2b0008e33790dec.tar.xz
[m4/ChangeLog]
* sha512.m4 (gl_SHA512): Add u64.h to AC_LIBSOURCES. [lib/ChangeLog] Port sha512sum to hosts where uintmax_t is only 32 bits, e.g., HP/Tandom NonStop OSS circa 2005 has 32-bit uintmax_t, 64-bit intmax_t. * u64.h: New file. * sha512.c (SWAP, sha512_init_ctx, sha384_init_ctx, sha512_read_ctx): (sha384_read_ctx, sha512_conclude_ctx, sha512_process_bytes): (sha512_round_constants, F2, F1, sha512_process_block): (S0, S1, SS0, SS1, M, R): Rewrite to use u64.h instead of assuming uint64_t. * sha512.h: Include u64.h rather than stdint.h. (rol64): Remove; moved to u64.h and renamed to u64rol.
Diffstat (limited to 'm4')
-rw-r--r--m4/ChangeLog4
-rw-r--r--m4/sha512.m46
2 files changed, 7 insertions, 3 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index c1df1b7c9..bea697cc6 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,7 @@
+2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
+
+ * sha512.m4 (gl_SHA512): Add u64.h to AC_LIBSOURCES.
+
2006-10-12 Jim Meyering <jim@meyering.net>
* jm-macros.m4 (coreutils_MACROS): Rename from gl_MACROS, now that
diff --git a/m4/sha512.m4 b/m4/sha512.m4
index b747c9799..2de0b2ebd 100644
--- a/m4/sha512.m4
+++ b/m4/sha512.m4
@@ -1,12 +1,12 @@
-# sha512.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# sha512.m4 serial 2
+dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_SHA512],
[
- AC_LIBSOURCES([sha512.c, sha512.h])
+ AC_LIBSOURCES([sha512.c, sha512.h, u64.h])
AC_LIBOBJ([sha512])
dnl Prerequisites of lib/sha512.c.