File: opal_set_lib_name.m4

package info (click to toggle)
openmpi 5.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 202,312 kB
  • sloc: ansic: 612,441; makefile: 42,495; sh: 11,230; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,154; python: 1,856; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (53 lines) | stat: -rw-r--r-- 1,694 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
46
47
48
49
50
51
52
53
# -*- shell-script -*-
#
# Copyright (c) 2014      Cisco Systems, Inc.  All rights reserved.
# Copyright (c) 2016      IBM Corporation.  All rights reserved.
# Copyright (c) 2020      Intel, Inc.  All rights reserved.
# Copyright (c) 2022      Amazon.com, Inc. or its affiliates.
#                         All Rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# OPAL_SET_LIB_PREFIX([library_prefix]
#
# This macro sets a name for the libopen-pal library.  Specifically,
# libopen-pal.la becomes libopen-pal.la by default.
#
# --------------------------------------------------------
AC_DEFUN([OPAL_SET_LIB_NAME],[
    AS_IF([test "$opal_lib_prefix_set" = "yes"],
          [AC_MSG_WARN([OPAL lib name was already set!])
           AC_MSG_WARN([This is a configury programming error])
           AC_MSG_ERROR([Cannot continue])])

    OPAL_LIB_NAME=$1
    opal_lib_prefix_set=yes
    AC_SUBST(OPAL_LIB_NAME)
])dnl

#
# Rename 'libmpi' and 'libmpi_FOO' with a configure time option.
#
AC_DEFUN([OMPI_SET_LIB_NAME],[
    AC_MSG_CHECKING([if want custom libmpi(_FOO) name])
    AC_ARG_WITH([libmpi-name],
        [AS_HELP_STRING([--with-libmpi-name=STRING],
                ["Replace \"libmpi(_FOO)\" with \"libSTRING(_FOO)\" (default=mpi)"])])

    AS_IF([test "$with_libmpi_name" = "no"],
        [AC_MSG_RESULT([Error])
         AC_MSG_WARN([Invalid to specify --without-libmpi-name])
         AC_MSG_ERROR([Cannot continue])])

    AS_IF([test "$with_libmpi_name" = "" || test "$with_libmpi_name" = "yes"],
        [with_libmpi_name="mpi"])

    OMPI_LIBMPI_NAME=${with_libmpi_name}

    AC_MSG_RESULT([$OMPI_LIBMPI_NAME])
    AC_SUBST(OMPI_LIBMPI_NAME)
])dnl