def METHOD_NAME(self):
    spec = self.spec
    config_args = [
        "--enable-shared",
        "--with-pm={0}".format("hydra" if "+hydra" in spec else "no"),
        "--with-pmi={0}".format("yes" if "+pmi" in spec else "no"),
        "--{0}-romio".format("enable" if "+romio" in spec else "disable"),
        "--{0}-ibverbs".format("with" if "+verbs" in spec else "without"),
    ]
    # setup device configuration
    device_config = ""
    if "device=ch4" in spec:
        device_config = "--with-device=ch4:"
    elif "device=ch3" in spec:
        device_config = "--with-device=ch3:nemesis:"
    if "netmod=ucx" in spec:
        device_config += "ucx"
    elif "netmod=ofi" in spec:
        device_config += "ofi"
    elif "netmod=mxm" in spec:
        device_config += "mxm"
    elif "netmod=tcp" in spec:
        device_config += "tcp"
    config_args.append(device_config)
    return config_args