From f204a45a4252180bb7d5571e8fe3215370d97d09 Mon Sep 17 00:00:00 2001 From: Simon Garnotel Date: Fri, 7 Jun 2019 11:00:51 +0200 Subject: [PATCH] fix missing cblas link (CentOS, Arch, ...) --- configure.ac | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index 46bd204a8..0537862f3 100644 --- a/configure.ac +++ b/configure.ac @@ -1472,17 +1472,17 @@ AC_SUBST(BLASINC,$ff_blas_inc) #looking for cblas.h FH -if test "$ff_blas_ok" = yes -a -z "$ff_download_blas" ; -then - AC_CHECK_HEADERS(cblas.h, - ff_cblas_h=yes, - ff_cblas_h=no) - AC_CHECK_HEADERS(Accelerate/cblas.h, - ff_cblas_h=yes - ff_cblas_h=no) - AC_CHECK_HEADERS(atlas/cblas.h, - ff_cblas_h=yes - ff_cblas_h=no) +if test "$ff_blas_ok" = yes -a -z "$ff_download_blas"; then + AC_CHECK_HEADERS(cblas.h, + ff_cblas_h=yes, + ff_cblas_h=no) + AC_CHECK_HEADERS(Accelerate/cblas.h, + ff_cblas_h=yes, + ff_cblas_h=no) + AC_CHECK_HEADERS(atlas/cblas.h, + ff_cblas_h=yes, + ff_cblas_h=no) + AC_CHECK_LIB([cblas], [cblas_zdotu_sub], [LIBS+=-lcblas]) fi # ALH - 18/9/13 - [[file:3rdparty/blas/Makefile.am]] does not update the WHERE mechanism so it always needs to be set up