From ef2fac398dd4578d49a4d3c64bfa14d51296ea1c Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Fri, 20 Mar 2015 16:08:34 +0000 Subject: [PATCH] more portable gslcblas detection --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d86d9f6..196f109 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,9 @@ AC_DEFINE_UNQUOTED([GXX_VERSION],["$GXX_VERSION"], # Checks for libraries. AC_CHECK_LIB([m],[cos],[],[AC_MSG_ERROR([libm library not found])]) -AC_CHECK_LIB([gsl],[gsl_blas_dgemm],[LIBS="$LIBS -lgsl -lgslcblas"],[AC_MSG_ERROR([GSL library not found])]) +AC_CHECK_LIB([gslcblas],[cblas_dgemm], + [AC_MSG_ERROR([GSL CBLAS library not found])]) +AC_CHECK_LIB([gsl],[gsl_blas_dgemm],[AC_MSG_ERROR([GSL library not found])]) AC_CHECK_LIB([LatCore],[_ZN7LatCore12testFunctionEv],[], [AC_MSG_ERROR([LatCore library not found])]) SAVED_LDFLAGS=$LDFLAGS