aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorLeo Liu2011-05-24 16:12:52 +0800
committerLeo Liu2011-05-24 16:12:52 +0800
commit13c3daa4aed4b185596dd0bb6bc45bd941f1e3ab (patch)
tree0178a565b32a1aa8a1b748096fc1ef26771b07f9 /m4
parent5a95c00237a294c17452ab66ebae2f34de25c133 (diff)
downloademacs-13c3daa4aed4b185596dd0bb6bc45bd941f1e3ab.tar.gz
emacs-13c3daa4aed4b185596dd0bb6bc45bd941f1e3ab.zip
Add crypto/sha1 module from gnulib
Diffstat (limited to 'm4')
-rw-r--r--m4/gl-comp.m45
-rw-r--r--m4/sha1.m415
2 files changed, 20 insertions, 0 deletions
diff --git a/m4/gl-comp.m4 b/m4/gl-comp.m4
index 87d7616f8bb..c2f80323441 100644
--- a/m4/gl-comp.m4
+++ b/m4/gl-comp.m4
@@ -31,6 +31,7 @@ AC_DEFUN([gl_EARLY],
31 # Code from module c++defs: 31 # Code from module c++defs:
32 # Code from module careadlinkat: 32 # Code from module careadlinkat:
33 # Code from module crypto/md5: 33 # Code from module crypto/md5:
34 # Code from module crypto/sha1:
34 # Code from module dosname: 35 # Code from module dosname:
35 # Code from module dtoastr: 36 # Code from module dtoastr:
36 # Code from module extensions: 37 # Code from module extensions:
@@ -92,6 +93,7 @@ AC_DEFUN([gl_INIT],
92 gl_source_base='lib' 93 gl_source_base='lib'
93AC_CHECK_FUNCS_ONCE([readlinkat]) 94AC_CHECK_FUNCS_ONCE([readlinkat])
94gl_MD5 95gl_MD5
96gl_SHA1
95AC_REQUIRE([gl_C99_STRTOLD]) 97AC_REQUIRE([gl_C99_STRTOLD])
96gl_FILEMODE 98gl_FILEMODE
97gl_GETLOADAVG([$gl_source_base]) 99gl_GETLOADAVG([$gl_source_base])
@@ -364,6 +366,8 @@ AC_DEFUN([gl_FILE_LIST], [
364 lib/mktime-internal.h 366 lib/mktime-internal.h
365 lib/mktime.c 367 lib/mktime.c
366 lib/readlink.c 368 lib/readlink.c
369 lib/sha1.c
370 lib/sha1.h
367 lib/stat.c 371 lib/stat.c
368 lib/stdarg.in.h 372 lib/stdarg.in.h
369 lib/stdbool.in.h 373 lib/stdbool.in.h
@@ -399,6 +403,7 @@ AC_DEFUN([gl_FILE_LIST], [
399 m4/mktime.m4 403 m4/mktime.m4
400 m4/multiarch.m4 404 m4/multiarch.m4
401 m4/readlink.m4 405 m4/readlink.m4
406 m4/sha1.m4
402 m4/socklen.m4 407 m4/socklen.m4
403 m4/ssize_t.m4 408 m4/ssize_t.m4
404 m4/st_dm_mode.m4 409 m4/st_dm_mode.m4
diff --git a/m4/sha1.m4 b/m4/sha1.m4
new file mode 100644
index 00000000000..e40505f2f70
--- /dev/null
+++ b/m4/sha1.m4
@@ -0,0 +1,15 @@
1# sha1.m4 serial 9
2dnl Copyright (C) 2002-2006, 2008-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7AC_DEFUN([gl_SHA1],
8[
9 AC_LIBOBJ([sha1])
10
11 dnl Prerequisites of lib/sha1.c.
12 AC_REQUIRE([gl_BIGENDIAN])
13 AC_REQUIRE([AC_C_INLINE])
14 :
15])