automake
[Top][All Lists]
Advanced

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

Re: Fw: BUG: AC_PROG_FC does not define GCF when compiler is gfortran


From: Stefano Lattarini
Subject: Re: Fw: BUG: AC_PROG_FC does not define GCF when compiler is gfortran
Date: Sat, 16 Jun 2012 11:43:14 +0200

On 06/16/2012 09:15 AM, Fabrício Zimmerer Murta wrote:
> Well, as stated, the fix is quite simple.
> 
> And voila. Newly generated configure will say ‘yes’ or ‘’ to GFC according to 
> your compiler.
> (had to re-generate autoconf.m4f with autom4te --language=autoconf --freeze 
> --output=autoconf.m4f)
> 
> The patch would be as simple as:
> --- fortran.m4  2012-05-26 23:17:39.464828247 -0300
> +++ fortran.m4_ 2012-06-16 03:58:07.099697178 -0300
> @@ -382,6 +382,11 @@
> _AC_ARG_VAR_LDFLAGS()dnl
> _AC_ARG_VAR_LIBS()dnl
> _AC_PROG_FC([$2], [$1])
> +if test $ac_compiler_gnu = yes; then
> +  GFC=yes
> +else
> +  GFC=
> +fi
> AC_LANG_POP(Fortran)dnl
> ])# AC_PROG_FC
> 
> Best regards,
> Fabricio
> 
This is the wrong list.  You should redirect this message at <address@hidden>.

Regards,
  Stefano



reply via email to

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