1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
--- CONFIG/src/SpewMakeInc.c.orig 2011-05-14 17:33:24 UTC
+++ CONFIG/src/SpewMakeInc.c
@@ -399,7 +399,8 @@ main(int nargs, char **args)
&mhz, &ptrbits, &ncpu, comps, &gccflags, &outfile, &srcdir,
&blddir, &USEDEFL1, &USEARCHDEF, &nof77, &f2cdefs, &cdefs, &pmake,
&flapack, &smaflags, &dmaflags, &f77lib, &l2size, &targ);
- if (ncpu > 1) THREADS = 1;
+ /* if (ncpu > 1) THREADS = 1; */
+ THREADS = 1;
if (!outfile)
fpout = stdout;
else
@@ -482,7 +483,7 @@ main(int nargs, char **args)
fprintf(fpout, "# -------------------------------------------------\n");
fprintf(fpout, "# Name indicating the platform to configure BLAS to\n");
fprintf(fpout, "# -------------------------------------------------\n");
- fprintf(fpout, " ARCH = %s", machnam[mach]);
+ fprintf(fpout, " ATLAS_ARCH = %s", machnam[mach]);
fprintf(fpout, "%d", ptrbits);
if (ISAX)
fprintf(fpout, "%s", ISAXNAM[ISAX]);
@@ -649,7 +650,7 @@ main(int nargs, char **args)
comps[i][j-2] == 'c' && comps[i][j-1] == 'c')
break;
}
- goodgcc = (j < NCOMP) ? comps[j] : "gcc";
+ goodgcc = (j < NCOMP) ? comps[j] : "%%CC%%";
fprintf(fpout, " GOODGCC = %s", goodgcc);
if (gccflags)
fprintf(fpout, " %s", gccflags);
@@ -661,7 +662,7 @@ main(int nargs, char **args)
fprintf(fpout, " %s", sp);
fprintf(fpout, "\n");
- fprintf(fpout, " LDFLAGS =");
+ fprintf(fpout, " LDFLAGS = %%LDFLAGS%% ");
if (MachIsX86(mach))
{
if (ptrbits == 32)
@@ -679,7 +680,7 @@ main(int nargs, char **args)
fprintf(fpout, " FCLINKFLAGS = $(FLINKFLAGS)");
if (strstr(comps[F77_], "ifort") && !OSIsWin(OS))
fprintf(fpout, " -nofor_main");
- fprintf(fpout, "\n ARCHIVER = ar\n");
+ fprintf(fpout, "\n ARCHIVER = $(AR)\n");
fprintf(fpout, " ARFLAGS = r\n");
/*
* JF Mertens says that even x86 OS X still need ranlib for safety
@@ -702,8 +703,8 @@ main(int nargs, char **args)
fprintf(fpout, "# ------------------------------------\n");
fprintf(fpout, "# Reference and system libraries\n");
fprintf(fpout, "# ------------------------------------\n");
- fprintf(fpout, " BLASlib = \n");
- fprintf(fpout, " FBLASlib = \n");
+ fprintf(fpout, " BLASlib = $(BLAS)\n");
+ fprintf(fpout, " FBLASlib = $(BLAS)\n");
fprintf(fpout, " FLAPACKlib = ");
if (flapack) fprintf(fpout, "%s", flapack);
fprintf(fpout, "\n");
|