From: Fred Morcos Date: Tue, 8 Aug 2023 14:16:12 +0000 (+0200) Subject: Meson: Various functions needed by auth X-Git-Tag: rec-5.1.0-alpha1~80^2~278 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecc5cdd71eba8e3118e8c280bdc2a443d0edafe3;p=thirdparty%2Fpdns.git Meson: Various functions needed by auth --- diff --git a/meson.build b/meson.build index 275dfc62c0..cb6d5cba4a 100644 --- a/meson.build +++ b/meson.build @@ -73,6 +73,7 @@ subdir('meson' / 'auto-var-init') # Automatic Variable Initialization subdir('meson' / 'sanitizers') # Sanitizers subdir('meson' / 'malloc-trace') # Malloc-trace subdir('meson' / 'auth-socket-dir') # Socket Dir +subdir('meson' / 'auth-various-functions') # Various Functions # Find ragel or pdns/dnslabeltext.cc if not ragel.found() and not fs.exists('pdns' / 'dnslabeltext.cc') @@ -96,23 +97,6 @@ if not fs.exists('docs' / 'pdns_server.1') and not python_have_venv endif # TODO Generate pdns_server.1 manpage -# Various Functions -funcs = [ - 'strcasestr', - 'localtime_r', - 'gmtime_r', - 'recvmmsg', - 'sched_setscheduler', - 'getrandom', - 'arc4random', -] -foreach func: funcs - found = cxx.has_function(func) - define = 'HAVE_' + func.to_upper() - conf.set10(define, found, description: 'Whether we have ' + func) - # summary(func, found, bool_yn: true, section: 'Various Functions') -endforeach - # Modules all_modules = { 'bind': [], diff --git a/meson/auth-various-functions/meson.build b/meson/auth-various-functions/meson.build new file mode 100644 index 0000000000..dc4da81d38 --- /dev/null +++ b/meson/auth-various-functions/meson.build @@ -0,0 +1,17 @@ +# Various Functions + +funcs = [ + 'strcasestr', + 'localtime_r', + 'gmtime_r', + 'recvmmsg', + 'sched_setscheduler', + 'getrandom', + 'arc4random', +] +foreach func: funcs + found = cxx.has_function(func) + define = 'HAVE_' + func.to_upper() + conf.set10(define, found, description: 'Whether we have ' + func) + summary(func, found, bool_yn: true, section: 'Various Functions') +endforeach