wrlib: Moved configure's detection of TIFF support to a dedicated macro
commita5ca34ccb1efe99a1d1ab7d5e5e038591a7bc861
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 4 Nov 2013 19:52:31 +0000 (4 20:52 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:02 +0000 (30 18:11 +0000)
treeebae5debe15cdb31c265768c160ff094f06c06db
parent1c21d946ec2eba1e0957605875eaf53fa4349f85
wrlib: Moved configure's detection of TIFF support to a dedicated macro

The original check was not compliant with autoconf's syntax, did not
have a very good behaviour for user and was not easy to make evolve.

The new macro:
 - uses as much as possible autoconf macros for portability and code
consistency;
 - provides a consistent behaviour on yes/no/auto (if user explicitly
enables support, do not silently disable if not found; if library is found
but not the header, complain to let user install it or explicitly disable
support);
 - makes uses of shell functions to keep generated configure smaller by
sharing reusable stuff;
 - uses an automake conditional to avoid compiling the file is support is
not enabled

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
configure.ac
m4/wm_imgfmt_check.m4
wrlib/Makefile.am
wrlib/tiff.c