apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject Re: APR doubts
Date Wed, 12 Jun 2002 17:42:42 GMT
On Wed, 12 Jun 2002, Miguel Camargo wrote:

> First of all,thank you Cliff and Ryan for your answers!

No problem.  :)

> ../apr/include/arch/unix/fileio.h:
>
> at the begining:
>
> #if APR_HAVE_NEWFEATURE_H
> #include <newfeature.h>
> #endif

Right.

> APR code...
>
> #if APR_HAS_NEWFEATURE ? /* or also APR_HAVE_NEWFEATURE_H */
> 	my code
> #endif

APR_HAS_NEWFEATURE is fine, assuming NEWFEATURE is some "broad feature"
and not just a single function call or something.  You can set up
configure.in to only define APR_HAS_NEWFEATURE to 1 if all of the
functions and headers and stuff that it would need are actually present,
meaning that you don't need to test APR_HAVE_FUNCTION1 &&
APR_HAVE_FUNCTION2 && .. && APR_HAS_NEWFEATURE, since APR_HAS_NEWFEATURE
should already only be true if the others are all true.  Which means the
other macros don't even really need to exist if you don't want them to.
All you should need is APR_HAVE_NEWFEATURE_H and APR_HAS_NEWFEATURE.

--Cliff


Mime
View raw message