apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: Autoconf question: conditional compile
Date Wed, 08 Aug 2001 19:56:07 GMT
Justin Erenkrantz wrote:

> I think you'd want:
> 
> #include <apu.h>
> ...
> #if APU_HAS_LDAP
> /* LDAP code here. */
> #else
> /* You don't have LDAP, so don't do anything. */
> #endif
> 
> The trick is that APU_HAS_LDAP should be a 0 or 1 value not a simple
> define.  And, I think rbb (or Doug?) pointed out that it should be
> APR_HAS_LDAP since that symbol doesn't conflict with APR.

So I would create an apr_ldap.h.in, and use a substitution to insert a 1
or a 0? Or is there another way?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."
Mime
View raw message