summaryrefslogtreecommitdiff
path: root/tool/m4/ruby_stack_grow_direction.m4
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2021-03-21 14:27:23 +0900
committernagachika <nagachika@ruby-lang.org>2021-03-21 14:27:23 +0900
commitad8d6dcb48a07caf7adb1dbc9df157149f0dee01 (patch)
tree5f37173988b4bde8b4d1025a8676327c17c85b31 /tool/m4/ruby_stack_grow_direction.m4
parentcfd1a17292ae37db4d09c1452a4a84e7fd58e7cf (diff)
Revert "merge revision(s) c32375883a696fcf8e9e99875f1339ee5474a255:"
This reverts commit cfd1a17292ae37db4d09c1452a4a84e7fd58e7cf.
Diffstat (limited to 'tool/m4/ruby_stack_grow_direction.m4')
-rw-r--r--tool/m4/ruby_stack_grow_direction.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/m4/ruby_stack_grow_direction.m4 b/tool/m4/ruby_stack_grow_direction.m4
index f5f93579a4..74ec219322 100644
--- a/tool/m4/ruby_stack_grow_direction.m4
+++ b/tool/m4/ruby_stack_grow_direction.m4
@@ -6,7 +6,7 @@ AS_CASE(["$1"],
[m68*|x86*|x64|i?86|ppc*|sparc*|alpha*], [ $2=-1],
[hppa*], [ $2=+1],
[
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ AC_TRY_RUN([
/* recurse to get rid of inlining */
static int
stack_growup_p(addr, n)
@@ -23,7 +23,7 @@ int main()
int x;
return stack_growup_p(&x, 10);
}
-]])],[$2=-1],[$2=+1],[$2=0])
+], $2=-1, $2=+1, $2=0)
])
eval stack_grow_dir=\$$2])
eval $2=\$stack_grow_dir