blob: d67922545ec5173b6038704d06e4c958b2eace86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ak,v 1.2 2000/05/09 14:24:39 dmcmahill Exp $
the original version would take things like "1.4.2_ALPHA" and change it to "1.4.2."
This messes up paths when ${OS_VERSION} is used in PLIST's and install scripts.
Also, we want output like 'mipsel-unknown-netbsd1.4.1' not 'pmax-unknown-netbsd1.4.1'
--- scripts/config.guess.orig Thu Jun 26 20:31:08 1997
+++ scripts/config.guess Tue May 9 10:13:07 2000
@@ -42,4 +42,5 @@
fi
+UNAME_PROCESSOR=`(uname -p) 2>/dev/null` || UNAME_PROCESSOR=unknown
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
@@ -386,5 +387,5 @@
exit 0 ;;
*:NetBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ echo ${UNAME_PROCESSOR}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-].*/\./'`
exit 0 ;;
*:OpenBSD:*:*)
|