2005-08-21 23:01:39 +04:00
|
|
|
dnl -*- shell-script -*-
|
|
|
|
dnl
|
2005-11-05 22:57:48 +03:00
|
|
|
dnl Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
dnl University Research and Technology
|
|
|
|
dnl Corporation. All rights reserved.
|
|
|
|
dnl Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
dnl of Tennessee Research Foundation. All rights
|
|
|
|
dnl reserved.
|
2005-08-21 23:01:39 +04:00
|
|
|
dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
dnl University of Stuttgart. All rights reserved.
|
|
|
|
dnl Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
dnl All rights reserved.
|
2010-05-12 01:43:19 +04:00
|
|
|
dnl Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
|
2005-08-21 23:01:39 +04:00
|
|
|
dnl $COPYRIGHT$
|
|
|
|
dnl
|
|
|
|
dnl Additional copyrights may follow
|
|
|
|
dnl
|
|
|
|
dnl $HEADER$
|
|
|
|
dnl
|
|
|
|
|
|
|
|
dnl we only want one :)
|
2010-09-18 03:04:06 +04:00
|
|
|
m4_define(MCA_opal_memory_CONFIGURE_MODE, STOP_AT_FIRST)
|
2006-02-08 03:50:42 +03:00
|
|
|
|
2010-09-18 03:04:06 +04:00
|
|
|
AC_DEFUN([MCA_opal_memory_CONFIG],[
|
2006-11-02 14:20:05 +03:00
|
|
|
AC_ARG_WITH([memory-manager],
|
|
|
|
[AC_HELP_STRING([--with-memory-manager=TYPE],
|
|
|
|
[Use TYPE for intercepting memory management
|
|
|
|
calls to control memory pinning.])])
|
|
|
|
|
2006-02-08 03:50:42 +03:00
|
|
|
memory_base_found=0
|
2012-01-27 22:05:48 +04:00
|
|
|
memory_base_want=1
|
|
|
|
AS_IF([test "$with_memory_manager" = "no"], [memory_base_want=0])
|
|
|
|
MCA_CONFIGURE_FRAMEWORK($1, $2, $memory_base_want)
|
2006-02-08 03:50:42 +03:00
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED([OMPI_MEMORY_HAVE_COMPONENT], [$memory_base_found],
|
|
|
|
[Whether any opal memory mca components were found])
|
2010-05-12 01:43:19 +04:00
|
|
|
|
|
|
|
# See if someone set to use their header file
|
|
|
|
if test "$memory_base_include" = "" ; then
|
|
|
|
memory_base_include="base/empty.h"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED([MCA_memory_IMPLEMENTATION_HEADER],
|
|
|
|
["opal/mca/memory/$memory_base_include"],
|
|
|
|
[Header to include for parts of the memory implementation])
|
2006-02-08 03:50:42 +03:00
|
|
|
])
|