[Genabel-commits] r1484 - pkg/OmicABELnoMM

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Dec 19 00:05:51 CET 2013


Author: lckarssen
Date: 2013-12-19 00:05:50 +0100 (Thu, 19 Dec 2013)
New Revision: 1484

Modified:
   pkg/OmicABELnoMM/configure.ac
Log:
Fix configure.ac of OmicABELnoMM. 
Now configure.ac contains proper checks for the openblas and lapack libraries. On my Ubuntu 13.10 system this compiles OmicABELnoMM when running the following: 
./configure LDFLAGS="-L/usr/lib/openblas-base"
make

I have the following library packages installed: 
libopenblas-base
libopenblas-dev
liblapacke{,-dev}
liblapack-dev
liblapack3


Modified: pkg/OmicABELnoMM/configure.ac
===================================================================
--- pkg/OmicABELnoMM/configure.ac	2013-12-18 12:33:47 UTC (rev 1483)
+++ pkg/OmicABELnoMM/configure.ac	2013-12-18 23:05:50 UTC (rev 1484)
@@ -17,7 +17,7 @@
 # Set some default compile flags
 if test -z "$CXXFLAGS"; then
    # User did not set CXXFLAGS, so we can put in our own defaults
-    CXXFLAGS="-g -O2 -lopenblas"   # TODO: proper openblas check
+    CXXFLAGS="-g -O2"
 fi
 if test -z "$CPPFLAGS"; then
    # User did not set CPPFLAGS, so we can put in our own defaults
@@ -26,7 +26,6 @@
 # If CXXFLAGS/CPPFLAGS are already set AC_PROG_CXX will not overwrite them
 # with its own defaults
 
-
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_CXX
@@ -38,9 +37,13 @@
    AC_MSG_ERROR([Unable to find the pthread_mutex_init() function])
 ])
 # Openblas
-dnl AC_SEARCH_LIBS([], [openblas], [], [
-dnl    AC_MSG_ERROR([Unable to find the  function])
-dnl ])
+AC_SEARCH_LIBS([cblas_sgemm], [openblas], [], [
+   AC_MSG_ERROR([Unable to find the openblas library])
+])
+# Lapack
+AC_SEARCH_LIBS([LAPACKE_sgeqrf], [lapack, lapacke], [], [
+   AC_MSG_ERROR([Unable to find a Lapack library])
+])
 
 
 # Check for openMP. If found the OPENMP_CXXFLAGS is set automatically



More information about the Genabel-commits mailing list