summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Krupin <vlad@php.net>2001-05-17 00:26:12 +0000
committerVlad Krupin <vlad@php.net>2001-05-17 00:26:12 +0000
commit3a56ec8ce25a4edc0fa04d02bb76f512e4eed285 (patch)
tree0bca621e6d5777af3298efa1be5184a279132306
parentffc997f14980ad3beff2c6a9018576aa105b3485 (diff)
downloadphp-git-3a56ec8ce25a4edc0fa04d02bb76f512e4eed285.tar.gz
Fix for bug 10912.
Also, if you explicily specify path in --with-pspell, the directories /usr, /usr/local will no longer be searched even if the library is not found at the specified location (this seems to make more sense)
-rw-r--r--ext/pspell/config.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/pspell/config.m4 b/ext/pspell/config.m4
index b1efe640ef..6b4989c8f2 100644
--- a/ext/pspell/config.m4
+++ b/ext/pspell/config.m4
@@ -5,7 +5,12 @@ PHP_ARG_WITH(pspell,whether to include pspell support,
if test "$PHP_PSPELL" != "no"; then
PHP_EXTENSION(pspell, $ext_shared)
- for i in /usr/local /usr $PHP_PSPELL; do
+ 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
if test -f $i/include/pspell/pspell.h; then
PSPELL_DIR=$i
PSPELL_INCDIR=$i/include/pspell