File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dnl Copyright (c) 2007 Los Alamos National Security, LLC. All rights
1414dnl reserved.
1515dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
1616dnl Copyright (c) 2009-2014 Cisco Systems, Inc. All rights reserved.
17- dnl Copyright (c) 2015 Research Organization for Information Science
17+ dnl Copyright (c) 2015-2016 Research Organization for Information Science
1818dnl and Technology (RIST). All rights reserved.
1919dnl $COPYRIGHT $
2020dnl
@@ -114,13 +114,19 @@ AC_DEFUN([OMPI_SETUP_FC],[
114114 # "ignore TKR" comment pragmas that it doesn't understand, and
115115 # will warn about them. From Tony Goetz at Absoft, we can use the
116116 # -Z790 flag to quell these warnings.
117+ # The NAG compiler is too picky about naming conventions, so use the
118+ # -mismatch flag to keep it happy
117119 AC_MSG_CHECKING([for $FC warnings flags])
118120 fc_version=` $FC --version 2>&1 `
119121 case " $fc_version " in
120122 * Absoft* )
121123 AC_MSG_RESULT([-Z790])
122124 FCFLAGS=" $FCFLAGS -Z790"
123125 ;;
126+ * NAG* )
127+ AC_MSG_RESULT([-mismatch])
128+ FCFLAGS=" $FCFLAGS -mismatch"
129+ ;;
124130 * )
125131 AC_MSG_RESULT([none])
126132 ;;
You can’t perform that action at this time.
0 commit comments