Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
a63fc590
Commit
a63fc590
authored
26 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/configure.in
+33
-28
33 additions, 28 deletions
src/configure.in
with
33 additions
and
28 deletions
src/configure.in
+
33
−
28
View file @
a63fc590
AC_REVISION("$Id: configure.in,v 1.25
8
1999/01/0
1 00:51
:0
6
hubbe Exp $")
AC_REVISION("$Id: configure.in,v 1.25
9
1999/01/0
5 22:47
:0
8
hubbe Exp $")
AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h)
...
...
@@ -1517,33 +1517,38 @@ fi
OLD_LIBOBJS="${LIBOBJS}"
########################################################################
dnl AC_MSG_CHECKING(stack direction)
dnl AC_CACHE_VAL(pike_cv_hardware_stack_direction,
dnl [
dnl AC_TRY_RUN([
dnl static int find_stack_direction(void *foo)
dnl {
dnl if(!foo) {
dnl return find_stack_direction((void *)&foo);
dnl }
dnl if (((void *)&foo) > foo) {
dnl return 1;
dnl } else {
dnl return -1;
dnl }
dnl }
dnl
dnl int main() { exit( find_stack_direction(0) + 1); }
dnl ],pike_cv_hardware_stack_direction=down,pike_cv_hardware_stack_direction=up)
dnl ])
dnl
dnl 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)
dnl else
dnl AC_DEFINE(STACK_DIRECTION, -1)
dnl fi
dnl
AC_MSG_CHECKING(stack direction)
AC_CACHE_VAL(pike_cv_hardware_stack_direction,
[
AC_TRY_RUN([
static int find_stack_direction(void *foo)
{
if(!foo) {
return find_stack_direction((void *)&foo);
}
if (((void *)&foo) > foo) {
return 1;
} else {
return -1;
}
}
int main() { exit( find_stack_direction(0) + 1); }
],pike_cv_hardware_stack_direction=down,pike_cv_hardware_stack_direction=up)
])
AC_MSG_RESULT($pike_cv_hardware_stack_direction)
if grep STACK_DIRECTION confdefs.h >/dev/null 2>&1; then
:
else
if test "x$pike_cv_hardware_stack_direction" = "xup" ; then
AC_DEFINE(STACK_DIRECTION, 1)
else
AC_DEFINE(STACK_DIRECTION, -1)
fi
fi
########################################################################
AC_MSG_CHECKING(byteorder)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment