|
| 1 | +# -*- shell-script -*- |
| 2 | +# |
| 3 | +# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana |
| 4 | +# University Research and Technology |
| 5 | +# Corporation. All rights reserved. |
| 6 | +# Copyright (c) 2004-2005 The University of Tennessee and The University |
| 7 | +# of Tennessee Research Foundation. All rights |
| 8 | +# reserved. |
| 9 | +# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, |
| 10 | +# University of Stuttgart. All rights reserved. |
| 11 | +# Copyright (c) 2004-2005 The Regents of the University of California. |
| 12 | +# All rights reserved. |
| 13 | +# Copyright (c) 2007-2015 Cisco Systems, Inc. All rights reserved. |
| 14 | +# Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved. |
| 15 | +# Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved. |
| 16 | +# $COPYRIGHT$ |
| 17 | +# |
| 18 | +# Additional copyrights may follow |
| 19 | +# |
| 20 | +# $HEADER$ |
| 21 | +# |
| 22 | + |
| 23 | +# |
| 24 | +# This component must be linked statically into libopen-pal because it |
| 25 | +# registers a provider for libibverbs at run time, and there's no |
| 26 | +# libibverbs API to *un*register a plugin. Hence, we can't allow this |
| 27 | +# code to be dlclosed/removed from the process. Hence: it must be |
| 28 | +# compiled statically into libopen-pal. |
| 29 | +# |
| 30 | +AC_DEFUN([MCA_opal_common_verbs_usnic_COMPILE_MODE], [ |
| 31 | + AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) |
| 32 | + $4="static" |
| 33 | + AC_MSG_RESULT([$$4]) |
| 34 | +]) |
| 35 | + |
| 36 | +# MCA_opal_common_verbs_usnic_CONFIG([action-if-can-compile], |
| 37 | +# [action-if-cant-compile]) |
| 38 | +# ------------------------------------------------ |
| 39 | +AC_DEFUN([MCA_opal_common_verbs_usnic_CONFIG],[ |
| 40 | + AC_CONFIG_FILES([opal/mca/common/verbs_usnic/Makefile]) |
| 41 | + common_verbs_usnic_happy="no" |
| 42 | + |
| 43 | + OPAL_CHECK_OPENFABRICS([common_verbs_usnic], |
| 44 | + [common_verbs_usnic_happy="yes"]) |
| 45 | + |
| 46 | + AS_IF([test "$common_verbs_usnic_happy" = "yes"], |
| 47 | + [$1], |
| 48 | + [$2]) |
| 49 | + |
| 50 | + # substitute in the things needed to build openib |
| 51 | + AC_SUBST([common_verbs_usnic_CPPFLAGS]) |
| 52 | + AC_SUBST([common_verbs_usnic_LDFLAGS]) |
| 53 | + AC_SUBST([common_verbs_usnic_LIBS]) |
| 54 | +])dnl |
0 commit comments