diff options
author | Michael Kuhn <michael.kuhn@informatik.uni-hamburg.de> | 2020-06-29 17:08:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 10:08:22 -0500 |
commit | b07d38b3be43391186ee785f634ec73eab50c4e9 (patch) | |
tree | b3126f917438d3ce4a66f620b4b5818062a2c941 /lib | |
parent | 789d060ff61b9fe1d6c9ac7345fc60188acb55a7 (diff) | |
download | spack-b07d38b3be43391186ee785f634ec73eab50c4e9.tar.gz spack-b07d38b3be43391186ee785f634ec73eab50c4e9.tar.bz2 spack-b07d38b3be43391186ee785f634ec73eab50c4e9.tar.xz spack-b07d38b3be43391186ee785f634ec73eab50c4e9.zip |
autotools: Fix config.guess detection (#17149)
The config.guess detection used a relative path that did not work in
combination with `check_call`. Use an absolute path instead.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/autotools.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/build_systems/autotools.py b/lib/spack/spack/build_systems/autotools.py index 72a2c0afbb..27a3ee7657 100644 --- a/lib/spack/spack/build_systems/autotools.py +++ b/lib/spack/spack/build_systems/autotools.py @@ -118,13 +118,15 @@ class AutotoolsPackage(PackageBase): config_file = 'config.{0}'.format(config_name) if os.path.exists(config_file): # First search the top-level source directory - my_config_files[config_name] = config_file + my_config_files[config_name] = os.path.join( + self.configure_directory, config_file) else: # Then search in all sub directories recursively. # We would like to use AC_CONFIG_AUX_DIR, but not all packages # ship with their configure.in or configure.ac. config_path = next((os.path.join(r, f) - for r, ds, fs in os.walk('.') for f in fs + for r, ds, fs in os.walk( + self.configure_directory) for f in fs if f == config_file), None) my_config_files[config_name] = config_path |