# Path: bento/commands/options.py
# class IndentedHelpFormatter(optparse.IndentedHelpFormatter):
# class OptionsContext(object):
#     def format_usage(self, usage):
#     def from_command(cls, cmd):
#     def __init__(self, usage=None):
#     def setup(self, package_options):
#     def add_option(self, option, group=None):
#     def has_group(self, group):
#     def add_group(self, name, title):
# 
# Path: bento/backends/waf_backend.py
# WAF_TOOLDIR = op.join(SITEDIR, "bento", "backends", "waf_tools")


import collections
import sys
import waflib
from bento.commands.options \
    import \
        Option
from bento.backends.waf_backend \
    import \
        WAF_TOOLDIR
from waflib import Options
            break

    # You can manually set up blas/lapack as follows:
    #conf.env.HAS_CBLAS = True
    #conf.env.LIB_CBLAS = ["cblas", "atlas"]
    #conf.env.HAS_LAPACK = True
    #conf.env.LIB_LAPACK = ["lapack", "f77blas", "cblas", "atlas"]

def check_fortran(context):
    opts = context.waf_options_context
    conf = context.waf_context

    opts.load("compiler_fc")
    Options.options.check_fc = "gfortran"

    conf.load("compiler_fc")
    conf.load("ordered_c", tooldir=[WAF_TOOLDIR])

    conf.check_fortran_verbose_flag()
    conf.check_fortran_clib()

def add_options(global_context):
    global_context.add_option_group("configure", "blas_lapack", "blas/lapack")

    available_optimized = ",".join(_LAPACK_TO_KWARGS.keys())
    global_context.add_option("configure",
            Option("--blas-lapack-type", help="Which blas lapack to use (%s)" % available_optimized),
            "blas_lapack")

    global_context.add_option("configure",

# Path: bento/commands/options.py
# class IndentedHelpFormatter(optparse.IndentedHelpFormatter):
# class OptionsContext(object):
#     def format_usage(self, usage):
#     def from_command(cls, cmd):
#     def __init__(self, usage=None):
#     def setup(self, package_options):
#     def add_option(self, option, group=None):
#     def has_group(self, group):
#     def add_group(self, name, title):
# 
# Path: bento/backends/waf_backend.py
# WAF_TOOLDIR = op.join(SITEDIR, "bento", "backends", "waf_tools")


# Path: bento/backends/waf_tools/blas_lapack.py
import collections
import sys
import waflib
from bento.commands.options \
    import \
        Option
from bento.backends.waf_backend \
    import \
        WAF_TOOLDIR
from waflib import Options

            break

    # You can manually set up blas/lapack as follows:
    #conf.env.HAS_CBLAS = True
    #conf.env.LIB_CBLAS = ["cblas", "atlas"]
    #conf.env.HAS_LAPACK = True
    #conf.env.LIB_LAPACK = ["lapack", "f77blas", "cblas", "atlas"]

def check_fortran(context):
    opts = context.waf_options_context
    conf = context.waf_context

    opts.load("compiler_fc")
    Options.options.check_fc = "gfortran"

    conf.load("compiler_fc")
    conf.load("ordered_c", tooldir=[WAF_TOOLDIR])

    conf.check_fortran_verbose_flag()
    conf.check_fortran_clib()

def add_options(global_context):
    global_context.add_option_group("configure", "blas_lapack", "blas/lapack")

    available_optimized = ",".join(_LAPACK_TO_KWARGS.keys())
    global_context.add_option("configure",
            Option("--blas-lapack-type", help="Which blas lapack to use (%s)" % available_optimized),
            "blas_lapack")

    global_context.add_option("configure",

            Option("--with-blas-lapack-libdir", dest="blas_lapack_libdir",