summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-22 19:23:56 +0000
committerUlf Möller <ulf@openssl.org>1999-04-22 19:23:56 +0000
commit5d3bb220c89e062f8d8592fc84253d61fc59cf18 (patch)
treeaefc908583985002b5abfbd7e7a5f552c51cfd29 /config
parentabb3e53f9b5ede6d1cf86e46949f4856fa2b3004 (diff)
Set the 386 flag automatically when building on i386.
Diffstat (limited to 'config')
-rwxr-xr-xconfig27
1 files changed, 11 insertions, 16 deletions
diff --git a/config b/config
index 2bc53c2424..fc344a7fc5 100755
--- a/config
+++ b/config
@@ -1,17 +1,11 @@
#!/bin/sh
#
-# config - this is a merge of minarch and GuessOS from the Apache Group
-# which then automatically runs Configure from SSLeay after
-# mapping the Apache names for OSs into SSLeay names
+# OpenSSL config: determine the operating system and run ./Configure
#
-# 29-May-97 eay Added no-asm option
-# 27-May-97 eay Alpha linux mods
-# ??-May-97 eay IRIX mods
-# 16-Sep-97 tjh first cut of merged version
-#
-# Tim Hudson
-# tjh@cryptsoft.com
+# "config -h" for usage information.
#
+# this is a merge of minarch and GuessOS from the Apache Group.
+# Originally written by Tim Hudson <tjh@cryptsoft.com>.
# Original Apache Group comments on GuessOS
@@ -259,23 +253,20 @@ case "$i" in
-d*) PREFIX="debug-";;
-v*) VERBOSE="true";;
-t*) TEST="true";;
--h*) cat <<EOF
-usage: config [options]
+-h*) TEST="true"; cat <<EOF
+Usage: config [options]
-d Add a debug- prefix to machine choice.
-v Verbose mode.
-t Test mode, do not run the Configure perl script.
-h This help.
Any other text will be passed to the Configure perl script.
-Usefull options include
+Useful options include
no-asm Build with no assember code.
-Dxxx Add xxx define to compilation.
-Lxxx Add xxx library include path to build.
-lxxx Add xxx library to build.
-eg, to build using RSAref, without assember, building to allow anon-DH
-ciphers and null encryption ciphers,
- config no-asm -DRSAref -DSSL_ALLOW_ADH -DSSL_ALLOW_ENULL -lrsaref
EOF
;;
*) options=$options" $i" ;;
@@ -328,6 +319,10 @@ case "$GUESSOS" in
*) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
esac
+case "$GUESSOS" in
+ i386-*) options="$options 386" ;;
+esac
+
if [ -z "$OUT" ]; then
OUT="$CC"
fi