In message <[EMAIL PROTECTED]> on Wed, 1 Jan 2003 06:11:24 -0800,
Kris Kennaway <[EMAIL PROTECTED]> said:
kris> uname -m returns "sparc64". I assume that the use of the hw.model
kris> sysctl is so different x86 CPUs can be distinguished for purposes of
kris> asm support (they all return "i386" from uname -m).
Quick question, what does uname -m answer on an Alpha? "alpha"? In
that case, would the following patch do (it's similar in spirit to the
NetbBSD tests)?
Index: config
===================================================================
RCS file: /e/openssl/cvs/openssl/config,v
retrieving revision 1.95.2.16
diff -u -u -r1.95.2.16 config
--- config 6 Dec 2002 16:45:11 -0000 1.95.2.16
+++ config 1 Jan 2003 23:53:44 -0000
@@ -196,7 +196,7 @@
echo "${MACHINE}-whatever-bsdi"; exit 0
;;
- FreeBSD:*)
+ FreeBSD:*:*:*386*)
VERS=`echo ${RELEASE} | sed -e 's/[-(].*//'`
MACH=`sysctl -n hw.model`
ARCH='whatever'
@@ -205,7 +205,6 @@
*486* ) MACH="i486" ;;
Pentium\ II*) MACH="i686" ;;
Pentium* ) MACH="i586" ;;
- Alpha* ) MACH="alpha" ;;
* ) MACH="$MACHINE" ;;
esac
case ${MACH} in
@@ -214,6 +213,10 @@
echo "${MACH}-${ARCH}-freebsd${VERS}"; exit 0
;;
+ FreeBSD:*)
+ echo "${MACHINE}-whatever-freebsd"; exit 0
+ ;;
+
NetBSD:*:*:*386*)
echo "`(/usr/sbin/sysctl -n hw.model || /sbin/sysctl -n hw.model) | sed
's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0
;;
@@ -640,6 +643,7 @@
*86*-*-solaris2) OUT="solaris-x86-$CC" ;;
*-*-sunos4) OUT="sunos-$CC" ;;
alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;;
+ sparc64-*-freebsd*) OUT="FreeBSD-sparc64" ;;
*-freebsd[3-9]*) OUT="FreeBSD-elf" ;;
*-freebsd[1-2]*) OUT="FreeBSD" ;;
*86*-*-netbsd) OUT="NetBSD-x86" ;;
--
Richard Levitte \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
\ SWEDEN \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
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]