appro> As result of added support for Unixware 7 ./config believes that even
appro> Solaris is Unixware 7. Well, as a matter of fact ./config will recognize
appro> *any* system which implements 'uname -X' and has 5 in release number as
appro> Unixware. In order to fix the problem I'd really love to figure out what
appro> does 'uname -m', 'uname -r', 'uname -s', 'uname -v' and 'uname -X'
appro> return on SCO (and ISC) or in other words what does "# Now test for ISC
appro> and SCO, since it is has a braindamaged uname" comment in ./config
appro> really mean.

Hmm...  Could something like this solve the problem?

MACHINE=`(uname -X >/dev/null 2>&1 && ( uname -X 2>/dev/null | grep Machine | awk 
'{print $3;}' ) || uname -m) 2>/dev/null` || MACHINE="unknown"
RELEASE=`(uname -X >/dev/null 2>&1 && ( uname -X 2>/dev/null | grep Release | awk 
'{print $3;}' ) || uname -r) 2>/dev/null` || RELEASE="unknown"
SYSTEM=`(uname -X >/dev/null 2>&1 && ( uname -X 2>/dev/null | grep System | awk 
'{print $3;}' ) || uname -s) 2>/dev/null`  || SYSTEM="unknown"
VERSION=`(uname -X >/dev/null 2>&1 && ( uname -X 2>/dev/null | grep KernelID | awk 
'{print $3;}' ) || uname -v) 2>/dev/null` || VERSION="unknown"

Please note that I'm very unsure about the last one.  KernelID is the
field that Solaris returns un 'uname -v', but I've no idea if it's the
same name on other SysV systems.

And yes, I'm aware of the uglyness, but hey, you find a better way to
test for -X and have a backdoor if that doesn't work...

-- 
Richard Levitte   \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis             -- [EMAIL PROTECTED]
           Member of the OpenSSL development team

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to