summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/libcmatrix/files/libcmatrix-3.9.0-atlas.patch')
-rw-r--r--sci-libs/libcmatrix/files/libcmatrix-3.9.0-atlas.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-libs/libcmatrix/files/libcmatrix-3.9.0-atlas.patch b/sci-libs/libcmatrix/files/libcmatrix-3.9.0-atlas.patch
new file mode 100644
index 000000000000..329e794645eb
--- /dev/null
+++ b/sci-libs/libcmatrix/files/libcmatrix-3.9.0-atlas.patch
@@ -0,0 +1,24 @@
+ configure-libraries.ac | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/configure-libraries.ac b/configure-libraries.ac
+index 6e9579d..a919398 100755
+--- a/configure-libraries.ac
++++ b/configure-libraries.ac
+@@ -33,6 +33,7 @@ AC_ARG_WITH(atlas,
+ AS_HELP_STRING([--with-atlas],[use the ATLAS BLAS library (default-use if found)]),,with_atlas=check)
+ if test x$with_atlas != xno; then
+ FOUNDATLAS=yes
++ PKG_CHECK_MODULES([ATLAS], [cblas])
+ AC_CHECK_HEADERS(cblas.h,,FOUNDATLAS=no
+ AC_MSG_WARN([ATLAS header files (cblas.h) not found
+ Is CPPFLAGS is defined to include relevant directory?]))
+@@ -40,7 +41,7 @@ Is CPPFLAGS is defined to include relevant directory?]))
+ AC_MSG_WARN([ATLAS library (libatlas.a) not found
+ Is LDFLAGS is defined to include relevant directory?]))
+ if test x$FOUNDATLAS = xyes; then
+- LIBS="-lcblas $LIBS"
++ LIBS="$ATLAS_LIBS $LIBS"
+ CXXFLAGS="$CXXFLAGS -DLCM_USE_EXTERNAL"
+ else
+ if test x$with_atlas = xyes; then