[Gmp-commit] /var/hg/gmp: Generalise sparc patterns.

mercurial at gmplib.org mercurial at gmplib.org
Thu Jul 20 12:32:08 CEST 2023


details:   /var/hg/gmp/rev/0a634e6b973c
changeset: 18395:0a634e6b973c
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Jul 20 12:32:02 2023 +0200
description:
Generalise sparc patterns.

diffstat:

 config.guess |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (36 lines):

diff -r 73d9ef70d14f -r 0a634e6b973c config.guess
--- a/config.guess	Wed Jul 19 11:44:37 2023 +0200
+++ b/config.guess	Thu Jul 20 12:32:02 2023 +0200
@@ -700,23 +700,23 @@
   for prtconfopt in "" "-vp"; do
     if test -z "$exact_cpu"; then
       if $SHELL -c "/usr/sbin/prtconf $prtconfopt" 2>/dev/null >$dummy; then
-	if grep 'SUNW,UltraSPARC-T5' $dummy >/dev/null; then
+	if egrep '(SUNW|ORCL),(Ultra)?SPARC-T5' $dummy >/dev/null; then
 	  exact_cpu=ultrasparct5
-	elif grep 'SUNW,UltraSPARC-T4' $dummy >/dev/null; then
+	elif egrep '(SUNW|ORCL),(Ultra)?SPARC-T4' $dummy >/dev/null; then
 	  exact_cpu=ultrasparct4
-	elif grep 'SUNW,UltraSPARC-T3' $dummy >/dev/null; then
+	elif egrep '(SUNW|ORCL),(Ultra)?SPARC-T3' $dummy >/dev/null; then
 	  exact_cpu=ultrasparct3
-	elif grep 'SUNW,UltraSPARC-T2' $dummy >/dev/null; then
+	elif egrep '(SUNW|ORCL),(Ultra)?SPARC-T2' $dummy >/dev/null; then
 	  exact_cpu=ultrasparct2
-	elif grep 'SUNW,UltraSPARC-T1' $dummy >/dev/null; then
+	elif egrep '(SUNW|ORCL),(Ultra)?SPARC-T1' $dummy >/dev/null; then
 	  exact_cpu=ultrasparct1
-	elif grep 'SUNW,UltraSPARC-III' $dummy >/dev/null; then
+	elif egrep '(SUNW|ORCL),(Ultra)?SPARC-III' $dummy >/dev/null; then
 	  exact_cpu=ultrasparc3
-	elif grep 'SUNW,UltraSPARC-IIi' $dummy >/dev/null; then
+	elif egrep '(SUNW|ORCL),(Ultra)?SPARC-IIi' $dummy >/dev/null; then
 	  exact_cpu=ultrasparc2i
-	elif grep 'SUNW,UltraSPARC-II' $dummy >/dev/null; then
+	elif egrep '(SUNW|ORCL),(Ultra)?SPARC-II' $dummy >/dev/null; then
 	  exact_cpu=ultrasparc2
-	elif grep 'SUNW,UltraSPARC' $dummy >/dev/null; then
+	elif egrep '(SUNW|ORCL),(Ultra)?SPARC' $dummy >/dev/null; then
 	  exact_cpu=ultrasparc
 	elif grep 'Ross,RT62.' $dummy >/dev/null; then
 	  # RT620, RT625, RT626 hypersparcs (v8).


More information about the gmp-commit mailing list