Skip to content
Snippets Groups Projects
Commit a63fc590 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

STACK_DIRECTION now fixed..

Rev: src/configure.in:1.259
parent f04a3bc3
No related branches found
No related tags found
No related merge requests found
AC_REVISION("$Id: configure.in,v 1.258 1999/01/01 00:51:06 hubbe Exp $") AC_REVISION("$Id: configure.in,v 1.259 1999/01/05 22:47:08 hubbe Exp $")
AC_INIT(interpret.c) AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h) AC_CONFIG_HEADER(machine.h)
...@@ -1517,33 +1517,38 @@ fi ...@@ -1517,33 +1517,38 @@ fi
OLD_LIBOBJS="${LIBOBJS}" OLD_LIBOBJS="${LIBOBJS}"
######################################################################## ########################################################################
dnl AC_MSG_CHECKING(stack direction) AC_MSG_CHECKING(stack direction)
dnl AC_CACHE_VAL(pike_cv_hardware_stack_direction, AC_CACHE_VAL(pike_cv_hardware_stack_direction,
dnl [ [
dnl AC_TRY_RUN([ AC_TRY_RUN([
dnl static int find_stack_direction(void *foo) static int find_stack_direction(void *foo)
dnl { {
dnl if(!foo) { if(!foo) {
dnl return find_stack_direction((void *)&foo); return find_stack_direction((void *)&foo);
dnl } }
dnl if (((void *)&foo) > foo) { if (((void *)&foo) > foo) {
dnl return 1; return 1;
dnl } else { } else {
dnl return -1; return -1;
dnl } }
dnl } }
dnl
dnl int main() { exit( find_stack_direction(0) + 1); } int main() { exit( find_stack_direction(0) + 1); }
dnl ],pike_cv_hardware_stack_direction=down,pike_cv_hardware_stack_direction=up) ],pike_cv_hardware_stack_direction=down,pike_cv_hardware_stack_direction=up)
dnl ]) ])
dnl
dnl AC_MSG_RESULT($pike_cv_hardware_stack_direction) AC_MSG_RESULT($pike_cv_hardware_stack_direction)
dnl if test "x$pike_cv_hardware_stack_direction" = "xup" ; then
dnl AC_DEFINE(STACK_DIRECTION, 1) if grep STACK_DIRECTION confdefs.h >/dev/null 2>&1; then
dnl else :
dnl AC_DEFINE(STACK_DIRECTION, -1) else
dnl fi if test "x$pike_cv_hardware_stack_direction" = "xup" ; then
dnl AC_DEFINE(STACK_DIRECTION, 1)
else
AC_DEFINE(STACK_DIRECTION, -1)
fi
fi
######################################################################## ########################################################################
AC_MSG_CHECKING(byteorder) AC_MSG_CHECKING(byteorder)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment