summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 10 insertions, 0 deletions
diff --git a/wscript b/wscript
index af739522..3011b021 100644
--- a/wscript
+++ b/wscript
@@ -123,6 +123,16 @@ def configure(conf):
define_name = 'HAVE_POSIX_MEMALIGN',
mandatory = False)
+ if conf.check(cflags=['-pthread'], mandatory=False):
+ conf.env.PTHREAD_CFLAGS = ['-pthread']
+ conf.env.PTHREAD_LINKFLAGS = ['-pthread']
+ elif conf.check(linkflags=['-lpthread'], mandatory=False):
+ conf.env.PTHREAD_CFLAGS = []
+ conf.env.PTHREAD_LINKFLAGS = ['-lpthread']
+ else:
+ conf.env.PTHREAD_CFLAGS = []
+ conf.env.PTHREAD_LINKFLAGS = []
+
autowaf.define(conf, 'INGEN_VERSION', INGEN_VERSION)
if not Options.options.no_gui and conf.env.HAVE_GANV: