Lines 2140-2150
Link Here
|
2140 |
/* |
2140 |
/* |
2141 |
* If requested, see if we can locate a comparison BLAS |
2141 |
* If requested, see if we can locate a comparison BLAS |
2142 |
*/ |
2142 |
*/ |
|
|
2143 |
/* Gentoo |
2143 |
if (F77 && BLASlib) |
2144 |
if (F77 && BLASlib) |
2144 |
{ |
2145 |
{ |
2145 |
GetBlasTry(OS, mach, BLASlib); |
2146 |
GetBlasTry(OS, mach, BLASlib); |
2146 |
FindBlas(fpout, fplog, redir, F77, F77FLAGS, BLASlib); |
2147 |
FindBlas(fpout, fplog, redir, F77, F77FLAGS, BLASlib); |
2147 |
} |
2148 |
} |
|
|
2149 |
*/ |
2148 |
/* |
2150 |
/* |
2149 |
* If using a non-g77 Fortran under Windows, throw the -mno-cygwin for all gcc |
2151 |
* If using a non-g77 Fortran under Windows, throw the -mno-cygwin for all gcc |
2150 |
*/ |
2152 |
*/ |
Lines 2931-2936
Link Here
|
2931 |
else if (strstr(ln, "Athlon(tm) 64")) mach = AmdHammer64; |
2933 |
else if (strstr(ln, "Athlon(tm) 64")) mach = AmdHammer64; |
2932 |
else if (strstr(ln, "Athlon")) mach = AmdAthlon; |
2934 |
else if (strstr(ln, "Athlon")) mach = AmdAthlon; |
2933 |
else if (strstr(ln, "AMD-K7")) mach = AmdAthlon; |
2935 |
else if (strstr(ln, "AMD-K7")) mach = AmdAthlon; |
|
|
2936 |
else if (strstr(ln, "XEON")) mach = IntP4; /* Gentoo */ |
2934 |
} |
2937 |
} |
2935 |
break; |
2938 |
break; |
2936 |
default:; |
2939 |
default:; |
Lines 3063-3068
Link Here
|
3063 |
if (i || ln[0] == '\0' || strstr(ln, "i586") || strstr(ln, "i486") || |
3066 |
if (i || ln[0] == '\0' || strstr(ln, "i586") || strstr(ln, "i486") || |
3064 |
strstr(ln, "i386")) |
3067 |
strstr(ln, "i386")) |
3065 |
{ |
3068 |
{ |
|
|
3069 |
#ifndef INTERACTIVE |
3070 |
exit(-1); /*/ Make ebuild complain. */ |
3071 |
#endif |
3066 |
fprintf(stdout, "Enter your machine type:\n"); |
3072 |
fprintf(stdout, "Enter your machine type:\n"); |
3067 |
fprintf(stdout, " 1. Other/UNKNOWN\n\n"); |
3073 |
fprintf(stdout, " 1. Other/UNKNOWN\n\n"); |
3068 |
fprintf(stdout, " 2. AMD Athlon\n"); |
3074 |
fprintf(stdout, " 2. AMD Athlon\n"); |
Lines 3080-3085
Link Here
|
3080 |
} |
3086 |
} |
3081 |
else if (strstr(ln, "ia64")) |
3087 |
else if (strstr(ln, "ia64")) |
3082 |
{ |
3088 |
{ |
|
|
3089 |
#ifndef INTERACTIVE |
3090 |
exit(-1); /*/ Make ebuild complain. */ |
3091 |
#endif |
3083 |
fprintf(stdout, "Enter your machine type:\n"); |
3092 |
fprintf(stdout, "Enter your machine type:\n"); |
3084 |
fprintf(stdout, " 1. Other/UNKNOWN\n"); |
3093 |
fprintf(stdout, " 1. Other/UNKNOWN\n"); |
3085 |
fprintf(stdout, " 2. IA-64 Itanium 1\n"); |
3094 |
fprintf(stdout, " 2. IA-64 Itanium 1\n"); |
Lines 3091-3096
Link Here
|
3091 |
} |
3100 |
} |
3092 |
else if (strstr(ln, "x86_64")) |
3101 |
else if (strstr(ln, "x86_64")) |
3093 |
{ |
3102 |
{ |
|
|
3103 |
#ifndef INTERACTIVE |
3104 |
exit(-1); /*/ Make ebuild complain. */ |
3105 |
#endif |
3094 |
fprintf(stdout, "Enter your machine type:\n"); |
3106 |
fprintf(stdout, "Enter your machine type:\n"); |
3095 |
fprintf(stdout, " 1. Other/UNKNOWN\n"); |
3107 |
fprintf(stdout, " 1. Other/UNKNOWN\n"); |
3096 |
fprintf(stdout, " 2. 32 bit AMD Hammer\n"); |
3108 |
fprintf(stdout, " 2. 32 bit AMD Hammer\n"); |
Lines 3102-3107
Link Here
|
3102 |
} |
3114 |
} |
3103 |
else if (strstr(ln, "i686")) |
3115 |
else if (strstr(ln, "i686")) |
3104 |
{ |
3116 |
{ |
|
|
3117 |
#ifndef INTERACTIVE |
3118 |
exit(-1); /* Make ebuild complain. */ |
3119 |
#endif |
3105 |
fprintf(stdout, "Enter your machine type:\n"); |
3120 |
fprintf(stdout, "Enter your machine type:\n"); |
3106 |
fprintf(stdout, " 1. Other/UNKNOWN\n"); |
3121 |
fprintf(stdout, " 1. Other/UNKNOWN\n"); |
3107 |
fprintf(stdout, " 2. AMD Athlon\n"); |
3122 |
fprintf(stdout, " 2. AMD Athlon\n"); |
Lines 3655-3661
Link Here
|
3655 |
if (ierr) |
3670 |
if (ierr) |
3656 |
{ |
3671 |
{ |
3657 |
fprintf(stderr, "File Make.%s already exists!\n", ARCH); |
3672 |
fprintf(stderr, "File Make.%s already exists!\n", ARCH); |
3658 |
ierr = !IsYes('n', "", "overwrite it?"); |
3673 |
/* Gentoo ierr = !IsYes('n', "", "overwrite it?"); */ |
|
|
3674 |
ierr = !IsYes('y', "", "overwrite it?"); |
3659 |
} |
3675 |
} |
3660 |
} |
3676 |
} |
3661 |
while (ierr); |
3677 |
while (ierr); |
Lines 3981-3987
Link Here
|
3981 |
fprintf(fpout, " MVTdir = $(TOPdir)/tune/blas/gemv/$(ARCH)\n"); |
3997 |
fprintf(fpout, " MVTdir = $(TOPdir)/tune/blas/gemv/$(ARCH)\n"); |
3982 |
fprintf(fpout, " R1Tdir = $(TOPdir)/tune/blas/ger/$(ARCH)\n"); |
3998 |
fprintf(fpout, " R1Tdir = $(TOPdir)/tune/blas/ger/$(ARCH)\n"); |
3983 |
fprintf(fpout, " L1Tdir = $(TOPdir)/tune/blas/level1/$(ARCH)\n"); |
3999 |
fprintf(fpout, " L1Tdir = $(TOPdir)/tune/blas/level1/$(ARCH)\n"); |
3984 |
fprintf(fpout, " L3Tdir = $(TOPdir)/tune/blas/level3/$(ARCH)\n\n"); |
4000 |
fprintf(fpout, " L3Tdir = $(TOPdir)/tune/blas/level3/$(ARCH)\n"); |
3985 |
|
4001 |
|
3986 |
fprintf(fpout, |
4002 |
fprintf(fpout, |
3987 |
"# ---------------------------------------------------------------------\n"); |
4003 |
"# ---------------------------------------------------------------------\n"); |
Lines 4128-4134
Link Here
|
4128 |
fprintf(fpout, " BC = $(CC)\n"); |
4144 |
fprintf(fpout, " BC = $(CC)\n"); |
4129 |
fprintf(fpout, " BCFLAGS = $(CCFLAGS)\n"); |
4145 |
fprintf(fpout, " BCFLAGS = $(CCFLAGS)\n"); |
4130 |
} |
4146 |
} |
|
|
4147 |
#ifdef USE_LIBTOOL |
4148 |
fprintf(fpout, " LIBTOOL = libtool --mode=compile\n"); |
4149 |
fprintf(fpout, " ARCHIVER = $(TOPdir)/war %s\n", ARCHIVER); |
4150 |
#else |
4131 |
fprintf(fpout, " ARCHIVER = %s\n", ARCHIVER); |
4151 |
fprintf(fpout, " ARCHIVER = %s\n", ARCHIVER); |
|
|
4152 |
#endif |
4132 |
fprintf(fpout, " ARFLAGS = %s\n", ARFLAGS); |
4153 |
fprintf(fpout, " ARFLAGS = %s\n", ARFLAGS); |
4133 |
fprintf(fpout, " RANLIB = %s\n\n", RANLIB); |
4154 |
fprintf(fpout, " RANLIB = %s\n\n", RANLIB); |
4134 |
|
4155 |
|