Re: Gnulib-related problems building Bison from git

2022-07-03 Thread Akim Demaille
Hi, Since Bison was moved to use gnulib's support for --automake-subdir, the configuration fails for people who don't have libtextstyle installed. Or distcheck fails when libtextstyle is not installed in a default include path. This is because --automake-subdir is built (apparently) for projec

Re: New gnulib user !

2022-07-03 Thread Bruno Haible
Vivien Kraus wrote: > I don’t know how to do it at the moment; the > configure script automatically gets a --enable-shared=… flag but I > can’t find a trace of it in config.log, and I don’t know how to use it. > Could you elaborate on how to get a value for BUILDING_SHARED with > autoconf? A coupl

Re: New gnulib user !

2022-07-03 Thread Vivien Kraus
Hello, Le dimanche 03 juillet 2022 à 16:52 +0200, Bruno Haible a écrit : > +Here @code{BUILDING_SHARED} is a C macro that you have to define.  > It > +ought to evaluate to 1 in a build configured with @samp{--enable- > shared}, > +or to 0 in a build configured with @samp{--disable-shared}. That’s

Re: New gnulib user !

2022-07-03 Thread Bruno Haible
Vivien Kraus wrote: > - The library function export visibility trick is great, but the manual > suggests to augment it with dllimport/export for MSVC: > > #if BUILDING_LIBFOO && HAVE_VISIBILITY > #define LIBFOO_DLL_EXPORTED __attribute__((__visibility__("default"))) > #elif BUILDING_LIBFOO && defi

supersede: Support the file name "/dev/null" on native Windows

2022-07-03 Thread Bruno Haible
On native Windows, msgfmt (which uses the 'supersede' module) fails when passed the options -o /dev/null We have code already to map "/dev/null" to "NUL" on this platform (so that we don't have to conditionalize this constant in tests and scripts) in open.c fopen.c freopen.c This patch doe