Add a gpfs variant to openmpi package (#15793)
Open MPI will detect and link against GPFS if it is present on the system. This variant allows this to be disabled, even if GPFS is present.
This commit is contained in:
parent
adafdf0644
commit
08f88b4be6
@ -242,6 +242,7 @@ class Openmpi(AutotoolsPackage):
|
||||
variant('runpath', default=True, description='Enable wrapper runpath')
|
||||
variant('cxx', default=False, description='Enable C++ MPI bindings')
|
||||
variant('cxx_exceptions', default=False, description='Enable C++ Exception support')
|
||||
variant('gpfs', default=True, description='Enable GPFS support (if present)')
|
||||
# Adding support to build a debug version of OpenMPI that activates
|
||||
# Memchecker, as described here:
|
||||
#
|
||||
@ -410,6 +411,11 @@ def autoreconf(self, spec, prefix):
|
||||
perl = which('perl')
|
||||
perl('autogen.pl')
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
if '~gpfs' in self.spec:
|
||||
env.set('ac_cv_header_gpfs_h', 'no')
|
||||
env.set('ac_cv_header_gpfs_fcntl_h', 'no')
|
||||
|
||||
def configure_args(self):
|
||||
spec = self.spec
|
||||
config_args = [
|
||||
|
Loading…
Reference in New Issue
Block a user