# -*- mode: python; -*-
import os

env = Environment()

env.Append(CPPFLAGS=['-pthread', '-O3', '-g'])
env.Append(LINKFLAGS=['-pthread', '-g'])

if 'darwin' == os.sys.platform:
    env.Append(CPPPATH=['/opt/local/include'])
    env.Append(LIBPATH=['/opt/local/lib'])

env.Append(CPPPATH=['../', '../mongo/'])
env.Append(LIBPATH=['../mongo', '/usr/lib64'])

conf = Configure( env )
libs = [ "mongoclient",  "boost_thread" , "boost_filesystem" , 'boost_program_options', 'boost_system']

def checkLib( lib ):
    if lib.startswith('boost_'):
        if conf.CheckLib( lib + '-mt' ):
            return True
        if conf.CheckLib( lib + '_mt' ):
            return True

    if conf.CheckLib( lib ):
        return True

    print( "Error: can't find library: " + str( lib ) )
    Exit(-1)
    return False

for x in libs:
    checkLib( x )

env = conf.Finish()

env.Program( "benchmark" , ["benchmark.cpp"] )

eb4fe702b2ab9840b057167074bb15c13b8d27b4
<mask token>


def checkLib(lib):
    if lib.startswith('boost_'):
        if conf.CheckLib(lib + '-mt'):
            return True
        if conf.CheckLib(lib + '_mt'):
            return True
    if conf.CheckLib(lib):
        return True
    print("Error: can't find library: " + str(lib))
    Exit(-1)
    return False


<mask token>

<mask token>
env.Append(CPPFLAGS=['-pthread', '-O3', '-g'])
env.Append(LINKFLAGS=['-pthread', '-g'])
if 'darwin' == os.sys.platform:
    env.Append(CPPPATH=['/opt/local/include'])
    env.Append(LIBPATH=['/opt/local/lib'])
env.Append(CPPPATH=['../', '../mongo/'])
env.Append(LIBPATH=['../mongo', '/usr/lib64'])
<mask token>


def checkLib(lib):
    if lib.startswith('boost_'):
        if conf.CheckLib(lib + '-mt'):
            return True
        if conf.CheckLib(lib + '_mt'):
            return True
    if conf.CheckLib(lib):
        return True
    print("Error: can't find library: " + str(lib))
    Exit(-1)
    return False


for x in libs:
    checkLib(x)
<mask token>
env.Program('benchmark', ['benchmark.cpp'])

<mask token>
env = Environment()
env.Append(CPPFLAGS=['-pthread', '-O3', '-g'])
env.Append(LINKFLAGS=['-pthread', '-g'])
if 'darwin' == os.sys.platform:
    env.Append(CPPPATH=['/opt/local/include'])
    env.Append(LIBPATH=['/opt/local/lib'])
env.Append(CPPPATH=['../', '../mongo/'])
env.Append(LIBPATH=['../mongo', '/usr/lib64'])
conf = Configure(env)
libs = ['mongoclient', 'boost_thread', 'boost_filesystem',
    'boost_program_options', 'boost_system']


def checkLib(lib):
    if lib.startswith('boost_'):
        if conf.CheckLib(lib + '-mt'):
            return True
        if conf.CheckLib(lib + '_mt'):
            return True
    if conf.CheckLib(lib):
        return True
    print("Error: can't find library: " + str(lib))
    Exit(-1)
    return False


for x in libs:
    checkLib(x)
env = conf.Finish()
env.Program('benchmark', ['benchmark.cpp'])

import os
env = Environment()
env.Append(CPPFLAGS=['-pthread', '-O3', '-g'])
env.Append(LINKFLAGS=['-pthread', '-g'])
if 'darwin' == os.sys.platform:
    env.Append(CPPPATH=['/opt/local/include'])
    env.Append(LIBPATH=['/opt/local/lib'])
env.Append(CPPPATH=['../', '../mongo/'])
env.Append(LIBPATH=['../mongo', '/usr/lib64'])
conf = Configure(env)
libs = ['mongoclient', 'boost_thread', 'boost_filesystem',
    'boost_program_options', 'boost_system']


def checkLib(lib):
    if lib.startswith('boost_'):
        if conf.CheckLib(lib + '-mt'):
            return True
        if conf.CheckLib(lib + '_mt'):
            return True
    if conf.CheckLib(lib):
        return True
    print("Error: can't find library: " + str(lib))
    Exit(-1)
    return False


for x in libs:
    checkLib(x)
env = conf.Finish()
env.Program('benchmark', ['benchmark.cpp'])

# -*- mode: python; -*-
import os

env = Environment()

env.Append(CPPFLAGS=['-pthread', '-O3', '-g'])
env.Append(LINKFLAGS=['-pthread', '-g'])

if 'darwin' == os.sys.platform:
    env.Append(CPPPATH=['/opt/local/include'])
    env.Append(LIBPATH=['/opt/local/lib'])

env.Append(CPPPATH=['../', '../mongo/'])
env.Append(LIBPATH=['../mongo', '/usr/lib64'])

conf = Configure( env )
libs = [ "mongoclient",  "boost_thread" , "boost_filesystem" , 'boost_program_options', 'boost_system']

def checkLib( lib ):
    if lib.startswith('boost_'):
        if conf.CheckLib( lib + '-mt' ):
            return True
        if conf.CheckLib( lib + '_mt' ):
            return True

    if conf.CheckLib( lib ):
        return True

    print( "Error: can't find library: " + str( lib ) )
    Exit(-1)
    return False

for x in libs:
    checkLib( x )

env = conf.Finish()

env.Program( "benchmark" , ["benchmark.cpp"] )
