summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2004-09-12 03:04:55 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2004-09-12 03:04:55 +0000
commitcdb714249f6152ac222f4353c549c751d8264213 (patch)
tree45e04f161d3d3056d469199af1a8b738203c2b5b
parenteb2a9d63bf8d1b43aa14e4aebcd66cc2e44f43fd (diff)
downloadenchant-cdb714249f6152ac222f4353c549c751d8264213.tar.gz
fix 7353
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20959 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--configure.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 26b01a9..e817463 100644
--- a/configure.in
+++ b/configure.in
@@ -129,7 +129,12 @@ if test "x$check_aspell" != "xno"; then
LDFLAGS="-L$with_aspell_prefix/lib "$LDFLAGS
ASPELL_INC="-I$with_aspell_prefix/include"
ASPELL_LIBS="-L$with_aspell_prefix/lib -laspell"
- ASPELL_CFLAGS="-DASPELL_DICT_DIR='\"$with_aspell_prefix/lib/aspell\"'"
+ aspell_major=`$with_aspell_prefix/bin/aspell -v | awk -F. '{print $4;}' | awk -F")" '{print $1;}'`
+ if test "$aspell_major" -ge "50"; then
+ ASPELL_CFLAGS="-DASPELL_0_50_0=1 -DASPELL_DICT_DIR='\"$with_aspell_prefix/lib/aspell\"'"
+ else
+ ASPELL_CFLAGS="-DASPELL_DICT_DIR='\"$with_aspell_prefix/lib/aspell\"'"
+ fi
else
aspell_prefix=${prefix}
if test "x$prefix" = "xNONE"; then
@@ -139,7 +144,7 @@ if test "x$check_aspell" != "xno"; then
AC_CHECK_PROG(HAVE_ASPELL, aspell, yes, no)
if test "x$HAVE_ASPELL" = "xyes"; then
AC_MSG_CHECKING([For Aspell >= 0.50.0])
- aspell_major=`aspell -v | awk -F. '{print $4;}'`
+ aspell_major=`aspell -v | awk -F. '{print $4;}' | awk -F")" '{print $1;}'`
if test "$aspell_major" -ge "50"; then
LDFLAGS="-L`aspell config prefix`/lib "$LDFLAGS
ASPELL_INC="-I`aspell config prefix`/include"