You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rj...@apache.org on 2009/01/03 01:20:14 UTC

svn commit: r730876 - in /httpd/httpd/trunk/modules: lua/config.m4 proxy/config.m4

Author: rjung
Date: Fri Jan  2 16:20:14 2009
New Revision: 730876

URL: http://svn.apache.org/viewvc?rev=730876&view=rev
Log:
Use LDADD mechanism to only link mod_serf resp.
mod_lua to libserf resp. liblua.

No need to include this dependency in all other
modules and binaries.

Modified:
    httpd/httpd/trunk/modules/lua/config.m4
    httpd/httpd/trunk/modules/proxy/config.m4

Modified: httpd/httpd/trunk/modules/lua/config.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/config.m4?rev=730876&r1=730875&r2=730876&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/config.m4 (original)
+++ httpd/httpd/trunk/modules/lua/config.m4 Fri Jan  2 16:20:14 2009
@@ -100,8 +100,8 @@
 APACHE_MODULE(lua, Apache Lua Framework, $lua_objects, , no,
 [
 CHECK_LUA()
-APR_ADDTO(LIBS, ["$LUA_LIBS"])
 APR_ADDTO(INCLUDES, ["$LUA_CFLAGS"])
+MOD_LUA_LDADD="$LUA_LIBS"
 ])
 
 APACHE_MODPATH_FINISH

Modified: httpd/httpd/trunk/modules/proxy/config.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/config.m4?rev=730876&r1=730875&r2=730876&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/config.m4 (original)
+++ httpd/httpd/trunk/modules/proxy/config.m4 Fri Jan  2 16:20:14 2009
@@ -77,8 +77,7 @@
   ])
   
   if test "$serf_found" = "yes"; then
-    APR_ADDTO(LDFLAGS, ["-L$serf_prefix/lib"])
-    APR_ADDTO(LIBS, ["-lserf-0"])
+    MOD_SERF_LDADD="-L$serf_prefix/lib -lserf-0"
     APR_ADDTO(INCLUDES, ["-I$serf_prefix/include/serf-0"])
   else
     AC_MSG_ERROR(unable to find serf)