From: foobar Date: Thu, 17 Feb 2005 03:51:50 +0000 (+0000) Subject: MFH:- Fixed bug #29554 (compile failure when using --with-pspell=/usr/local) X-Git-Tag: php-4.3.11RC1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c1566eec1f8ef4397c929e0fa99514d28c948ba;p=php MFH:- Fixed bug #29554 (compile failure when using --with-pspell=/usr/local) --- diff --git a/ext/pspell/config.m4 b/ext/pspell/config.m4 index 955ddbf770..28be70dd20 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/lib - 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