bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_FC_LIBRARY_LDFLAGS: quoting bug on Solaris with gfortran


From: Stefano Lattarini
Subject: Re: AC_FC_LIBRARY_LDFLAGS: quoting bug on Solaris with gfortran
Date: Thu, 16 Sep 2010 00:38:36 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

On Thursday 16 September 2010, Eric Blake wrote:
> On 07/01/2010 07:00 AM, Stefano Lattarini wrote:
> > This is a minimal example exposing a bug that bit me while I was
> > running the Automake testsuite on a Solaris system.  The bug
> > seems to be located in the macro `AC_FC_LIBRARY_LDFLAGS'.
> > 
> > $ cat configure.ac
> > AC_INIT([foo], [1.0])
> > AC_PROG_FC
> > AC_FC_LIBRARY_LDFLAGS
> > AC_CONFIG_FILES([Makefile])
> > AC_OUTPUT
> > 
> > $ cat Makefile.in
> > FCLIBS = @FCLIBS@
> > default:; @echo $(FCLIBS)
> > 
> > checking for Fortran libraries of gfortran...  -R/usr/local/lib'
> > -L/usr/ccs/lib -L/usr/lib
> > -L/usr/local/lib/gcc/i386-pc-solaris2.10/4.4.4
> > -L/usr/local/lib/gcc/i386-pc-solaris2.10/4.4.4/../../..
> > -lgfortranbegin - lgfortran -lm
> > configure: creating ./config.status
> > config.status: creating Makefile
> > 
> > $ cat Makefile # note the unbalanced single quote in definition
> > of FCLIBS
> 
> Have you had a chance to look into this any deeper?
No, but I might give it a try.
> I haven't (yet) looked at it because I'm pretty weak at Fortran
> to begin with.
I'm pretty certain I'm even weaker, so don't expect too much (but
you never know).

Anyway, thanks for showing interest in this.
   Stefano




reply via email to

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