summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2021-04-06 12:21:38 +0200
committerGitHub <noreply@github.com>2021-04-06 10:21:38 +0000
commit1ed44f20f255f63b9e75e739a8bbe6911f4e1664 (patch)
treea47b3fe6e3016933527e6bc2cb53133bbb8dbf45 /var
parent85cdb3d250ac4ea148b2eb6cbd4d89938f589687 (diff)
downloadspack-1ed44f20f255f63b9e75e739a8bbe6911f4e1664.tar.gz
spack-1ed44f20f255f63b9e75e739a8bbe6911f4e1664.tar.bz2
spack-1ed44f20f255f63b9e75e739a8bbe6911f4e1664.tar.xz
spack-1ed44f20f255f63b9e75e739a8bbe6911f4e1664.zip
m4: force path where to look for autoconf (#22765)
Uses the M4 environment variable
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/m4/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py
index cc18685faf..49bf6ac203 100644
--- a/var/spack/repos/builtin/packages/m4/package.py
+++ b/var/spack/repos/builtin/packages/m4/package.py
@@ -48,6 +48,15 @@ class M4(AutotoolsPackage, GNUMirrorPackage):
match = re.search(r'GNU M4\)?\s+(\S+)', output)
return match.group(1) if match else None
+ def setup_dependent_build_environment(self, env, dependent_spec):
+ # Inform autom4te if it wasn't built correctly (some external
+ # installations such as homebrew). See
+ # https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/autom4te-Invocation.html
+ env.set('M4', self.prefix.bin.m4)
+
+ def setup_run_environment(self, env):
+ env.set('M4', self.prefix.bin.m4)
+
def configure_args(self):
spec = self.spec
args = ['--enable-c++']