]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Various functions needed by auth
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 8 Aug 2023 14:16:12 +0000 (16:16 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:34 +0000 (13:28 +0100)
meson.build
meson/auth-various-functions/meson.build [new file with mode: 0644]

index 275dfc62c00f0090d2a9018e604738fa1d346031..cb6d5cba4af4109fdc6628f61518e4777a02ced5 100644 (file)
@@ -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 (file)
index 0000000..dc4da81
--- /dev/null
@@ -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