From: Fred Morcos Date: Wed, 16 Aug 2023 12:42:10 +0000 (+0200) Subject: Meson: Cleanup librt module X-Git-Tag: rec-5.1.0-alpha1~80^2~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a97c5537dfb151f5f7c389d2cb501f1f1e40f78;p=thirdparty%2Fpdns.git Meson: Cleanup librt module --- diff --git a/meson.build b/meson.build index 04a6dc0175..e14ec1fe87 100644 --- a/meson.build +++ b/meson.build @@ -193,6 +193,7 @@ deps = [ dep_libcrypto, dep_libssl, dep_gnutls, + dep_rt, dep_gss_tsig, dep_pkcs11, dep_yahttp, diff --git a/meson/clock-gettime/meson.build b/meson/clock-gettime/meson.build index 63998dfe3a..673817f5f8 100644 --- a/meson/clock-gettime/meson.build +++ b/meson/clock-gettime/meson.build @@ -1,17 +1,17 @@ -# Clock_gettime -# Inputs: deps - found = cxx.has_function('clock_gettime') +dep_rt = dependency('', required: false) if not found - lib = cxx.find_library('rt', required: true) + dep_rt = cxx.find_library('rt', required: true) - if not cxx.has_function('clock_gettime', dependencies: lib) - error('Cannot find function ' + 'clock_gettime') + if not cxx.has_function('clock_gettime', dependencies: dep_rt) + error('Cannot find function `clock_gettime`') endif - - deps += lib - found = lib.name() + ' ' + lib.version() endif -summary('clock_gettime', found, bool_yn: true, section: 'System') +summary('clock_gettime', true, bool_yn: true, section: 'System') + +if dep_rt.found() + summary('rt library', dep_rt.name(), bool_yn: true, section: 'System') + summary('rt library version', dep_rt.version(), bool_yn: true, section: 'System') +endif