Created attachment 25960 [details] [review] Patch to find openjpeg header in more complex locations as well RedHat/Fedora happen to package the openjpeg header in a peculiar (non-standard) location, namely ${includedir}/openjpeg/openjpeg.h. Note the extra subdirectory. Poppler doesn't need to comply (a bug ticket is already opened against Fedora, see https://bugzilla.redhat.com/show_bug.cgi?id=484887), but it _could_. I'm attaching a patch which gives poppler's openjpeg detection that bit more flexibility. As a side-effect, Fedora could then build poppler against openjpeg out of the box.
The patch looks a bit ugly, isn't there a better way to check for things like this? (total autotools newbie here)
Created attachment 57444 [details] [review] use pkgconfig to find openjpeg openjpeg >= 1.4 installs a pkgconfig file. The attached patch first tries pkgconfig to find libopenjpeg then falls back to the old test.
Created attachment 57445 [details] [review] replace openjpeg compile test with version check Now that openjpeg 1.5 is out and it installs a pkgconfig file the WITH_OPENJPEG_IGNORE_PCLR_CMAP_CDEF_FLAG test can be replaced with a pkgconfig check for >= 1.5.
If it works feel free to commit to master, I'd like the cmake version to be adapted accordingly but if not, well though life
Committed
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.