summaryrefslogtreecommitdiff
path: root/distsrc
diff options
context:
space:
mode:
authorAndrew Morrow <acm@10gen.com>2013-06-28 17:32:29 -0400
committerAndrew Morrow <acm@10gen.com>2013-06-28 17:32:29 -0400
commitbd9ff869615e2611589f4e8795dea3fe9655ad27 (patch)
tree744c05d65e71ab19b3f03ebfcf314c097fe6a4ae /distsrc
parentb975f73660d0fbe7306e77a58f3a8b85aa6a6419 (diff)
downloadmongo-bd9ff869615e2611589f4e8795dea3fe9655ad27.tar.gz
SERVER-7080 Add feature test for execinfo functions to repair build of client driver
Diffstat (limited to 'distsrc')
-rwxr-xr-xdistsrc/client/SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/distsrc/client/SConstruct b/distsrc/client/SConstruct
index 17fa954fc9d..c8d95630ea6 100755
--- a/distsrc/client/SConstruct
+++ b/distsrc/client/SConstruct
@@ -93,6 +93,13 @@ for lib in boostLibs:
env['MONGO_BUILD_SASL_CLIENT'] = conf.CheckLibWithHeader(
"sasl2", "sasl/sasl.h", "C", "sasl_version_info(0, 0, 0, 0, 0, 0);", autoadd=False)
+if (conf.CheckCXXHeader( "execinfo.h" ) and
+ conf.CheckDeclaration('backtrace', includes='#include <execinfo.h>') and
+ conf.CheckDeclaration('backtrace_symbols', includes='#include <execinfo.h>') and
+ conf.CheckDeclaration('backtrace_symbols_fd', includes='#include <execinfo.h>')):
+
+ env.Append( CPPDEFINES=[ "MONGO_HAVE_EXECINFO_BACKTRACE" ] )
+
conf.Finish()
class InstallSetup: