[PHP-DEV] A fix to configure-system..(acinclude.m4).. From: Jani Taskinen (sniper <email protected>)
Date: 09/18/00

It seems like that sometimes this macro (PHP_X_ADD_LIBRARY) gets
the first parameter passed to it as empty which causes empty '-l'
to be added. This patch 'fixes' those problems but I'm not sure whether
this is the right way or place to do it so I didn't want to go and just
commit it..so please check this out.

I would also like to hear more comments about nuking the ext/db
completely. See: http://marc.theaimsgroup.com/?l=php-dev&m=96894069232122&w=2
At least Andi commented once..;-)
(I hope the lack of comments were due to the machine problems at toye..)

--Jani

Index: acinclude.m4
===================================================================
RCS file: /repository/php4/acinclude.m4,v
retrieving revision 1.103
diff -u -r1.103 acinclude.m4
--- acinclude.m4 2000/09/11 15:25:06 1.103
+++ acinclude.m4 2000/09/18 21:13:10
@@ -535,7 +535,9 @@
 ])
 
 AC_DEFUN(PHP_X_ADD_LIBRARY,[
- ifelse($2,,$3="-l$1 [$]$3", $3="[$]$3 -l$1")
+ if test -n "$1"; then
+ ifelse($2,,$3="-l$1 [$]$3", $3="[$]$3 -l$1")
+ fi
 ])
 
 dnl

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>