4
arg: with-aspell-inc=[path],Path to Aspell include files
5
arg: with-aspell-lib=[path],Path to Aspell library files
9
//----------------------------------------------------------------------------
11
//----------------------------------------------------------------------------
12
class qc_aspell : public ConfObj
15
qc_aspell(Conf *c) : ConfObj(c) {}
16
QString name() const { return "Aspell support"; }
17
QString shortname() const { return "aspell"; }
22
s = conf->getenv("QC_WITH_ASPELL_INC");
24
if(!conf->checkHeader(s, "aspell.h")) {
25
conf->debug("Aspell includes not found!");
28
conf->addIncludePath(s);
33
sl += "/usr/local/include";
35
if(!conf->findHeader("aspell.h", sl, &s)) {
36
conf->debug("Aspell includes not found!");
39
conf->addIncludePath(s);
42
s = conf->getenv("QC_WITH_ASPELL_LIB");
44
if(!conf->checkLibrary(s, "aspell")) {
45
conf->debug("Aspell libraries not found!");
48
conf->addLib(QString("-L") + s);
51
if(!conf->findLibrary("aspell", &s)) {
52
conf->debug("Aspell libraries not found!");
56
conf->addLib(QString("-L") + s);
59
conf->addLib("-laspell");
60
conf->addDefine("HAVE_ASPELL");