diff options
author | Jaroslav Hajek <hajek@hajek.vzlu.local> | 2010-09-21 07:22:24 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2010-09-24 21:10:52 +0200 |
commit | f4fa3496237868e4a27506d226803afb0d45d7e2 (patch) | |
tree | 1ebb6dfe5769eb94f9efd5656d8c80fccbeefda6 /m4/ax_blas.m4 | |
parent | 411a8128342d9cd9f2ba4ab6fd88843ba90bbf3f (diff) | |
download | autoconf-archive-f4fa3496237868e4a27506d226803afb0d45d7e2.tar.gz |
AX_BLAS: avoid caching issues
Diffstat (limited to 'm4/ax_blas.m4')
-rw-r--r-- | m4/ax_blas.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/m4/ax_blas.m4 b/m4/ax_blas.m4 index d971bbf..e4f96cb 100644 --- a/m4/ax_blas.m4 +++ b/m4/ax_blas.m4 @@ -63,7 +63,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 10 +#serial 11 AU_ALIAS([ACX_BLAS], [AX_BLAS]) AC_DEFUN([AX_BLAS], [ @@ -101,7 +101,9 @@ fi # BLAS linked to by default? (happens on some supercomputers) if test $ax_blas_ok = no; then save_LIBS="$LIBS"; LIBS="$LIBS" - AC_CHECK_FUNC($sgemm, [ax_blas_ok=yes]) + AC_MSG_CHECKING([if $sgemm is being linked in already]) + AC_TRY_LINK_FUNC($sgemm, [ax_blas_ok=yes]) + AC_MSG_RESULT($ax_blas_ok) LIBS="$save_LIBS" fi @@ -134,7 +136,9 @@ fi # BLAS in Apple vecLib library? if test $ax_blas_ok = no; then save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS" - AC_CHECK_FUNC($sgemm, [ax_blas_ok=yes;BLAS_LIBS="-framework vecLib"]) + AC_MSG_CHECKING([for $sgemm in -framework vecLib]) + AC_TRY_LINK_FUNC($sgemm, [ax_blas_ok=yes;BLAS_LIBS="-framework vecLib"]) + AC_MSG_RESULT($ax_blas_ok) LIBS="$save_LIBS" fi |