]> granicus.if.org Git - php/commitdiff
Allow AC_ADD_LIBRARY to append library
authorSascha Schumann <sas@php.net>
Sun, 5 Dec 1999 23:10:51 +0000 (23:10 +0000)
committerSascha Schumann <sas@php.net>
Sun, 5 Dec 1999 23:10:51 +0000 (23:10 +0000)
acinclude.m4

index ce8e69937a4d80eaf04cda23931679678fb1502f..47f70a3a8fd9673e09d797ab01599bdc2b62baee 100644 (file)
@@ -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
   ])
 ])