I have tried to compile texinfo-4.9.91 with djgpp 2.04.
The compilation step fails due to the inconditional use of LC_MESSAGES.
djgpp implements the locale categories but not the LC_MESSAGES extension.
The code snippet below from info.c is the one that make compilation fail:
#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
/* But don't use translated messages in the case when
string width and length can differ */
if (MB_CUR_MAX > 1)
setlocale(LC_MESSAGES, "C");
#endif
The failure is the consequence of the assumption that an implementation
of setlocale would automatically imply the existance of the LC_MESSAGES
ISO C extension. Code like the above may repeat somewhere else in texinfo.
I have not searched for more occurences. The question arieses if this
could be fixed with something like a HAVE_LC_MESSAGES test or something
similar. I can not contribute with a solution but I wanted to call your
attention about this issue anyway. May be that some other implementation
of setlocale without LC_MESSAGES.
Regards,
Juan M. Guerrero