summaryrefslogtreecommitdiff
path: root/configure.host
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-11-22 20:02:43 +0100
committerRichard Henderson <rth@twiddle.net>2015-01-05 10:01:37 -0800
commit9f112619c187e135132b765adeedef89ee354eb2 (patch)
tree790e18252f1372ccf054b7333a5ed2c0accbff91 /configure.host
parent58bf7d65d8896f198624c591cc31e6e01a09cc31 (diff)
downloadlibffi-9f112619c187e135132b765adeedef89ee354eb2.tar.gz
x86: Best guess at update for Darwin
Diffstat (limited to 'configure.host')
-rw-r--r--configure.host12
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.host b/configure.host
index bc3e838..5ee632c 100644
--- a/configure.host
+++ b/configure.host
@@ -84,7 +84,12 @@ case "${host}" in
;;
i?86-*-darwin* | x86_64-*-darwin*)
- TARGET=X86_DARWIN; TARGETDIR=x86
+ TARGETDIR=x86
+ if test $ac_cv_sizeof_size_t = 4; then
+ TARGET=X86_DARWIN
+ else
+ TARGET=X86_64
+ fi
;;
i?86-*-* | x86_64-*-* | amd64-*)
@@ -237,7 +242,7 @@ case "${TARGET}" in
POWERPC_FREEBSD)
SOURCES="ffi.c ffi_sysv.c sysv.S ppc_closure.S"
;;
- X86 | X86_FREEBSD | X86_WIN32)
+ X86 | X86_DARWIN | X86_FREEBSD | X86_WIN32)
SOURCES="ffi.c sysv.S"
;;
X86_64)
@@ -246,9 +251,6 @@ case "${TARGET}" in
X86_WIN64)
SOURCES="ffiw64.c win64.S"
;;
- X86_DARWIN)
- SOURCES="ffi.c darwin.S ffi64.c darwin64.S"
- ;;
esac
# If we failed to configure SOURCES, we can't do anything.