Skip to content

Commit 98d4678

Browse files
authored
Change complex_return='intel' for ifx. (#637)
Details: - When checking the version string of the Fortran compiler for the purposes of determining a default return convention for complex domain values, grep for "IFORT" instead of "ifort" since that string is common to both the 'ifx' and 'ifort' binaries provided by Intel: $ ifx --version ifx (IFORT) 2022.1.0 20220316 Copyright (C) 1985-2022 Intel Corporation. All rights reserved. $ ifort --version ifort (IFORT) 2021.6.0 20220226 Copyright (C) 1985-2022 Intel Corporation. All rights reserved.
1 parent ffde54c commit 98d4678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3688,9 +3688,9 @@ main()
36883688
# Query the compiler "vendor" (ie: the compiler's simple name).
36893689
# The last part ({ read first rest ; echo $first ; }) is a workaround
36903690
# to OS X's egrep only returning the first match.
3691-
fc_vendor=$(echo "${vendor_string}" | egrep -o 'ifort|GNU' | { read first rest ; echo $first ; })
3691+
fc_vendor=$(echo "${vendor_string}" | egrep -o 'IFORT|GNU' | { read first rest ; echo $first ; })
36923692

3693-
if [ "x${fc_vendor}" = "xifort" ]; then
3693+
if [ "x${fc_vendor}" = "xIFORT" ]; then
36943694
complex_return='intel'
36953695
elif [ "x${fc_vendor}" = "xGNU" ]; then
36963696
complex_return='gnu'

0 commit comments

Comments
 (0)