summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2004-12-20 14:44:34 +0100
committerAndy Polyakov <appro@openssl.org>2004-12-20 14:44:34 +0100
commit76ef6ac956490b4d9f78445599ce52510021858a (patch)
treee3dc2caa83e0d717ed19fdae43cfedc3e34acb84 /config
parentRemove unused buffer 'buf'. (diff)
downloadopenssl-76ef6ac956490b4d9f78445599ce52510021858a.tar.xz
openssl-76ef6ac956490b4d9f78445599ce52510021858a.zip
Refine PowerPC platform support.
Diffstat (limited to 'config')
-rwxr-xr-xconfig55
1 files changed, 29 insertions, 26 deletions
diff --git a/config b/config
index 98f6d9fdc7..9d6788708f 100755
--- a/config
+++ b/config
@@ -111,12 +111,16 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
echo "m68k-apple-aux3"; exit 0
;;
+ AIX:[3-9]:4:*)
+ echo "${MACHINE}-ibm-aix"; exit 0
+ ;;
+
AIX:*:[5-9]:*)
- echo "${MACHINE}-ibm-aix5"; exit 0
+ echo "${MACHINE}-ibm-aix"; exit 0
;;
AIX:*)
- echo "${MACHINE}-ibm-aix"; exit 0
+ echo "${MACHINE}-ibm-aix3"; exit 0
;;
dgux:*)
@@ -542,7 +546,15 @@ EOF
${CC} -o dummy dummy.c && OUT=`./dummy ${MACHINE}`
rm dummy dummy.c
;;
- ppc64-*-linux2) OUT="linux-ppc64" ;;
+ ppc64-*-linux2)
+ echo "WARNING! If you wish to build 64-bit library, then you have to"
+ echo " invoke './Configure linux-ppc64' *manually*."
+ if [ "$TEST" = "false" ]; then
+ echo " You have about 5 seconds to press Ctrl-C to abort."
+ (stty -icanon min 0 time 50; read waste) < /dev/tty
+ fi
+ OUT="linux-ppc"
+ ;;
ppc-*-linux2) OUT="linux-ppc" ;;
m68k-*-linux*) OUT="linux-m68k" ;;
ia64-*-linux?) OUT="linux-ia64" ;;
@@ -725,37 +737,28 @@ EOF
fi
options="$options -D_REENTRANT" ;;
*-hpux) OUT="hpux-parisc-$CC" ;;
- *-aix5)
+ *-aix)
KERNEL_BITS=`(getconf KERNEL_BITMODE) 2>/dev/null`
KERNEL_BITS=${KERNEL_BITS:-32}
- if [ $KERNEL_BITS -eq 64 ]; then
- # we default to 64-bit because PKI performance is >3x better...
- OBJECT_MODE=${OBJECT_MODE:-$KERNEL_BITS}
- else
- OBJECT_MODE=32
- fi
- OUT="aix-cc"
- if [ "$CC" = "cc" -a $OBJECT_MODE -eq 64 ]; then
- OUT="aix64-cc"
- echo "WARNING! If you wish to build 32-bit kit, then you have to"
- echo " invoke './Configure aix-cc' *manually*."
- if [ "$TEST" = "false" ]; then
- echo " You have ~5 seconds to press Ctrl-C to abort."
- (stty -icanon min 0 time 50; read waste) < /dev/tty
- fi
- elif [ "$CC" = "gcc" ]; then
- OUT="aix-gcc"
- fi
- ;;
- *-aix)
+ OBJECT_MODE=${OBJECT_MODE:-32}
if [ "$CC" = "gcc" ]; then
OUT="aix-gcc"
+ elif [ $OBJECT_MODE -eq 64 ]; then
+ echo 'Your $OBJECT_MODE was found to be set to 64'
+ OUT="aix64-cc"
else
- OUT="aix43-cc"
+ OUT="aix-cc"
+ if [ $KERNEL_BITS -eq 64 ]; then
+ echo "WARNING! If you wish to build 64-bit kit, then you have to"
+ echo " invoke './Configure aix64-cc' *manually*."
+ if [ "$TEST" = "false" ]; then
+ echo " You have ~5 seconds to press Ctrl-C to abort."
+ (/bin/stty -icanon min 0 time 50; read waste) < /dev/tty
+ fi
+ fi
fi
;;
# these are all covered by the catchall below
- # *-aix) OUT="aix-$CC" ;;
# *-dgux) OUT="dgux" ;;
mips-sony-newsos4) OUT="newsos4-gcc" ;;
*-*-cygwin_pre1.3) OUT="Cygwin-pre1.3" ;;