if platform_name == 'win32' and mode == 'debug' and use_vc:
aspell_lib = 'aspelld'
+hunspell_lib = 'libhunspell'
+
# check the existence of config.h
config_h = os.path.join(env.Dir('$BUILDDIR/src').path, 'config.h')
boost_config_h = os.path.join(env.Dir('$BUILDDIR/boost').path, 'config.h')
spell_engine = 'USE_ASPELL'
elif spell_opt in ['auto', 'enchant'] and conf.CheckLib('enchant'):
spell_engine = 'USE_ENCHANT'
-elif spell_opt in ['auto', 'hunspell'] and conf.CheckLib('hunspell'):
+elif spell_opt in ['auto', 'hunspell'] and conf.CheckLib(hunspell_lib):
spell_engine = 'USE_HUNSPELL'
else:
spell_engine = None
('HAVE_LIBAIKSAURUS', env['AIKSAURUS_LIB']),
('USE_ASPELL', aspell_lib),
('USE_ENCHANT', 'enchant'),
- ('USE_HUNSPELL', 'hunspell')
+ ('USE_HUNSPELL', hunspell_lib)
]
for lib in libs:
languages = None
if env.has_key('languages'):
languages = env.make_list(env['lanauges'])
- # use defulat msgfmt
+ # use default msgfmt
gmo_files = []
if not env['MSGFMT']:
print 'msgfmt does not exist. Can not process po files'
-call scons install prefix=..\..\build-msvc use_vc=yes spell=aspell frontend=qt4 mode=release version_suffix=20 gettext=system nls=yes extra_inc_path=..\..\lyx-windows-deps-msvc2008\include extra_lib_path=..\..\lyx-windows-deps-msvc2008\lib extra_bin_path=..\..\lyx-windows-deps-msvc2008\bin qt_dir=..\..\..\..\Qt
\ No newline at end of file
+call scons install prefix=..\..\build-msvc use_vc=yes spell=hunspell frontend=qt4 mode=release version_suffix=20 gettext=system nls=yes extra_inc_path=..\..\lyx-windows-deps-msvc2008\include extra_lib_path=..\..\lyx-windows-deps-msvc2008\lib extra_bin_path=..\..\lyx-windows-deps-msvc2008\bin qt_dir=..\..\..\..\Qt
\ No newline at end of file