Browse Source

Allow user to set BLAS_LIBS for own blas libraries and mimic standard AX_BLAS autoconf macro behaviour. Thanks bicatali for the patch

Samuel Thibault 12 years ago
parent
commit
106d8e0cd0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      configure.ac

+ 6 - 0
configure.ac

@@ -1526,6 +1526,12 @@ if test x$blas_lib = xmaybe; then
      if test x$use_system_blas = xyes; then
         AC_DEFINE(STARPU_SYSTEM_BLAS, [1], [use refblas library])
 	blas_lib=system
+     elif test x"$BLAS_LIBS" != x; then
+        AC_DEFINE(STARPU_SYSTEM_BLAS, [1], [use user defined library])
+        STARPU_BLAS_LDFLAGS="$BLAS_LIBS"
+        AC_SUBST(STARPU_BLAS_LDFLAGS)
+        blas_lib=system
+        AC_ARG_VAR([BLAS_LIBS], [linker flags for blas])
      else
 	blas_lib=none
      fi