AutotoolsPackage: add aclocal for all build deps (#15784)

This commit is contained in:
Adam J. Stewart
2020-04-17 16:30:21 -05:00
committed by GitHub
parent 28995b25bc
commit ea8793f8f5

View File

@@ -219,11 +219,11 @@ def autoreconf(self, spec, prefix):
# This line is what is needed most of the time # This line is what is needed most of the time
# --install, --verbose, --force # --install, --verbose, --force
autoreconf_args = ['-ivf'] autoreconf_args = ['-ivf']
if 'pkgconfig' in spec: for dep in spec.dependencies(deptype='build'):
autoreconf_args += [ if os.path.exists(dep.prefix.share.aclocal):
'-I', autoreconf_args.extend([
os.path.join(spec['pkgconfig'].prefix, 'share', 'aclocal'), '-I', dep.prefix.share.aclocal
] ])
autoreconf_args += self.autoreconf_extra_args autoreconf_args += self.autoreconf_extra_args
m.autoreconf(*autoreconf_args) m.autoreconf(*autoreconf_args)