aboutsummaryrefslogtreecommitdiffstats
path: root/math/atlas-devel
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2004-01-20 21:40:46 +0800
committermaho <maho@FreeBSD.org>2004-01-20 21:40:46 +0800
commit01077321e12d93ca2c09d6f85b5b3235c7938649 (patch)
treed1029aa2884d611f3a8a371da3e8d10eaa0a7ec7 /math/atlas-devel
parent51efe3792815c8284cdc149becc9d6eafb869aa5 (diff)
downloadfreebsd-ports-gnome-01077321e12d93ca2c09d6f85b5b3235c7938649.tar.gz
freebsd-ports-gnome-01077321e12d93ca2c09d6f85b5b3235c7938649.tar.zst
freebsd-ports-gnome-01077321e12d93ca2c09d6f85b5b3235c7938649.zip
Add more architectures (result of hw.model)
thanks for your reports! Norikatsu Shigemura <nork@cityfujisawa.ne.jp> SHINODA Masanori <shinoda@hiroshima.intec.co.jp> FUJISHIMA Satsuki <sf@FreeBSD.org> SATOH Mitsuharu <mituharu@rd.ikegami.co.jp> nakayama <y.naka@gamma.ocn.ne.jp> TSUCHIKAMA Shinji <tsuchikm@ff.iij4u.or.jp> akira noda <a-noda@jaist.ac.jp> Masahiro Yamagishi <night@pluto.dti.ne.jp>
Diffstat (limited to 'math/atlas-devel')
-rw-r--r--math/atlas-devel/files/patch-config.c47
1 files changed, 36 insertions, 11 deletions
diff --git a/math/atlas-devel/files/patch-config.c b/math/atlas-devel/files/patch-config.c
index 4f6773eacf38..960597aaca53 100644
--- a/math/atlas-devel/files/patch-config.c
+++ b/math/atlas-devel/files/patch-config.c
@@ -1,5 +1,5 @@
---- config.c.orig Sun Dec 28 12:44:08 2003
-+++ config.c Sun Dec 28 12:54:09 2003
+--- config.c.org Tue Jan 20 22:32:38 2004
++++ config.c Tue Jan 20 22:32:54 2004
@@ -1188,7 +1188,9 @@
switch(OS)
{
@@ -43,7 +43,19 @@
}
return(la);
}
-@@ -2840,7 +2842,10 @@
+@@ -2835,12 +2837,22 @@
+ }
+ break;
+ case LASPARC: /* don't know */
++ if (!CmndOneLine(targ, "sysctl hw.model", ln))
++ {
++ if (strstr(ln, "UltraSparc-II")) mach = SunUS2;
++ if (strstr(ln, "UltraSparc-I")) mach = SunUS1;
++ if (strstr(ln, "UltraSparc")) mach = SunUSX;
++ else mach = SunUSX;
++ }
+ break;
+ case LAALPHA:
if (!CmndOneLine(targ, "sysctl hw.model", ln))
{
if (strstr(ln, "433au")) mach = Dec21164;
@@ -54,32 +66,45 @@
}
break;
case LAIA64: /* don't know */
-@@ -2849,14 +2854,22 @@
+@@ -2849,14 +2861,32 @@
if (!CmndOneLine(targ, "sysctl hw.model", ln))
{
if (strstr(ln, "Pentium Pro")) mach = IntPPRO;
+ else if (strstr(ln, "Pentium(R) Pro")) mach = IntPPRO;
+ else if (strstr(ln, "Pentium 4")) mach = IntP4;
+ else if (strstr(ln, "Pentium(R) 4")) mach = IntP4;
++ else if (strstr(ln, "Pentium(R) M")) mach = IntP4;
else if (strstr(ln, "Pentium III")) mach = IntPIII;
+- else if (strstr(ln, "Pentium II ")) mach = IntPII;
++ else if (strstr(ln, "Pentium III/Pentium III")) mach = IntPIII;
+ else if (strstr(ln, "Pentium(R) III")) mach = IntPIII;
- else if (strstr(ln, "Pentium II ")) mach = IntPII;
++ else if (strstr(ln, "Pentium II")) mach = IntPII;
++ else if (strstr(ln, "Pentium II/PentiumII")) mach = IntPII;
+ else if (strstr(ln, "Pentium(R) II ")) mach = IntPII;
+ else if (strstr(ln, "Celeron")) mach = IntPII;
+ else if (strstr(ln, "Celeron(R)")) mach = IntPII;
++ else if (strstr(ln, "Opteron(tm)") && sizeof(void *)==4) mach = AmdHammer32;
++ else if (strstr(ln, "Opteron(tm)") && sizeof(void *)==8) mach = AmdHammer64;
++ else if (strstr(ln, "AMD Athlon(tm) 64") && sizeof(void *)==4) mach = AmdHammer32;
++ else if (strstr(ln, "AMD Athlon(tm) 64") && sizeof(void *)==8) mach = AmdHammer64;
++ else if (strstr(ln, "Athlon(tm)")) mach = AmdAthlon;
else if (strstr(ln, "Athlon")) mach = AmdAthlon;
else if (strstr(ln, "AMD-K7")) mach = AmdAthlon;
- else if (strstr(ln, "32 bit Hammer")) mach = AmdHammer32;
- else if (strstr(ln, "64 bit Hammer")) mach = AmdHammer64;
-+ else if (strstr(ln, "Opteron(tm)") && sizeof(void *)==4) mach = AmdHammer32;
-+ else if (strstr(ln, "Opteron(tm)") && sizeof(void *)==8) mach = AmdHammer64;
- else if (strstr(ln, "Pentium/P55C")) mach = IntP5MMX; /* sent by */
- else if (strstr(ln, "Pentium")) mach=IntP5; /* Nakata Maho */
+- else if (strstr(ln, "Pentium/P55C")) mach = IntP5MMX; /* sent by */
+- else if (strstr(ln, "Pentium")) mach=IntP5; /* Nakata Maho */
++ else if (strstr(ln, "AMD-K6(tm)")) mach = IntP5MMX;
++ else if (strstr(ln, "Pentium/P55C")) mach = IntP5MMX;
++ else if (strstr(ln, "Pentium/P54C")) mach=IntP5;
++ else if (strstr(ln, "Pentium")) mach=IntP5;
++ else if (strstr(ln, "VIA")) mach=IntP5MMX;
++ else if (strstr(ln, "Crusoe(tm)")) mach=IntP5MMX;
+ else mach = IntP5;
}
break;
default:;
-@@ -3654,8 +3654,8 @@
+@@ -3641,8 +3671,8 @@
}
if (THREADS) /* add ncpu to ARCH */
{
@@ -90,7 +115,7 @@
}
do
{
-@@ -4064,9 +4063,9 @@
+@@ -4047,9 +4077,9 @@
if (mach == IA64Itan || mach == IA64Itan2 )
fprintf(fpout, " -DATL_MAXNREG=128");
if (ASMD != ASM_None) fprintf(fpout, " -DATL_%s", ASMNAM[ASMD]);