def METHOD_NAME(self, spec, prefix):
    args = [
        "--prefix=" + prefix,
        "--with-compiler=" + os.environ["CC"],
        "--with-libxml2-inc={0}{1}libxml2".format(spec["libxml2"].prefix.include, os.sep),
        "--with-libxml2-lib=" + spec["libxml2"].prefix.lib,
        "--with-log4cpp-inc=" + spec["log4cpp"].prefix.include,
        "--with-log4cpp-lib=" + spec["log4cpp"].prefix.lib,
        "--with-pythia6-lib=" + spec["pythia6"].prefix.lib,
    ]
    if self.spec.satisfies("@:2"):
        args += [
            "--enable-lhapdf",
            "--with-lhapdf-inc=" + spec["lhapdf5"].prefix.include,
            "--with-lhapdf-lib=" + spec["lhapdf5"].prefix.lib,
            # must be enabled or some GENIE 2 versions fail to link
            # this option was removed in GENIE 3
            "--enable-rwght",
        ]
    else:
        args += [
            "--enable-lhapdf6",
            "--with-lhapdf6-inc=" + spec["lhapdf"].prefix.include,
            "--with-lhapdf6-lib=" + spec["lhapdf"].prefix.lib,
        ]
    if "+vleextension" in self.spec:
        args += ["--enable-vle-extension"]
    if "+t2k" in self.spec:
        args += ["--enable-t2k"]
    if "+fnal" in self.spec:
        args += ["--enable-fnal"]
    if "+atmo" in self.spec:
        args += ["--enable-atmo"]
    if "+nucleondecay" in self.spec:
        args += ["--enable-nucleon-decay"]
    if "+masterclass" in self.spec:
        args += ["--enable-masterclass"]
    return args