summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-06-24 14:04:03 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-06-24 14:04:03 +0000
commit9fa8f3a6107ce4493adac30fb62f5ae2b19dbc0c (patch)
treec61ab2cfd785eca8764b6168f2dc4e23aa2fe3de /config
parentdbfa236977f1560c6deafc02d9506af52ac3d2cf (diff)
downloadopenssl-new-9fa8f3a6107ce4493adac30fb62f5ae2b19dbc0c.tar.gz
allow KERNEL_BITS to be specified in the environment
Diffstat (limited to 'config')
-rwxr-xr-xconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/config b/config
index 2827a458c0..176644ff8a 100755
--- a/config
+++ b/config
@@ -753,7 +753,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}
@@ -787,7 +787,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