summaryrefslogtreecommitdiff
path: root/ext/opcache/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/config.m4')
-rw-r--r--ext/opcache/config.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
index 69ee93c872..479f0531c4 100644
--- a/ext/opcache/config.m4
+++ b/ext/opcache/config.m4
@@ -46,6 +46,9 @@ if test "$PHP_OPCACHE" != "no"; then
echo 'int i;' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then
case `/usr/bin/file conftest.o` in
+ *"Mach-O 64-bit"*)
+ DASM_FLAGS="-D X64APPLE=1 -D X64=1"
+ ;;
*64-bit*)
DASM_FLAGS="-D X64=1"
;;