<commit_before>def initEnvironment(env):
	return env

def addExtras(context):
	context.env.Append(LIBS = 'm')
	context.env.Append(LIBPATH = "/opt/lib")
	context.env.Append(CPPPATH = "/opt/include")
	
	context.env.Append(CPPPATH = ['/usr/include/vorbis'])
	context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h')
	context.checkSimpleLib(['openal'], 'AL/al.h')
	if context.env['script'] == 'lua':
		context.checkSimpleLib(['lua5.1', 'lua-5.1'])
#		context.checkSimpleLib(['lualib50', 'lua'], 'lualib.h')
#		context.checkSimpleLib(['lualib'], 'lualib.h', required=0)
	context.checkSimpleLib(['SDL'], 'SDL.h')
	context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h')
	context.checkSimpleLib(['SDL_image'], 'SDL_image.h')
	context.checkSimpleLib(['guichan'])
	context.checkSimpleLib(['guichan_sdl'])
	context.checkSimpleLib(['boost_filesystem', 'boost_filesystem-gcc'])
	context.checkSimpleLib(['boost_regex', 'boost_regex-gcc'])
	
	if context.env['opengl']:
		context.env.Append(LIBS = ['GL', 'GLU'])
		context.checkSimpleLib(['guichan_opengl'])
	
	if context.env['movie']:
		context.checkSimpleLib(['libavformat', 'avformat'], 'avformat.h')
		context.checkSimpleLib(['libavcodec', 'avcodec'], 'avcodec.h')
<commit_msg>Still another fix for fedora core lua support<commit_after>def initEnvironment(env):
	return env

def addExtras(context):
	context.env.Append(LIBS = 'm')
	context.env.Append(LIBPATH = "/opt/lib")
	context.env.Append(CPPPATH = "/opt/include")
	
	context.env.Append(CPPPATH = ['/usr/include/vorbis'])
	context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h')
	context.checkSimpleLib(['openal'], 'AL/al.h')
	if context.env['script'] == 'lua':
		context.checkSimpleLib(['lua', 'lua5.1'])
#		context.checkSimpleLib(['lualib50', 'lua'], 'lualib.h')
#		context.checkSimpleLib(['lualib'], 'lualib.h', required=0)
	context.checkSimpleLib(['SDL'], 'SDL.h')
	context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h')
	context.checkSimpleLib(['SDL_image'], 'SDL_image.h')
	context.checkSimpleLib(['guichan'])
	context.checkSimpleLib(['guichan_sdl'])
	context.checkSimpleLib(['boost_filesystem', 'boost_filesystem-gcc'])
	context.checkSimpleLib(['boost_regex', 'boost_regex-gcc'])
	
	if context.env['opengl']:
		context.env.Append(LIBS = ['GL', 'GLU'])
		context.checkSimpleLib(['guichan_opengl'])
	
	if context.env['movie']:
		context.checkSimpleLib(['libavformat', 'avformat'], 'avformat.h')
		context.checkSimpleLib(['libavcodec', 'avcodec'], 'avcodec.h')

{'fraction_non_alphanumeric': 0.2031122031122031, 'fraction_numerical': 0.004914004914004914, 'mean_word_length': 7.036184210526316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '745013', 'n_tokens_mistral': 927, 'n_tokens_neox': 880, 'n_words': 117}