@@ -173,11 +173,11 @@ find_or_install()
173
173
174
174
else
175
175
176
- info " $this_script : Checking whether $executable in PATH wraps gfortran version >= $( ./build.sh -V gcc ) ... "
176
+ info " $this_script : Checking whether $executable in PATH wraps gfortran version >= $minimum_version ... "
177
177
$executable acceptable_compiler.f90 -o acceptable_compiler || true ;
178
178
$executable print_true.f90 -o print_true || true ;
179
179
if [[ -f ./acceptable_compiler && -f ./print_true ]]; then
180
- acceptable=$( ./acceptable_compiler)
180
+ acceptable=$( ./acceptable_compiler $minimum_version )
181
181
is_true=$( ./print_true)
182
182
rm acceptable_compiler print_true
183
183
else
@@ -273,13 +273,14 @@ find_or_install()
273
273
stack_push dependency_path " none"
274
274
275
275
elif [[ " $package_in_path " == " true" ]]; then
276
- export minimum_acceptable_version=$( ./build.sh -V gcc)
277
- info " $this_script : Checking whether $executable in PATH is version $minimum_acceptable_version or later..."
276
+ info " $this_script : Checking whether $executable in PATH is version $minimum_version or later..."
278
277
$executable -o acceptable_compiler acceptable_compiler.f90 || true ;
279
278
$executable -o print_true print_true.f90 || true ;
280
279
if [[ -f ./acceptable_compiler && -f ./print_true ]]; then
281
280
is_true=$( ./print_true)
282
- acceptable=$( ./acceptable_compiler $minimum_acceptable_version )
281
+ emergency " Executing ` ./acceptable_compiler $minimum_version ` "
282
+ ./acceptable_compiler $minimum_version
283
+ acceptable=$( ./acceptable_compiler $minimum_version )
283
284
rm acceptable_compiler print_true
284
285
else
285
286
acceptable=false
@@ -675,6 +676,6 @@ find_or_install()
675
676
else
676
677
export PATH=" $package_install_prefix /bin:$PATH "
677
678
fi
678
- fi
679
+ fi
679
680
fi # End 'if [[ ! -x "$package_install_prefix/bin/$executable" ]]; then'
680
681
}
0 commit comments