summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2000-09-19 23:52:24 +0000
committerfoobar <sniper@php.net>2000-09-19 23:52:24 +0000
commit83987c17ac32d165d4cfed4eb50134c6fc352817 (patch)
tree96a5e6669b849d03d9b651fa75c8ee7df972eba5 /acinclude.m4
parentd836f5d4c0b6848a7811cd43534aeddf12532041 (diff)
downloadphp-git-83987c17ac32d165d4cfed4eb50134c6fc352817.tar.gz
This fix prevents adding an empty -l to LIBS
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
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