1
1

Revert "fortran/mpif-h: keep include path for extension short"

This reverts commit open-mpi/ompi@848a868f7b.

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2018-12-06 14:52:59 +09:00
родитель ccbdc8fd58
Коммит 4918fc4455
5 изменённых файлов: 11 добавлений и 13 удалений

Просмотреть файл

@ -409,7 +409,7 @@ AC_DEFUN([EXT_CONFIGURE_M4_CONFIG_COMPONENT],[
# - c/libmpiext_<component>.la: convneience library slurped into libmpi.la
#
# mpi.f.h:
# - mpif-h/<component>_mpifh.h: is included mpi mpif_ext.h
# - mpif-h/mpiext_<component>_mpifh.h: is included mpi mpif_ext.h
# - mpif-h/libmpiext_<component>_mpifh.la: convenience library slurped
# into libmpi_mpifh.la
#
@ -497,7 +497,7 @@ EOF
# Test if this extension has mpif.h bindings
# If not, skip this step.
#
test_header="${srcdir}/ompi/mpiext/$component/mpif-h/${component}_mpifh.h"
test_header="${srcdir}/ompi/mpiext/$component/mpif-h/mpiext_${component}_mpifh.h"
enabled_mpifh=0
AC_MSG_CHECKING([if MPI Extension $component has mpif.h bindings])
@ -507,10 +507,10 @@ EOF
enabled_mpifh=1
# JMS Where is this needed?
EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/${component}_mpifh.h"
EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/$component/mpif-h/mpiext_${component}_mpifh.h"
$4="$$4 $component"
component_header="${component}_mpifh.h"
component_header="mpiext_${component}_mpifh.h"
cat >> $mpif_ext_h <<EOF
!
@ -519,7 +519,7 @@ EOF
integer $component_define
parameter ($component_define=1)
include 'openmpi/ompi/mpiext/$component_header'
include 'openmpi/ompi/mpiext/$component/mpif-h/$component_header'
EOF
else
@ -566,7 +566,7 @@ EOF
# srcdir is needed to find the header.
#
if test "$enabled_mpifh" = 1; then
mpifh_component_header="${component}_mpifh.h"
mpifh_component_header="mpiext_${component}_mpifh.h"
cat >> $mpiusempi_ext_h <<EOF
#include "${srcdir}/ompi/mpiext/$component/mpif-h/$mpifh_component_header"
EOF
@ -619,7 +619,7 @@ EOF
# the srcdir is needed to find the header.
#
if test "$enabled_mpifh" = 1; then
mpifh_component_header="${component}_mpifh.h"
mpifh_component_header="mpiext_${component}_mpifh.h"
cat >> $mpiusempif08_ext_h <<EOF
#include "${srcdir}/ompi/mpiext/$component/mpif-h/$mpifh_component_header"
EOF

Просмотреть файл

@ -4,8 +4,6 @@
# Corporation. All rights reserved.
# Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
# Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2018 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
@ -28,7 +26,7 @@ noinst_LTLIBRARIES =
# Directory where the header file to be included in mpif-ext.h must be
# installed.
ompidir = $(ompiincludedir)/ompi/mpiext
ompidir = $(ompiincludedir)/ompi/mpiext/example/mpif-h
# Just like noinst_LTLIBRARIES, set this macro to empty and
# conditionally add to it later.
@ -43,7 +41,7 @@ if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS
noinst_LTLIBRARIES += libmpiext_example_mpifh.la
# This is the header file that is installed.
ompi_HEADERS += example_mpifh.h
ompi_HEADERS += mpiext_example_mpifh.h
# Sources for the convenience libtool library.
libmpiext_example_mpifh_la_SOURCES = \

Просмотреть файл

@ -31,7 +31,7 @@ noinst_LTLIBRARIES =
# Directory where the header file to be included in mpif-ext.h must be
# installed.
ompidir = $(ompiincludedir)/ompi/mpiext
ompidir = $(ompiincludedir)/ompi/mpiext/pcollreq/mpif-h
# Just like noinst_LTLIBRARIES, set this macro to empty and
# conditionally add to it later.
@ -46,7 +46,7 @@ if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS
noinst_LTLIBRARIES += libmpiext_pcollreq_mpifh.la
# This is the header file that is installed.
ompi_HEADERS += pcollreq_mpifh.h
ompi_HEADERS += mpiext_pcollreq_mpifh.h
noinst_HEADERS = mpiext_pcollreq_prototypes.h