1
AC_DEFUN([DRIZZLE_STACK_DIRECTION],
2
[AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
3
[AC_TRY_RUN([#include <stdlib.h>
4
int find_stack_direction ()
11
return find_stack_direction ();
14
return (&dummy > addr) ? 1 : -1;
18
exit (find_stack_direction() < 0);
19
}], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1,
20
ac_cv_c_stack_direction=)])
21
AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)