Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjentsch <mtthsjntsch@gmail.com>2015-05-24 01:22:31 +0300
committermjentsch <mtthsjntsch@gmail.com>2015-05-24 01:22:31 +0300
commitc3abf27376e2e6607198f811a6ce04d8894ff3ba (patch)
treea87d6001be0302f04a0bfd9df42dc9af9f3b8a7c /configure
parent899f6bf167cb95c388eb201c17c03dca608d697c (diff)
Add support for displaying stickers in chats
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure69
1 files changed, 69 insertions, 0 deletions
diff --git a/configure b/configure
index 42ff5d3..258c88f 100755
--- a/configure
+++ b/configure
@@ -686,6 +686,7 @@ ac_user_opts='
enable_option_checking
with_openssl
with_zlib
+enable_libwebp
'
ac_precious_vars='build_alias
host_alias
@@ -1306,6 +1307,13 @@ if test -n "$ac_init_help"; then
esac
cat <<\_ACEOF
+Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --disable-libwebp Disable libwebp, stickers won't be displayed in the
+ chat
+
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
@@ -4212,6 +4220,67 @@ $as_echo "yes" >&6; }
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5
+$as_echo_n "checking for libwebp... " >&6; }
+# Check whether --enable-libwebp was given.
+if test "${enable_libwebp+set}" = set; then :
+ enableval=$enable_libwebp;
+fi
+
+ if test "x$enable_libwebp" != "xno"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
+$as_echo "enabled" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGBA in -lwebp" >&5
+$as_echo_n "checking for WebPDecodeRGBA in -lwebp... " >&6; }
+if ${ac_cv_lib_webp_WebPDecodeRGBA+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lwebp $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char WebPDecodeRGBA ();
+int
+main ()
+{
+return WebPDecodeRGBA ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_webp_WebPDecodeRGBA=yes
+else
+ ac_cv_lib_webp_WebPDecodeRGBA=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGBA" >&5
+$as_echo "$ac_cv_lib_webp_WebPDecodeRGBA" >&6; }
+if test "x$ac_cv_lib_webp_WebPDecodeRGBA" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBWEBP 1
+_ACEOF
+
+ LIBS="-lwebp $LIBS"
+
+else
+ as_fn_error $? "no libwebp found, try --disable-libwebp, but stickers won't be displayed in the chat" "$LINENO" 5
+fi
+
+
+fi
+
# Checks for header files.
for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h
do :