Re: execute.c doesn't have fallback for systems without posix_spawn

2014-08-07 Thread Paul Eggert
Garrett Cooper wrote: configure:3527: loading site script /mnt/freebsd-ports//Templates/config.site ... | : ${ac_cv_header_spawn_h=yes} That's your problem. Your config.site file claims that there's a spawn.h, but there isn't. I stay away from config.site files myself, as they're trouble

Re: Missing symbols when compiling gettext on OSX 10.8

2014-08-07 Thread Daiki Ueno
Paul Eggert writes: > Daiki Ueno wrote: >> As far as I checked, gettext uses build-aux/install-reloc from Gnulib as >> it is, and the patch still applies to the Gnulib master. For the record, porting it to Gnulib was completed in 2007: http://git.sv.gnu.org/cgit/gettext.git/commit/?id=acc93e34

Re: [PATCH] getpass: conditionalize variable declarations

2014-08-07 Thread Paul Eggert
Thanks, I installed that.

Re: Fix weird _SC_OPEN_MAX usage

2014-08-07 Thread Paul Eggert
The first part of your proposal looks OK (and I installed the attached patch, which does something like that), but the second one I'm dubious about. We prefer keeping the gnulib code close to the glibc code. libc code can refer to symbols such as __sysconf without problems, since they're in t

Re: 'static' in array-size func parm

2014-08-07 Thread Paul Eggert
In looking into this I realized a couple of things. First, I partially addressed this problem in 2006 in gnulib's AC_C_VARARRAYS macro (sorry, I forgot about this until today). Second, the C standardization committee addressed it in a different way, in C11's __STDC_NO_VLA__ macro. So just no

[PATCH] vararrays: modernize AC_C_VARARRAYS for C11

2014-08-07 Thread Paul Eggert
This backports a change I recently made to Autoconf. * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if VLAs are not supported, as this is what C11 does. The old macro HAVE_C_VARARRAYS is still defined if they are supported, but is now obsolescent. Also, check for VLA bug in GCC 3.4.3.

Re: Fix weird _SC_OPEN_MAX usage

2014-08-07 Thread Jonas 'Sortie' Termansen
On 08/07/2014 06:59 PM, Paul Eggert wrote: > That shouldn't be a problem, since the modules in question all depend on > the getdtablesize module, which should supply the getdtablesize function > on platforms that lack it. Ah. I missed that. Some background: I'm porting these modules (as found in

Re: Fix weird _SC_OPEN_MAX usage

2014-08-07 Thread Paul Eggert
Jonas 'Sortie' Termansen wrote: This is non-portable to new systems that doesn't have the non-standard getdtablesize() function, but implements the standard sysconf value. That shouldn't be a problem, since the modules in question all depend on the getdtablesize module, which should supply the

Re: Missing symbols when compiling gettext on OSX 10.8

2014-08-07 Thread Paul Eggert
Daiki Ueno wrote: As far as I checked, gettext uses build-aux/install-reloc from Gnulib as it is, and the patch still applies to the Gnulib master. I'm a bit confused, since the two files seem to differ, but oh well. I installed the patch to the Gnulib master. Thanks, Alessandro, for report

Re: Fix libunistring in MS-Windows locales

2014-08-07 Thread Eli Zaretskii
> From: Daiki Ueno > Cc: egg...@cs.ucla.edu, bug-gnulib@gnu.org > Date: Thu, 07 Aug 2014 09:22:32 +0900 > > Eli Zaretskii writes: > > >> > Actually, I see that libunistring already includes functions for > >> > locking (which on Windows wrap the 2 APIs I mentioned above). So I > >> > guess it