@@ -13,7 +13,7 @@ dnl All rights reserved.
13
13
dnl Copyright (c) 2007 Los Alamos National Security, LLC. All rights
14
14
dnl reserved.
15
15
dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
16
- dnl Copyright (c) 2009-2014 Cisco Systems, Inc. All rights reserved.
16
+ dnl Copyright (c) 2009-2020 Cisco Systems, Inc. All rights reserved.
17
17
dnl Copyright (c) 2015-2020 Research Organization for Information Science
18
18
dnl and Technology (RIST). All rights reserved.
19
19
dnl $COPYRIGHT $
@@ -139,23 +139,10 @@ AC_DEFUN([OMPI_SETUP_FC],[
139
139
[AC_FC_SRCEXT(f)
140
140
AC_FC_SRCEXT(f90)])
141
141
142
- AC_MSG_CHECKING([if Fortran compilers preprocess .F90 files without additional flag])
143
- cat > conftest_f.F90 << EOF
144
- #if 0
145
- #error The source file was not preprocessed
146
- #endif
147
- program bogus
148
- end program
149
- EOF
150
- OPAL_LOG_COMMAND([$FC $FCFLAGS -c conftest_f.F90],
151
- [AC_MSG_RESULT([" yes" ])],
152
- [AC_MSG_CHECKING([if -f pp flag works])
153
- OPAL_LOG_COMMAND([$FC $FCFLAGS -f pp -c conftest_f.F90],
154
- [AC_MSG_RESULT([" yes" ])
155
- FCFLAGS= " $FCFLAGS -fpp" ],
156
- [AC_MSG_RESULT(" no" )
157
- AC_MSG_ERROR([" cannot preprocess Fortran files, Aborting" ])])])
158
- rm -f conftest*
142
+ # Check to see if we need additional compiler flags for
143
+ # preprocessing .F90 files.
144
+ AS_IF([test $ompi_fc_happy -eq 1],
145
+ [OMPI_FORTRAN_CHECK_PREPROCESS_F90])
159
146
160
147
# Per trac #1982, on OS X, we may need some esoteric linker flags
161
148
# in the wrapper compilers. However, per
0 commit comments