Fix autotools issues (#4463)
Add ACLOCAL_PATH to libtool and pkg-config. Without this, aclocal can not find the .m4 files.
This commit is contained in:
parent
5c5fd4a7e3
commit
23a95de2bd
@ -41,6 +41,10 @@ class Libtool(AutotoolsPackage):
|
||||
def _make_executable(self, name):
|
||||
return Executable(join_path(self.prefix.bin, name))
|
||||
|
||||
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
|
||||
spack_env.append_path('ACLOCAL_PATH',
|
||||
join_path(self.prefix.share, 'aclocal'))
|
||||
|
||||
def setup_dependent_package(self, module, dependent_spec):
|
||||
# Automake is very likely to be a build dependency,
|
||||
# so we add the tools it provides to the dependent module
|
||||
|
@ -51,6 +51,8 @@ def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
|
||||
files."""
|
||||
spack_env.append_path('PKG_CONFIG_PATH', '/usr/lib64/pkgconfig')
|
||||
spack_env.append_path('PKG_CONFIG_PATH', '/usr/local/lib64/pkgconfig')
|
||||
spack_env.append_path('ACLOCAL_PATH',
|
||||
join_path(self.prefix.share, 'aclocal'))
|
||||
|
||||
def configure_args(self):
|
||||
config_args = ['--enable-shared']
|
||||
|
Loading…
Reference in New Issue
Block a user