9dbcb8c537a9 — Chris Cannam 5 months ago
Check for sincos (thanks ~nia)
1 files changed, 7 insertions(+), 0 deletions(-)

M meson.build
M meson.build +7 -0
@@ 101,6 101,9 @@ sndfile_dep = dependency('sndfile', vers
 vamp_dep = dependency('vamp-sdk', version: '>= 2.9', required: false)
 thread_dep = dependency('threads')
 have_ladspa = cpp.has_header('ladspa.h', args: extra_include_args)
+have_sincos = cpp.has_function('sincos',
+                               prefix: '#define _GNU_SOURCE\n#include <math.h>',
+                               args: '-lm')
 have_jni = cpp.has_header('jni.h', args: extra_include_args)
 
 javac = find_program('javac', required: false)

          
@@ 223,6 226,10 @@ else
 
 endif # resampler
 
+if not have_sincos
+  feature_defines += [ '-DLACK_SINCOS' ]
+endif
+
 if ipp_needed
   feature_defines += [
     '-DHAVE_IPP',