Replace further references to libwebp with webp and move from CFLAGS to AC_DEFINE

This commit is contained in:
Radek Hvizdos
2017-02-09 12:56:20 +01:00
parent 6163d76384
commit 670fcef4e2
2 changed files with 12 additions and 12 deletions

View File

@@ -343,20 +343,20 @@ AM_COND_IF([FOUND_PKGCONFIG],,[AC_MSG_ERROR([Required package 'pkg-config' not f
#
AC_ARG_WITH(webp,
[ --without-webp Compile without webp image support],
LIBWEBP="no",
LIBWEBP="yes"
WEBP="no",
WEBP="yes"
)
HAVE_LIBWEBP=""
if test "${LIBWEBP}" = "yes"; then
HAVE_WEBP=""
if test "${WEBP}" = "yes"; then
AC_MSG_CHECKING(for libwebp)
LIBWEBP_DEPS="libwebp"
if pkg-config $LIBWEBP_DEPS; then
WEBP_DEPS="libwebp"
if pkg-config $WEBP_DEPS; then
AC_MSG_RESULT(found)
HAVE_LIBWEBP="yes"
AC_DEFINE([HAVE_WEBP], 1, [Define to 1 if WEBP is around])
HAVE_WEBP="yes"
TEMP_LIBS="$TEMP_LIBS -lwebp -lwebpmux"
TEMP_CFLAGS="${TEMP_CFLAGS} -DHAVE_WEBP"
else
else
AC_MSG_RESULT(not found)
AC_MSG_ERROR([Required package 'libwebp-dev' not found. Please check motion_guide.html and install necessary dependencies or use the '--without-webp' configuration option.])
fi
@@ -1105,7 +1105,7 @@ else
echo "**********************************************"
fi
if test "${HAVE_LIBWEBP}" = "yes"; then
if test "${HAVE_WEBP}" = "yes"; then
echo "webp support: yes"
else
echo "webp support: no"

View File

@@ -629,8 +629,8 @@ how Motion is built.
<td bgcolor="#edf4f9" word-wrap:break-word > </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --without-libwebp </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Compile without libwebp image support</td>
<td bgcolor="#edf4f9" word-wrap:break-word > --without-webp </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Compile without webp image support</td>
<td bgcolor="#edf4f9" word-wrap:break-word > </td>
</tr>
<tr>