From 848a868f7b456b59018d7e021f749450fdb8b43d Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Mon, 5 Nov 2018 15:22:41 +0900 Subject: [PATCH] fortran/mpif-h: keep include path for extension short in order to cope with the 72 characters per line limit, move openmpi/ompi/mpiext/FOO/mpif-h/mpiext_FOO_mpifh.h to openmpi/ompi/mpiext/FOO_mpifh.h Refs. open-mpi/ompi#6019 Signed-off-by: Gilles Gouaillardet --- config/ompi_ext.m4 | 14 +++++++------- ompi/mpiext/example/mpif-h/Makefile.am | 6 ++++-- .../{mpiext_example_mpifh.h => example_mpifh.h} | 0 ompi/mpiext/pcollreq/mpif-h/Makefile.am | 4 ++-- .../{mpiext_pcollreq_mpifh.h => pcollreq_mpifh.h} | 0 5 files changed, 13 insertions(+), 11 deletions(-) rename ompi/mpiext/example/mpif-h/{mpiext_example_mpifh.h => example_mpifh.h} (100%) rename ompi/mpiext/pcollreq/mpif-h/{mpiext_pcollreq_mpifh.h => pcollreq_mpifh.h} (100%) diff --git a/config/ompi_ext.m4 b/config/ompi_ext.m4 index 72f47d390d..2821048ed2 100644 --- a/config/ompi_ext.m4 +++ b/config/ompi_ext.m4 @@ -409,7 +409,7 @@ AC_DEFUN([EXT_CONFIGURE_M4_CONFIG_COMPONENT],[ # - c/libmpiext_.la: convneience library slurped into libmpi.la # # mpi.f.h: -# - mpif-h/mpiext__mpifh.h: is included mpi mpif_ext.h +# - mpif-h/_mpifh.h: is included mpi mpif_ext.h # - mpif-h/libmpiext__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/mpiext_${component}_mpifh.h" + test_header="${srcdir}/ompi/mpiext/$component/mpif-h/${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/mpif-h/mpiext_${component}_mpifh.h" + EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/${component}_mpifh.h" $4="$$4 $component" - component_header="mpiext_${component}_mpifh.h" + component_header="${component}_mpifh.h" cat >> $mpif_ext_h <> $mpiusempi_ext_h <> $mpiusempif08_ext_h <