From 7501dc3283398c7d87b92a315372f2b925ca81be Mon Sep 17 00:00:00 2001
From: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>
Date: Wed, 19 Nov 2008 12:03:22 +0000
Subject: [PATCH] Conditionally disable the use of BLAS.

---
 configure.ac | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index f8cc75f..7a29027 100644
--- a/configure.ac
+++ b/configure.ac
@@ -165,7 +165,7 @@ AC_ARG_ENABLE([dim-of-world],
 esac])
 
 ALBERTA_ENABLE_FLAG([fortran-blas],
-  [Use BLAS routines for some basis linear algebra stuff.],
+  [Use BLAS routines for some basic linear algebra stuff.],
   [disabled],
   [USE_F77_BLAS],
   [DEFINE SUBST COND])
@@ -538,8 +538,14 @@ AC_CHECK_MEMBERS([struct sigaction.sa_sigaction],,,[#include <signal.h>])
 #
 # Let the user decide what it wants (handled by ALBERTA_CHECK_PACKAGE()
 #
-ALBERTA_CHECK_PACKAGE([blas],[blas],
-  [${DAXPY_F77_FUNC}],[],[${FLIBS}],[],[],[],[required])
+if test "$USE_F77_BLAS" -eq 1; then
+  ALBERTA_CHECK_PACKAGE([blas],[blas],
+    [${DAXPY_F77_FUNC}],[],[${FLIBS}],[],[],[],[required])
+else
+  AM_CONDITIONAL([HAVE_BLAS], [false])
+  AC_DEFINE([HAVE_BLAS], 0, [Define to 1 if BLAS is available])
+  AC_SUBST([BLAS_ALL_LIBS], [])
+fi
 
 ALBERTA_ENABLE_FLAG([graphics],
   [disable support for visualization, including all add-ons which need graphics.],
-- 
GitLab