1
AC_DEFUN([DRIZZLE_STACK_DIRECTION],[
2
AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
8
/* Prevent compiler optimization by HP's compiler, see bug#42213 */
9
#if defined(__HP_cc) || defined (__HP_aCC) || defined (__hpux)
13
int find_stack_direction ()
15
static char *addr = 0;
20
return find_stack_direction ();
23
return (&dummy > addr) ? 1 : -1;
27
exit (find_stack_direction() < 0);
30
[ac_cv_c_stack_direction=1],
31
[ac_cv_c_stack_direction=-1],
32
[ac_cv_c_stack_direction=]
35
AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)