# HG changeset patch # User John W. Eaton # Date 1326222024 18000 # Node ID d584f90d2c474e2bd026d4934a686ba78043f095 # Parent b33589ef9213867cff6c8bf22a80e360c5752b89 configure: search for gfortran first instead of g77 * autogen.sh: Avoid g77 by editing generated configure script and substituting gfortran for g77. diff -r b33589ef9213 -r d584f90d2c47 .hgsubstate --- a/.hgsubstate Mon Jan 09 20:32:27 2012 -0500 +++ b/.hgsubstate Tue Jan 10 14:00:24 2012 -0500 @@ -1,1 +1,1 @@ -3559997a03e82d650aaa708447362fe20a6eaf15 gnulib +fca3cc12dcd2bb7a75a57be2c29a1de417ff3536 gnulib diff -r b33589ef9213 -r d584f90d2c47 autogen.sh --- a/autogen.sh Mon Jan 09 20:32:27 2012 -0500 +++ b/autogen.sh Tue Jan 10 14:00:24 2012 -0500 @@ -37,3 +37,15 @@ echo "bootstrapping..." build-aux/bootstrap "$@" + +## G77 is obsolete, but it is still the first option in the autoconf Fortran +## macros. We should avoid it, because mixing old versions of g77 with modern +## gcc and g++ causes trouble. The following will make it harder (but not +## impossible) for users to make this mistake. +## +## FIXME -- we should really work to fix autoconf so that it prefers gfortran +## over g77 even when searching for a Fortran 77 compiler. + +echo "replacing all occurrences of g77 with gfortran in configure script..." + +sed 's/g77/gfortran/g' configure > configure.t && mv configure.t configure