diff options
author | foobar <sniper@php.net> | 2000-09-19 23:52:24 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2000-09-19 23:52:24 +0000 |
commit | 83987c17ac32d165d4cfed4eb50134c6fc352817 (patch) | |
tree | 96a5e6669b849d03d9b651fa75c8ee7df972eba5 /acinclude.m4 | |
parent | d836f5d4c0b6848a7811cd43534aeddf12532041 (diff) | |
download | php-git-83987c17ac32d165d4cfed4eb50134c6fc352817.tar.gz |
This fix prevents adding an empty -l to LIBS
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
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 |