summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7f8f7f72bf..b5a2ef86b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2337,7 +2337,11 @@ AS_CASE(["$rb_cv_fiber_coroutine"], [yes|''], [
rb_cv_fiber_coroutine=amd64
],
[x*64-linux], [
- rb_cv_fiber_coroutine=amd64
+ AS_CASE(["$ac_cv_sizeof_voidp"],
+ [8], [ rb_cv_fiber_coroutine=amd64 ],
+ [4], [ rb_cv_fiber_coroutine=x86 ],
+ [*], [ rb_cv_fiber_coroutine= ]
+ )
],
[*86-linux], [
rb_cv_fiber_coroutine=x86