diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 3f440157c10..112256413d5 100644 --- a/SConstruct +++ b/SConstruct @@ -200,6 +200,8 @@ add_option( "gcov" , "compile with flags for gcov" , 0 , True ) add_option("smokedbprefix", "prefix to dbpath et al. for smoke tests", 1 , False ) add_option("smokeauth", "run smoke tests with --auth", 0 , False ) +add_option("use-sasl-client", "Support SASL authentication in the client library", 0, False) + add_option( "use-system-tcmalloc", "use system version of tcmalloc library", 0, True ) add_option( "use-system-pcre", "use system version of pcre library", 0, True ) @@ -819,6 +821,12 @@ def doConfigure(myenv): if not conf.CheckLib( v8_lib_choices ): Exit(1) + env['MONGO_BUILD_SASL_CLIENT'] = bool(has_option("use-sasl-client")) + if env['MONGO_BUILD_SASL_CLIENT'] and not conf.CheckLibWithHeader( + "gsasl", "gsasl.h", "C", "gsasl_check_version(GSASL_VERSION);", autoadd=False): + + Exit(1) + # requires ports devel/libexecinfo to be installed if freebsd or openbsd: if not conf.CheckLib("execinfo"): |