Skip to content
Snippets Groups Projects
Unverified Commit c18167d0 authored by Adam J. Stewart's avatar Adam J. Stewart Committed by GitHub
Browse files

Autoconf: add spack external find support (#16692)

parent 73fe3ce1
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import re
class Autoconf(AutotoolsPackage, GNUMirrorPackage):
......@@ -24,6 +24,17 @@ class Autoconf(AutotoolsPackage, GNUMirrorPackage):
build_directory = 'spack-build'
executables = [
'^autoconf$', '^autoheader$', '^autom4te$', '^autoreconf$',
'^autoscan$', '^autoupdate$', '^ifnames$'
]
@classmethod
def determine_version(cls, exe):
output = Executable(exe)('--version', output=str, error=str)
match = re.search(r'\(GNU Autoconf\)\s+(\S+)', output)
return match.group(1) if match else None
def patch(self):
# The full perl shebang might be too long; we have to fix this here
# because autom4te is called during the build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment