summaryrefslogtreecommitdiff
blob: e94586cd426c172c0367bbc139dc7c46af55e4a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
=== modified file 'configure.in'
--- configure.in	2011-05-24 13:09:44 +0000
+++ configure.in	2011-05-24 13:10:12 +0000
@@ -102,7 +102,7 @@
   test $HAVE_LIBSQLITE = no && AC_MSG_WARN([sqlite library not found!
 	support for optional storage \"sqlite\" will be disabled])
 
-LIBS="$LIBS -L. -lipac"
+LIBS="-L. -lipac $LIBS"
 
 dnl Checks for header files if libraries found
 HAVE_POSTGRE=no
@@ -251,7 +251,7 @@
 
 	storagemethod_makefiles="$storagemethod_makefiles storage/$sm/Makefile"
 	STORAGEMETHODLIBRARYS="$STORAGEMETHODLIBRARYS storage/$sm/libstor$sm.a"
-	LIBS="$LIBS -Lstorage/$sm -lstor$sm"
+	LIBS="-Lstorage/$sm -lstor$sm $LIBS "
 	dnl check if the storage method requires any libraries.
 	test -n "$ADDLIBS" && LIBS="$LIBS $ADDLIBS"
 done
@@ -309,7 +309,7 @@
 	fi
 	billagent_makefiles="$billagent_makefiles access/$ag/Makefile"
 	BILLAGENTSLIBRARYS="$BILLAGENTSLIBRARYS access/$ag/libipac$ag.a"
-	LIBS="$LIBS -Laccess/$ag -lipac$ag"
+	LIBS="-Laccess/$ag -lipac$ag $LIBS"
 	dnl check if the access agents requires any libraries.
 	test -n "$ADDLIBS" && LIBS="$LIBS $ADDLIBS"
 done
@@ -383,7 +383,7 @@
 for ag in $ACCAGENTS; do
 	accagent_makefiles="$accagent_makefiles agents/$ag/Makefile"
 	ACCAGENTSLIBRARYS="$ACCAGENTSLIBRARYS agents/$ag/libipac$ag.a"
-	LIBS="$LIBS -Lagents/$ag -lipac$ag"
+	LIBS="-Lagents/$ag -lipac$ag $LIBS"
 	dnl check if the accounting agents requires any libraries.
 	ADDLIBS=`grep 'NEEDLIBS=' agents/$ag/Makefile.in | \
 			sed -e 's/^# *NEEDLIBS=//' -e 's/ *$//'`