From: foobar Date: Tue, 19 Sep 2000 23:52:24 +0000 (+0000) Subject: This fix prevents adding an empty -l to LIBS X-Git-Tag: php-4.0.3RC1~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83987c17ac32d165d4cfed4eb50134c6fc352817;p=php This fix prevents adding an empty -l to LIBS --- diff --git a/acinclude.m4 b/acinclude.m4 index ee88d32e66..896f8ecb5b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -535,7 +535,9 @@ AC_DEFUN(AC_ADD_INCLUDE,[ ]) 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