Generated file 'cairo-features.h' in distribution causes #error in out-of-tree build for quartz
Submitted by Kees van Reeuwijk
Assigned to Vladimir Vukicevic @vladimir
Description
When trying to compile cairo 1.8.10 on Mac OS for the Quartz backend, I get:
error Cairo was not compiled with support for the quartz backend
in src/cairo-quartz-private.h
The reason is that the compile uses the file src/cairo-features.h that came with the distribution, and not the file with the same name that was generated by configure. Since I'm compiling in a different directory than the source directory, the configure output file doesn't overwrite the distributed one.
The fix is obvious: just don't put cairo-features.h in the distribution file.
Also, the #error shown above is misleading: Cairo was not /compiled/ without support for the Quartz backend; it was /configured/ without support for the Quartz backend.
Thus, I suggest to change the #error to:
error Cairo was not configured with support for the quartz backend
Version: 1.8.10