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   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to