summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-12-30 14:48:26 +0000
committerSascha Schumann <sas@php.net>1999-12-30 14:48:26 +0000
commitafe0e5601bea9bb2929482e6a6c2f91712f59ca2 (patch)
tree1426307e270fe4ff76f9e45db4c23cb260f60cb3 /acinclude.m4
parent2a7fb5146611b783d48414066b989ad9bb27c3d6 (diff)
downloadphp-git-afe0e5601bea9bb2929482e6a6c2f91712f59ca2.tar.gz
Let m4 decide what to do
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 1 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 08305faf83..188659a555 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -243,11 +243,7 @@ dnl add a library to the link line
dnl
AC_DEFUN(AC_ADD_LIBRARY,[
AC_PHP_ONCE(LIBRARY, $1, [
- if test -z "$2"; then
- LIBS="-l$1 $LIBS"
- else
- LIBS="$LIBS -l$1"
- fi
+ ifelse($#, 1, LIBS="-l$1 $LIBS", LIBS="$LIBS -l$1")
])
])