[GRASS-dev] odd configure error on MacOS X

Markus Neteler neteler at osgeo.org
Sat Jul 30 17:42:11 EDT 2011


On Fri, Jul 29, 2011 at 9:11 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Dylan Beaudette wrote:
>
>> ... removing '--with-cairo-ldflags=-lfontconfig' allows configure to
>> complete, and running make results in:
>
>> Graph.c:19:23: error: cairo-svg.h: No such file or directory
>>
>> ... look like I need to do some more homework.
>
> That header was never conditionalised, as the SVG back-end was assumed
> to always be available. Likewise for PostScript and PDF.
>
> In r47311, all of the back-end-specific headers are conditionalised
> upon the appropriate feature macros; also, configure explicitly checks
> for the various packages (cairo-ps, cairo-pdf, cairo-svg are treated
> as separate packages by pkg-config).

Should I backport this? I suppose yes.

An observation:
grass70/configure.in" line 1632
[CAIRO_HAS_XRENDER_SURFACE=1],[CAIRO_HAS_XRENDER_SURFACE=])
AC_SUBST(CAIRO_HAS_XRENDER)
LOC_CHECK_FUNC(cairo_xlib_surface_get_xrender_format,,,,,$CAIROLIB,
[CAIRO_HAS_XRENDER_SURFACE=1],[CAIRO_HAS_XRENDER_SURFACE=])

while
grass64/configure.in" line 1670
[CAIRO_HAS_XRENDER=1],[CAIRO_HAS_XRENDER=0])
AC_SUBST(CAIRO_HAS_XRENDER)

-> note the =0 in 6.4 while in 7 there is only = for the 0 case.

This looks inconsistent to me.

Markus


More information about the grass-dev mailing list