have been looking more into this...<br>ubuntu, debian, redhat, mandrake and probably others all bundle their libagg-dev or equivalent with the .h in the agg include directory and with libaggfontfreetype.so in lib .<br>things go badder if you try to compile using the source directory of agg as your --with-agg parameter, as 
libaggfontfreetype.o is not compiled by default, and agg_font_freetype.h is not in the include directory.<br>for the autoconf knowledgeable:<br>&nbsp;would their be a way of checking if agg_font_freetype.h and libaggfontfreetype.so
 are in the default paths,<br>and then setting AGG_LIB=-lagg -laggfontfreetype,<br>&nbsp;and if not compile or have the user compile $AGG_DIR/font_freetype/agg_font_freetype.cpp, and then have AGG_INC+=AGG_DIR/font_freetype and AGG_LIB=AGG_DIR/font_freetype/agg_font_freetype.o -lagg
<br><br>I think falling back to GD would be a pity as it&#39;s relatively easy to set this up<br><br>tb<br><br><br><br><div><span class="gmail_quote">On 8/6/07, <b class="gmail_sendername">Stephen Woodbridge</b> &lt;<a href="mailto:woodbri@swoodbridge.com">
woodbri@swoodbridge.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Should this be added as a configure option? ie: use it if agg is
<br>selected and the libaggfontfreetype or the .h is included in the<br>distribution, otherwise fall back on GD by using #ifdef&#39;s.<br><br>-Steve<br><br>thomas bonfort wrote:<br>&gt; update:<br>&gt; ubuntu&#39;s distribution of agg includes the header file, and all goes well
<br>&gt; if I add -laggfontfreetype to the LIBS<br>&gt;<br>&gt; On 8/6/07, *thomas bonfort* &lt;<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a><br>&gt; &lt;mailto:<a href="mailto:thomas.bonfort@gmail.com">
thomas.bonfort@gmail.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; hi devs<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; AGG rendering is now mostly complete, including font rendering.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; the agg source distribution includes a freetype font manager that is
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; not built by default and not included in the main source/include<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; directories, but in the font_freetype subdir. For font rendering to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; work, I&#39;ve pulled agg_font_freetype.cpp and .h into the mapserver
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; directory, as there are high chances that distribution releases of<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; AGG will not include the agg_font_freetype.o in their libagg or<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; agg_font_freetype.h in their headers.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; After discussing this with frank, due to the non negligeable risks
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; of breaking things, I&#39;ll be waiting for your feedback/comments/etc..<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; on this before commiting all this.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; thomas<br>&gt;<br>&gt;<br><br></blockquote></div><br>