]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Revert the integration of detecting tm-gmtoff in YaHTTP
authorFred Morcos <fred.morcos@open-xchange.com>
Fri, 8 Sep 2023 07:34:01 +0000 (09:34 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:50 +0000 (13:28 +0100)
ext/yahttp/yahttp/meson.build
meson.build
meson/tm-gmtoff/meson.build [new file with mode: 0644]

index b5a8ecb393d1eb6d0f4f087e70c0132e991efb8d..2704d4798cc714dd79b32e2e6142d6e9274bd6b3 100644 (file)
@@ -1,12 +1,3 @@
-prefix = '''
-#include <sys/types.h>
-#include <time.h>
-'''
-
-has = cxx.has_member('struct tm', 'tm_gmtoff', prefix: prefix)
-conf.set('HAVE_TM_GMTOFF', has, description: 'Whether tm_gmtoff is available')
-summary('tm_gmtoff', has, bool_yn: true, section: 'YaHTTP')
-
 lib_yahttp = static_library(
   'yahttp',
   'reqresp.cpp',
index 12eaeb24e9b0dcdd8389eb8ea721607199149844..7ae39c36e18486b359b1f1d47b4761e663fb7847 100644 (file)
@@ -45,6 +45,7 @@ subdir('meson' / 'lua-records')             # Lua-based Records
 subdir('meson' / 'hardening')               # Hardening
 subdir('meson' / 'kiss-rng')                # Unsafe KISS RNG
 subdir('meson' / 'net-libs')                # Network Libraries
+subdir('meson' / 'tm-gmtoff')               # Check for tm_gmtoff field in struct tm
 subdir('meson' / 'mmap')                    # Check for mmap
 subdir('meson' / 'libsodium')               # Libsodium-based signers
 subdir('meson' / 'libdecaf')                # Libdecaf-based signers
diff --git a/meson/tm-gmtoff/meson.build b/meson/tm-gmtoff/meson.build
new file mode 100644 (file)
index 0000000..e583aa0
--- /dev/null
@@ -0,0 +1,8 @@
+prefix = '''
+#include <sys/types.h>
+#include <time.h>
+'''
+
+has = cxx.has_member('struct tm', 'tm_gmtoff', prefix: prefix)
+conf.set('HAVE_TM_GMTOFF', has, description: 'Whether tm_gmtoff is available')
+summary('tm_gmtoff', has, bool_yn: true, section: 'System')