]> granicus.if.org Git - apache/commitdiff
Bring part some parts of r1142938 which were removed
authorRainer Jung <rjung@apache.org>
Sat, 23 Jul 2011 22:24:55 +0000 (22:24 +0000)
committerRainer Jung <rjung@apache.org>
Sat, 23 Jul 2011 22:24:55 +0000 (22:24 +0000)
by the big ldap revert r1150179.

Original commit log:

Use APR_ADDTO instead of APR_SETVAR or direct
variable assignment.

...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1150231 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/config.m4
modules/ldap/config.m4

index 2bd87b8191d0d4829a8458caca2a110d91d527ea..10958e2382ecf55942bba64abc7c85e48d7ca2bd 100644 (file)
@@ -41,10 +41,11 @@ dnl LDAP authentication module. This module has both the authn and authz
 dnl modules in one, so as to share the LDAP server config directives.
 APACHE_MODULE(authnz_ldap, LDAP based authentication, , , no, [
   if test -z "$apu_config" ; then
-      MOD_AUTHNZ_LDAP_LDADD="`$apr_config --ldap-libs`"
+      LDAP_LIBS="`$apr_config --ldap-libs`"
   else
-      MOD_AUTHNZ_LDAP_LDADD="`$apu_config --ldap-libs`"
+      LDAP_LIBS="`$apu_config --ldap-libs`"
   fi
+  APR_ADDTO(MOD_AUTHNZ_LDAP_LDADD, [$LDAP_LIBS])
   AC_SUBST(MOD_AUTHNZ_LDAP_LDADD)
 ])
 
index f962dda2d7383598f16345c8728fc53edc2c8759..2c915b5e8f04118534eb65f55426fac439c92822 100644 (file)
@@ -6,10 +6,11 @@ APACHE_MODPATH_INIT(ldap)
 ldap_objects="util_ldap.lo util_ldap_cache.lo util_ldap_cache_mgr.lo"
 APACHE_MODULE(ldap, LDAP caching and connection pooling services, $ldap_objects, , no, [
   if test -z "$apu_config" ; then
-      MOD_LDAP_LDADD="`$apr_config --ldap-libs`"
+      LDAP_LIBS="`$apr_config --ldap-libs`"
   else
-      MOD_LDAP_LDADD="`$apu_config --ldap-libs`"
+      LDAP_LIBS="`$apu_config --ldap-libs`"
   fi
+  APR_ADDTO(MOD_LDAP_LDADD, [$LDAP_LIBS])
   AC_SUBST(MOD_LDAP_LDADD)
 ])