Currently it is not possible to check for supported features at runtime. This would allow projects such as cairocffi (https://github.com/SimonSapin/cairocffi) to provide this information (see https://github.com/SimonSapin/cairocffi/issues/33). This would allow for such things as matplotlib using cairocffi instead of pycairo (which currently works HAS_* is added to the file).
Well, it would be more convenient for something like cairocffi to try to load a symbol and see if it fails...
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/322.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.