]> granicus.if.org Git - php/commitdiff
Fix for bug 10912.
authorVlad Krupin <vlad@php.net>
Thu, 17 May 2001 00:26:12 +0000 (00:26 +0000)
committerVlad Krupin <vlad@php.net>
Thu, 17 May 2001 00:26:12 +0000 (00:26 +0000)
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)

ext/pspell/config.m4

index b1efe640eff7471bed725dac9f2ae5bfdfa6f298..6b4989c8f2980d5b68dd86444780032d41a715f3 100644 (file)
@@ -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