Skip to content

Commit

Permalink
debug 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Aug 30, 2024
1 parent fe6200d commit 34bc8e6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
29 changes: 19 additions & 10 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -13793,6 +13793,7 @@ done

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linking to BLAS" >&5
printf %s "checking for linking to BLAS... " >&6; }

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
char cblas_dgemm();
Expand All @@ -13817,44 +13818,52 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \
{ 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 sgemm" >&5
printf %s "checking for linking to BLAS sgemm... " >&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 sgemm();
int
main (void)
{
sgemm
return sgemm();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
blas_ok=yes;
blas_ok=yes
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 cblas_dgemm" >&5
printf %s "checking for linking to BLAS cblas_dgemm... " >&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 sgemm();
int
main (void)
{
cblas_dgemm
return dgemm();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
blas_ok=yes;
blas_ok=yes
else $as_nop



fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
Expand Down
19 changes: 14 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1628,19 +1628,28 @@ dnl [[char cblas_dgemm();]], [[return cblas_dgemm();]])],
dnl [blas_ok=yes] , [
dnl AC_MSG_ERROR([*** Unable to link to BLAS library with "$BLASLIB".])
dnl ])

AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[char cblas_dgemm();]], [[return cblas_dgemm();]])],
[blas_ok=yes] , [
[]
])
AC_MSG_RESULT($blas_ok)

AC_MSG_CHECKING([for linking to BLAS sgemm])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[sgemm]])],[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();]])],
[blas_ok=yes] , [
[]
])
AC_MSG_RESULT($blas_ok)

AC_MSG_CHECKING([for linking to BLAS cblas_dgemm])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[cblas_dgemm]])],[blas_ok=yes;], [])
AC_MSG_CHECKING([for linking to BLAS dgemm])
AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[char sgemm();]], [[return dgemm();]])],
[blas_ok=yes] , [
[]
])
AC_MSG_RESULT([$blas_ok])

CFLAGS="$save_CFLAGS"
Expand Down

0 comments on commit 34bc8e6

Please sign in to comment.