configure: Check if libwebp compilation will succeed.
Autodetect webp files.