summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript b/wscript
index 3c9e0aa..e78103f 100644
--- a/wscript
+++ b/wscript
@@ -65,7 +65,7 @@ def configure(conf):
atleast_version='0.18.0', mandatory=True)
autowaf.check_pkg(conf, 'libpcre', uselib_store='PCRE', mandatory=False)
- if conf.is_defined('HAVE_PCRE'):
+ if conf.env.HAVE_PCRE:
if conf.check(cflags=['-pthread'], mandatory=False):
conf.env.PTHREAD_CFLAGS = ['-pthread']
conf.env.PTHREAD_LINKFLAGS = ['-pthread']