diff options
author | Thomas White <taw@physics.org> | 2020-07-29 16:24:33 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | ccf7605bbf42258631b1a0c6d390130c6c89bd21 (patch) | |
tree | 9d574d30a85df6835fcd65a42365db5a66a8e2fa /libcrystfel/meson.build | |
parent | 736c78d4c79f041faf33920bd0f82c29ecbe9586 (diff) |
Add check for gzbuffer with Meson
Diffstat (limited to 'libcrystfel/meson.build')
-rw-r--r-- | libcrystfel/meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/meson.build b/libcrystfel/meson.build index 0a9d43ac..f2b6bbe5 100644 --- a/libcrystfel/meson.build +++ b/libcrystfel/meson.build @@ -1,6 +1,11 @@ # libcrystfel zlibdep = dependency('zlib', required : true) +if cc.has_function('gzbuffer', + prefix: '#include <zlib.h>', + dependencies: zlibdep) + conf_data.set10('HAVE_GZBUFFER', 1) +endif fftwdep = dependency('fftw3', required : false) if fftwdep.found() |