def METHOD_NAME(self):
    args = []
    if "~kernel-module" in self.spec:
        # The kernel module is enabled by default. An attempt of explicit
        # enabling with '--enable-kernel-module' disables the module.
        args.append("--disable-kernel-module")
    if self.spec.satisfies("@:2.6.5"):
        fmt = self.spec.format
        # The following arguments will not be needed starting 2.6.6:
        # https://github.com/hjelmn/xpmem/pull/18
        args.extend(
            [
                fmt("--with-default-prefix={prefix}"),
                fmt("--with-module={prefix.share}/Modules/{name}/{version}"),
            ]
        )
    return args