Does it work to use the following test program instead?

int
find_stack_direction (char *addr)
{
  char dummy;
  return (! addr ? find_stack_direction (&dummy)
          : addr < &dummy ? 1 : -1);
}

int
main (void)
{
  return find_stack_direction (0) < 0;
}

This, essentially, is the fix I just pushed into the GNU
autoconf trunk, here:

http://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=b1747413a80add0271d6909aecfdc2b638456257

Reply via email to