diff --git a/configure b/configure index 862feb3b622..700fdc37314 100755 --- a/configure +++ b/configure @@ -13812,6 +13812,32 @@ else $as_nop +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blas_ok" >&5 +printf "%s\n" "$blas_ok" >&6; } + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linking to BLAS dgemm_" >&5 +printf %s "checking for linking to BLAS dgemm_... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +char cblas_dgemm(); +int +main (void) +{ +return dgemm_(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + blas_ok=yes +else $as_nop + + + fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext diff --git a/configure.ac b/configure.ac index f21552c55df..b60c5e1a807 100644 --- a/configure.ac +++ b/configure.ac @@ -1636,6 +1636,14 @@ dnl ]) ]) AC_MSG_RESULT($blas_ok) + AC_MSG_CHECKING([for linking to BLAS dgemm_]) + AC_LINK_IFELSE([AC_LANG_PROGRAM( + [[char cblas_dgemm();]], [[return dgemm_();]])], + [blas_ok=yes] , [ + [] + ]) + AC_MSG_RESULT($blas_ok) + AC_MSG_CHECKING([for linking to BLAS dgemm]) AC_LINK_IFELSE([AC_LANG_PROGRAM( [[char sgemm();]], [[return sgemm();]])],