Commit 38e8b232da8 for php.net
commit 38e8b232da8981790d8c3aa635cf09875a837e32
Author: Calvin Buckley <calvinb@php.net>
Date: Mon Aug 17 13:21:20 2026 -0300
configure.ac: Use 64-bit fibers on AIX without overriding triplet (#23284)
AIX/PASE defaults to a powerpc-ibm-(aix|os400) triplet, even though the
build may be 64-bit. This causes a problem with fibers, as the 32-bit
assembly will be selected, causing a build failure. Detect this case
and override the selected assembly ourselves.
Tested on PASE, which with IBM's provided packages, defaults to a 64-bit
build environment.
diff --git a/configure.ac b/configure.ac
index 3229e0dac04..b1ff51bcc2d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1224,7 +1224,15 @@ AS_CASE([$host_cpu],
AS_CASE([$host_os],
[darwin*], [fiber_os="mac"],
- [aix*|os400*], [fiber_os="aix"],
+ [aix*|os400*], [
+ fiber_os="aix"
+ dnl AIX triplets start w/ powerpc- even though it may be 64-bit (as AIX
+ dnl has a multiple bitness world). Check if the build is 64-bit, or we
+ dnl end up using the wrong fibre asm (w/o forcing a powerpc64 triplet)
+ AS_IF([test "$ac_cv_sizeof_long" -eq 8], [
+ fiber_cpu="ppc64"
+ ], [])
+ ],
[freebsd*], [fiber_os="freebsd"],
[midipix], [fiber_os="midipix"],
[fiber_os="other"]