Recognize CPU version on NetBSD and FreeBSD.
NetBSD entry submitted by: Todd Vierling <tv@pobox.com>
This commit is contained in:
parent
61f5b6f338
commit
c6fdd7dc26
15
config
15
config
@ -123,16 +123,23 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||||||
echo "${MACHINE}-whatever-freebsd3"; exit 0
|
echo "${MACHINE}-whatever-freebsd3"; exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
FreeBSD:*:*:*486*)
|
FreeBSD:*:*:*386*)
|
||||||
echo "i486-whatever-freebsd"; exit 0
|
case `sysctl -n hw.model` in
|
||||||
|
Pentium*)
|
||||||
|
echo "i586-whatever-freebsd"; exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "i386-whatever-freebsd"; exit 0
|
||||||
|
;;
|
||||||
|
esac;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
FreeBSD:*)
|
FreeBSD:*)
|
||||||
echo "${MACHINE}-whatever-freebsd"; exit 0
|
echo "${MACHINE}-whatever-freebsd"; exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
NetBSD:*:*:*486*)
|
NetBSD:*:*:*386*)
|
||||||
echo "i486-whatever-netbsd"; exit 0
|
echo "`sysctl -n hw.model | sed 's,.*\(.\)86-class.*,i\186,'`-whateve\r-netbsd"; exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
NetBSD:*)
|
NetBSD:*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user