Eric Blake-1 <[EMAIL PROTECTED]> writes: > That thread means that the autoconf decision to obsolete > AC_HEADER_SYS_WAIT for 2.60 may have been premature; at > any rate, the documentation under that macro is not completely > accurate - I'll have to forward this bug report on to autoconf as > well.
That macro was intended only for the old BSD union wait problem. If you merely want to check for the existence of <sys/wait.h>, your best bet is AC_CHECK_HEADER. > But on non-POSIX platforms, such as mingw or OS/2, should syscmd > still expect the user to have /bin/sh available, rather than passing the > string to the native shell with all its non-portable quoting? What do users on that platform want? If they don't know or don't care, the simplest would be to use a substitute implementation of 'system' that always returns 0. > I thought one of gnulib's goals was to provide useful POSIX > semantics atop non-POSIX systems, where possible. "Possible" is too strong. It would be more accurate to say "trivial".