On Fri, 23 Apr 1999, Ulf Möller wrote:
: For BSD/386, FreeBSD and NetBSD there are two entries each:
:
: FreeBSD:*:*:*486*)
: echo "i486-whatever-freebsd"; exit 0
: ;;
: It seems that uname -m always returns i386. That would cause a
: Pentium to be mistaken for a 386. How do you get the CPU version
: on BSD?
On NetBSD (I won't speak for BSDI or FreeBSD), you have to do some parsing
on "sysctl -n hw.model".
For NetBSD, this would suffice:
NetBSD:*:*:*386*)
echo "`sysctl -n hw.model | sed
's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0
;;
with the existing generic ${MACHINE}-based definition for NetBSD.
--
-- Todd Vierling (Personal [EMAIL PROTECTED]; Bus. [EMAIL PROTECTED])
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]