diff options
author | Andy Polyakov <appro@openssl.org> | 2012-10-21 18:19:41 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-10-21 18:19:41 +0000 |
commit | 78c3e20579d3baa159c8b51b59d415b6e521614b (patch) | |
tree | e2b1e2556addea47a495681fa11b6164350d2f0f /config | |
parent | 0c832ec5c6741b2e972d39612f702bcfebe18b20 (diff) | |
download | openssl-78c3e20579d3baa159c8b51b59d415b6e521614b.tar.gz |
linux-pcc: make it more robust and recognize KERNEL_BITS variable.
Diffstat (limited to 'config')
-rwxr-xr-x | config | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -587,13 +587,20 @@ case "$GUESSOS" in fi ;; 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" -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 + if [ -z "$KERNEL_BITS" ]; then + echo "WARNING! If you wish to build 64-bit library, then you have to" + echo " invoke './Configure linux-ppc64' *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 + if [ "$KERNEL_BITS" = "64" ]; then + OUT="linux-ppc64" + else + OUT="linux-ppc" + (echo "__LP64__" | gcc -E -x c - 2>/dev/null | grep "^__LP64__" 2>&1 > /dev/null) || options="$options -m32" fi - OUT="linux-ppc" ;; ppc-*-linux2) OUT="linux-ppc" ;; mips64*-*-linux2) |