summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-11-07 13:16:55 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-11-07 13:16:55 +0000
commitbb25a72881db6d3a67d9cdd46bb0d1bd059e322b (patch)
tree64c90d296bb0fd0b45d130643ca38809582bb6f0 /config
parent1562ce17cba9225ddb200859c2a17fcc0768860a (diff)
MacOS and iOS support
Diffstat (limited to 'config')
-rwxr-xr-xconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/config b/config
index d2b155aa44..08d83735ec 100755
--- a/config
+++ b/config
@@ -277,6 +277,9 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
Power*)
echo "ppc-apple-darwin${VERSION}"
;;
+ x86_64)
+ echo "x86_64-apple-darwin${VERSION}"
+ ;;
*)
echo "i686-apple-darwin${VERSION}"
;;
@@ -547,6 +550,8 @@ case "$GUESSOS" in
fi
fi
OUT="darwin-ppc-cc" ;;
+ x86_64-*-darwin*) OUT="darwin-x86_64-cc" ;;
+ i386-whatever-darwin) OUT="darwin-i386-cc" ;;
i?86-apple-darwin*)
ISA64=`(sysctl -n hw.optional.x86_64) 2>/dev/null`
if [ "$ISA64" = "1" ]; then
@@ -825,6 +830,7 @@ case "$GUESSOS" in
*-*-qnx6) OUT="QNX6" ;;
x86-*-android|i?86-*-android) OUT="android-x86" ;;
armv[7-9]*-*-android) OUT="android-armv7" ;;
+ darwin-whatever-*) OUT=`echo $GUESSOS | sed -e 's/-whatever//'`;;
*) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
esac