Package: mpb / 1.7.0-5

zzz-blas-problem-on-mipsel.patch Patch series | download
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
Description: this check fails on mipsel and gives NO as an answer
             in order not to block the buildd for 7h, this check
             is disabled
Author: Thorsten Alteholz <debian@alteholz.de>
Index: mpb-1.7.0/configure.ac
===================================================================
--- mpb-1.7.0.orig/configure.ac	2019-02-01 20:24:47.908623296 +0100
+++ mpb-1.7.0/configure.ac	2019-02-01 20:27:05.040621443 +0100
@@ -521,29 +521,8 @@
 # Check to see if calling Fortran functions (in particular, the BLAS
 # complex dot product functions) works from C:
 
-AC_MSG_CHECKING([whether calling BLAS zdotc works])
-AC_F77_FUNC(zdotc)
-AC_TRY_RUN([
-#include <stdio.h>
-#include <stdlib.h>
-typedef struct { double re, im; } cmplx;
-#ifdef __cplusplus
-extern "C"
-#endif
-extern cmplx $zdotc(int *, cmplx *, int *, cmplx *, int *);
-int main(void) {
-     cmplx x[2] = { {1,0}, {0,1} }, y[2] = { {1,0}, {1,0} };
-     int n = 2, inc1 = 1, inc2 = 1;
-     cmplx result = { 0, 0 };
-     result = $zdotc(&n, x, &inc1, y, &inc2);
-     if (result.re != 1 || result.im != -1) return EXIT_FAILURE;
-     else return EXIT_SUCCESS;
-}
-], ok="yes", ok="no", ok="no")
-AC_MSG_RESULT($ok)
-if test "$ok" = "no"; then
-	AC_DEFINE(NO_FORTRAN_FUNCTIONS,1,[Define if calling Fortran functions directly doesn't work.])
-fi
+# does not work on mipsel
+AC_DEFINE(NO_FORTRAN_FUNCTIONS,1,[Define if calling Fortran functions directly doesn't work.])
 
 ##############################################################################