* config.guess (*:NetBSD:*:*): Use only the major release and

minor release number in the triplet.
	* testsuite/config-guess.data: Add new tests.

Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
宋冬生
2015-07-03 15:06:04 +10:00
committed by Ben Elliston
parent ca9bfb8cc7
commit 9c63d2fafe
3 changed files with 16 additions and 5 deletions

4
config.guess vendored
View File

@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2015 Free Software Foundation, Inc.
timestamp='2015-06-30'
timestamp='2015-07-03'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@ -221,7 +221,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
release='-gnu'
;;
*)
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
;;
esac
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: