mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
2c99bef442
what the respective define does into the AC_DEFINE macro. I.e. AC_DEFINE(HAVE_FOO, 1, [Whether you have FOO])
29 lines
725 B
Plaintext
29 lines
725 B
Plaintext
dnl $Id$
|
|
|
|
AC_MSG_CHECKING(for ASPELL support)
|
|
AC_ARG_WITH(aspell,
|
|
[ --with-aspell[=DIR] Include ASPELL support.],
|
|
[
|
|
if test "$withval" != "no"; then
|
|
if test "$withval" = "yes"; then
|
|
ASPELL_DIR=/usr/local
|
|
else
|
|
ASPELL_DIR=$withval
|
|
fi
|
|
|
|
AC_ADD_INCLUDE($ASPELL_DIR/include)
|
|
AC_ADD_LIBRARY_WITH_PATH(aspell, $ASPELL_DIR/lib)
|
|
|
|
if test ! -f "$ASPELL_DIR/include/aspell-c.h"; then
|
|
AC_MSG_ERROR(Could not find aspell-c.h in $ASPELL_DIR/include - please copy it manually from the aspell sources to $ASPELL_DIR/include)
|
|
fi
|
|
AC_DEFINE(HAVE_ASPELL,1,[Whether you have aspell])
|
|
AC_MSG_RESULT(yes)
|
|
PHP_EXTENSION(aspell)
|
|
else
|
|
AC_MSG_ERROR(no)
|
|
fi
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|