From bd9ff869615e2611589f4e8795dea3fe9655ad27 Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Fri, 28 Jun 2013 17:32:29 -0400 Subject: SERVER-7080 Add feature test for execinfo functions to repair build of client driver --- distsrc/client/SConstruct | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'distsrc') 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 ') and + conf.CheckDeclaration('backtrace_symbols', includes='#include ') and + conf.CheckDeclaration('backtrace_symbols_fd', includes='#include ')): + + env.Append( CPPDEFINES=[ "MONGO_HAVE_EXECINFO_BACKTRACE" ] ) + conf.Finish() class InstallSetup: -- cgit v1.2.1