mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 14:34:33 +02:00
add proper WEBP_HAVE_GIF and WEBP_HAVE_GL flags
...and make gif2webp and vwebp compile without them. Makefile.vc still to be updated... Meanwhile the CL environment variable can be supplemented with set CL=/DWEBP_HAVE_GL /IC:\opt\freeglut\include Change-Id: I37a60b8c32aafd125bffa98b6cc9f57c022ebbd0
This commit is contained in:
11
configure.ac
11
configure.ac
@ -187,6 +187,8 @@ if test "$glut_headers" = "yes"; then
|
||||
glutMainLoop();
|
||||
])
|
||||
],
|
||||
AC_DEFINE(WEBP_HAVE_GL, [1],
|
||||
[Set to 1 if OpenGL is supported])
|
||||
[glut_support=yes], []
|
||||
)
|
||||
if test "$glut_support" = "yes"; then
|
||||
@ -296,6 +298,8 @@ LIBCHECK_PROLOGUE([GIF])
|
||||
AC_CHECK_HEADER(gif_lib.h,
|
||||
AC_CHECK_LIB([gif], [DGifOpenFileHandle],
|
||||
[GIF_LIBS="$GIF_LIBS -lgif"
|
||||
AC_DEFINE(WEBP_HAVE_GIF, [1],
|
||||
[Set to 1 if GIF library is installed])
|
||||
gif_support=yes
|
||||
],
|
||||
AC_MSG_WARN(Optional gif library not found),
|
||||
@ -443,7 +447,8 @@ dwebp : yes
|
||||
=====================
|
||||
PNG : ${png_support-no}
|
||||
WIC : ${wic_support-no}
|
||||
gif2webp : ${build_gif2webp-no}
|
||||
webpmux : ${enable_libwebpmux-no}
|
||||
vwebp : ${build_vwebp-no}
|
||||
GIF support : ${gif_support-no}
|
||||
gif2webp : ${build_gif2webp-no}
|
||||
webpmux : ${enable_libwebpmux-no}
|
||||
vwebp : ${build_vwebp-no}
|
||||
])
|
||||
|
Reference in New Issue
Block a user