File: configure.m4

package info (click to toggle)
openmpi 4.1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 127,592 kB
  • sloc: ansic: 690,998; makefile: 43,047; f90: 19,220; sh: 7,182; java: 6,360; perl: 3,590; cpp: 2,227; python: 1,350; lex: 989; fortran: 61; tcl: 12
file content (45 lines) | stat: -rw-r--r-- 1,498 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- shell-script -*-
#
# Copyright (c) 2012      Los Alamos National Security, LLC.  All rights reserved.
# Copyright (c) 2013      Sandia National Laboratories. All rights reserved.
#
# Copyright (c) 2017      Intel, Inc. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# Higher priority to override the default
AC_DEFUN([MCA_ompi_rte_pmix_PRIORITY], [50])

# Force this component to compile in static-only mode
AC_DEFUN([MCA_ompi_rte_pmix_COMPILE_MODE], [
    AC_MSG_CHECKING([for MCA component $2:$3 compile mode])
    $4="static"
    AC_MSG_RESULT([$$4])
])

# If component was selected, $1 will be 1 and we should set the base header
AC_DEFUN([MCA_ompi_rte_pmix_POST_CONFIG],[
    AS_IF([test "$1" = "1"], [ompi_rte_base_include="pmix/rte_pmix.h"])
    AC_DEFINE_UNQUOTED([OMPI_RTE_PMIX], [$1],
        [Defined to 1 if the OMPI runtime component is PMIX])
    AM_CONDITIONAL([OMPI_RTE_PMIX], [test $1 = 1])
])dnl

# MCA_rte_pmix_CONFIG([action-if-can-compile],
#                     [action-if-cant-compile])
# ------------------------------------------------
AC_DEFUN([MCA_ompi_rte_pmix_CONFIG],[
    AC_CONFIG_FILES([ompi/mca/rte/pmix/Makefile])

    AC_ARG_WITH([ompi-pmix-rte],
        AC_HELP_STRING([--with-ompi-pmix-rte],
                       [Use PMIx as the OMPI run-time environment (default: no)]))
    AS_IF([test "$with_ompi_pmix_rte" == "yes"],
          [$1
           AC_MSG_NOTICE([PMIx RTE selected by user])],
          [$2])
])