# HG changeset patch # User Markus Mützel # Date 1657467252 -7200 # Node ID 6308ce73bdca939c5aa4d43af84f84dfc7539fc8 # Parent cbfe8318566a04c1014d529e653b43cd55a0f2ae build: Allow setting BLAS integer size as configure argument (bug #62715). * m4/octave-blas.m4: Allow setting BLAS integer size as configure argument when cross compiling. diff -r cbfe8318566a -r 6308ce73bdca m4/octave_blas.m4 --- a/m4/octave_blas.m4 Sat Jul 09 14:37:57 2022 -0700 +++ b/m4/octave_blas.m4 Sun Jul 10 17:34:12 2022 +0200 @@ -31,11 +31,16 @@ AX_BLAS if test "$cross_compiling" = yes ; then - dnl Assume generic 4-byte BLAS library exists when cross compiling + dnl Assume BLAS library exists when cross compiling ax_blas_ok=yes - ax_cv_blas_integer_size=4 AC_MSG_CHECKING([BLAS can be called from Fortran]) AC_MSG_RESULT([yes assumed for cross compilation]) + dnl Assume generic 4-byte BLAS library if not specified + AC_MSG_CHECKING([BLAS library integer size]) + if test -z "$ax_cv_blas_integer_size" ; then + ax_cv_blas_integer_size=4 + fi + AC_MSG_RESULT([$ax_cv_blas_integer_size assumed for cross compilation]) elif test $ax_blas_ok = yes; then ac_octave_save_LIBS="$LIBS" LIBS="$BLAS_LIBS $LIBS"