pkg-config: aclocal env (#4736)

Always sets the `pkg-config` environment hint for
autotools.

Required dependency for `autoreconf` of ZeroMQ when
build from source (e.g. v4.2.2) via autotools in `autogen.sh`
step for `autoreconf`.
This commit is contained in:
Axel Huebl 2017-07-17 15:40:22 +02:00 committed by Adam J. Stewart
parent 7e32756fce
commit febf41e0e2

View File

@ -44,15 +44,18 @@ class PkgConfig(AutotoolsPackage):
parallel = False
@when('platform=cray')
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
"""spack built pkg-config on cray's requires adding /usr/local/
and /usr/lib64/ to PKG_CONFIG_PATH in order to access cray '.pc'
files."""
spack_env.append_path('PKG_CONFIG_PATH', '/usr/lib64/pkgconfig')
spack_env.append_path('PKG_CONFIG_PATH', '/usr/local/lib64/pkgconfig')
files.
Adds the ACLOCAL path for autotools."""
spack_env.append_path('ACLOCAL_PATH',
join_path(self.prefix.share, 'aclocal'))
if 'platform=cray' in self.spec:
spack_env.append_path('PKG_CONFIG_PATH',
'/usr/lib64/pkgconfig')
spack_env.append_path('PKG_CONFIG_PATH',
'/usr/local/lib64/pkgconfig')
def configure_args(self):
config_args = ['--enable-shared']