|
|
|
@ -1056,9 +1056,9 @@ AC_ARG_WITH(blasdir,
|
|
|
|
|
[AC_HELP_STRING([--with-blasdir=<dir>], [search for BLAS library in <dir>])])
|
|
|
|
|
case $with_blasdir in
|
|
|
|
|
"") ;;
|
|
|
|
|
*) if test -d $with_blasdir; then
|
|
|
|
|
*) if test -d $with_blasdir; then
|
|
|
|
|
BLAS_LIBDIR="-L$with_blasdir";
|
|
|
|
|
fi ;;
|
|
|
|
|
fi ;;
|
|
|
|
|
esac
|
|
|
|
|
# Get fortran linker names of BLAS functions to check for.
|
|
|
|
|
#AC_FC_FUNC(sgemm)
|
|
|
|
@ -1079,7 +1079,7 @@ if test "x$BLAS_LIBS" != x; then
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LIBS="$BLAS_LIBDIR $save_LIBS "
|
|
|
|
|
# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
|
|
|
|
|
if test $pac_blas_ok = no; then
|
|
|
|
|
AC_LANG([C])
|
|
|
|
@ -1173,10 +1173,8 @@ fi
|
|
|
|
|
|
|
|
|
|
# BLAS linked to by default? (happens on some supercomputers)
|
|
|
|
|
if test $pac_blas_ok = no; then
|
|
|
|
|
save_LIBS="$LIBS"; LIBS=" $BLAS_LIBDIR $LIBS"
|
|
|
|
|
AC_TRY_LINK_FUNC(sgemm, [pac_blas_ok=yes], [BLAS_LIBS=""])
|
|
|
|
|
dnl AC_CHECK_FUNC(sgemm, [pac_blas_ok=yes])
|
|
|
|
|
LIBS="$save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Generic BLAS library?
|
|
|
|
@ -1199,6 +1197,7 @@ else
|
|
|
|
|
fi
|
|
|
|
|
])dnl PAC_BLAS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl @synopsis PAC_LAPACK([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
|
dnl @synopsis ACX_LAPACK([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
|
dnl
|
|
|
|
|