|
6 | 6 | # All rights reserved.
|
7 | 7 | # Copyright (c) 2013-2014 Intel, Inc. All rights reserved.
|
8 | 8 | # Copyright (c) 2015-2020 Research Organization for Information Science
|
| 9 | +# Copyright (c) 2013-2020 Intel, Inc. All rights reserved. |
| 10 | +# Copyright (c) 2015-2024 Research Organization for Information Science |
9 | 11 | # and Technology (RIST). All rights reserved.
|
10 | 12 | # Copyright (c) 2015 IBM Corporation. All rights reserved.
|
11 | 13 | #
|
@@ -951,9 +953,9 @@ sub patch_autotools_output {
|
951 | 953 | # source tree); we can't fix it. So all we can do is patch the
|
952 | 954 | # resulting configure script. :-(
|
953 | 955 | push(@verbose_out, $indent_str . "Patching configure for Libtool PGI 10 fortran compiler name\n");
|
954 |
| - $c =~ s/gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn/gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn/g; |
955 |
| - $c =~ s/pgcc\* \| pgf77\* \| pgf90\* \| pgf95\*\)/pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)/g; |
956 |
| - $c =~ s/pgf77\* \| pgf90\* \| pgf95\*\)/pgf77* | pgf90* | pgf95* | pgfortran*)/g; |
| 956 | + $c =~ s/gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn/gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran nvfortran pgf95 lf95 ftn/g; |
| 957 | + $c =~ s/pgcc\* \| pgf77\* \| pgf90\* \| pgf95\*\)/pgcc* | pgf77* | pgf90* | pgf95* | pgfortran* | nvfortran*)/g; |
| 958 | + $c =~ s/pgf77\* \| pgf90\* \| pgf95\*\)/pgf77* | pgf90* | pgf95* | pgfortran* | nvfortran*)/g; |
957 | 959 |
|
958 | 960 | # Similar issue as above -- the PGI 10 version number broke <=LT
|
959 | 961 | # 2.2.6b's version number checking regexps. Again, we can't fix the
|
@@ -1127,6 +1129,30 @@ sub patch_autotools_output {
|
1127 | 1129 | ;;";
|
1128 | 1130 | $c =~ s/$search_string/$replace_string/g;
|
1129 | 1131 |
|
| 1132 | + $c =~ s/for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgfortran pgf95 lf95 f90 xlf90 pgf90 epcf90 nagfor/for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgfortran pgf95 lf95 f90 xlf90 pgf90 epcf90 nagfor nvfortran/g; |
| 1133 | + foreach my $tag (("", "_FC")) { |
| 1134 | + $search_string = 'tcc\*\) |
| 1135 | + # Fabrice Bellard et al\'s Tiny C Compiler |
| 1136 | + lt_prog_compiler_wl'."${tag}".'=\'-Wl,\' |
| 1137 | + lt_prog_compiler_pic'."${tag}".'=\'-fPIC\' |
| 1138 | + lt_prog_compiler_static'."${tag}".'=\'-static\' |
| 1139 | + ;;'; |
| 1140 | + $replace_string = "tcc*) |
| 1141 | + # Fabrice Bellard et al's Tiny C Compiler |
| 1142 | + lt_prog_compiler_wl${tag}='-Wl,' |
| 1143 | + lt_prog_compiler_pic${tag}='-fPIC' |
| 1144 | + lt_prog_compiler_static${tag}='-static' |
| 1145 | + ;; |
| 1146 | + nvc* | nvcc* | nvfortran*) |
| 1147 | + # NVIDIA Fortran compiler |
| 1148 | + lt_prog_compiler_wl${tag}='-Wl,' |
| 1149 | + lt_prog_compiler_pic${tag}='-fPIC' |
| 1150 | + lt_prog_compiler_static${tag}='-Bstatic' |
| 1151 | + ;;"; |
| 1152 | + push(@verbose_out, $indent_str . "Patching configure for NVIDIA Fortran compiler (${tag})\n"); |
| 1153 | + $c =~ s/$search_string/$replace_string/g; |
| 1154 | + } |
| 1155 | + |
1130 | 1156 | # Only write out verbose statements and a new configure if the
|
1131 | 1157 | # configure content actually changed
|
1132 | 1158 | return
|
|
0 commit comments