diff --git a/waflib/extras/fc_nag.py b/waflib/extras/fc_nag.py index 6fdb9ad8..41d82f06 100644 --- a/waflib/extras/fc_nag.py +++ b/waflib/extras/fc_nag.py @@ -36,7 +36,7 @@ def nag_modifier_platform(conf): def get_nag_version(conf, fc): """Get the NAG compiler version""" - version_re = re.compile(r"NAG Fortran Compiler *Release *(?P\d*)\.(?P\d*)", re.I).search + version_re = re.compile(r"^NAG Fortran Compiler *Release *(?P\d*)\.(?P\d*)", re.M).search cmd = fc + ['-v'] out, err = fc_config.getoutput(conf,cmd,stdin=False)