configure: rewrote the detection for WebP image library
commite1146e56e08af2a66aecedffc6ff31d8ddcb25f3
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 15 Dec 2014 22:49:29 +0000 (15 23:49 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 16 Dec 2014 09:37:48 +0000 (16 09:37 +0000)
treebe45ebec91c9ffb578bebbab9986bc342673769b
parent7d6ecb51f66b65221a5df56f2e4907f7a65f4ee4
configure: rewrote the detection for WebP image library

Unfortunately, the detection was broken because the header is using a hack
on the function name to provide compatibility between different versions of
the API, which means the usual link test, which uses a known name of a
symbol, cannot work without also using the header to get the hack applied
on the function's name.

The new detection mechanism now simply check for both header and link at
the same time, so we're probably safe until a Major API change is decided,
in which case we will also have to update WRaster's code anyway.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
m4/wm_imgfmt_check.m4