1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

getopt-gnu: Add comments.

* m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
* modules/getopt-gnu (configure.ac): Likewise.
This commit is contained in:
Bruno Haible
2017-04-19 00:05:34 +02:00
parent 469b0d23f2
commit 37d5dc0daa
3 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2017-04-18 Bruno Haible <bruno@clisp.org>
getopt-gnu: Add comments.
* m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
* modules/getopt-gnu (configure.ac): Likewise.
2017-04-16 Paul Eggert <eggert@cs.ucla.edu>
regex: port better to Solaris 10

View File

@@ -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.

View File

@@ -10,6 +10,9 @@ getopt-posix
configure.ac:
gl_FUNC_GETOPT_GNU
dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required
dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are
dnl done in the getopt-posix module.
Makefile.am: