summaryrefslogtreecommitdiff
path: root/gl/m4
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-03-02 12:16:49 +0100
committerJim Meyering <meyering@redhat.com>2008-03-02 12:16:49 +0100
commitf33599c1441553954832851a0cec1e4ef570162f (patch)
tree0f90616229f4adb527b181c6ea24bd447214a2cf /gl/m4
parent39fc8c581b7d50e396cfbcca253e94b5489a24ed (diff)
downloadcoreutils-f33599c1441553954832851a0cec1e4ef570162f.tar.xz
Create sha256 and sha512 modules and move files into gl/.
* bootstrap.conf (gnulib_modules): Add sha256 and sha512. * m4/prereq.m4: Don't require gl_SHA256 or gl_SHA512. * gl/modules/sha512: New file. * gl/modules/sha256: New file. * m4/sha256.m4: Move to ... * gl/m4/sha256.m4: ...here, removing use of AC_SOURCES. * m4/sha512.m4: Move to ... * gl/m4/sha512.m4: ...here, removing use of AC_SOURCES. * lib/sha256.c, lib/sha256.h: Move to ... * gl/lib/sha256.c, gl/lib/sha256.h: ...here. * lib/sha512.c, lib/sha512.h: Move to ... * gl/lib/sha512.c, gl/lib/sha512.h: ...here. * lib/u64.h: Move to ... * gl/lib/u64.h: ...here.
Diffstat (limited to 'gl/m4')
-rw-r--r--gl/m4/sha256.m413
-rw-r--r--gl/m4/sha512.m413
2 files changed, 26 insertions, 0 deletions
diff --git a/gl/m4/sha256.m4 b/gl/m4/sha256.m4
new file mode 100644
index 000000000..54b15e8da
--- /dev/null
+++ b/gl/m4/sha256.m4
@@ -0,0 +1,13 @@
+# sha256.m4 serial 2
+dnl Copyright (C) 2005, 2008 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_SHA256],
+[
+ AC_LIBOBJ([sha256])
+
+ dnl Prerequisites of lib/sha256.c.
+ AC_REQUIRE([AC_C_BIGENDIAN])
+])
diff --git a/gl/m4/sha512.m4 b/gl/m4/sha512.m4
new file mode 100644
index 000000000..888d50df6
--- /dev/null
+++ b/gl/m4/sha512.m4
@@ -0,0 +1,13 @@
+# sha512.m4 serial 3
+dnl Copyright (C) 2005, 2006, 2008 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_LIBOBJ([sha512])
+
+ dnl Prerequisites of lib/sha512.c.
+ AC_REQUIRE([AC_C_BIGENDIAN])
+])