# to be included at bottom of .pro files
enable-presage {
    DEFINES += HAVE_PRESAGE
    LIBS += -lpresage
}

enable-hunspell {
    DEFINES += HAVE_HUNSPELL
    LIBS += -lhunspell
}

# to be included at bottom of .pro files
enable-presage {
    DEFINES += HAVE_PRESAGE
    LIBS += -lpresage
}

enable-hunspell {
    CONFIG += link_pkgconfig
    PKGCONFIG += hunspell
    DEFINES += HAVE_HUNSPELL
}

Use pkg-config for checking Hunspell's CFLAGS and LIBS
Use pkg-config for checking Hunspell's CFLAGS and LIBS

TBD: Michael Hasselmann
Fixes linking on Fedora where hunspell lib is libhunspell-1.2.so.
