def METHOD_NAME(self):
    spec = self.spec
    args = ["--with-gmp", "--with-mpfr"]
    if spec.satisfies("^intel-mkl"):
        if "+fftw" in spec or "+lapack" in spec:
            args.append("--enable-mkl")
    else:
        if "+fftw" in spec:
            args.append("--with-fftw={0}".format(self.spec["fftw-api"].prefix))
        if "+lapack" in spec:
            args.append("--enable-lapack={0}".format(self.spec["lapack"].prefix))
            # lapack is searched only as `-llapack`, so anything else
            # wouldn't be found, causing an error.
            args.append("LIBS={0}".format(self.spec["lapack"].libs.ld_flags))
    if "comms=none" not in spec:
        # The build system can easily get very confused about MPI support
        # and what linker to use.  In many case it'd end up building the
        # code with support for MPI but without using `mpicxx` or linking to
        # `-lmpi`, wreaking havoc.  Forcing `CXX` to be mpicxx should help.
        args.extend(["CC={0}".format(spec["mpi"].mpicc), "CXX={0}".format(spec["mpi"].mpicxx)])
    args += self.enable_or_disable("timers")
    args += self.enable_or_disable("chroma")
    args += self.enable_or_disable("doxygen-doc")
    if "avx512" in spec.target:
        args.append("--enable-simd=AVX512")
    elif "avx2" in spec.target:
        args.append("--enable-simd=AVX2")
    elif "avx" in spec.target:
        if "fma4" in spec.target:
            args.append("--enable-simd=AVXFMA4")
        elif "fma" in spec.target:
            args.append("--enable-simd=AVXFMA")
        else:
            args.append("--enable-simd=AVX")
    elif "sse4_2" in spec.target:
        args.append("--enable-simd=SSE4")
    elif spec.target == "a64fx":
        args.append("--enable-simd=A64FX")
    elif "neon" in spec.target:
        args.append("--enable-simd=NEONv8")
    else:
        args.extend(
            [
                "--enable-simd=GEN",
                "--enable-gen-simd-width={0}".format(spec.variants["gen-simd-width"].value),
            ]
        )
    args.append("--enable-comms={0}".format(spec.variants["comms"].value))
    args.append("--enable-rng={0}".format(spec.variants["rng"].value))
    return args