1
1
openmpi/opal/mca/crs/self/configure.m4
Josh Hursey 063f5b2ff6 After talking through the patch with Jeff, we have a couple more fixes to r21766 that should also go over to v1.3 in Ticket #1987.
* Check for {{{dlfcn.h}}} in the self component's configure.m4 (also clean up the .m4 a bit.
 * Adjust the priority of the BLCR component so that the self component has a higher priority (if the application went to the trouble of writing the routines, why not use them.) The 'self' component checks for the appropriate functions during query, so it know if it -can- be used during component selection.
 * Adjust some copyrights that I missed before
 * Fix a warning when casing the result of dlsym() into a function pointer. There is a bit of pointer magic to make this happen (thanks to the following website, and RedHat EL 4 man pages for illustrating it:
  http://www.opengroup.org/onlinepubs/009695399/functions/dlsym.html

Passing to Jeff for a final review of the patch before moving to v1.3.

This commit was SVN r21768.

The following SVN revision numbers were found above:
  r21766 --> open-mpi/ompi@91e52d062b
2009-08-05 22:07:37 +00:00

47 строки
1.5 KiB
Bash

# -*- shell-script -*-
#
# Copyright (c) 2004-2009 The Trustees of Indiana University.
# All rights reserved.
# Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
# All rights reserved.
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
# University of Stuttgart. All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
# All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
# MCA_crs_self_CONFIG([action-if-found], [action-if-not-found])
# -----------------------------------------------------------
AC_DEFUN([MCA_crs_self_CONFIG],[
# If we don't want FT, don't compile this component
AS_IF([test "$ompi_want_ft" = "1"],
[crs_self_good="yes"],
[crs_self_good="no"])
# We need the dlfcn.h so we can access dlsym and friends
AS_IF([test "$crs_self_good" = "yes"],
[AC_CHECK_HEADER([dlfcn.h],
[crs_self_good="yes"],
[crs_self_good="no"])],
[crs_self_good="no"])
# If they did not ask for dlopen support,
# they probably do not want this component either
AS_IF([test "$crs_self_good" = "yes"],
[AS_IF([test "$OPAL_ENABLE_DLOPEN_SUPPORT" = "1"],
[crs_self_good="yes"],
[crs_self_good="no"])],
[crs_self_good="no"])
AS_IF([test "$crs_self_good" = "yes"],
[$1],
[$2])
])dnl