|
| 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) 2011-2013 Los Alamos National Security, LLC. |
| 14 | +# All rights reserved. |
| 15 | +# Copyright (c) 2010-2016 Cisco Systems, Inc. All rights reserved. |
| 16 | +# Copyright (c) 2013-2016 Intel, Inc. All rights reserved. |
| 17 | +# Copyright (c) 2015-2016 Research Organization for Information Science |
| 18 | +# and Technology (RIST). All rights reserved. |
| 19 | +# $COPYRIGHT$ |
| 20 | +# |
| 21 | +# Additional copyrights may follow |
| 22 | +# |
| 23 | +# $HEADER$ |
| 24 | +# |
| 25 | + |
| 26 | +# MCA_pmix_ext3x_CONFIG([action-if-found], [action-if-not-found]) |
| 27 | +# ----------------------------------------------------------- |
| 28 | +AC_DEFUN([MCA_opal_pmix_ext3x_CONFIG],[ |
| 29 | + AC_CONFIG_FILES([opal/mca/pmix/ext3x/Makefile]) |
| 30 | + |
| 31 | + # check to see |
| 32 | + # if we are linking to an external v3.x library. If not, then |
| 33 | + # do not use this component. |
| 34 | + AC_MSG_CHECKING([if external v3.x component is to be used]) |
| 35 | + AS_IF([test "$opal_external_pmix_happy" = "yes"], |
| 36 | + [AS_IF([test "$opal_external_pmix_version" = "3X"], |
| 37 | + [AC_MSG_RESULT([yes - using an external v3.x library]) |
| 38 | + opal_pmix_ext3x_happy=1 |
| 39 | + # Build flags for our Makefile.am |
| 40 | + opal_pmix_ext3x_CPPFLAGS=$opal_external_pmix_CPPFLAGS |
| 41 | + opal_pmix_ext3x_LDFLAGS=$opal_external_pmix_LDFLAGS |
| 42 | + opal_pmix_ext3x_LIBS=$opal_external_pmix_LIBS |
| 43 | + # setup wrapper flags |
| 44 | + pmix_ext3x_WRAPPER_EXTRA_LDFLAGS=$opal_external_pmix_LDFLAGS |
| 45 | + pmix_ext3x_WRAPPER_EXTRA_LIBS=$opal_external_pmix_LIBS], |
| 46 | + [AC_MSG_RESULT([no - disqualifying this component]) |
| 47 | + opal_pmix_ext3x_happy=0])], |
| 48 | + [AC_MSG_RESULT([no - disqualifying this component]) |
| 49 | + opal_pmix_ext3x_happy=0]) |
| 50 | + |
| 51 | + AC_SUBST([opal_pmix_ext3x_LIBS]) |
| 52 | + AC_SUBST([opal_pmix_ext3x_CPPFLAGS]) |
| 53 | + AC_SUBST([opal_pmix_ext3x_LDFLAGS]) |
| 54 | + AC_SUBST([opal_pmix_ext3x_DEPENDENCIES]) |
| 55 | + |
| 56 | + AS_IF([test $opal_pmix_ext3x_happy -eq 1], |
| 57 | + [$1], |
| 58 | + [$2]) |
| 59 | + |
| 60 | +])dnl |
0 commit comments