Skip to content

Commit 3d0467f

Browse files
author
Matthias Koeppe
committed
build/pkgs/openblas/spkg-configure.m4: Also check for the bad version in the non-pkgconfig branch
1 parent a1404d9 commit 3d0467f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/pkgs/openblas/spkg-configure.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ SAGE_SPKG_CONFIGURE([openblas], [
8181
AC_LANG_PUSH([C])
8282
AC_RUN_IFELSE([
8383
AC_LANG_PROGRAM([[#include <stdio.h>
84+
#include <string.h>
8485
char *openblas_get_config(void);
8586
int version[3]; ]],
8687
[[version[0] = version[1] = version[2] = 0;
@@ -101,7 +102,8 @@ SAGE_SPKG_CONFIGURE([openblas], [
101102
>=10000 * ]]SAGE_OPENBLAS_LT_VERSION_MAJOR[[
102103
+ 100 * ]]SAGE_OPENBLAS_LT_VERSION_MINOR[[
103104
+ ]]SAGE_OPENBLAS_LT_VERSION_MICRO[[)
104-
return 1;]])
105+
return 1;
106+
if (!strncmp(openblas_get_config(), "OpenBLAS 0.3.22", 15)) return 1;]])
105107
], [AS_VAR_SET([HAVE_OPENBLAS], [yes])], [AS_VAR_SET([HAVE_OPENBLAS], [no])],
106108
[AS_VAR_SET([HAVE_OPENBLAS], [yes])])
107109
AC_LANG_POP([C])

0 commit comments

Comments
 (0)