summaryrefslogtreecommitdiff
path: root/header_checks/meson.build
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--header_checks/meson.build19
1 files changed, 18 insertions, 1 deletions
diff --git a/header_checks/meson.build b/header_checks/meson.build
index 42d638fc6a..af5ef11149 100644
--- a/header_checks/meson.build
+++ b/header_checks/meson.build
@@ -189,12 +189,29 @@ if (cc.has_header('sys/mman.h'))
189 config_h.set10('HAVE_MMAN_H', true) 189 config_h.set10('HAVE_MMAN_H', true)
190endif 190endif
191 191
192regexp = []
193if sys_windows == true
194 regexp = cc.find_library('regex',
195 has_headers: ['regex.h', 'fnmatch.h'],
196 required: true)
197 if regexp.found() == false
198 error('regex can not be found')
199 endif
200else
201 if cc.has_header_symbol('fnmatch.h', 'fnmatch') == false
202 error('fnmatch can not be found')
203 endif
204 if cc.has_header_symbol('regex.h', 'regcomp') == false
205 error('regcomp can not be found')
206 endif
207endif
208
192config_h.set('VMAJ', version_major) 209config_h.set('VMAJ', version_major)
193config_h.set('VMIN', version_minor) 210config_h.set('VMIN', version_minor)
194config_h.set('VMIC', version_micro) 211config_h.set('VMIC', version_micro)
195config_h.set('VREV', '0') 212config_h.set('VREV', '0')
196 213
197#jpeg detection ... life is a bit more complex there 214#jpeg detection ... life is a bit more complex there
198 215
199jpeg = dependency('libjpeg', required: false) 216jpeg = dependency('libjpeg', required: false)
200if jpeg.found() == false 217if jpeg.found() == false