'Checks if Fortran compiler is available.'

@run_before('configure')
def validate(self):

    if (('+fortran' in self.spec) and (not self.compiler.fc)):
        raise RuntimeError('Cannot    build    Fortran    variant    without    a    Fortran    compiler.')
