Re: problems in Emacs with GL_GENERATE_STDINT_H

2021-12-18 Thread Paul Eggert
On 12/18/21 05:55, Bruno Haible wrote: Change emacs/configure.ac to use this: AC_DEFUN([AM_CONDITIONAL], [$2 && $1_CONDITION=1 || $1_CONDITION= AC_SUBST([$1_CONDITION])]) and at the same time, change gnulib-tool through the attached patch. Thanks much for the diagnosis and sugge

gnulib-tool: possibly a misleading reminder about "ACLOCAL_AMFLAGS"

2021-12-18 Thread Bjarni Ingi Gislason
In the output of "bootstrap" there is a reminder: [...] Don't forget to [...] - mention "-I gnulib_m4" in ACLOCAL_AMFLAGS in Makefile.am, [...] End of quotation. "ACLOCAL_AMFLAGS" in "Makefile.am" is going to be replaced by "AC_CONFIG_MARCO_DIRS" (in configure.ac) according to file "NEWS-2

[PATCH] nstrftime: simplify by using libc-config.h.

2021-12-18 Thread Paul Eggert
* lib/nstrftime.c [!_LIBC]: Include libc-config.h instead of config.h. (iso_week_days): Simplify via libc-config.h’s __inline. (my_strftime): Simplify via libc-config.h’s libc_hidden_def. * modules/nstrftime (Depends-on): Add libc-config. --- ChangeLog | 9 + lib/nstrftime.c | 9

Re: Accommodate non-recursive Automake in a less hacky way

2021-12-18 Thread Bruno Haible
Another fix is needed, for the 'libtextstyle-optional' module. Uncovered by the continuous integration. 2021-12-18 Bruno Haible libtextstyle-optional: Fix generation of textstyle.h (regr. 2021-12-15). * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Invoke gl_

Re: gnulib fails for build on Mac OS X 10.4: get_ppid_of.c:36:22: error: libproc.h: No such file or directory

2021-12-18 Thread Bruno Haible
I asked: > What solution can you offer so that > - in < 10.5, we have no error, > - in >= 10.5, proc_pidinfo gets used? Would this work? int proc_pidinfo (int, int, uint64_t, void *, int) WEAK_IMPORT_ATTRIBUTE; if (proc_pidinfo != NULL) { ... code that invokes proc_pidinfo ... } Bas

Re: gnulib fails for build on Mac OS X 10.4: get_ppid_of.c:36:22: error: libproc.h: No such file or directory

2021-12-18 Thread Bruno Haible
Evan Miller wrote: > proc_pidinfo is a system function not available on 10.4. When compiling with > the 10.5 SDK and deploying to 10.4, a run-time link error will result on 10.4 > using the patch. Have you verified this? From what Ryan Schmidt wrote, I understood that it would be a weakly bound

Re: problems in Emacs with GL_GENERATE_STDINT_H

2021-12-18 Thread Bruno Haible
Hi Paul, > * There seem to be similar issues with modules/fnmatch's > "gl_CONDITIONAL_HEADER([fnmatch.h])" duplicating fnmatch-h, > modules/glob's "gl_CONDITIONAL_HEADER([glob.h])" duplicating glob-h, and > modules/iconv_open's "gl_CONDITIONAL_HEADER([iconv.h])". Yes, there are in total 4 occu

Re: Accommodate non-recursive Automake in a less hacky way

2021-12-18 Thread Bruno Haible
The first patch handled option --gnu-make in lib/Makefile.in but not in tests/Makefile.in. Fixed as follows: 2021-12-18 Bruno Haible Fix support for --gnu-make in tests (regression 2021-12-15). * gnulib-tool (func_emit_tests_Makefile_am): When producing output for GNU