[Top][All Lists]

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

Re: detect if fortran compiler is available

From: Eric Blake
Subject: Re: detect if fortran compiler is available
Date: Thu, 09 Jul 2009 21:49:22 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20090605 Thunderbird/ Mnenhy/

Hash: SHA1

According to Peter Johansson on 5/11/2009 10:30 AM:
> Hello,

Hello, and sorry for a delayed reply,

> I wonder if there is an easy way to test if there is a Fortran compiler
> available.
> We are using GSL, which needs to be linked with a cblas library. To test
> which cblas library to use, we employ the ACX_BLAS macro
> ( and if nothing is found
> we fall back on libgslcblas provided with GSL. The problem is that
> ACX_BLAS exits with error when there is no fortran compiler available
> due to a call to AC_F77_LIBRARY_LDFLAGS. Therefore, we'd like to test if
> fortran is available and if not avoid calling fortran related things. If
> possible, we'd prefer to avoid adding fortran as an requirement for our
> package and instead when fortran is not available for example fall back
> on libgslcblas which is completely independent of fortran code. Is there
> a macro available within Autoconf or Autoconf Archive that I'm missing?

I'm not very familiar with Fortran myself, but I know that libtool has
tricks for conditionally using fortran when available; maybe you may have
more success asking on the libtool lists for ideas.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


reply via email to

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