p4est: autoreconf required only for @2.0 (#24544)

This commit is contained in:
Satish Balay 2021-06-25 21:02:47 -05:00 committed by GitHub
parent 8937102006
commit dbf030f27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,8 +29,8 @@ class P4est(AutotoolsPackage):
variant('openmp', default=False, description='Enable OpenMP')
# build dependencies
depends_on('automake', type='build')
depends_on('autoconf', type='build')
depends_on('automake', when='@2.0', type='build')
depends_on('autoconf', when='@2.0', type='build')
depends_on('libtool@2.4.2:', type='build')
# other dependencies
@ -48,7 +48,7 @@ class P4est(AutotoolsPackage):
when='@2.0')
def autoreconf(self, spec, prefix):
if self.spec.satisfies('@:2.2'):
if self.spec.satisfies('@2.0'):
bootstrap = Executable('./bootstrap')
bootstrap()