<?xml version="1.0" ?>
<gprconfig>
   <!--  This package provides the default standard options for a g77
         Fortran compiler -->

   <configuration>
     <compilers>
       <compiler name="^G77$" language="Fortran" />
       <compiler name="^GCC-CYGMING$" language="Fortran" />
     </compilers>
     <config>
   package Compiler is
      for Driver            ("Fortran") use "${PATH(fortran)}g77";
      for Leading_Required_Switches ("Fortran") use
         Compiler'Leading_Required_Switches ("Fortran") &amp;
         ("-c", "-fno-underscoring");
      for Include_Switches  ("Fortran") use ("-I");
   end Compiler;
     </config>
   </configuration>

   <!-- in cygminw mode, make sure that the option -mno-cygwin is used -->

   <configuration>
     <compilers>
       <compiler name="^GCC-CYGMING$" language="Fortran" />
     </compilers>
     <config>
   package Compiler is
      for Leading_Required_Switches ("Fortran") use
      Compiler'Leading_Required_Switches ("Fortran") &amp; ("-mno-cygwin");
   end Compiler;
     </config>
   </configuration>

   <!-- Configuration for GFortran: the GCC Fortran 95 compiler -->

   <configuration>
     <compilers>
       <compiler name="^GFORTRAN$" language="Fortran" />
       <compiler name="^GCC-MINGW32$" language="Fortran" />
     </compilers>
     <config>
   package Compiler is
      for Driver            ("Fortran") use "${PATH(fortran)}${EXEC(fortran)}";
      for Leading_Required_Switches ("Fortran") use
         Compiler'Leading_Required_Switches ("Fortran") &amp;
         ("-c", "-fno-underscoring");
      for Include_Switches  ("Fortran") use ("-I");
   end Compiler;
     </config>
   </configuration>

   <!--  Additional switches needed on some platforms -->

   <configuration>
     <compilers>
       <compiler name="^G77$" language="Fortran" />
     </compilers>
     <targets negate="true">
       <target name="^.*LynxOS.*$" />
       <target name="^.*pentium-mingw.*$" />
       <target name="^.*cygwin.*$" />
       <target name="^.*dec-osf.*$" />
     </targets>
     <config>
   package Compiler is
      for PIC_Option      ("Fortran") use ("-fPIC");
   end Compiler;
     </config>
   </configuration>
</gprconfig>
