def METHOD_NAME(self, *args, **kwargs):
    """Configure Scalasca build, set configure options for compiler, MPI and dependencies."""
    # compiler and MPI suite should always be specified -- MUCH quicker and SAFER than autodetect
    # --compiler=(gnu|pgi|intel|path|ibm|sun|clang)
    # --mpi=(mpich|mpich2|mpich3|lam|openmpi|intel|intel2|hp|scali|mpibull2|bullxmpi|sun|ibmpoe|intelpoe)
    comp_opts = {
        toolchain.GCC: 'gnu',
        toolchain.INTELCOMP: 'intel',
    }
    comp_fam = self.toolchain.comp_family()
    if comp_fam in comp_opts:
        self.cfg.update('configopts', "--compiler=%s" % comp_opts[comp_fam])
    else:
        raise EasyBuildError("Compiler family %s not supported yet (only: %s)",
                             comp_fam, ', '.join(comp_opts.keys()))
    mpi_opts = {
        toolchain.INTELMPI: 'intel2',  # intel: Intel MPI v1.x (ancient)
        toolchain.OPENMPI: 'openmpi',
        toolchain.MPICH: 'mpich3',  # In EB terms, MPICH means MPICH 3.x; MPICH 1.x is ancient and unsupported
        toolchain.MPICH2: 'mpich2',
    }
    mpi_fam = self.toolchain.mpi_family()
    if mpi_fam in mpi_opts:
        self.cfg.update('configopts', "--mpi=%s --enable-all-mpi-wrappers" % mpi_opts[mpi_fam])
    else:
        raise EasyBuildError("MPI family %s not supported yet (only: %s)", mpi_fam, ', '.join(mpi_opts.keys()))
    # auto-detection for dependencies mostly works fine, but hard specify paths anyway to have full control
    deps = {
        'binutils': ['--with-binutils=%s'],
        'OTF': ['--with-otf=%s'],
        'OPARI2': ['--with-opari2=%s'],
        'PAPI': ['--with-papi=%s'],
        'PDT': ['--with-pdt=%s'],
    }
    for (dep_name, dep_opts) in deps.items():
        dep_root = get_software_root(dep_name)
        if dep_root:
            for dep_opt in dep_opts:
                self.cfg.update('configopts', dep_opt % dep_root)
    if get_software_root('Cube'):
        self.cfg.update('configopts', '--disable-gui')
    super(EB_Scalasca1, self).METHOD_NAME(*args, **kwargs)