Skip to content

Commit 7bcd5fc

Browse files
committed
SQUASHME Minor code de-duplication
Signed-off-by: Jeff Squyres <[email protected]>
1 parent 441bad9 commit 7bcd5fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/ompi_fortran_find_module_include_flag.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ EOF
6868
for flag in $ofi_possible_flags; do
6969
if test "$ofi_module_flag" = ""; then
7070
OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS],
71-
[AS_VAR_SET(fortran_inc_var, [$flag])
72-
ofi_module_flag="$flag"],
71+
[ofi_module_flag=$flag],
7372
dnl try and see if we need to link in a possible object file
7473
[OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 subdir/conftest-module.o \
7574
${flag}subdir $LDFLAGS $LIBS],
76-
[AS_VAR_SET(fortran_inc_var, [$flag])
77-
ofi_module_flag="$flag"],[])])
75+
[ofi_module_flag=$flag])])
7876
fi
7977
done
78+
AS_IF([test -n "$ofi_module_flag"],
79+
[AS_VAR_SET(fortran_inc_var, [$ofi_module_flag])])
8080
cd ..
8181
rm -rf conftest.$$
8282
])

0 commit comments

Comments
 (0)