add_definitions(-DHAVE_GETTEXT)
endif()
+find_file(HUNSPELL_FOUND hunspell.hxx)
+
+if (HUNSPELL_FOUND)
+ message(STATUS "----- Building with Hunspell)
+else()
+ message(STATUS "----- Hunspell not found, building without hunspell support")
+endif()
+
message(STATUS "")
if(nls OR all)
set(nls TRUE CACHE TYPE STRING)
${TOP_SRC_DIR}/src/Variables.cpp
${TOP_SRC_DIR}/src/Section.cpp)
+if (NOT HUNSPELL_FOUND)
+ list(REMOVE_ITEM lyx_sources ${TOP_SRC_DIR}/src/HunspellSpellChecker.cpp)
+endif()
+
if (ASPELL_FOUND)
include_directories(${ASPELL_INCLUDE_DIR})
list(APPEND lyx_sources ${TOP_SRC_DIR}/src/ASpell.cpp)