8 fst_src = glob.glob('*.c')
10 Import('env install_prefix libraries')
12 fst.Append (CPPPATH=".")
19 # See if JACK supports jack_set_thread_creator()
22 jack_test_source_file = """
23 #include <jack/jack.h>
26 my_pthread_create (pthread_t* thread_id, const pthread_attr_t* attr, void *(*function)(void*), void* arg)
30 int main(int argc, char **argv)
32 jack_set_thread_creator (my_pthread_create);
36 def CheckJackSetThreadCreator(context):
37 context.Message('Checking for jack_set_thread_creator()...')
38 result = context.TryLink(jack_test_source_file, '.c')
39 context.Result(result)
43 conf = Configure(fst, custom_tests = {
44 'CheckJackSetThreadCreator' : CheckJackSetThreadCreator,
47 if conf.CheckJackSetThreadCreator():
48 fst.Append(CCFLAGS="-DHAVE_JACK_SET_THREAD_CREATOR")
53 fst.Replace(CC = ("winegcc"))
54 a = fst.Object ('fst', 'fst.c')
55 b = fst.Object ('fstinfofile', 'fstinfofile.c')
56 c = fst.Object ('vstwin', 'vstwin.c')
57 d = fst.Object ('vsti', 'vsti.c')
58 e = fst.Object ('thread', 'thread.c')
61 env.Alias('tarball', env.Distribute (env['DISTTREE'],
62 fst_src + ['SConscript',