Changeset 8abfbb0


Ignore:
Timestamp:
Jan 8, 2019, 4:00:15 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe_org
Children:
11526e6
Parents:
dfae6e0
Message:

[wscript] add detection of hdf5 library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rdfae6e0 r8abfbb0  
    9898            help_disable_str = 'do not compile source_wavwrite')
    9999
     100    add_option_enable_disable(ctx, 'hdf5', default = None,
     101            help_str = 'use libhdf5 (default)',
     102            help_disable_str = 'do not use libhdf5')
     103
    100104    add_option_enable_disable(ctx, 'docs', default = None,
    101105            help_str = 'build documentation (auto)',
     
    460464    if (ctx.options.enable_memcpy == True):
    461465        ctx.define('HAVE_MEMCPY_HACKS', 1)
     466
     467    if (ctx.options.enable_hdf5 != True):
     468        ctx.check_cfg(package='hdf5', args='--cflags --libs',
     469                uselib_store='HDF5', mandatory=ctx.options.enable_hdf5)
     470        ctx.check(lib=['hdf5_hl'], use = ['HDF5'],
     471                uselib_store='HDF5_HL', mandatory=ctx.options.enable_hdf5)
    462472
    463473    # write configuration header
Note: See TracChangeset for help on using the changeset viewer.