Skip to content

Commit 8abb7d1

Browse files
authored
Merge pull request #9955 from awlauria/fix_some_misc_build_stuff
Fix some misc build stuff
2 parents 7291361 + c393e83 commit 8abb7d1

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

autogen.pl

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,6 +1409,13 @@ sub replace_config_sub_guess {
14091409
++$step;
14101410
verbose "\n$step. Checking for git submodules\n\n";
14111411

1412+
my @enabled_3rdparty_packages = ();
1413+
my @disabled_3rdparty_packages = split(/,/, $no_3rdparty_arg);
1414+
if ($no_prrte_arg) {
1415+
push(@disabled_3rdparty_packages, "prrte");
1416+
}
1417+
1418+
14121419
# Make sure we got a submodule-full clone. If not, abort and let a
14131420
# human figure it out.
14141421
if (-f ".gitmodules") {
@@ -1423,6 +1430,14 @@ sub replace_config_sub_guess {
14231430
my $extra = $4;
14241431

14251432
print("=== Submodule: $path\n");
1433+
if (index($path, "pmix") != -1 and list_contains("pmix", @disabled_3rdparty_packages)) {
1434+
print("Disabled - skipping openpmix");
1435+
next;
1436+
}
1437+
if (index($path, "prrte") != -1 and list_contains("prrte", @disabled_3rdparty_packages)) {
1438+
print("Disabled - skipping prrte");
1439+
next;
1440+
}
14261441

14271442
# Make sure the submodule is there
14281443
if ($status eq "-") {
@@ -1588,12 +1603,6 @@ sub replace_config_sub_guess {
15881603
++$step;
15891604
verbose "\n$step. Setup for 3rd-party packages\n";
15901605

1591-
my @enabled_3rdparty_packages = ();
1592-
my @disabled_3rdparty_packages = split(/,/, $no_3rdparty_arg);
1593-
if ($no_prrte_arg) {
1594-
push(@disabled_3rdparty_packages, "prrte");
1595-
}
1596-
15971606
$m4 .= "\n$dnl_line
15981607
$dnl_line
15991608
$dnl_line

config/opal_config_hwloc.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ AC_DEFUN([OPAL_CONFIG_HWLOC], [
106106
OPAL_3RDPARTY_EXTRA_DIST="$OPAL_3RDPARTY_EXTRA_DIST hwloc_tarball"
107107
OPAL_3RDPARTY_DISTCLEAN_DIRS="$OPAL_3RDPARTY_DISTCLEAN_DIRS hwloc_directory"
108108
109+
AC_SUBST(opal_hwloc_CPPFLAGS)
109110
AC_SUBST(opal_hwloc_LIBS)
111+
AC_SUBST(opal_hwloc_LDFLAGS)
110112
111113
OPAL_SUMMARY_ADD([[Miscellaneous]], [[hwloc]], [hwloc], [$opal_hwloc_mode])
112114

config/opal_config_libevent.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ AC_DEFUN([OPAL_CONFIG_LIBEVENT], [
118118
OPAL_3RDPARTY_EXTRA_DIST="$OPAL_3RDPARTY_EXTRA_DIST libevent_tarball"
119119
OPAL_3RDPARTY_DISTCLEAN_DIRS="$OPAL_3RDPARTY_DISTCLEAN_DIRS libevent_directory"
120120
121+
AC_SUBST(opal_libevent_CPPFLAGS)
121122
AC_SUBST(opal_libevent_LIBS)
123+
AC_SUBST(opal_libevent_LDFLAGS)
122124
123125
OPAL_SUMMARY_ADD([[Miscellaneous]],[[libevent]],[libevent], [$opal_libevent_mode])
124126

config/opal_config_pmix.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ AC_DEFUN([OPAL_CONFIG_PMIX], [
152152
AS_IF([test "$opal_pmix_mode" = "internal"],
153153
[pkg_config_file="${OMPI_TOP_BUILDDIR}/3rd-party/openpmix/maint/pmix.pc"
154154
PKG_CONFIG_PATH="${OMPI_TOP_BUILDDIR}/3rd-party/openpmix/maint:${PKG_CONFIG_PATH}"],
155-
[test -n "$with_hwloc"],
155+
[test -n "$with_pmix"],
156156
[pkg_config_file="${with_pmix}/lib/pkgconfig/pmix.pc"
157157
PKG_CONFIG_PATH="${with_pmix}/lib/pkgconfig:${PKG_CONFIG_PATH}"],
158158
[pkg_config_file="pmix"])

0 commit comments

Comments
 (0)