File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ dnl University of Stuttgart. All rights reserved.
1111dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212dnl All rights reserved.
1313dnl Copyright (c) 2010-2012 Cisco Systems, Inc. All rights reserved.
14+ dnl Copyright (c) 2019 Triad National Security, LLC. All rights
15+ dnl reserved.
1416dnl $COPYRIGHT $
1517dnl
1618dnl Additional copyrights may follow
6668 for flag in $ofi_possible_flags ; do
6769 if test " $ofi_module_flag " = " " ; then
6870 OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag} subdir $LDFLAGS $LIBS ],
69- [AS_VAR_SET(fortran_inc_var, [$flag ])
70- ofi_module_flag= " $flag " ])
71+ [ofi_module_flag= $flag ],
72+ dnl try and see if we need to link in a possible object file
73+ [OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 subdir/conftest-module.o \
74+ ${flag} subdir $LDFLAGS $LIBS ],
75+ [ofi_module_flag= $flag ])])
7176 fi
7277 done
78+ AS_IF([test -n " $ofi_module_flag " ],
79+ [AS_VAR_SET(fortran_inc_var, [$ofi_module_flag ])])
7380 cd ..
7481 rm -rf conftest.$$
7582 ])
You can’t perform that action at this time.
0 commit comments