+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',
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
+++ /dev/null
-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')