From 8d9db8311d952797339c0a81895b54f179b6bedd Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Thu, 20 Aug 2026 22:42:03 -0400 Subject: [PATCH] Fix detection of MKL We were grepping CBLAS_LIBS and not BLAS_LIBS, the variable that's set by --with-blas-libs. Also remove some cruft (a comment w/ "echo $CBLAS_LIBS") and fix nearby indentation (tabs, not spaces, for consistency). --- macros/mkl-check.m4 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/macros/mkl-check.m4 b/macros/mkl-check.m4 index 936fdb56a..450d1c9b2 100644 --- a/macros/mkl-check.m4 +++ b/macros/mkl-check.m4 @@ -27,9 +27,8 @@ dnl/ AC_DEFUN([FF_CHECK_MKL], [ AC_MSG_CHECKING(for use of MKL) - dnl echo $CBLAS_LIBS - USE_MKL="false" - MKL_USED=`echo $CBLAS_LIBS | grep -i MKL` + USE_MKL="false" + MKL_USED=`echo $BLAS_LIBS | grep -i MKL` AS_IF( [test -n "$MKL_USED"] , [ AC_DEFINE(HAVE_MKL,1,[Define if we use MKL for blas/lapack]) USE_MKL="true"