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 | |
parent | 736c78d4c79f041faf33920bd0f82c29ecbe9586 (diff) |
Add check for gzbuffer with Meson
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/config.h.in | 1 | ||||
-rw-r--r-- | libcrystfel/meson.build | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/config.h.in b/libcrystfel/config.h.in index 364f7060..1fdd2e13 100644 --- a/libcrystfel/config.h.in +++ b/libcrystfel/config.h.in @@ -5,6 +5,7 @@ #mesondefine HAVE_PINKINDEXER #mesondefine HAVE_FDIP #mesondefine HAVE_CURSES +#mesondefine HAVE_GZBUFFER #mesondefine HAVE_FORKPTY_PTY_H #mesondefine HAVE_FORKPTY_UTIL_H 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() |