def METHOD_NAME(self):
    shutil.copy(self._user_info_build["gnu-config"].CONFIG_SUB,
                os.path.join(self._source_subfolder, "config.sub"))
    shutil.copy(self._user_info_build["gnu-config"].CONFIG_GUESS,
                os.path.join(self._source_subfolder, "config.guess"))
    env_build = AutoToolsBuildEnvironment(self, win_bash=tools.os_info.is_windows)
    yes_no = lambda v: "yes" if v else "no"
    args = [
        "--enable-shared={}".format(yes_no(self.options.shared)),
        "--enable-static={}".format(yes_no(not self.options.shared)),
    ]
    with tools.chdir(self._source_subfolder):
        if tools.is_apple_os(self.settings.os):
            # relocatable shared lib on macOS
            tools.replace_in_file(
                "configure",
                "-install_name \\$rpath/\\$soname",
                "-install_name \\@rpath/\\$soname"
            )
        self.run("chmod +x configure")
        env_build.configure(args=args)
        env_build.make()
        env_build.make(args=["install"])