dep_atomics = dependency('', required: false)
need_latomic = false
+fs = import('fs')
prog = fs.read('atomic_add_fetch.cc')
if not cxx.links(prog, name: '-latomic is not needed for using __atomic builtins')
lib_atomic = cxx.find_library('atomic', disabler: true, required: false)
subdir('meson' / 'summary') # Print a system/project summary
subdir('meson' / 'sysconfdir') # Sysconfdir
subdir('meson' / 'platform') # Platform detection
-subdir('meson' / 'timet-size') # Check the size of time_t
-subdir('meson' / 'timet-sign') # Check the sign of time_t
subdir('meson' / 'atomics') # Check atomics support
subdir('meson' / 'pthread-headers') # Check pthread headers
subdir('meson' / 'pthread-setname') # Pthread setname madness