@@ -185,7 +185,7 @@ if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
185185 AC_MSG_NOTICE([Detected VPATH build])
186186fi
187187
188- # Setup the top of the include/ompi_config .h file
188+ # Setup the top of the opal/ include/opal_config .h file
189189
190190AH_TOP([/* -* - c -* -
191191 *
@@ -206,12 +206,12 @@ AH_TOP([/* -*- c -*-
206206 * Function: - OS, CPU and compiler dependent configuration
207207 * /
208208
209- # ifndef OMPI_CONFIG_H
210- # define OMPI_CONFIG_H
209+ # ifndef OPAL_CONFIG_H
210+ # define OPAL_CONFIG_H
211211])
212212AH_BOTTOM([
213- # include "ompi_config_bottom .h"
214- # endif /* OMPI_CONFIG_H */
213+ # include "opal_config_bottom .h"
214+ # endif /* OPAL_CONFIG_H */
215215])
216216
217217# Other basic setup stuff (shared with components)
@@ -1485,14 +1485,18 @@ ompi_show_subtitle "Compiler flags"
14851485# '-I$(top_srcdir)' doesn't show up in any of the configure output --
14861486# purely aesthetic.
14871487#
1488- # JMS: Someday to remove the -I's for the individual ompi, orte, opal
1489- # directories -- the top-level ones will suffice after all #include's
1490- # throughout the tree are converted to use the full path of our header
1491- # files .
1488+ # Because opal_config.h, orte_config.h, and ompi_config.h are all
1489+ # created by AC_CONFIG_HEADERS, we don't need to -I the builddir for
1490+ # <project>/include. If we VPATH building, we do need to include the
1491+ # source directories, however .
14921492#
1493-
1494- CPPFLAGS= ' -I$(top_srcdir)/include -I$(top_srcdir) -I$(top_builddir) -I$(top_builddir)/include -I$(top_srcdir)/opal -I$(top_srcdir)/orte -I$(top_srcdir)/ompi' " $CPPFLAGS "
1495- CXXCPPFLAGS= ' -I$(top_srcdir)/include -I$(top_srcdir) -I$(top_builddir) -I$(top_builddir)/include -I$(top_srcdir)/opal -I$(top_srcdir)/orte -I$(top_srcdir)/ompi' " $CXXCPPFLAGS "
1493+ if test " $OMPI_TOP_BUILDDIR " ! = " $OMPI_TOP_SRCDIR " ; then
1494+ CPPFLAGS=' -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include' " $CPPFLAGS "
1495+ CXXCPPFLAGS=' -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include' " $CXXCPPFLAGS "
1496+ else
1497+ CPPFLAGS=' -I$(top_srcdir)' " $CPPFLAGS "
1498+ CXXCPPFLAGS=' -I$(top_srcdir)' " $CXXCPPFLAGS "
1499+ fi
14961500
14971501#
14981502# Do a final process of the CFLAGS to make a WITHOUT_OPTFLAGS version.
@@ -1541,19 +1545,17 @@ OMPI_SETUP_WRAPPER_FINAL
15411545
15421546ompi_show_subtitle " Final output"
15431547
1544- AM_CONFIG_HEADER([include/ompi_config.h include/mpi.h])
1548+ AM_CONFIG_HEADER([opal/ include/opal_config.h orte/include/orte_config.h ompi/include/ ompi_config.h ompi/ include/mpi.h])
15451549AC_CONFIG_FILES([
15461550 Makefile
15471551
15481552 config/Makefile
15491553
1550- include/Makefile
1551- include/mpif.h
1552-
1553- etc/Makefile
15541554 contrib/Makefile
15551555
15561556 opal/Makefile
1557+ opal/etc/Makefile
1558+ opal/include/Makefile
15571559 opal/asm/Makefile
15581560 opal/event/Makefile
15591561 opal/event/compat/Makefile
@@ -1566,6 +1568,8 @@ AC_CONFIG_FILES([
15661568 opal/tools/wrappers/opalc++-wrapper-data.txt
15671569
15681570 orte/Makefile
1571+ orte/include/Makefile
1572+ orte/etc/Makefile
15691573
15701574 orte/tools/console/Makefile
15711575 orte/tools/orted/Makefile
@@ -1577,6 +1581,9 @@ AC_CONFIG_FILES([
15771581 orte/tools/wrappers/ortec++-wrapper-data.txt
15781582
15791583 ompi/Makefile
1584+ ompi/etc/Makefile
1585+ ompi/include/Makefile
1586+ ompi/include/mpif.h
15801587
15811588 ompi/debuggers/Makefile
15821589
0 commit comments