public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-chemistry/mpqc/files: mpqc-2.3.1-blas.patch
@ 2011-07-17 12:50 Justin Lecher (jlec)
  0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2011-07-17 12:50 UTC (permalink / raw
  To: gentoo-commits

jlec        11/07/17 12:50:56

  Added:                mpqc-2.3.1-blas.patch
  Log:
  Use pkg-config for blas/lapack detection, #262143
  
  (Portage version: 2.2.0_alpha45/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sci-chemistry/mpqc/files/mpqc-2.3.1-blas.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/mpqc/files/mpqc-2.3.1-blas.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/mpqc/files/mpqc-2.3.1-blas.patch?rev=1.1&content-type=text/plain

Index: mpqc-2.3.1-blas.patch
===================================================================
 configure.in |   36 +++---------------------------------
 1 files changed, 3 insertions(+), 33 deletions(-)

diff --git a/configure.in b/configure.in
index ee82977..caae1f9 100644
--- a/configure.in
+++ b/configure.in
@@ -1487,44 +1487,14 @@ AC_LANG_CPLUSPLUS
 LIBSSAV="$LIBS"
 LIBS="$LIBSSAV $FLIBS"
 
-LIBBLAS=""
-F77_DGEMM=`$PERL $srcdir/bin/mkf77sym.pl.in -method $F77_SYMBOLS DAXPY`
-AC_CHECK_FUNC($F77_DGEMM,HAVE_BLAS=yes,[
-  AC_CHECK_LIB(essl,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lessl"],
-    AC_CHECK_LIB(blas,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lblas"])
-  )]
-)
-if test X$HAVE_BLAS != Xyes; then
-  LIBSSAV2="$LIBS"
-  LIBS="-latlas $LIBS"
-  AC_CHECK_LIB(f77blas,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lf77blas -latlas"],
-               LIBS="$LIBSSAV2")
-fi
-AC_SUBST(HAVE_BLAS)
-if test X$HAVE_BLAS != Xyes; then
-  echo "WARNING: Could not link to the BLAS library.  It can be obtained at"
-  echo "http://www.netlib.org/blas.  Use --with-libdirs and/or --with-libs"
-  echo "to specify the name of the library."
-  AC_MSG_ERROR([BLAS is required to complete the build])
-fi
+PKG_CHECK_MODULES([BLAS], [blas], [LIBBLAS="${BLAS_LIBS}"])
 
 LIBS="$LIBSSAV $LIBBLAS $FLIBS"
 
-LIBLAPACK=""
-F77_DGESVD=`$PERL $srcdir/bin/mkf77sym.pl.in -method $F77_SYMBOLS DGESVD`
-AC_CHECK_FUNC($F77_DGESVD,HAVE_LAPACK=yes,[
-  AC_CHECK_LIB(lapack,$F77_DGESVD,[HAVE_LAPACK=yes;LIBLAPACK="-llapack"]
-  )]
-)
-AC_SUBST(HAVE_LAPACK)
-if test X$HAVE_LAPACK != Xyes; then
-  echo "Could not link to the LAPACK library.  It can be obtained at"
-  echo "http://www.netlib.org/lapack.  Use --with-libdirs and/or --with-libs"
-  echo "to specify the name of the library."
-  AC_MSG_ERROR([LAPACK is required to complete the build])
-fi
+PKG_CHECK_MODULES([LAPACK], [lapack], [LIBLAPACK="${LAPACK_LIBS}"])
 
 FLIBS="$LIBLAPACK $LIBBLAS $FLIBS"
+
 AC_LANG_RESTORE
 
 dnl ----------- check for Scalable BLAS library --------------






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-17 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-17 12:50 [gentoo-commits] gentoo-x86 commit in sci-chemistry/mpqc/files: mpqc-2.3.1-blas.patch Justin Lecher (jlec)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox