aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert2019-12-06 15:16:15 -0800
committerPaul Eggert2019-12-06 15:17:08 -0800
commitc4cd2a0b9f251ed830ef32ac6537e62ae5e3d944 (patch)
tree25aec8ec7432bae87fd6b38f06a6d191d96151c4 /m4
parent99ad65eda44e3b6edcc51cf0fb70ea499c3ccb07 (diff)
downloademacs-c4cd2a0b9f251ed830ef32ac6537e62ae5e3d944.tar.gz
emacs-c4cd2a0b9f251ed830ef32ac6537e62ae5e3d944.zip
Update from Gnulib
This incorporates: 2019-12-06 nstrftime: better width support for %N, %z 2019-12-03 Avoid hassles caused by [[noreturn]] in C++ 2019-12-02 Fix mistakes in --enable-threads=isoc fixes from 2019-12-01 * admin/merge-gnulib (AVOIDED_MODULES): Avoid pthread-h. * lib/_Noreturn.h, lib/nstrftime.c, m4/gnulib-common.m4: * m4/timer_time.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate.
Diffstat (limited to 'm4')
-rw-r--r--m4/gnulib-common.m411
-rw-r--r--m4/timer_time.m48
2 files changed, 13 insertions, 6 deletions
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index 479c9de9eab..d8f0d3fb566 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -1,4 +1,4 @@
1# gnulib-common.m4 serial 45 1# gnulib-common.m4 serial 46
2dnl Copyright (C) 2007-2019 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2019 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,
@@ -19,7 +19,14 @@ AC_DEFUN([gl_COMMON_BODY], [
19#ifndef _Noreturn 19#ifndef _Noreturn
20# if (defined __cplusplus \ 20# if (defined __cplusplus \
21 && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \ 21 && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
22 || (defined _MSC_VER && 1900 <= _MSC_VER))) 22 || (defined _MSC_VER && 1900 <= _MSC_VER)) \
23 && 0)
24 /* [[noreturn]] is not practically usable, because with it the syntax
25 extern _Noreturn void func (...);
26 would not be valid; such a declaration would only be valid with 'extern'
27 and '_Noreturn' swapped, or without the 'extern' keyword. However, some
28 AIX system header files and several gnulib header files use precisely
29 this syntax with 'extern'. */
23# define _Noreturn [[noreturn]] 30# define _Noreturn [[noreturn]]
24# elif ((!defined __cplusplus || defined __clang__) \ 31# elif ((!defined __cplusplus || defined __clang__) \
25 && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \ 32 && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
diff --git a/m4/timer_time.m4 b/m4/timer_time.m4
index 2c9b93c63b8..347d04dbe45 100644
--- a/m4/timer_time.m4
+++ b/m4/timer_time.m4
@@ -1,4 +1,4 @@
1# timer_time.m4 serial 3 1# timer_time.m4 serial 4
2dnl Copyright (C) 2011-2019 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2019 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,
@@ -16,7 +16,7 @@ AC_DEFUN([gl_TIMER_TIME],
16 dnl Some packages like Emacs use --avoid=threadlib. 16 dnl Some packages like Emacs use --avoid=threadlib.
17 dnl Write the symbol in such a way that it does not cause 'aclocal' to pick 17 dnl Write the symbol in such a way that it does not cause 'aclocal' to pick
18 dnl the threadlib.m4 file that is installed in $PREFIX/share/aclocal/. 18 dnl the threadlib.m4 file that is installed in $PREFIX/share/aclocal/.
19 m4_ifdef([gl_][THREADLIB], [AC_REQUIRE([gl_][THREADLIB])]) 19 m4_ifdef([gl_][PTHREADLIB], [AC_REQUIRE([gl_][PTHREADLIB])])
20 20
21 LIB_TIMER_TIME= 21 LIB_TIMER_TIME=
22 AC_SUBST([LIB_TIMER_TIME]) 22 AC_SUBST([LIB_TIMER_TIME])
@@ -24,7 +24,7 @@ AC_DEFUN([gl_TIMER_TIME],
24 AC_SEARCH_LIBS([timer_settime], [rt posix4], 24 AC_SEARCH_LIBS([timer_settime], [rt posix4],
25 [test "$ac_cv_search_timer_settime" = "none required" || 25 [test "$ac_cv_search_timer_settime" = "none required" ||
26 LIB_TIMER_TIME=$ac_cv_search_timer_settime]) 26 LIB_TIMER_TIME=$ac_cv_search_timer_settime])
27 m4_ifdef([gl_][THREADLIB], 27 m4_ifdef([gl_][PTHREADLIB],
28 [dnl GLIBC uses threads to emulate posix timers when kernel support 28 [dnl GLIBC uses threads to emulate posix timers when kernel support
29 dnl is not available (like Linux < 2.6 or when used with kFreeBSD) 29 dnl is not available (like Linux < 2.6 or when used with kFreeBSD)
30 dnl Now the pthread lib is linked automatically in the normal case, 30 dnl Now the pthread lib is linked automatically in the normal case,
@@ -38,7 +38,7 @@ AC_DEFUN([gl_TIMER_TIME],
38 #endif 38 #endif
39 #endif 39 #endif
40 ], 40 ],
41 [LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"])]) 41 [LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBPMULTITHREAD"])])
42 AC_CHECK_FUNCS([timer_settime]) 42 AC_CHECK_FUNCS([timer_settime])
43 LIBS=$gl_saved_libs 43 LIBS=$gl_saved_libs
44]) 44])