summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-23 16:32:04 +0000
committerUlf Möller <ulf@openssl.org>1999-04-23 16:32:04 +0000
commitc6fdd7dc2631d04743a58fc11aaeaf8b57fb5601 (patch)
tree69446612bdb7d754a92118b6389b47dbe3c55c81 /config
parent61f5b6f33807306d09bccbc2dcad474d1d04ca40 (diff)
Recognize CPU version on NetBSD and FreeBSD.
NetBSD entry submitted by: Todd Vierling <tv@pobox.com>
Diffstat (limited to 'config')
-rwxr-xr-xconfig15
1 files changed, 11 insertions, 4 deletions
diff --git a/config b/config
index fc344a7fc5..a6633a7055 100755
--- a/config
+++ b/config
@@ -123,16 +123,23 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
echo "${MACHINE}-whatever-freebsd3"; exit 0
;;
- FreeBSD:*:*:*486*)
- echo "i486-whatever-freebsd"; exit 0
+ FreeBSD:*:*:*386*)
+ case `sysctl -n hw.model` in
+ Pentium*)
+ echo "i586-whatever-freebsd"; exit 0
+ ;;
+ *)
+ echo "i386-whatever-freebsd"; exit 0
+ ;;
+ esac;
;;
FreeBSD:*)
echo "${MACHINE}-whatever-freebsd"; exit 0
;;
- NetBSD:*:*:*486*)
- echo "i486-whatever-netbsd"; exit 0
+ NetBSD:*:*:*386*)
+ echo "`sysctl -n hw.model | sed 's,.*\(.\)86-class.*,i\186,'`-whateve\r-netbsd"; exit 0
;;
NetBSD:*)