Skip to content

Commit 2fb05ce

Browse files
Refactored --with-prrte configure option to no longer support external PRRTE builds
Signed-off-by: Alexandria Sisk <[email protected]>
1 parent 4a7f88b commit 2fb05ce

File tree

1 file changed

+2
-76
lines changed

1 file changed

+2
-76
lines changed

config/ompi_setup_prrte.m4

Lines changed: 2 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dnl results of the build.
3838
AC_DEFUN([OMPI_SETUP_PRRTE],[
3939
AC_REQUIRE([AC_PROG_LN_S])
4040
41-
OPAL_VAR_SCOPE_PUSH([prrte_setup_internal_happy prrte_setup_external_happy target_rst_dir])
41+
OPAL_VAR_SCOPE_PUSH([prrte_setup_internal_happy target_rst_dir])
4242
4343
opal_show_subtitle "Configuring PRRTE"
4444
@@ -107,7 +107,7 @@ OPAL_VAR_SCOPE_PUSH([prrte_setup_internal_happy prrte_setup_external_happy targe
107107
OMPI_USING_INTERNAL_PRRTE=0])
108108
109109
AM_CONDITIONAL([OMPI_WANT_PRRTE],
110-
[test "$prrte_setup_internal_happy" = "1" -o "$prrte_setup_external_happy" = "1"])
110+
[test "$prrte_setup_internal_happy" = "1"])
111111
112112
AC_DEFINE_UNQUOTED([OMPI_HAVE_PRRTE],
113113
[$OMPI_HAVE_PRRTE],
@@ -264,77 +264,3 @@ dnl succeeded.
264264
AC_DEFUN([_OMPI_SETUP_PRRTE_INTERNAL_POST], [
265265
OPAL_3RDPARTY_SUBDIRS="$OPAL_3RDPARTY_SUBDIRS prrte"
266266
])
267-
268-
269-
dnl _OMPI_SETUP_PRRTE_EXTERNAL([action if success], [action if not success])
270-
dnl
271-
dnl Try to find an external prrte with sufficient version.
272-
AC_DEFUN([_OMPI_SETUP_PRRTE_EXTERNAL], [
273-
OPAL_VAR_SCOPE_PUSH([ompi_prte_min_version ompi_prte_min_num_version setup_prrte_external_happy opal_prrte_CPPFLAGS_save])
274-
275-
opal_prrte_CPPFLAGS_save=$CPPFLAGS
276-
277-
AS_IF([test -n "${with_prrte}" -a "${with_prrte}" != "yes" -a "${with_prrte}" != "no"],
278-
[OPAL_FLAGS_APPEND_UNIQ([CPPFLAGS], ["-I${with_prrte}/include"])])
279-
280-
AC_CHECK_HEADER([prte.h], [setup_prrte_external_happy=yes],
281-
[setup_prrte_external_happy=no])
282-
283-
ompi_prte_min_version=OMPI_PRTE_MIN_VERSION
284-
ompi_prte_min_num_version=OMPI_PRTE_NUMERIC_MIN_VERSION
285-
AS_IF([test "${setup_prrte_external_happy}" = "yes"],
286-
[AC_CACHE_CHECK([if external PRRTE version is OMPI_PRTE_MIN_VERSION or greater],
287-
[ompi_setup_prrte_cv_version_happy],
288-
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <prte_version.h>
289-
]], [[
290-
#if PRTE_NUMERIC_VERSION < $ompi_prte_min_num_version
291-
#error "prrte API version is less than $ompi_prte_min_version"
292-
#endif
293-
]])],
294-
[ompi_setup_prrte_cv_version_happy="yes"],
295-
[ompi_setup_prrte_cv_version_happy="no"])])
296-
AS_IF([test "${ompi_setup_prrte_cv_version_happy}" = "no"],
297-
[setup_prrte_external_happy="no"])])
298-
299-
CPPFLAGS="$opal_prrte_CPPFLAGS_save"
300-
301-
# If an external build and the user told us where to find PRRTE,
302-
# find prterun and save that path.
303-
prterun_path=
304-
AS_IF([test "$setup_prrte_external_happy" = "yes"],
305-
[AS_IF([test "${with_prrte_bindir}" = "yes" -o "${with_prrte_bindir}" = "no"],
306-
[AC_MSG_ERROR(["yes" and "no" are not valid arguments for --with-prrte-bindir])])
307-
AS_IF([test -z "${with_prrte_bindir}" -a -n "${with_prrte}"],
308-
[with_prrte_bindir="${with_prrte}/bin"])
309-
AS_IF([test -n "${with_prrte_bindir}"],
310-
[AS_IF([test -x ${with_prrte_bindir}/prterun],
311-
[prterun_path="${with_prrte_bindir}/prterun"],
312-
[AC_MSG_ERROR([Could not find executable prterun: ${with_prrte_bindir}/prterun])])])])
313-
AS_IF([test -n "${prterun_path}"],
314-
[AC_DEFINE_UNQUOTED([OMPI_PRTERUN_PATH], ["${prterun_path}"], [Path to prterun])])
315-
316-
OMPI_HAVE_PRRTE_RST=0
317-
AS_IF([test "$setup_prrte_external_happy" = "yes"],
318-
[ # Determine if this external PRRTE has installed the RST
319-
# directories that we care about
320-
321-
AC_MSG_CHECKING([for external PRRTE RST files])
322-
prrte_install_dir=${with_prrte}/share/prte/rst
323-
AS_IF([test -n "$SPHINX_BUILD"],
324-
[AS_IF([test -d "$prrte_install_dir/prrte-rst-content" && \
325-
test -d "$prrte_install_dir/schizo-ompi-rst-content"],
326-
[OMPI_HAVE_PRRTE_RST=1
327-
OMPI_PRRTE_RST_CONTENT_DIR="$prrte_install_dir/prrte-rst-content"
328-
OMPI_SCHIZO_OMPI_RST_CONTENT_DIR="$prrte_install_dir/schizo-ompi-rst-content"
329-
AC_MSG_RESULT([found])
330-
],
331-
[ # This version of PRRTE doesn't have installed RST
332-
# files.
333-
AC_MSG_RESULT([not found])
334-
])
335-
])
336-
$1],
337-
[$2])
338-
339-
OPAL_VAR_SCOPE_POP
340-
])

0 commit comments

Comments
 (0)