diff --git a/recipes/autoconf/all/conanfile.py b/recipes/autoconf/all/conanfile.py index 14559ada2dd5e..bf44388f65ff8 100644 --- a/recipes/autoconf/all/conanfile.py +++ b/recipes/autoconf/all/conanfile.py @@ -37,7 +37,7 @@ def package_id(self): self.info.clear() def requirements(self): - self.requires("m4/1.4.19", run=True) # m4 is called by autom4te making it a run-time requirement + self.requires("m4/1.4.19") def build_requirements(self): if self._settings_build.os == "Windows": @@ -79,7 +79,7 @@ def _patch_sources(self): apply_conandata_patches(self) replace_in_file(self, os.path.join(self.source_folder, "Makefile.in"), "M4 = /usr/bin/env m4", "#M4 = /usr/bin/env m4") - if self.settings.os == "Windows": + if self._settings_build.os == "Windows": # Handle vagaries of Windows line endings replace_in_file(self, os.path.join(self.source_folder, "bin", "autom4te.in"), "$result =~ s/^\\n//mg;", "$result =~ s/^\\R//mg;")