Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 89666 invoked from network); 6 Jan 2005 10:32:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Jan 2005 10:32:22 -0000 Received: (qmail 36640 invoked by uid 500); 6 Jan 2005 10:32:21 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 36432 invoked by uid 500); 6 Jan 2005 10:32:20 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 36415 invoked by uid 99); 6 Jan 2005 10:32:20 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 06 Jan 2005 02:32:17 -0800 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j06AWEKo012744 for ; Thu, 6 Jan 2005 05:32:14 -0500 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j06AWDr04524 for ; Thu, 6 Jan 2005 05:32:13 -0500 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.13.1/8.12.7) with ESMTP id j06AWAr0012865 for ; Thu, 6 Jan 2005 10:32:10 GMT Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.13.1/8.12.10/Submit) id j06AW9s3012864 for dev@apr.apache.org; Thu, 6 Jan 2005 10:32:09 GMT Date: Thu, 6 Jan 2005 10:32:09 +0000 From: Joe Orton To: dev@apr.apache.org Subject: Re: autoconf help: enable a feature based on the string value of a #define Message-ID: <20050106103209.GC9982@redhat.com> Mail-Followup-To: dev@apr.apache.org References: <31077.196.8.104.31.1105000825.squirrel@196.8.104.31> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <31077.196.8.104.31.1105000825.squirrel@196.8.104.31> User-Agent: Mutt/1.4.1i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, Jan 06, 2005 at 10:40:25AM +0200, Graham Leggett wrote: > Hi all, > > The LDAP C API defines the LDAP_VENDOR_NAME symbol to identify the > toolkit. This symbol contains a string, such as "OpenLDAP" or "Novell". > > I would like autoconf to define APR_HAS_OPENLDAP_SDK if this #define > contains the string "OpenLDAP", and I have not been able to figure out how > to do it. > > Has anybody solved this problem before? something like: AC_EGREP_CPP(OpenLDAP, [#include LDAP_VENDOR_NAME]) wrapped in AC_CACHE_CHECK as normal, should work. joe