allow KERNEL_BITS to be specified in the environment
authorDr. Stephen Henson <steve@openssl.org>
Fri, 24 Jun 2011 14:04:18 +0000 (14:04 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 24 Jun 2011 14:04:18 +0000 (14:04 +0000)
config

diff --git a/config b/config
index 965884a6277b4b50599ee3db3fad00fca08ea8e6..2e6db0762664c502cb0ae738aaef1ac5e27db907 100755 (executable)
--- a/config
+++ b/config
@@ -736,7 +736,7 @@ case "$GUESSOS" in
        if [ $CC = "gcc" -a $GCC_BITS = "64" ]; then
            OUT="hpux64-parisc2-gcc"
        fi
-       KERNEL_BITS=`(getconf KERNEL_BITS) 2>/dev/null`
+       [ "$KERNEL_BITS" ] || KERNEL_BITS=`(getconf KERNEL_BITS) 2>/dev/null`
        KERNEL_BITS=${KERNEL_BITS:-32}
        CPU_VERSION=`(getconf CPU_VERSION) 2>/dev/null`
        CPU_VERSION=${CPU_VERSION:-0}
@@ -770,7 +770,7 @@ case "$GUESSOS" in
        options="$options -D_REENTRANT" ;;
   *-hpux)      OUT="hpux-parisc-$CC" ;;
   *-aix)
-       KERNEL_BITS=`(getconf KERNEL_BITMODE) 2>/dev/null`
+       [ "$KERNEL_BITS" ] || KERNEL_BITS=`(getconf KERNEL_BITMODE) 2>/dev/null`
        KERNEL_BITS=${KERNEL_BITS:-32}
        OBJECT_MODE=${OBJECT_MODE:-32}
        if [ "$CC" = "gcc" ]; then