def METHOD_NAME(self, spec, prefix):
    configure_args = ["CXXFLAGS=-std=c++03", "--prefix=" + prefix, "--with-openmp"]
    if "+python" in spec:
        configure_args.append("--with-python")
    else:
        configure_args.append("--without-python")
    if "+mpi" in spec:
        configure_args.append("--with-mpi")
    else:
        configure_args.append("--without-mpi")
    if "+optimize" in spec:
        configure_args.append("--with-optimize")
    else:
        configure_args.append("--without-optimize")
    configure(*configure_args)
    make()
    make("install")