From dev-return-21174-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Thu Nov 13 04:59:10 2008 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 31170 invoked from network); 13 Nov 2008 04:59:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2008 04:59:10 -0000 Received: (qmail 87983 invoked by uid 500); 13 Nov 2008 04:59:16 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 87853 invoked by uid 500); 13 Nov 2008 04:59:16 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 87842 invoked by uid 99); 13 Nov 2008 04:59:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2008 20:59:16 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [213.191.128.81] (HELO mxout2.iskon.hr) (213.191.128.81) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 13 Nov 2008 04:57:55 +0000 Received: (qmail 11647 invoked from network); 13 Nov 2008 05:58:35 +0100 X-Remote-IP: 213.191.142.123 Received: from unknown (HELO mx.iskon.hr) (213.191.142.123) by mxout2.iskon.hr with SMTP; 13 Nov 2008 05:58:35 +0100 Received: (qmail 26995 invoked from network); 13 Nov 2008 05:58:35 +0100 X-AVScan: ClamAV X-Remote-IP: 89.164.35.102 Received: from 35-102.dsl.iskon.hr (HELO mturk.csb) (89.164.35.102) by mx.iskon.hr with SMTP; 13 Nov 2008 05:58:35 +0100 Message-ID: <491BB3FA.2080601@apache.org> Date: Thu, 13 Nov 2008 05:58:34 +0100 From: Mladen Turk User-Agent: Thunderbird 2.0.0.17 (X11/20080915) MIME-Version: 1.0 To: APR Developer List Subject: Re: Purpose of defined APU_HAVE_XXX-DBD in apu.h for dso build References: <491AEBF0.7030408@apache.org> <1226530061.2783.93.camel@shrek.rexursive.com> In-Reply-To: <1226530061.2783.93.camel@shrek.rexursive.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Bojan Smojver wrote: > > If you don't define those things, your drivers will contain nothing. We > have code like this: > > #if APU_HAVE_SQLITE3 > > #endif > > What did you have in mind? > Well, any #define in apu.h should state with what option it _HAS/_HAVE compiled in. In case the sqlite3 was compiled statically the define makes perfect sense, cause apu depends on libsqlite3. In case of module it means nothing cause particular dbd driver support is determined at run-time by successful loading of module driver. Regards -- ^(TM)