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: Eric Blake
Subject: Re: AC_FC_LIBRARY_LDFLAGS: quoting bug on Solaris with gfortran
Date: Wed, 15 Sep 2010 16:31:58 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.3

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? I haven't (yet) looked at it because I'm pretty weak at Fortran to begin with.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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