@@ -10,7 +10,7 @@ dnl Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
1010dnl University of Stuttgart. All rights reserved.
1111dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212dnl All rights reserved.
13- dnl Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
13+ dnl Copyright (c) 2006-2017 Cisco Systems, Inc. All rights reserved
1414dnl Copyright (c) 2006-2008 Sun Microsystems, Inc. All rights reserved.
1515dnl Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights
1616dnl reserved.
@@ -34,8 +34,6 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
3434 OMPI_FORTRAN_USEMPI_DIR=
3535 OMPI_FORTRAN_USEMPI_LIB=
3636
37- OMPI_FORTRAN_USEMPIF08_DIR=
38- OMPI_FORTRAN_USEMPIF08_MOD=
3937 OMPI_FORTRAN_USEMPIF08_LIB=
4038
4139 OMPI_FORTRAN_MAX_ARRAY_RANK= 0
@@ -52,7 +50,6 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
5250 OMPI_FORTRAN_HAVE_BIND_C_TYPE_NAME= 0
5351 OMPI_FORTRAN_HAVE_F08_ASSUMED_RANK= 0
5452 OMPI_FORTRAN_HAVE_PRIVATE= 0
55- OMPI_FORTRAN_SUBARRAYS_SUPPORTED= .FALSE.
5653
5754 # These macros control symbol names for Fortran/C interoperability
5855 #
@@ -533,35 +530,20 @@ end type test_mpi_handle],
533530 OMPI_FORTRAN_HAVE_F08_ASSUMED_RANK= 1])
534531
535532 # Which mpi_f08 implementation are we using?
536- # a) partial, proof-of-concept that supports array
537- # subsections (Intel compiler only)
538- # b) compiler supports BIND(C) and optional arguments
533+ # a) compiler supports BIND(C) and optional arguments
539534 # ("good" compilers)
540- # c ) compiler that does not support the items listed
535+ # b ) compiler that does not support the items listed
541536 # in b) ("bad" compilers)
542537
543538 AC_MSG_CHECKING([which mpi_f08 implementation to build])
544- AS_IF([test $OMPI_BUILD_FORTRAN_F08_SUBARRAYS -eq 1],
545- [ # Case a) partial/prototype implementation
546- OMPI_FORTRAN_USEMPIF08_DIR= mpi/fortran/use-mpi-f08-desc
547- OMPI_FORTRAN_USEMPIF08_MOD= $OMPI_FORTRAN_USEMPIF08_DIR /mod
548- OMPI_FORTRAN_SUBARRAYS_SUPPORTED= .TRUE.
549- OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 0
550- AC_MSG_RESULT([array subsections (partial/experimental)])
539+ AS_IF([test $OMPI_FORTRAN_HAVE_OPTIONAL_ARGS -eq 1],
540+ [ # Case a) "good compiler"
541+ OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 0
542+ AC_MSG_RESULT([" good" compiler, no array subsections])
551543 ],
552- [ # Both cases b) and c)
553- OMPI_FORTRAN_USEMPIF08_DIR= mpi/fortran/use-mpi-f08
554- OMPI_FORTRAN_USEMPIF08_MOD= $OMPI_FORTRAN_USEMPIF08_DIR /mod
555- OMPI_FORTRAN_SUBARRAYS_SUPPORTED= .FALSE.
556- AS_IF([test $OMPI_FORTRAN_HAVE_OPTIONAL_ARGS -eq 1],
557- [ # Case b) "good compiler"
558- OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 0
559- AC_MSG_RESULT([" good" compiler, no array subsections])
560- ],
561- [ # Case c) "bad compiler"
562- OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 1
563- AC_MSG_RESULT([" bad" compiler, no array subsections])
564- ])
544+ [ # Case b) "bad compiler"
545+ OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 1
546+ AC_MSG_RESULT([" bad" compiler, no array subsections])
565547 ])
566548 ])
567549
@@ -702,9 +684,6 @@ end type test_mpi_handle],
702684 # use mpi_f08 final setup
703685 # -------------------
704686
705- # This goes into ompi/Makefile.am
706- AC_SUBST(OMPI_FORTRAN_USEMPIF08_DIR)
707- AC_SUBST(OMPI_FORTRAN_USEMPIF08_MOD)
708687 # This goes into mpifort-wrapper-data.txt
709688 AC_SUBST(OMPI_FORTRAN_USEMPIF08_LIB)
710689
@@ -718,12 +697,6 @@ end type test_mpi_handle],
718697 AC_SUBST(OMPI_F08_SUFFIX)
719698 AC_SUBST(OMPI_F_SUFFIX)
720699
721- # This goes into ompi/mpi/fortran/configure-fortran-output.h
722- AC_SUBST(OMPI_FORTRAN_SUBARRAYS_SUPPORTED)
723- AC_DEFINE_UNQUOTED(OMPI_FORTRAN_SUBARRAYS_SUPPORTED,
724- [$OMPI_FORTRAN_SUBARRAYS_SUPPORTED ],
725- [Value to load to the MPI_SUBARRAYS_SUPPORTED compile-time constant])
726-
727700 # This is used to generate weak symbols (or not) in
728701 # ompi/mpi/fortran/mpif-h/<foo>_f.c, and
729702 # ompi/mpi/fortran/configure-fortran-output.h.
0 commit comments