summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-12-05 23:10:51 +0000
committerSascha Schumann <sas@php.net>1999-12-05 23:10:51 +0000
commit420b11a0fd371dcffe8373b76ed991263418f734 (patch)
tree629bda7af448890875c4f26fba07a9b1f03ad258
parentf2a090c6f18e6b0f12dbee9f590c339ee29e3f90 (diff)
downloadphp-git-420b11a0fd371dcffe8373b76ed991263418f734.tar.gz
Allow AC_ADD_LIBRARY to append library
-rw-r--r--acinclude.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index ce8e69937a..47f70a3a8f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -116,13 +116,17 @@ AC_DEFUN(AC_ADD_INCLUDE,[
])
dnl
-dnl AC_ADD_LIBRARY(library)
+dnl AC_ADD_LIBRARY(library[, append])
dnl
dnl add a library to the link line
dnl
AC_DEFUN(AC_ADD_LIBRARY,[
AC_PHP_ONCE(LIBRARY, $1, [
- LIBS="-l$1 $LIBS"
+ if test -z "$2"; then
+ LIBS="-l$1 $LIBS"
+ else
+ LIBS="$LIBS -l$1"
+ fi
])
])