<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
In the example of a .pc file in the manual here<br>
<a class="moz-txt-link-freetext" href="http://people.freedesktop.org/~dbn/pkg-config-guide.html">http://people.freedesktop.org/~dbn/pkg-config-guide.html</a><br>
I noticed the line<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
Cflags: -I${includedir}/foo
<br>
<br>
which is a bit unexpected. Shouldn't it be<br>
<br>
Cflags: -I${includedir}<br>
<br>
If I install header files in ${includedir}/foo I expect users to
include the header as<br>
<br>
#include &lt;foo/bar.h&gt;<br>
<br>
so no -cflags is needed when `bar.h' is installed in a standard
location such as `/usr/include/foo'.<br>
<br>
If, otoh, if `bar.h' is installed in a custom location,
`${includedir}/foo/' such as `opt/include/foo/',&nbsp; I still want to be
able to<br>
<br>
&nbsp;#include &lt;foo/bar.h&gt;<br>
<br>
In order for that to work I need to add `-I/opt/include' and not
`-I/opt/include/foo' to the compiler arguments.<br>
<br>
Am I missing somethings?<br>
<br>
Thanks,<br>
Peter<br>
</body>
</html>