]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 12:19:39 +0000 (14:19 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 16:36:45 +0000 (18:36 +0200)
Previously, different gnulib-tool invocations within the scope of the same
configure.ac interfered with each other (through the GNULIB_* indicator macros,
used in the generated .h files), and libgrep relied on it. Now, each gnulib-tool
invocation needs its own copy of the generated .h files, in particular locale.h.
Needed for the localeconv() override on native Windows.

* autogen.sh: When invoking gnulib-tool for libgrep, don't avoid 'locale' and
the other header file modules.
* gettext-tools/configure.ac: Set GL_GRGL_GNULIB_SETLOCALE_NULL to 1.

.gitignore
autogen.sh
gettext-tools/configure.ac

index 195edc595eee76720ec86f75aef1810a168484b2..71bc5dd027c3662448ea0a5e425951bd0eaa16e4 100644 (file)
 /gettext-tools/libgrep/malloc/
 /gettext-tools/libgrep/gnulib-m4/
 /gettext-tools/libgrep/Makefile.gnulib
+/gettext-tools/libgrep/_Noreturn.h
+/gettext-tools/libgrep/arg-nonnull.h
 /gettext-tools/libgrep/attribute.h
 /gettext-tools/libgrep/btowc.c
 /gettext-tools/libgrep/c++defs.h
 /gettext-tools/libgrep/cdefs.h
 /gettext-tools/libgrep/dynarray.h
 /gettext-tools/libgrep/intprops.h
+/gettext-tools/libgrep/inttypes.in.h
 /gettext-tools/libgrep/langinfo.in.h
 /gettext-tools/libgrep/libc-config.h
+/gettext-tools/libgrep/limits.in.h
+/gettext-tools/libgrep/locale.in.h
 /gettext-tools/libgrep/localeconv.c
 /gettext-tools/libgrep/mbrlen.c
 /gettext-tools/libgrep/mbtowc-impl.h
 /gettext-tools/libgrep/regex_internal.c
 /gettext-tools/libgrep/regex_internal.h
 /gettext-tools/libgrep/regexec.c
+/gettext-tools/libgrep/stdbool.in.h
+/gettext-tools/libgrep/stddef.in.h
+/gettext-tools/libgrep/stdint.in.h
+/gettext-tools/libgrep/stdlib.in.h
+/gettext-tools/libgrep/sys_types.in.h
+/gettext-tools/libgrep/unistd.c
+/gettext-tools/libgrep/unistd.in.h
 /gettext-tools/libgrep/warn-on-use.h
+/gettext-tools/libgrep/wchar.in.h
+/gettext-tools/libgrep/wctype-h.c
+/gettext-tools/libgrep/wctype.in.h
 /gettext-tools/libgrep/windows-initguard.h
 /gettext-tools/libgrep/wcrtomb.c
 /gettext-tools/man/x-to-1.in
@@ -831,7 +846,18 @@ core
 /gettext-tools/libgettextpo/uniwidth.h
 /gettext-tools/libgettextpo/wchar.h
 /gettext-tools/libgettextpo/wctype.h
+/gettext-tools/libgrep/inttypes.h
 /gettext-tools/libgrep/langinfo.h
+/gettext-tools/libgrep/limits.h
+/gettext-tools/libgrep/locale.h
+/gettext-tools/libgrep/stdbool.h
+/gettext-tools/libgrep/stddef.h
+/gettext-tools/libgrep/stdint.h
+/gettext-tools/libgrep/stdlib.h
+/gettext-tools/libgrep/unistd.h
+/gettext-tools/libgrep/wchar.h
+/gettext-tools/libgrep/wctype.h
+/gettext-tools/libgrep/sys/types.h
 /gettext-tools/po/??@*.insert-header
 /gettext-tools/po/remove-potcdate.sed
 /gettext-tools/src/gettext.res
index 0eccb1a08f193faa970a1b396e1b107bcba6f70e..c3a7ef9e4933698fe1634a98d4238a6af7640656 100755 (executable)
@@ -304,7 +304,14 @@ if ! $skip_gnulib; then
   '
   $GNULIB_TOOL --dir=gettext-tools --macro-prefix=grgl --lib=libgrep --source-base=libgrep --m4-base=libgrep/gnulib-m4 --witness-c-macro=IN_GETTEXT_TOOLS_LIBGREP --makefile-name=Makefile.gnulib --local-dir=gnulib-local --local-symlink \
     --import \
-    `for m in $GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES; do if test \`$GNULIB_TOOL --extract-applicability $m\` != all; then echo --avoid=$m; fi; done` \
+    `for m in $GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES; do \
+       if test \`$GNULIB_TOOL --extract-applicability $m\` != all; then \
+         case $m in \
+           locale | stdbool | stddef | stdint | stdlib | unistd | wchar | wctype-h) ;; \
+           *) echo --avoid=$m ;; \
+         esac; \
+       fi; \
+     done` \
     $GNULIB_MODULES_TOOLS_FOR_LIBGREP || exit $?
   # In gettext-tools/libgettextpo:
   # This is a subset of the GNULIB_MODULES_TOOLS_FOR_SRC.
index 15ca68bac74420ba4a6addd31897d8cb429e7ef5..65476ab85a7dbc2fdefec9d0f5d42c01935cbe01 100644 (file)
@@ -211,6 +211,9 @@ gl_INIT
 grgl_INIT
 gtpo_INIT
 
+dnl Allow libgrep/locale.h to use setlocale_null.h from gnulib-lib/.
+GL_GRGL_GNULIB_SETLOCALE_NULL=1
+
 dnl Checks for header files.
 AC_CHECK_HEADERS([pwd.h])