(jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS