2001-12-01 03:00:13 +08:00
|
|
|
dnl
|
2000-07-11 05:29:19 +08:00
|
|
|
dnl $Id$
|
2001-12-01 03:00:13 +08:00
|
|
|
dnl
|
2000-07-11 05:29:19 +08:00
|
|
|
|
2001-12-01 03:00:13 +08:00
|
|
|
PHP_ARG_WITH(pspell,for PSPELL support,
|
2002-10-10 03:25:17 +08:00
|
|
|
[ --with-pspell[=DIR] Include PSPELL support.
|
2003-08-10 02:43:45 +08:00
|
|
|
GNU Aspell version 0.50.0 or higher required.])
|
2000-07-11 05:29:19 +08:00
|
|
|
|
2000-07-14 04:39:14 +08:00
|
|
|
if test "$PHP_PSPELL" != "no"; then
|
2002-03-13 00:44:00 +08:00
|
|
|
PHP_NEW_EXTENSION(pspell, pspell.c, $ext_shared)
|
2001-05-17 08:26:12 +08:00
|
|
|
if test "$PHP_PSPELL" != "yes"; then
|
|
|
|
PSPELL_SEARCH_DIRS=$PHP_PSPELL
|
|
|
|
else
|
|
|
|
PSPELL_SEARCH_DIRS="/usr/local /usr"
|
|
|
|
fi
|
|
|
|
for i in $PSPELL_SEARCH_DIRS; do
|
2000-07-14 04:39:14 +08:00
|
|
|
if test -f $i/include/pspell/pspell.h; then
|
|
|
|
PSPELL_DIR=$i
|
|
|
|
PSPELL_INCDIR=$i/include/pspell
|
|
|
|
elif test -f $i/include/pspell.h; then
|
|
|
|
PSPELL_DIR=$i
|
2001-05-17 08:32:45 +08:00
|
|
|
PSPELL_INCDIR=$i/include
|
2000-07-14 04:39:14 +08:00
|
|
|
fi
|
|
|
|
done
|
2000-07-11 05:29:19 +08:00
|
|
|
|
2000-07-14 04:39:14 +08:00
|
|
|
if test -z "$PSPELL_DIR"; then
|
|
|
|
AC_MSG_ERROR(Cannot find pspell)
|
|
|
|
fi
|
|
|
|
|
2004-11-03 22:32:52 +08:00
|
|
|
PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR
|
2000-07-14 04:39:14 +08:00
|
|
|
|
|
|
|
AC_DEFINE(HAVE_PSPELL,1,[ ])
|
|
|
|
PHP_SUBST(PSPELL_SHARED_LIBADD)
|
2001-03-28 04:35:04 +08:00
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(pspell, $PSPELL_LIBDIR, PSPELL_SHARED_LIBADD)
|
|
|
|
PHP_ADD_INCLUDE($PSPELL_INCDIR)
|
2000-07-14 04:39:14 +08:00
|
|
|
fi
|