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

removed extra stack_direction test

Rev: src/configure.in:1.258
parent 993d8b7c
No related branches found
No related tags found
No related merge requests found
AC_REVISION("$Id: configure.in,v 1.257 1998/12/20 09:22:06 hubbe Exp $") AC_REVISION("$Id: configure.in,v 1.258 1999/01/01 00:51:06 hubbe Exp $")
AC_INIT(interpret.c) AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h) AC_CONFIG_HEADER(machine.h)
...@@ -1517,33 +1517,33 @@ fi ...@@ -1517,33 +1517,33 @@ fi
OLD_LIBOBJS="${LIBOBJS}" OLD_LIBOBJS="${LIBOBJS}"
######################################################################## ########################################################################
AC_MSG_CHECKING(stack direction) dnl AC_MSG_CHECKING(stack direction)
AC_CACHE_VAL(pike_cv_hardware_stack_direction, dnl AC_CACHE_VAL(pike_cv_hardware_stack_direction,
[ dnl [
AC_TRY_RUN([ dnl AC_TRY_RUN([
static int find_stack_direction(void *foo) dnl static int find_stack_direction(void *foo)
{ dnl {
if(!foo) { dnl if(!foo) {
return find_stack_direction((void *)&foo); dnl return find_stack_direction((void *)&foo);
} dnl }
if (((void *)&foo) > foo) { dnl if (((void *)&foo) > foo) {
return 1; dnl return 1;
} else { dnl } else {
return -1; dnl return -1;
} dnl }
} dnl }
dnl
int main() { exit( find_stack_direction(0) + 1); } dnl int main() { exit( find_stack_direction(0) + 1); }
],pike_cv_hardware_stack_direction=down,pike_cv_hardware_stack_direction=up) dnl ],pike_cv_hardware_stack_direction=down,pike_cv_hardware_stack_direction=up)
]) dnl ])
dnl
AC_MSG_RESULT($pike_cv_hardware_stack_direction) dnl AC_MSG_RESULT($pike_cv_hardware_stack_direction)
if test "x$pike_cv_hardware_stack_direction" = "xup" ; then dnl if test "x$pike_cv_hardware_stack_direction" = "xup" ; then
AC_DEFINE(STACK_DIRECTION, 1) dnl AC_DEFINE(STACK_DIRECTION, 1)
else dnl else
AC_DEFINE(STACK_DIRECTION, -1) dnl AC_DEFINE(STACK_DIRECTION, -1)
fi dnl fi
dnl
######################################################################## ########################################################################
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