]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Move detection of tm_gmtoff to YaHTTP
authorFred Morcos <fred.morcos@open-xchange.com>
Thu, 7 Sep 2023 11:59:13 +0000 (13:59 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:49 +0000 (13:28 +0100)
ext/yahttp/yahttp/meson.build
meson.build
meson/tm-gmtoff/meson.build [deleted file]

index 2704d4798cc714dd79b32e2e6142d6e9274bd6b3..b5a8ecb393d1eb6d0f4f087e70c0132e991efb8d 100644 (file)
@@ -1,3 +1,12 @@
+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 e5a04f2380a2f524e07a1faee83de99b930e6a4d..9a2108678fd6df7a5d104128e3d4bd5dd1bdca4e 100644 (file)
@@ -48,7 +48,6 @@ 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' / 'libsodium')               # Libsodium-based signers
 subdir('meson' / 'libdecaf')                # Libdecaf-based signers
 subdir('meson' / 'libcrypto')               # OpenSSL-based signers
diff --git a/meson/tm-gmtoff/meson.build b/meson/tm-gmtoff/meson.build
deleted file mode 100644 (file)
index e583aa0..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-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')