# HG changeset patch # User Jaroslav Hajek # Date 1285357162 -7200 # Node ID 60141d49a38d549d0487535a7a88d82c61ed5c55 # Parent 0c752b657217eb630da8fd48ff093a83c4c470c4 update ax_blas diff -r 0c752b657217 -r 60141d49a38d ChangeLog --- a/ChangeLog Thu Sep 23 14:55:53 2010 -0400 +++ b/ChangeLog Fri Sep 24 21:39:22 2010 +0200 @@ -1,3 +1,7 @@ +2010-09-24 Jaroslav Hajek + + * m4/ax_blas.m4: Update. + 2010-09-23 John W. Eaton * octave-bug.in, octave-bug.cc.in: Delete diff -r 0c752b657217 -r 60141d49a38d m4/ax_blas.m4 --- a/m4/ax_blas.m4 Thu Sep 23 14:55:53 2010 -0400 +++ b/m4/ax_blas.m4 Fri Sep 24 21:39:22 2010 +0200 @@ -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 8 +#serial 11 AU_ALIAS([ACX_BLAS], [AX_BLAS]) AC_DEFUN([AX_BLAS], [ @@ -101,7 +101,9 @@ # 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 @@ # 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 @@ -153,7 +157,7 @@ if test "x$GCC" != xyes; then # only works with Sun CC AC_CHECK_LIB(sunmath, acosp, [AC_CHECK_LIB(sunperf, $sgemm, - [BLAS_LIBS="-xlic_lib=sunperf -lsunmath" + [BLAS_LIBS="-xlic_lib=sunperf -lsunmath" ax_blas_ok=yes],[],[-lsunmath])]) fi fi