|
| 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) 2010 Cisco Systems, Inc. All rights reserved. |
| 14 | +# Copyright (c) 2015 Research Organization for Information Science |
| 15 | +# and Technology (RIST). All rights reserved. |
| 16 | +# Copyright (c) 2019 Sandia National Laboratories. All rights reserved. |
| 17 | +# Copyright (c) 2019 Triad National Security, LLC. All rights |
| 18 | +# $COPYRIGHT$ |
| 19 | +# |
| 20 | +# Additional copyrights may follow |
| 21 | +# |
| 22 | +# $HEADER$ |
| 23 | +# |
| 24 | +AC_DEFUN([MCA_opal_threads_argobots_PRIORITY], [30]) |
| 25 | + |
| 26 | +AC_DEFUN([MCA_opal_threads_argobots_COMPILE_MODE], [ |
| 27 | + AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) |
| 28 | + $4="static" |
| 29 | + AC_MSG_RESULT([$$4]) |
| 30 | +]) |
| 31 | + |
| 32 | +AC_DEFUN([MCA_opal_threads_argobots_POST_CONFIG],[ |
| 33 | + AS_IF([test "$1" = "1"], [threads_base_include="argobots/threads_argobots_threads.h"]) |
| 34 | +])dnl |
| 35 | + |
| 36 | +AC_DEFUN([MCA_opal_mutex_argobots_POST_CONFIG],[ |
| 37 | + AS_IF([test "$1" = "1"], [mutex_base_include="argobots/threads_argobots_mutex.h"]) |
| 38 | + AC_MSG_CHECKING([mutex_base_include = $mutex_base_include]) |
| 39 | +])dnl |
| 40 | + |
| 41 | +AC_DEFUN([MCA_opal_tsd_argobots_POST_CONFIG],[ |
| 42 | + AS_IF([test "$1" = "1"], [threads_base_include="argobots/threads_argobots_tsd.h"]) |
| 43 | + AC_MSG_CHECKING([threads_base_include = $threads_base_include]) |
| 44 | +])dnl |
| 45 | + |
| 46 | +AC_DEFUN([MCA_opal_wait_sync_argobots_POST_CONFIG],[ |
| 47 | + AS_IF([test "$1" = "1"], [wait_sync_base_include="argobots/threads_argobots_wait_sync.h"]) |
| 48 | + AC_MSG_CHECKING([wait_sync_base_include = $wait_sync_base_include]) |
| 49 | +])dnl |
| 50 | + |
| 51 | +# MCA_threads_argobots_CONFIG(action-if-can-compile, |
| 52 | +# [action-if-cant-compile]) |
| 53 | +# ------------------------------------------------ |
| 54 | +AC_DEFUN([MCA_opal_threads_argobots_CONFIG],[ |
| 55 | + AC_CONFIG_FILES([opal/mca/threads/argobots/Makefile]) |
| 56 | + |
| 57 | + AC_MSG_CHECKING([HAVE_THREAD_PKG_TYPE = $HAVE_THREAD_PKG_TYPE]) |
| 58 | + |
| 59 | + AS_IF([test "$HAVE_THREAD_PKG_TYPE" = "argobots"], |
| 60 | + [$1], |
| 61 | + [$2]) |
| 62 | +]) |
0 commit comments