You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/ompi_setup_prrte.m4
+21-39Lines changed: 21 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ dnl Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights
16
16
dnl reserved.
17
17
dnl Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
18
18
dnl Copyright (c) 2019-2020 Intel, Inc. All rights reserved.
19
-
dnl Copyright (c) 2020 Amazon.com, Inc. or its affiliates.
19
+
dnl Copyright (c) 2020-2021 Amazon.com, Inc. or its affiliates.
20
20
dnl All Rights reserved.
21
21
dnl Copyright (c) 2021 Nanook Consulting. All rights reserved.
22
22
dnl Copyright (c) 2021 IBM Corporation. All rights reserved.
@@ -43,46 +43,28 @@ AC_DEFUN([OMPI_SETUP_PRRTE],[
43
43
44
44
opal_show_subtitle "Configuring PRRTE"
45
45
46
-
# Don't use OPAL_3RDPARTY_WITH because it will not allow packages
47
-
# to be disabled
48
-
m4_ifdef([package_prrte],
49
-
[AC_ARG_WITH([prrte],
50
-
[AS_HELP_STRING([--with-prrte(=DIR)],
51
-
[Build PRTE support. DIR can take one of four values: "internal", "external", "no", or a valid directory name. "internal" forces Open MPI to use its internal copy of PRRTE. "external" forces Open MPI to use an external installation of PRRTE. Supplying a valid directory name also forces Open MPI to use an external installation of PRRTE, and adds DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries. If no argument is specified, Open MPI will search default locations for PRRTE and fall back to an internal version if one is not found.])])],
52
-
[AC_ARG_WITH([prrte],
53
-
[AS_HELP_STRING([--with-prrte(=DIR)],
54
-
[Build PRRTE support. DIR can take one of three values: "external", "no", or a valid directory name. "external" forces Open MPI to use an external installation of PRRTE. Supplying a valid directory name also forces Open MPI to use an external installation of PRRTE, and adds DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries. If no argument is specified, Open MPI will search default locations for PRRTE and disable creating mpirun symlinks if one is not found.])])])
55
-
56
-
m4_ifdef([package_prrte],
57
-
[OMPI_PRRTE_ADD_ARGS])
58
-
59
-
# clean up $with_prrte so that it contains only a path or empty
60
-
# string. To determine internal or external preferences, use
Copy file name to clipboardExpand all lines: config/opal_config_3rdparty.m4
+38-22Lines changed: 38 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ dnl Copyright (c) 2009-2018 Cisco Systems, Inc. All rights reserved
4
4
dnl Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
5
5
dnl Copyright (c) 2015-2018 Research Organization for Information Science
6
6
dnl and Technology (RIST). All rights reserved.
7
-
dnl Copyright (c) 2020 Amazon.com, Inc. or its affiliates. All Rights
7
+
dnl Copyright (c) 2020-2021 Amazon.com, Inc. or its affiliates. All Rights
8
8
dnl reserved.
9
9
dnl $COPYRIGHT$
10
10
dnl
@@ -13,44 +13,58 @@ dnl
13
13
dnl $HEADER$
14
14
dnl
15
15
16
-
dnl OPAL_3RDPARTY_WITH(short package name, long package name, internal supported)
16
+
dnl OPAL_3RDPARTY_WITH(short package name, long package name,
17
+
dnl internal supported, disabled ok)
17
18
dnl
18
19
dnl Basic --with-pkg/--with-pkg-libdir handling for 3rd party
19
20
dnl packages, with the big long description of internal/external/path
20
21
dnl handling.
21
22
dnl
22
23
dnl At the end of this macro, with_pkg will contain an empty string or
23
-
dnl a path (implying external). Further, the shell variable opal_pkg_mode
24
-
dnl will be set to "internal", "external", or "unspecified". If a path is
25
-
dnl given to --with-pkg, then opal_pkg_mode will be set to external.
24
+
dnl a path (the later implying external). Further, the shell variable
25
+
dnl opal_pkg_mode will be set to "internal", "external",
26
+
dnl "unspecified", or "disabled". If a path is given to --with-pkg, then
27
+
dnl opal_pkg_mode will be set to external. If "internal supported" is
28
+
dnl not defined, then opal_pkg_mode will not be internal. If
29
+
dnl "disabled ok" is not defined, then opal_pkg_mode will not be
30
+
dnl "disabled".
26
31
dnl
27
32
dnl If m4_ifdef(internal support) does not evaluate to true (ie, at
28
33
dnl autogen time), the references to internal in the help strings will
29
34
dnl be removed and internal will not be a supported option.
30
35
dnl
36
+
dnl If m4_ifval(ddisbaled ok) does not evaluete to true (ie, at autogen
37
+
dnl time), then --without-pkg will not be a valid configure option and
38
+
dnl will raise an error.
39
+
dnl
31
40
dnl $1: short package name
32
41
dnl $2: long pacakage name
33
42
AC_DEFUN([OPAL_3RDPARTY_WITH], [
34
-
m4_ifdef([$3],
35
-
[AC_ARG_WITH([$1],
36
-
[AS_HELP_STRING([--with-$1(=DIR)],
37
-
[Build $2 support. DIR can take one of three values: "internal", "external", or a valid directory name. "internal" forces Open MPI to use its internal copy of $2. "external" forces Open MPI to use an external installation of $2. Supplying a valid directory name also forces Open MPI to use an external installation of $2, and adds DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries. Note that Open MPI no longer supports --without-$1. If no argument is specified, Open MPI will search default locations for $2 and fall back to an internal version if one is not found.])])
38
-
39
-
AC_ARG_WITH([$1-libdir],
40
-
[AS_HELP_STRING([--with-$1-libdir=DIR],
41
-
[Search for $2 libraries in DIR. Should only be used if an external copy of $2 is being used.])])],
42
-
[AC_ARG_WITH([$1],
43
-
[AS_HELP_STRING([--with-$1(=DIR)],
44
-
[Build $2 support. DIR can take one of two values: "external" or a valid directory name. "external" forces Open MPI to use an external installation of $2. Supplying a valid directory name also forces Open MPI to use an external installation of $2, and adds DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries. Note that Open MPI no longer supports --without-$1. If no argument is specified, Open MPI will search default locations for $2 and error if one is not found.])])
43
+
m4_ifval([$4],
44
+
[m4_ifdef([$3],
45
+
[AC_ARG_WITH([$1],
46
+
[AS_HELP_STRING([--with-$1(=DIR)],
47
+
[Build $2 support. DIR can take one of four values: "internal", "external", "no", or a valid directory name. "internal" forces Open MPI to use its internal copy of $2. "external" forces Open MPI to use an external installation of $2. Supplying a valid directory name also forces Open MPI to use an external installation of $2, and adds DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries. "no" means that Open MPI will not build components that require this package. If no argument is specified, Open MPI will search default locations for $2 and fall back to an internal version if one is not found.])])],
48
+
[AC_ARG_WITH([$1],
49
+
[AS_HELP_STRING([--with-$1(=DIR)],
50
+
[Build $2 support. DIR can take one of three values: "external", "no", or a valid directory name. "external" forces Open MPI to use an external installation of $2. Supplying a valid directory name also forces Open MPI to use an external installation of $2, and adds DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries. "no" means that Open MPI will not build components that require this package. If no argument is specified, Open MPI will search default locations for $2 and error if one is not found.])])])],
51
+
[m4_ifdef([$3],
52
+
[AC_ARG_WITH([$1],
53
+
[AS_HELP_STRING([--with-$1(=DIR)],
54
+
[Build $2 support. DIR can take one of three values: "internal", "external", or a valid directory name. "internal" forces Open MPI to use its internal copy of $2. "external" forces Open MPI to use an external installation of $2. Supplying a valid directory name also forces Open MPI to use an external installation of $2, and adds DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries. Note that Open MPI no longer supports --without-$1. If no argument is specified, Open MPI will search default locations for $2 and fall back to an internal version if one is not found.])])],
55
+
[AC_ARG_WITH([$1],
56
+
[AS_HELP_STRING([--with-$1(=DIR)],
57
+
[Build $2 support. DIR can take one of two values: "external" or a valid directory name. "external" forces Open MPI to use an external installation of $2. Supplying a valid directory name also forces Open MPI to use an external installation of $2, and adds DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries. Note that Open MPI no longer supports --without-$1. If no argument is specified, Open MPI will search default locations for $2 and error if one is not found.])])])])
45
58
46
-
AC_ARG_WITH([$1-libdir],
47
-
[AS_HELP_STRING([--with-$1-libdir=DIR],
48
-
[Search for $2 libraries in DIR. Should only be used if an external copy of $2 is being used.])])])
59
+
AC_ARG_WITH([$1-libdir],
60
+
[AS_HELP_STRING([--with-$1-libdir=DIR],
61
+
[Search for $2 libraries in DIR. Should only be used if an external copy of $2 is being used.])])
49
62
50
63
# Bozo check
51
-
AS_IF([test "$with_$1" = "no"],
52
-
[AC_MSG_WARN([It is not possible to configure Open MPI --without-$1])
53
-
AC_MSG_ERROR([Cannot continue])])
64
+
m4_ifval([$4], [],
65
+
[AS_IF([test "$with_$1" = "no"],
66
+
[AC_MSG_WARN([It is not possible to configure Open MPI --without-$1])
0 commit comments