Lines 114-120
AC_ARG_ENABLE(myspell, [ --disable-mysp
Link Here
|
114 |
if test "x$have_cxx" = "xno"; then |
114 |
if test "x$have_cxx" = "xno"; then |
115 |
build_myspell=no |
115 |
build_myspell=no |
116 |
fi |
116 |
fi |
117 |
AM_CONDITIONAL(WITH_MYSPELL, test "x$build_myspell" = "xyes") |
117 |
|
|
|
118 |
if test "x$build_myspell" = "xexternal"; then |
119 |
PKG_CHECK_MODULES([HUNSPELL], [hunspell >= 1.1.9]) |
120 |
fi |
121 |
|
122 |
AM_CONDITIONAL(WITH_SYSTEM_HUNSPELL, test "x$build_myspell" = "xexternal") |
123 |
AM_CONDITIONAL(WITH_MYSPELL, test "x$build_myspell" != "xno") |
118 |
|
124 |
|
119 |
myspell_dir=${datadir}/enchant/myspell |
125 |
myspell_dir=${datadir}/enchant/myspell |
120 |
AC_ARG_WITH(myspell-dir, [ --with-myspell-dir=PATH path to installed myspell dicts ]) |
126 |
AC_ARG_WITH(myspell-dir, [ --with-myspell-dir=PATH path to installed myspell dicts ]) |
Lines 123-135
if test "x$with_myspell_dir" != "x" ; th
Link Here
|
123 |
myspell_dir=$with_myspell_dir |
129 |
myspell_dir=$with_myspell_dir |
124 |
fi |
130 |
fi |
125 |
|
131 |
|
126 |
MYSPELL_CFLAGS="$MYSPELL_CFLAGS -DENCHANT_MYSPELL_DICT_DIR='\"$myspell_dir\"'" |
132 |
HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS -DENCHANT_MYSPELL_DICT_DIR='\"$myspell_dir\"'" |
127 |
if test "x$with_system_myspell" != "xno"; then |
|
|
128 |
MYSPELL_CFLAGS="$MYSPELL_CFLAGS -DWITH_SYSTEM_MYSPELL=1" |
129 |
fi |
130 |
|
131 |
AC_SUBST(MYSPELL_CFLAGS) |
132 |
AC_SUBST(MYSPELL_LIBS) |
133 |
|
133 |
|
134 |
check_aspell=yes |
134 |
check_aspell=yes |
135 |
build_aspell=no |
135 |
build_aspell=no |