mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +02:00
gif2webp build support with autoconf tools
Change-Id: I51a007e7931f05f2eb2ac062038309c2127df3fd
This commit is contained in:
26
configure.ac
26
configure.ac
@ -148,6 +148,32 @@ AC_SUBST(TIFF_INCLUDES)
|
||||
CPPFLAGS=$SAVED_CPPFLAGS
|
||||
LIBS=$SAVED_LIBS
|
||||
|
||||
dnl === check for GIF support ===
|
||||
|
||||
WEBP_HAVE_GIF=""
|
||||
GIF_LIBS=""
|
||||
WITHLIB_OPTION([gif], [GIF])
|
||||
|
||||
SAVED_LIBS=$LIBS
|
||||
LIBS="$GIF_LIBS $LIBS"
|
||||
|
||||
AC_CHECK_HEADER(gif_lib.h,
|
||||
AC_CHECK_LIB([gif], [DGifOpenFileHandle],
|
||||
[GIF_LIBS="$GIF_LIBS -lgif"
|
||||
WEBP_HAVE_GIF=1
|
||||
],
|
||||
AC_MSG_WARN(Optional gif library not found),
|
||||
[$MATH_LIBS]),
|
||||
AC_MSG_WARN(gif library not available - no gif_lib.h)
|
||||
)
|
||||
AC_SUBST(GIF_LIBS)
|
||||
|
||||
CPPFLAGS=$SAVED_CPPFLAGS
|
||||
LIBS=$SAVED_LIBS
|
||||
|
||||
AM_CONDITIONAL([BUILD_GIF2WEBP], [test "$WEBP_HAVE_GIF" = "1" -a \
|
||||
"$enable_experimental_libwebpmux" = "yes"])
|
||||
|
||||
dnl === check for WIC support ===
|
||||
|
||||
if test "$target_os" = "mingw32"; then
|
||||
|
Reference in New Issue
Block a user