Mercurial > pidgin
changeset 29572:9472a82eb553
Don't use old versions of libgadu if the user specified a location for the
headers/libraries. GG_DEFAULT_PROTOCOL_VERSION seemed the best bet since
GG_LIBGADU_VERSION is a string, but maybe someone can find something that's
better.
Refs #10542.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 10 Mar 2010 05:10:43 +0000 |
parents | a0e90156741c |
children | 01ed1337dddb |
files | configure.ac |
diffstat | 1 files changed, 22 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Wed Mar 10 05:10:11 2010 +0000 +++ b/configure.ac Wed Mar 10 05:10:43 2010 +0000 @@ -1049,9 +1049,28 @@ #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." #endif ]])], [ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_LIBGADU], [1], - [Define to 1 if you have libgadu.]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[ +#if GG_DEFAULT_PROTOCOL_VERSION < 0x2e +#error "Your libgadu version is too old. libpurple requires 1.9.0-rc2 or higher." +#endif + ]])], [ + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_LIBGADU], [1], + [Define to 1 if you have libgadu.]) + ], [ + AC_MSG_RESULT(no) + echo + echo + echo "Your supplied copy of libgadu is too old." + echo "Install version 1.9.0-rc2 or newer." + echo "Then rerun this ./configure" + echo + echo "Falling back to using our own copy of libgadu" + echo + GADU_LIBS="" + GADU_CFLAGS="" + gadu_libs=no + ]) ], [ AC_MSG_RESULT(no) echo