summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2007-07-31 18:24:41 +0000
committerAndy Polyakov <appro@openssl.org>2007-07-31 18:24:41 +0000
commitd6c764573c8e58f4c11ae5150ff5db4aa160cb4f (patch)
tree60e5682245d60fbac19960cc9f250a08e6f50a25 /config
parent9d35d08ab64d76f65261b1b1d524983c3a74b30f (diff)
downloadopenssl-new-d6c764573c8e58f4c11ae5150ff5db4aa160cb4f.tar.gz
Proper support for shared build under MacOS X.
Diffstat (limited to 'config')
-rwxr-xr-xconfig12
1 files changed, 11 insertions, 1 deletions
diff --git a/config b/config
index 34151cb585..b4f549cfc2 100755
--- a/config
+++ b/config
@@ -525,7 +525,17 @@ case "$GUESSOS" in
OUT="irix-mips3-$CC"
;;
ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
- ppc-apple-darwin*) OUT="darwin-ppc-cc" ;;
+ ppc-apple-darwin*)
+ ISA64=`(sysctl -n hw.optional.64bitops) 2>/dev/null`
+ if [ "$ISA64" = "1" ]; then
+ echo "WARNING! If you wish to build 64-bit library, then you have to"
+ echo " invoke './Configure darwin64-ppc-cc' *manually*."
+ if [ "$TEST" = "false" -a -t 1 ]; then
+ echo " You have about 5 seconds to press Ctrl-C to abort."
+ (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1
+ fi
+ fi
+ OUT="darwin-ppc-cc" ;;
i386-apple-darwin*) OUT="darwin-i386-cc" ;;
alpha-*-linux2)
ISA=`awk '/cpu model/{print$4;exit(0);}' /proc/cpuinfo`