parameters: (conf)
docstring: Try to find a suitable C++ compiler or raise a :py:class:`waflib.Errors.ConfigurationError`.
docstring_summary: Try to find a suitable C++ compiler or raise a :py:class:`waflib.Errors.ConfigurationError`.
docstring_tokens: Try to find a suitable C ++ compiler or raise a : py : class : waflib . Errors . ConfigurationError .
function: def configure(conf):
  	"""
  	Try to find a suitable C++ compiler or raise a :py:class:`waflib.Errors.ConfigurationError`.
  	"""
  	try: test_for_compiler = conf.options.check_cxx_compiler
  	except AttributeError: conf.fatal("Add options(opt): opt.load('compiler_cxx')")
  
  	for compiler in test_for_compiler.split():
  		conf.env.stash()
  		conf.start_msg('Checking for %r (c++ compiler)' % compiler)
  		try:
  			conf.load(compiler)
  		except conf.errors.ConfigurationError as e:
  			conf.env.revert()
  			conf.end_msg(False)
  			debug('compiler_cxx: %r' % e)
  		else:
  			if conf.env['CXX']:
  				conf.end_msg(conf.env.get_flat('CXX'))
  				conf.env['COMPILER_CXX'] = compiler
  				break
  			conf.end_msg(False)
  	else:
  		conf.fatal('could not configure a c++ compiler!')
function_tokens: def configure ( conf ) : try : test_for_compiler = conf . options . check_cxx_compiler except AttributeError : conf . fatal ( "Add options(opt): opt.load('compiler_cxx')" ) for compiler in test_for_compiler . split ( ) : conf . env . stash ( ) conf . start_msg ( 'Checking for %r (c++ compiler)' % compiler ) try : conf . load ( compiler ) except conf . errors . ConfigurationError as e : conf . env . revert ( ) conf . end_msg ( False ) debug ( 'compiler_cxx: %r' % e ) else : if conf . env [ 'CXX' ] : conf . end_msg ( conf . env . get_flat ( 'CXX' ) ) conf . env [ 'COMPILER_CXX' ] = compiler break conf . end_msg ( False ) else : conf . fatal ( 'could not configure a c++ compiler!' )