2015.04.13 18:03 "[Tiff] Reliable way to detect library version", by Larry Gritz

2015.04.13 19:37 "Re: [Tiff] Reliable way to detect library version", by Bob Friesenhahn

But now I see that 4.0.2 has an older date than 3.9.7.

So... what's the best/official way to reliably detect which TIFF version we have, at build time, in order to avoid compilation errors when using newer API calls that may or may not be present in the installed libtiff on the build machine?

It looks like you are out of luck. There is no reliable mechanism available other than 'configure' time checks or run-time checks (e.g. dlsym()).

The TIFFLIB_VERSION_STR from tiffvers.h is reliable, but not very useful for the C pre-processor.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/