aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/config.h.in1
-rw-r--r--libcrystfel/meson.build5
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()