From: Fred Morcos Date: Mon, 3 Jul 2023 10:33:53 +0000 (+0200) Subject: Meson: pthread headers X-Git-Tag: rec-5.1.0-alpha1~80^2~377 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3256175a27d0bb20fd39d902b75ba3430383389a;p=thirdparty%2Fpdns.git Meson: pthread headers --- diff --git a/meson/pthread-headers/meson.build b/meson/pthread-headers/meson.build new file mode 100644 index 0000000000..2e756b6020 --- /dev/null +++ b/meson/pthread-headers/meson.build @@ -0,0 +1,13 @@ +# Check pthread headers +# Inputs: deps conf + +dep_threads = dependency('threads') +have_pthread_h = cxx.check_header('pthread.h', dependencies: dep_threads, required: true) +have_pthread_np_h = cxx.check_header('pthread_np.h', dependencies: dep_threads, prefix: '#include ') + +deps += dep_threads +conf.set10('HAVE_PTHREAD_NP_H', have_pthread_np_h, description: 'pthread_np.h is available') + +summary('Threads', dep_threads.found(), bool_yn: true, section: 'System') +summary('pthread.h', have_pthread_h, bool_yn: true, section: 'System') +summary('pthread_np.h', have_pthread_np_h, section: 'System')