[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Guile FTBFS on hppa - problem in detecting stack direction?



On Wed, Aug 6, 2008 at 4:38 PM, Neil Jerram <neiljerram@googlemail.com> wrote:
> SCM_I_GSC_STACK_GROWS_UP=0

Move this line.

> AC_CACHE_CHECK([stack direction],
>               [SCM_I_GSC_STACK_GROWS_UP],
> [AC_RUN_IFELSE([AC_LANG_SOURCE(
> [AC_INCLUDES_DEFAULT
> int
> find_stack_direction ()
> {
>  static char *addr = 0;
>  auto char dummy;
>  if (addr == 0)
>    {
>      addr = &dummy;
>      return find_stack_direction ();
>    }
>  else
>    return (&dummy > addr) ? 1 : -1;
> }
>
> int
> main ()
> {
>  return find_stack_direction () < 0;
> }])],
>               [SCM_I_GSC_STACK_GROWS_UP=1],
>               [],

Into this empty bracket.

>               [AC_MSG_WARN(Guessing that stack grows down -- see scmconfig.h)])])

Tell me if that fixes your problem with cached variable detection.

Cheers,
Carlos.


Reply to: