diff --git a/pysctrltp/wscript b/pysctrltp/wscript
index a0f6d699d1bbe8abe7d85ca9ed379be9afe82297..fc2f6e90dba2492a7e29750eb73da4112ea5489b 100644
--- a/pysctrltp/wscript
+++ b/pysctrltp/wscript
@@ -21,11 +21,12 @@ def configure(conf):
     conf.check_python_headers()
     conf.load('pytest')
 
-    conf.check_cxx(
+    conf.check(
         uselib_store='PYBIND11',
         mandatory = True,
+        compiler='cxx',
+        features='cxx pyext',
         header_name='pybind11/pybind11.h',
-        use = 'PYEXT',
     )