octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PATH: default fortran naming scheme when using F2C


From: michael . goffioul
Subject: PATH: default fortran naming scheme when using F2C
Date: Thu, 30 Nov 2006 13:56:05 +0100

The following patch uses a default fortran naming scheme when using f2c. This allows to compile octave against f2c'ed versions of BLAS and LAPACK (which I'm using now).
 
Michael.
 
Index: acx_blas.m4
===================================================================
RCS file: /cvs/octave/acx_blas.m4,v
retrieving revision 1.3
diff -c -p -r1.3 acx_blas.m4
*** acx_blas.m4 7 Jun 2006 15:38:58 -0000       1.3
--- acx_blas.m4 30 Nov 2006 12:50:46 -0000
*************** case $with_blas in
*** 47,54 ****
  esac
 
  # Get fortran linker names of BLAS functions to check for.
! AC_F77_FUNC(sgemm)
! AC_F77_FUNC(dgemm)
  acx_blas_save_LIBS="$LIBS"
  LIBS="$LIBS $FLIBS"
--- 47,59 ----
  esac
 
  # Get fortran linker names of BLAS functions to check for.
! if $have_fortran_compiler; then
!   AC_F77_FUNC(sgemm)
!   AC_F77_FUNC(dgemm)
! elif $have_f2c; then
!   sgemm=sgemm_
!   dgemm=dgemm_
! fi
 
  acx_blas_save_LIBS="$LIBS"
  LIBS="$LIBS $FLIBS"
Index: acx_lapack.m4
===================================================================
RCS file: /cvs/octave/acx_lapack.m4,v
retrieving revision 1.2
diff -c -p -r1.2 acx_lapack.m4
*** acx_lapack.m4       7 Jun 2006 15:38:58 -0000       1.2
--- acx_lapack.m4       30 Nov 2006 12:50:46 -0000
*************** case $with_lapack in
*** 44,50 ****
  esac
   
  # Get fortran linke! r name of LAPACK function to check for.
! AC_F77_FUNC(cheev)
  # We cannot use LAPACK if BLAS is not found
  if test "x$acx_blas_ok" != xyes; then
--- 44,54 ----
  esac
 
  # Get fortran linker name of LAPACK function to check for.
! if $have_fortran_compiler; then
!   AC_F77_FUNC(cheev)
! elif $have_f2c; then
!   cheev=cheev_
! fi
 
  # We cannot use LAPACK if BLAS is not found
  if test "x$acx_blas_ok" != xyes; then


reply via email to

[Prev in Thread] Current Thread [Next in Thread]