Fix typo in docs and compiler version-parsing regex.
In the version parsing, we need to escape the version dots so that
they don't match *everything*. And make the captures (\d+) so that
they capture multi-digit version numbers.
Derek Lamb authored 3 years ago
Ed J committed 3 years ago
635 | 635 | my $compiler = find_in_path( @try ); |
636 | 636 | return () unless defined $compiler; |
637 | 637 | # Get compiler version number |
638 | my @t =`$compiler --version`; $t[0] =~ /(\d+).(\d)+.(\d+)/; | |
638 | my @t =`$compiler --version`; $t[0] =~ /(\d+)\.(\d+)\.(\d+)/; | |
639 | 639 | my $version = "$1.$2"; # Major version number |
640 | 640 | debug "ExtUtils::F77: $compiler version $version.$3\n"; |
641 | 641 | # Sigh special case random extra gfortran libs to avoid PERL_DL_NONLAZY meltdowns. KG 25/10/2015 |
670 | 670 | of Fortran runtime libraries. The problem is their location |
671 | 671 | and name varies with each OS/compiler combination! It was originally |
672 | 672 | developed to make building and installation of the L<PGPLOT> module easier, |
673 | which links to the pgplot Fortran graphics library. It is now used by a numnber | |
673 | which links to the pgplot Fortran graphics library. It is now used by a number | |
674 | 674 | of perl modules. |
675 | 675 | |
676 | 676 | This module tries to implement a simple |