From: Anatol Belski Date: Fri, 24 Jul 2015 15:06:01 +0000 (+0200) Subject: fix libwebp namings X-Git-Tag: php-7.0.0beta3~5^2~97^2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf1ecbfe168e0f59c0deacbf7f2012c0d36a7f08;p=php fix libwebp namings --- diff --git a/ext/gd/config.w32 b/ext/gd/config.w32 index f0e0b2296a..2779a5b32d 100644 --- a/ext/gd/config.w32 +++ b/ext/gd/config.w32 @@ -23,7 +23,7 @@ if (PHP_GD != "no") { ) { if (PHP_LIBWEBP != "no") { - if (CHECK_LIB("libwebp.lib", "gd", PHP_GD) && + if ((CHECK_LIB("libwebp_a.lib", "gd", PHP_GD) || CHECK_LIB("libwebp.lib", "gd", PHP_GD)) && CHECK_HEADER_ADD_INCLUDE("decode.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\webp") && CHECK_HEADER_ADD_INCLUDE("encode.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\webp")) { ADD_FLAG("CFLAGS_GD", "/D HAVE_LIBWEBP /D HAVE_GD_WEBP");