[Cairo] Re: Patch for cairo --without-x

John Ellson ellson at research.att.com
Thu Nov 27 06:39:06 PST 2003


James Henstridge wrote:

>
> If we decide to require automake >= 1.7 to build Cairo from CVS (which 
> I highly recommend), then it should be pretty easy to conditionally 
> install the cairo-xlib.h with syntax like this:
>
> include_HEADERS = cairo.h
> libcairo_la_SOURCES = ...
> if HAVE_X_BACKEND
> include_HEADERS += cairo-xlib.h
> libcairo_la_SOURCES += cairo_xlib_surface.c
> endif 

This conditional make feature also works in automake-1.6.   We use it in 
graphviz.

It solves the problem that you want "make dist" to recurse into all 
directories, but
that you only conditionally want to make the targets in some of them 
based on
a configure switch.

John






More information about the cairo mailing list