aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert2014-01-10 23:01:30 -0800
committerPaul Eggert2014-01-10 23:01:30 -0800
commitbada50fc50d34e0e2ffd00fd64957cfb397c6eee (patch)
treed93a451eed031c36f12254dbadd787bbee903e49 /m4
parent6b81c31d81137170c6883a59d37478cda3b09432 (diff)
downloademacs-bada50fc50d34e0e2ffd00fd64957cfb397c6eee.tar.gz
emacs-bada50fc50d34e0e2ffd00fd64957cfb397c6eee.zip
Merge from gnulib.
This incorporates: 2014-01-07 update from texinfo 2014-01-06 md5, sha1, sha256, sha512: support older autoconf
Diffstat (limited to 'm4')
-rw-r--r--m4/00gnulib.m420
-rw-r--r--m4/gnulib-common.m46
2 files changed, 23 insertions, 3 deletions
diff --git a/m4/00gnulib.m4 b/m4/00gnulib.m4
index b494772e9ee..8eca5518ad6 100644
--- a/m4/00gnulib.m4
+++ b/m4/00gnulib.m4
@@ -1,4 +1,4 @@
1# 00gnulib.m4 serial 2 1# 00gnulib.m4 serial 3
2dnl Copyright (C) 2009-2014 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2014 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,23 @@ dnl with or without modifications, as long as this notice is preserved.
6 6
7dnl This file must be named something that sorts before all other 7dnl This file must be named something that sorts before all other
8dnl gnulib-provided .m4 files. It is needed until such time as we can 8dnl gnulib-provided .m4 files. It is needed until such time as we can
9dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE semantics. 9dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE and
10dnl m4_divert semantics.
11
12# Until autoconf 2.63, handling of the diversion stack required m4_init
13# to be called first; but this does not happen with aclocal. Wrapping
14# the entire execution in another layer of the diversion stack fixes this.
15# Worse, prior to autoconf 2.62, m4_wrap depended on the underlying m4
16# for whether it was FIFO or LIFO; in order to properly balance with
17# m4_init, we need to undo our push just before anything wrapped within
18# the m4_init body. The way to ensure this is to wrap both sides of
19# m4_init with a one-shot macro that does the pop at the right time.
20m4_ifndef([_m4_divert_diversion],
21[m4_divert_push([KILL])
22m4_define([gl_divert_fixup], [m4_divert_pop()m4_define([$0])])
23m4_define([m4_init],
24 [gl_divert_fixup()]m4_defn([m4_init])[gl_divert_fixup()])])
25
10 26
11# AC_DEFUN_ONCE([NAME], VALUE) 27# AC_DEFUN_ONCE([NAME], VALUE)
12# ---------------------------- 28# ----------------------------
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index ae31e80d3bf..3b61b239beb 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -1,4 +1,4 @@
1# gnulib-common.m4 serial 33 1# gnulib-common.m4 serial 34
2dnl Copyright (C) 2007-2014 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2014 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -375,3 +375,7 @@ AC_DEFUN([gl_CACHE_VAL_SILENT],
375 AC_CACHE_VAL([$1], [$2]) 375 AC_CACHE_VAL([$1], [$2])
376 as_echo_n="$saved_as_echo_n" 376 as_echo_n="$saved_as_echo_n"
377]) 377])
378
379# AS_VAR_COPY was added in autoconf 2.63b
380m4_define_default([AS_VAR_COPY],
381[AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])