summaryrefslogtreecommitdiff
path: root/ext/pspell/config.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-02-17 03:51:19 +0000
committerfoobar <sniper@php.net>2005-02-17 03:51:19 +0000
commit4585c15cb04ac0f7da95ed04ecc808bfd1681417 (patch)
treeee65103c8ea1c1fcb3a61c1a451c09bc0f5c3fb1 /ext/pspell/config.m4
parent0b9addb57bd71c2ef5c87a28ed058b6bb7f9fafd (diff)
downloadphp-git-4585c15cb04ac0f7da95ed04ecc808bfd1681417.tar.gz
- Fixed bug #29554 (compile failure when using --with-pspell=/usr/local)
Diffstat (limited to 'ext/pspell/config.m4')
-rw-r--r--ext/pspell/config.m413
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/pspell/config.m4 b/ext/pspell/config.m4
index 2f0581eaf3..3ed404237c 100644
--- a/ext/pspell/config.m4
+++ b/ext/pspell/config.m4
@@ -29,8 +29,17 @@ if test "$PHP_PSPELL" != "no"; then
PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR
- AC_DEFINE(HAVE_PSPELL,1,[ ])
- PHP_SUBST(PSPELL_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(pspell, $PSPELL_LIBDIR, PSPELL_SHARED_LIBADD)
+
+ dnl Add -laspell to LIBS if it exists
+ PHP_CHECK_LIBRARY(aspell,new_aspell_config,
+ [
+ PHP_ADD_LIBRARY_WITH_PATH(aspell, $PSPELL_LIBDIR, PSPELL_SHARED_LIBADD)
+ ], [], [
+ -L$PSPELL_LIBDIR
+ ])
+
PHP_ADD_INCLUDE($PSPELL_INCDIR)
+ PHP_SUBST(PSPELL_SHARED_LIBADD)
+ AC_DEFINE(HAVE_PSPELL,1,[ ])
fi