diff options
| author | Paul Eggert | 2017-04-27 15:21:34 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-04-27 15:24:07 -0700 |
| commit | abd769131dae3f9693faff9a080267e86936ce99 (patch) | |
| tree | 316cc01ca8f7e8917bf28ff50c5719f8dff02c2c /m4 | |
| parent | 2a23577795f8b644a215fae68e990c07f0146d33 (diff) | |
| download | emacs-abd769131dae3f9693faff9a080267e86936ce99.tar.gz emacs-abd769131dae3f9693faff9a080267e86936ce99.zip | |
Merge from gnulib
This incorporates:
2017-04-24 time_rz: fix heap buffer overflow vulnerability
2017-04-23 stat-time: Update comments.
2017-04-22 ftoastr: cite a newer paper
2017-04-21 gettext-h: Avoid -Wundef warning.
* lib/ftoastr.c, lib/gettext.h, lib/stat-time.h, lib/time_rz.c:
* m4/getopt.m4: Copy from gnulib.
* m4/gnulib-comp.m4: Regenerate.
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/getopt.m4 | 9 | ||||
| -rw-r--r-- | m4/gnulib-comp.m4 | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/m4/getopt.m4 b/m4/getopt.m4 index ac3b38e385e..3ebc7b7edf5 100644 --- a/m4/getopt.m4 +++ b/m4/getopt.m4 | |||
| @@ -32,7 +32,16 @@ AC_DEFUN([gl_FUNC_GETOPT_POSIX], | |||
| 32 | # getopt_long_only. | 32 | # getopt_long_only. |
| 33 | AC_DEFUN([gl_FUNC_GETOPT_GNU], | 33 | AC_DEFUN([gl_FUNC_GETOPT_GNU], |
| 34 | [ | 34 | [ |
| 35 | dnl Set the variable gl_getopt_required, so that all invocations of | ||
| 36 | dnl gl_GETOPT_CHECK_HEADERS in the scope of the current configure file | ||
| 37 | dnl will check for getopt with GNU extensions. | ||
| 38 | dnl This means that if one gnulib-tool invocation requests getopt-posix | ||
| 39 | dnl and another gnulib-tool invocation requests getopt-gnu, it is as if | ||
| 40 | dnl both had requested getopt-gnu. | ||
| 35 | m4_divert_text([INIT_PREPARE], [gl_getopt_required=GNU]) | 41 | m4_divert_text([INIT_PREPARE], [gl_getopt_required=GNU]) |
| 42 | |||
| 43 | dnl No need to invoke gl_FUNC_GETOPT_POSIX here; this is automatically | ||
| 44 | dnl done through the module dependency getopt-gnu -> getopt-posix. | ||
| 36 | ]) | 45 | ]) |
| 37 | 46 | ||
| 38 | # Determine whether to replace the entire getopt facility. | 47 | # Determine whether to replace the entire getopt facility. |
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index bfac944ea05..030304d6777 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 | |||
| @@ -259,6 +259,9 @@ AC_DEFUN([gl_INIT], | |||
| 259 | fi | 259 | fi |
| 260 | gl_STDLIB_MODULE_INDICATOR([getloadavg]) | 260 | gl_STDLIB_MODULE_INDICATOR([getloadavg]) |
| 261 | gl_FUNC_GETOPT_GNU | 261 | gl_FUNC_GETOPT_GNU |
| 262 | dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required | ||
| 263 | dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are | ||
| 264 | dnl done in the getopt-posix module. | ||
| 262 | gl_FUNC_GETOPT_POSIX | 265 | gl_FUNC_GETOPT_POSIX |
| 263 | if test $REPLACE_GETOPT = 1; then | 266 | if test $REPLACE_GETOPT = 1; then |
| 264 | AC_LIBOBJ([getopt]) | 267 | AC_LIBOBJ([getopt]) |