Hi Harald,

* Harald Dunkel wrote on Wed, Apr 26, 2006 at 10:44:55AM CEST:
> 
> it seems that DEFAULT_INCLUDES is set deeply within
> automake.pl to
> 
>       DEFAULT_INCLUDES = -I. -I$(srcdir)

Only if not using the Automake option `nostdinc'.

> What is the reasoning here?

It's a way to make it possible to treat headers living in `.' and
headers living in `$(srcdir)' equally.
(There may be more reasons I'm unaware of.)

> Doesn't this undermine the difference between
> 
>       #include "myheader.h"
> and
>       #include <myheader.h>
> ?

If you have headers in the source or build tree that have the same names
as installed headers, but should _not_ be preferred over them, then yes,
you should use `nostdinc' to control this.  But this is a situation you,
the developer, can have complete knowledge about.

Cheers,
Ralf


Reply via email to