[bug #63185] configure fails to detect getloadavg declaration on sun and aix.

2022-10-26 Thread Paul D. Smith
Follow-up Comment #6, bug #63185 (project make): You're right, I forgot that it's always wrong to use ifdef/ifndef with HAVE_DECL values in autoconf. But, I don't understand why you've added the !defined(HAVE_SYS_LOADAVG_H) to the check. If the function is not declared we need to declare it, it

[bug #62174] fix test functions/shell on aix.

2022-10-26 Thread Paul D. Smith
Follow-up Comment #4, bug #62174 (project make): Hm. the code tries to reset the locale to "C" before it detects any of this stuff. I guess maybe the method it uses (calling POSIX::setlocale()) isn't sufficient? OK I'll address this. I think the idea was that we didn't want to change the local

[bug #63185] configure fails to detect getloadavg declaration on sun and aix.

2022-10-26 Thread Dmitry Goncharov
Follow-up Comment #7, bug #63185 (project make): i guess, it is possible that sys/loadavg.h exists, but still doesn't declare getloadavg. It is also possible that configure sets HAVE_DECL_GETLOADAVG to 0 and also defines HAVE_SYS_LOADAVG_H and in this case there is a declaraion in sys/loadavg.h a