From 208f6dc608959dcdeb55afc69daf547e7a1e2c3e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 13 May 2019 22:24:10 +0200 Subject: Check for regex.h and regcomp() --- meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meson.build b/meson.build index 2cab6cd9..6509af70 100644 --- a/meson.build +++ b/meson.build @@ -101,6 +101,14 @@ if compiler.has_header('sys/utsname.h') conf_data.set('HAVE_SYS_UTSNAME_H', 1) endif +if compiler.has_header('regex.h') + conf_data.set('HAVE_REGEX_H', 1) +endif + +if compiler.has_function('regcomp', prefix : '#include ') + conf_data.set('HAVE_REGCOMP', 1) +endif + configure_file(output : 'config.h', configuration : conf_data) -- cgit v1.2.3