via the MOD_XXX_LDADD variables.
Use APR_ADDTO instead of APR_SETVAR or direct
variable assignment.
This is especially useful when building mod_lua
or mod_deflate against a lua resp. libz which
are installed in non-standard locations.
One can add "-R ..." to MOD_LUA_LDADD and
MOD_DEFLATE_LDADD before configure to fix
the RPATH/RUNPATH of those modules.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1142938 13f79535-47bb-0310-9956-
ffa450edef68
*) configure: tolerate dependency checking failures for modules if
they have been enabled implicitely. [Rainer Jung]
+ *) configure: Allow to specify module specific custom linker flags via
+ the MOD_XXX_LDADD variables. [Rainer Jung]
+
Changes with Apache 2.3.13
*) ab: Support specifying the local address to use. PR 48930.
dnl modules in one, so as to share the LDAP server config directives.
APACHE_MODULE(authnz_ldap, LDAP based authentication, , , no, [
if test "$ap_has_ldap" = "1" ; then
- MOD_AUTHNZ_LDAP_LDADD="$LDADD_ldap"
+ APR_ADDTO(MOD_AUTHNZ_LDAP_LDADD, [$LDADD_ldap])
else
enable_authnz_ldap=no
fi
AC_MSG_CHECKING([for zlib library])
AC_TRY_LINK([#include <zlib.h>], [int i = Z_OK;],
[AC_MSG_RESULT(found)
- APR_SETVAR(MOD_DEFLATE_LDADD, [$ap_zlib_ldflags -lz])],
+ APR_ADDTO(MOD_DEFLATE_LDADD, [$ap_zlib_ldflags -lz])],
[AC_MSG_RESULT(not found)
enable_deflate=no
INCLUDES=$ap_save_includes
APACHE_MODULE(ldap, LDAP caching and connection pooling services, $ldap_objects, , no, [
if test "$ap_has_ldap" = "1" ; then
- MOD_LDAP_LDADD="$LDADD_ldap"
+ APR_ADDTO(MOD_LDAP_LDADD, [$LDADD_ldap])
else
enable_ldap=no
fi
APACHE_MODULE(lua, Apache Lua Framework, $lua_objects, , no, [
CHECK_LUA()
- APR_ADDTO(INCLUDES, ["$LUA_CFLAGS"])
- MOD_LUA_LDADD="$LUA_LIBS"
+ APR_ADDTO(INCLUDES, [$LUA_CFLAGS])
+ APR_ADDTO(MOD_LUA_LDADD, [$LUA_LIBS])
])
APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
APACHE_MODULE(serf, [Reverse proxy module using Serf], , , no, [
APACHE_CHECK_SERF
if test "$ac_cv_serf" = "yes" ; then
- APR_SETVAR(MOD_SERF_LDADD, [\$(SERF_LIBS)])
+ APR_ADDTO(MOD_SERF_LDADD, [\$(SERF_LIBS)])
else
enable_serf=no
fi
dnl # hook module into the Autoconf mechanism (--enable-ssl option)
APACHE_MODULE(ssl, [SSL/TLS support (mod_ssl)], $ssl_objs, , no, [
APACHE_CHECK_SSL_TOOLKIT
- APR_SETVAR(MOD_SSL_LDADD, [\$(SSL_LIBS)])
+ APR_ADDTO(MOD_SSL_LDADD, [\$(SSL_LIBS)])
CHECK_OCSP
if test "x$enable_ssl" = "xshared"; then
# The only symbol which needs to be exported is the module
APACHE_CHECK_SERF
if test "$ac_cv_serf" = yes ; then
- APR_SETVAR(MOD_MPM_EVENT_LDADD,[\$(SERF_LIBS)])
+ APR_ADDTO(MOD_MPM_EVENT_LDADD,[\$(SERF_LIBS)])
fi
APACHE_SUBST(MOD_MPM_EVENT_LDADD)