sniper          Wed Feb 16 22:51:50 2005 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/pspell config.m4 
  Log:
  MFH:- Fixed bug #29554 (compile failure when using --with-pspell=/usr/local)
  
http://cvs.php.net/diff.php/php-src/ext/pspell/config.m4?r1=1.8.2.1&r2=1.8.2.2&ty=u
Index: php-src/ext/pspell/config.m4
diff -u php-src/ext/pspell/config.m4:1.8.2.1 
php-src/ext/pspell/config.m4:1.8.2.2
--- php-src/ext/pspell/config.m4:1.8.2.1        Sat Aug  9 14:43:58 2003
+++ php-src/ext/pspell/config.m4        Wed Feb 16 22:51:50 2005
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: config.m4,v 1.8.2.1 2003/08/09 18:43:58 sniper Exp $
+dnl $Id: config.m4,v 1.8.2.2 2005/02/17 03:51:50 sniper Exp $
 dnl
 
 PHP_ARG_WITH(pspell,for PSPELL support,
@@ -29,8 +29,17 @@
 
        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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to