1dnl -*- shell-script -*- 2dnl 3dnl Copyright (c) 2016 Los Alamos National Security, LLC. All rights 4dnl reserved. 5dnl Copyright (c) 2016-2018 Cisco Systems, Inc. All rights reserved 6dnl Copyright (c) 2016 Research Organization for Information Science 7dnl and Technology (RIST). All rights reserved. 8dnl Copyright (c) 2018 Intel, Inc. All rights reserved. 9dnl $COPYRIGHT$ 10dnl 11dnl Additional copyrights may follow 12dnl 13dnl $HEADER$ 14dnl 15AC_DEFUN([PMIX_SUMMARY_ADD],[ 16 PMIX_VAR_SCOPE_PUSH([pmix_summary_section pmix_summary_line pmix_summary_section_current]) 17 18 dnl need to replace spaces in the section name with somethis else. _ seems like a reasonable 19 dnl choice. if this changes remember to change PMIX_PRINT_SUMMARY as well. 20 pmix_summary_section=$(echo $1 | tr ' ' '_') 21 pmix_summary_line="$2: $4" 22 pmix_summary_section_current=$(eval echo \$pmix_summary_values_$pmix_summary_section) 23 24 if test -z "$pmix_summary_section_current" ; then 25 if test -z "$pmix_summary_sections" ; then 26 pmix_summary_sections=$pmix_summary_section 27 else 28 pmix_summary_sections="$pmix_summary_sections $pmix_summary_section" 29 fi 30 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_line\" 31 else 32 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_section_current,$pmix_summary_line\" 33 fi 34 35 PMIX_VAR_SCOPE_POP 36]) 37 38AC_DEFUN([PMIX_SUMMARY_PRINT],[ 39 PMIX_VAR_SCOPE_PUSH([pmix_summary_section pmix_summary_section_name]) 40 cat <<EOF 41 42PMIx configuration: 43----------------------- 44Version: $PMIX_MAJOR_VERSION.$PMIX_MINOR_VERSION.$PMIX_RELEASE_VERSION$PMIX_GREEK_VERSION 45EOF 46 47 if test $WANT_DEBUG = 0 ; then 48 echo "Debug build: no" 49 else 50 echo "Debug build: yes" 51 fi 52 53 if test ! -z $with_platform ; then 54 echo "Platform file: $with_platform" 55 else 56 echo "Platform file: (none)" 57 fi 58 59 echo 60 61 for pmix_summary_section in $(echo $pmix_summary_sections) ; do 62 pmix_summary_section_name=$(echo $pmix_summary_section | tr '_' ' ') 63 echo "$pmix_summary_section_name" 64 echo "-----------------------" 65 echo "$(eval echo \$pmix_summary_values_$pmix_summary_section)" | tr ',' $'\n' | sort -f 66 echo " " 67 done 68 69 if test $WANT_DEBUG = 1 ; then 70 cat <<EOF 71***************************************************************************** 72 THIS IS A DEBUG BUILD! DO NOT USE THIS BUILD FOR PERFORMANCE MEASUREMENTS! 73***************************************************************************** 74 75EOF 76 fi 77 78 PMIX_VAR_SCOPE_POP 79]) 80