SQUASHME Minor code de-duplication
Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
родитель
441bad9a75
Коммит
7bcd5fc13d
@ -68,15 +68,15 @@ EOF
|
|||||||
for flag in $ofi_possible_flags; do
|
for flag in $ofi_possible_flags; do
|
||||||
if test "$ofi_module_flag" = ""; then
|
if test "$ofi_module_flag" = ""; then
|
||||||
OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS],
|
OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS],
|
||||||
[AS_VAR_SET(fortran_inc_var, [$flag])
|
[ofi_module_flag=$flag],
|
||||||
ofi_module_flag="$flag"],
|
|
||||||
dnl try and see if we need to link in a possible object file
|
dnl try and see if we need to link in a possible object file
|
||||||
[OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 subdir/conftest-module.o \
|
[OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 subdir/conftest-module.o \
|
||||||
${flag}subdir $LDFLAGS $LIBS],
|
${flag}subdir $LDFLAGS $LIBS],
|
||||||
[AS_VAR_SET(fortran_inc_var, [$flag])
|
[ofi_module_flag=$flag])])
|
||||||
ofi_module_flag="$flag"],[])])
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
AS_IF([test -n "$ofi_module_flag"],
|
||||||
|
[AS_VAR_SET(fortran_inc_var, [$ofi_module_flag])])
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf conftest.$$
|
rm -rf conftest.$$
|
||||||
])
|
])
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user