bindings/python/wscript
changeset 7408 4f1f961b6cdc
parent 7373 54c61c7f84e0
child 7451 7e112cf83737
--- a/bindings/python/wscript	Sun Aug 07 16:08:55 2011 +0100
+++ b/bindings/python/wscript	Sun Aug 07 16:52:49 2011 +0100
@@ -15,7 +15,7 @@
 import Utils
 
 ## https://launchpad.net/pybindgen/
-REQUIRED_PYBINDGEN_VERSION = (0, 15, 0, 794)
+REQUIRED_PYBINDGEN_VERSION = (0, 15, 0, 795)
 REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
 
 
@@ -247,6 +247,23 @@
         msg = conf.env['BINDINGS_TYPE']
     conf.check_message_custom('type of bindings to build', '', msg)
 
+
+    # check cxxabi stuff (which Mac OS X Lion breaks)
+    fragment = r"""
+# include <cxxabi.h>
+int main ()
+{
+   const abi::__si_class_type_info *_typeinfo  __attribute__((unused)) = NULL;
+   return 0;
+}
+"""
+    gcc_rtti_abi = conf.check(fragment=fragment, msg="Checking for internal GCC cxxabi",
+                              okmsg="complete", errmsg='incomplete',
+                              mandatory=False)
+    conf.env["GCC_RTTI_ABI_COMPLETE"] = str(bool(gcc_rtti_abi))
+
+
+
     ## Check for pygccxml
     try:
         conf.check_python_module('pygccxml')
@@ -296,9 +313,6 @@
     conf.env['ENABLE_PYTHON_SCANNING'] = True
     conf.report_optional_feature("pygccxml", "Python API Scanning Support", True, None)
 
-    
-
-
 # ---------------------
 
 def get_headers_map(bld):