Hello, I've been working on pkgsrc for the Minix project and we've been patching lib/spawni.c in several packages (bison, gettext, m4, ...) because Minix lacks setpgid(). I lack the autotools and gnulib knowledge to patch & test gnulib itself, but in general the fix would involve adding a check for setpgid() and ifdef'ing out the part of spawni.c that sets the process group id. So, something like this...
m4/posix_spawn.m4?: AC_CHECK_FUNCS([setpgid]) lib/spawni.c: #ifdef HAVE_SETPGID /* Set the process group ID. */ if ((flags & POSIX_SPAWN_SETPGROUP) != 0 && setpgid (0, attrp->_pgrp) != 0) _exit (SPAWN_ERROR); #endif Thanks, Thomas