A fix to configure-system..(acinclude.m4)..

From: Date: Mon, 18 Sep 2000 21:25:57 +0000
Subject: A fix to configure-system..(acinclude.m4)..
Groups: php.dev 
Request: Send a blank email to php-dev+get-33441@lists.php.net to get a copy of this message
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

« previous php.dev (#33441) next »