Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 35880 invoked from network); 9 Feb 2009 17:48:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2009 17:48:08 -0000 Received: (qmail 44646 invoked by uid 500); 9 Feb 2009 17:48:08 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 44601 invoked by uid 500); 9 Feb 2009 17:48:08 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 44592 invoked by uid 99); 9 Feb 2009 17:48:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 09:48:08 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 17:48:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 22A12238896F; Mon, 9 Feb 2009 17:47:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r742653 - in /apr/apr-util/branches/1.3.x: CHANGES build/apu-conf.m4 Date: Mon, 09 Feb 2009 17:47:40 -0000 To: commits@apr.apache.org From: trawick@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090209174741.22A12238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: trawick Date: Mon Feb 9 17:47:40 2009 New Revision: 742653 URL: http://svn.apache.org/viewvc?rev=742653&view=rev Log: Backport LDAP config fixes from trunk revisions 737705, 737754, and 741150 Support ldap library names with non-alphanumeric characters, such as libldap-2.4.so. Allow the name of the lber library to be specified. Fix a problem reporting the lber library from apu-N-config. It wouldn't be reported if you override the default ldap library name using --with-ldap=FOO. Modified: apr/apr-util/branches/1.3.x/CHANGES apr/apr-util/branches/1.3.x/build/apu-conf.m4 Modified: apr/apr-util/branches/1.3.x/CHANGES URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/CHANGES?rev=742653&r1=742652&r2=742653&view=diff ============================================================================== --- apr/apr-util/branches/1.3.x/CHANGES [utf-8] (original) +++ apr/apr-util/branches/1.3.x/CHANGES [utf-8] Mon Feb 9 17:47:40 2009 @@ -1,6 +1,12 @@ -*- coding: utf-8 -*- Changes with APR-util 1.3.5 + *) LDAP detection improvements: --with-ldap now supports library names + containing non-alphanumeric characters, such as libldap-2.4.so. New + option --with-lber can be used to override the default liblber name. + Fix a problem reporting the lber library from apu-N-config. + [Jeff Trawick] + *) Suppress pgsql column-out-of-range warning. PR 46012 [Michiel van Loon ] Modified: apr/apr-util/branches/1.3.x/build/apu-conf.m4 URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/build/apu-conf.m4?rev=742653&r1=742652&r2=742653&view=diff ============================================================================== --- apr/apr-util/branches/1.3.x/build/apu-conf.m4 (original) +++ apr/apr-util/branches/1.3.x/build/apu-conf.m4 Mon Feb 9 17:47:40 2009 @@ -187,8 +187,12 @@ if test ${apu_has_ldap} != "1"; then ldaplib=$1 extralib=$2 - unset ac_cv_lib_${ldaplib}_ldap_init - unset ac_cv_lib_${ldaplib}___ldap_init + # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. + changequote(,) + ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" + changequote([,]) + unset ac_cv_lib_${ldaplib_cache_id}_ldap_init + unset ac_cv_lib_${ldaplib_cache_id}___ldap_init AC_CHECK_LIB(${ldaplib}, ldap_init, [ LDADD_ldap="-l${ldaplib} ${extralib}" @@ -231,6 +235,18 @@ apu_has_ldap_other="0" LDADD_ldap="" +AC_ARG_WITH(lber,[ --with-lber=library lber library to use], + [ + if test "$withval" = "yes"; then + apu_liblber_name="lber" + else + apu_liblber_name="$withval" + fi + ], + [ + apu_liblber_name="lber" + ]) + AC_ARG_WITH(ldap-include,[ --with-ldap-include=path path to ldap include files with trailing slash]) AC_ARG_WITH(ldap-lib,[ --with-ldap-lib=path path to ldap lib file]) AC_ARG_WITH(ldap,[ --with-ldap=library ldap library to use], @@ -269,7 +285,8 @@ fi test ${apu_has_ldap} != "1" && AC_MSG_ERROR(could not find an LDAP library) - AC_CHECK_LIB(lber, ber_init) + AC_CHECK_LIB($apu_liblber_name, ber_init, + [LDADD_ldap="${LDADD_ldap} -l${apu_liblber_name}"]) AC_CHECK_HEADERS(lber.h, lber_h=["#include "])