Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
use openblas.pc for blas and lapack, don't require atlas is to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Dec 28, 2019
1 parent b3a8891 commit c031c9e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build/pkgs/openblas/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
SAGE_SPKG_CONFIGURE([openblas], [
PKG_CHECK_MODULES([OPENBLAS], [openblas >= 0.3.5 blas lapack], [], [sage_spkg_install_openblas=yes])
])
PKG_CHECK_MODULES([OPENBLAS], [openblas >= 0.3.5], [
PKG_CHECK_VAR([OPENBLASPCDIR], [openblas], [pcfiledir], [
AC_CONFIG_LINKS([
$SAGE_LOCAL/lib/pkgconfig/blas.pc:$OPENBLASPCDIR/openblas.pc
$SAGE_LOCAL/lib/pkgconfig/lapack.pc:$OPENBLASPCDIR/openblas.pc])
], [
AC_MSG_WARN([Unable to locate the directory of openblas.pc. This should not happen!])
sage_spkg_install_openblas=yes
])
], [sage_spkg_install_openblas=yes])
], [
AS_IF([test "x$with_blas" = xopenblas], [sage_require_openblas=yes])
]
)

0 comments on commit c031c9e

Please sign in to comment.