summaryrefslogtreecommitdiff
path: root/m4/getopt.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-04-27 15:21:34 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-04-27 15:24:07 -0700
commitabd769131dae3f9693faff9a080267e86936ce99 (patch)
tree316cc01ca8f7e8917bf28ff50c5719f8dff02c2c /m4/getopt.m4
parent2a23577795f8b644a215fae68e990c07f0146d33 (diff)
downloademacs-abd769131dae3f9693faff9a080267e86936ce99.tar.gz
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/getopt.m4')
-rw-r--r--m4/getopt.m49
1 files changed, 9 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],
# getopt_long_only.
AC_DEFUN([gl_FUNC_GETOPT_GNU],
[
+ dnl Set the variable gl_getopt_required, so that all invocations of
+ dnl gl_GETOPT_CHECK_HEADERS in the scope of the current configure file
+ dnl will check for getopt with GNU extensions.
+ dnl This means that if one gnulib-tool invocation requests getopt-posix
+ dnl and another gnulib-tool invocation requests getopt-gnu, it is as if
+ dnl both had requested getopt-gnu.
m4_divert_text([INIT_PREPARE], [gl_getopt_required=GNU])
+
+ dnl No need to invoke gl_FUNC_GETOPT_POSIX here; this is automatically
+ dnl done through the module dependency getopt-gnu -> getopt-posix.
])
# Determine whether to replace the entire getopt facility.