src/tools/prte_info/param.c
/*
 * do_config
 * Accepts:
 *      - want_all: boolean flag; TRUE -> display all options
 *                                FALSE -> display selected options
 *
 * This function displays all the options with which the current
 * installation of prte was configured. There are many options here
 * that are carried forward from PRTE-7 and are not mca parameters
 * in PRTE-10. I have to dig through the invalid options and replace
 * them with PRTE-10 options.
 */
do_config
Accepts:
- want_all: boolean flag; TRUE -> display all options
FALSE -> display selected options

This function displays all the options with which the current
installation of prte was configured. There are many options here
that are carried forward from PRTE-7 and are not mca parameters
in PRTE-10. I have to dig through the invalid options and replace
them with PRTE-10 options.
do_config Accepts : - want_all : boolean flag ; TRUE - > display all options FALSE - > display selected options This function displays all the options with which the current installation of prte was configured . There are many options here that are carried forward from PRTE - 7 and are not mca parameters in PRTE - 10 . I have to dig through the invalid options and replace them with PRTE - 10 options .
void prte_info_do_config(bool want_all)
{
    char *debug;
    char *have_dl;
    char *prun_prefix_by_default;
    char *symbol_visibility;
    char *manpages;
    char *resilience;
    debug = PRTE_ENABLE_DEBUG ? "yes" : "no";
    have_dl = PRTE_HAVE_DL_SUPPORT ? "yes" : "no";
    prun_prefix_by_default = PRTE_WANT_PRTE_PREFIX_BY_DEFAULT ? "yes" : "no";
    symbol_visibility = PRTE_C_HAVE_VISIBILITY ? "yes" : "no";
    manpages = "yes";
    resilience = PRTE_ENABLE_FT ? "yes" : "no";
    prte_info_out("Configured by", "config:user", PRTE_CONFIGURE_USER);
    prte_info_out("Configured on", "config:timestamp", PRTE_CONFIGURE_DATE);
    prte_info_out("Configure host", "config:host", PRTE_CONFIGURE_HOST);
    prte_info_out("Configure command line", "config:cli", PRTE_CONFIGURE_CLI);
    prte_info_out("Built by", "build:user", PRTE_BUILD_USER);
    prte_info_out("Built on", "build:timestamp", PRTE_BUILD_DATE);
    prte_info_out("Built host", "build:host", PRTE_BUILD_HOST);
    prte_info_out("C compiler", "compiler:c:command", PRTE_CC);
    prte_info_out("C compiler absolute", "compiler:c:absolute", PRTE_CC_ABSOLUTE);
    prte_info_out("C compiler family name", "compiler:c:familyname",
                  PLATFORM_STRINGIFY(PLATFORM_COMPILER_FAMILYNAME));
    prte_info_out("C compiler version", "compiler:c:version",
                  PLATFORM_STRINGIFY(PLATFORM_COMPILER_VERSION_STR));
    if (want_all) {
        prte_info_out_int("C char size", "compiler:c:sizeof:char", sizeof(char));
        prte_info_out_int("C bool size", "compiler:c:sizeof:bool", sizeof(bool));
        prte_info_out_int("C short size", "compiler:c:sizeof:short", sizeof(short));
        prte_info_out_int("C int size", "compiler:c:sizeof:int", sizeof(int));
        prte_info_out_int("C long size", "compiler:c:sizeof:long", sizeof(long));
        prte_info_out_int("C float size", "compiler:c:sizeof:float", sizeof(float));
        prte_info_out_int("C double size", "compiler:c:sizeof:double", sizeof(double));
        prte_info_out_int("C pointer size", "compiler:c:sizeof:pointer", sizeof(void *));
        prte_info_out_int("C char align", "compiler:c:align:char", ALIGNOF_CHAR);
        prte_info_out("C bool align", "compiler:c:align:bool", "skipped");
        prte_info_out_int("C int align", "compiler:c:align:int", ALIGNOF_INT);
        prte_info_out_int("C float align", "compiler:c:align:float", ALIGNOF_FLOAT);
        prte_info_out_int("C double align", "compiler:c:align:double", ALIGNOF_DOUBLE);
    }
    prte_info_out("Thread support", "option:threads", "posix");
    if (want_all) {
        prte_info_out("Build CFLAGS", "option:build:cflags", PRTE_BUILD_CFLAGS);
        prte_info_out("Build LDFLAGS", "option:build:ldflags", PRTE_BUILD_LDFLAGS);
        prte_info_out("Build LIBS", "option:build:libs", PRTE_BUILD_LIBS);
        prte_info_out("Wrapper extra CFLAGS", "option:wrapper:extra_cflags",
                      PRTE_WRAPPER_EXTRA_CFLAGS);
        prte_info_out("Wrapper extra LDFLAGS", "option:wrapper:extra_ldflags",
                      PRTE_WRAPPER_EXTRA_LDFLAGS);
        prte_info_out("Wrapper extra LIBS", "option:wrapper:extra_libs", PRTE_WRAPPER_EXTRA_LIBS);
    }
    prte_info_out("Internal debug support", "option:debug", debug);
    prte_info_out("dl support", "option:dlopen", have_dl);
    prte_info_out("prun default --prefix", "prun:prefix_by_default", prun_prefix_by_default);
    prte_info_out("Symbol vis. support", "options:visibility", symbol_visibility);
    prte_info_out("Manpages built", "options:man-pages", manpages);
    prte_info_out("Resilience support", "options:ft", resilience);
}
void prte_info_do_config ( bool want_all ) { char * debug ; char * have_dl ; char * prun_prefix_by_default ; char * symbol_visibility ; char * manpages ; char * resilience ; debug = PRTE_ENABLE_DEBUG ? " " : " " ; have_dl = PRTE_HAVE_DL_SUPPORT ? " " : " " ; prun_prefix_by_default = PRTE_WANT_PRTE_PREFIX_BY_DEFAULT ? " " : " " ; symbol_visibility = PRTE_C_HAVE_VISIBILITY ? " " : " " ; manpages = " " ; resilience = PRTE_ENABLE_FT ? " " : " " ; prte_info_out ( " " , " " , PRTE_CONFIGURE_USER ) ; prte_info_out ( " " , " " , PRTE_CONFIGURE_DATE ) ; prte_info_out ( " " , " " , PRTE_CONFIGURE_HOST ) ; prte_info_out ( " " , " " , PRTE_CONFIGURE_CLI ) ; prte_info_out ( " " , " " , PRTE_BUILD_USER ) ; prte_info_out ( " " , " " , PRTE_BUILD_DATE ) ; prte_info_out ( " " , " " , PRTE_BUILD_HOST ) ; prte_info_out ( " " , " " , PRTE_CC ) ; prte_info_out ( " " , " " , PRTE_CC_ABSOLUTE ) ; prte_info_out ( " " , " " , PLATFORM_STRINGIFY ( PLATFORM_COMPILER_FAMILYNAME ) ) ; prte_info_out ( " " , " " , PLATFORM_STRINGIFY ( PLATFORM_COMPILER_VERSION_STR ) ) ; if ( want_all ) { prte_info_out_int ( " " , " " , sizeof ( char ) ) ; prte_info_out_int ( " " , " " , sizeof ( bool ) ) ; prte_info_out_int ( " " , " " , sizeof ( short ) ) ; prte_info_out_int ( " " , " " , sizeof ( int ) ) ; prte_info_out_int ( " " , " " , sizeof ( long ) ) ; prte_info_out_int ( " " , " " , sizeof ( float ) ) ; prte_info_out_int ( " " , " " , sizeof ( double ) ) ; prte_info_out_int ( " " , " " , sizeof ( void * ) ) ; prte_info_out_int ( " " , " " , ALIGNOF_CHAR ) ; prte_info_out ( " " , " " , " " ) ; prte_info_out_int ( " " , " " , ALIGNOF_INT ) ; prte_info_out_int ( " " , " " , ALIGNOF_FLOAT ) ; prte_info_out_int ( " " , " " , ALIGNOF_DOUBLE ) ; } prte_info_out ( " " , " " , " " ) ; if ( want_all ) { prte_info_out ( " " , " " , PRTE_BUILD_CFLAGS ) ; prte_info_out ( " " , " " , PRTE_BUILD_LDFLAGS ) ; prte_info_out ( " " , " " , PRTE_BUILD_LIBS ) ; prte_info_out ( " " , " " , PRTE_WRAPPER_EXTRA_CFLAGS ) ; prte_info_out ( " " , " " , PRTE_WRAPPER_EXTRA_LDFLAGS ) ; prte_info_out ( " " , " " , PRTE_WRAPPER_EXTRA_LIBS ) ; } prte_info_out ( " " , " " , debug ) ; prte_info_out ( " " , " " , have_dl ) ; prte_info_out ( " " , " " , prun_prefix_by_default ) ; prte_info_out ( " " , " " , symbol_visibility ) ; prte_info_out ( " " , " " , manpages ) ; prte_info_out ( " " , " " , resilience ) ; }
do_config
 Accepts:
      - want_all: boolean flag; TRUE -> display all options
                                FALSE -> display selected options
do_config Accepts : - want_all : boolean flag ; TRUE - > display all options FALSE - > display selected options
/* setup the strings that don't require allocations*/ /* output values */