comparison configure.ac @ 29972: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 d27d7b280bdb
comparison
equal deleted inserted replaced
29971:a0e90156741c 29972:9472a82eb553
1047 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[ 1047 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[
1048 #if defined(__GG_LIBGADU_HAVE_OPENSSL) || defined(GG_CONFIG_HAVE_OPENSSL) 1048 #if defined(__GG_LIBGADU_HAVE_OPENSSL) || defined(GG_CONFIG_HAVE_OPENSSL)
1049 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." 1049 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support."
1050 #endif 1050 #endif
1051 ]])], [ 1051 ]])], [
1052 AC_MSG_RESULT(yes) 1052 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[
1053 AC_DEFINE([HAVE_LIBGADU], [1], 1053 #if GG_DEFAULT_PROTOCOL_VERSION < 0x2e
1054 [Define to 1 if you have libgadu.]) 1054 #error "Your libgadu version is too old. libpurple requires 1.9.0-rc2 or higher."
1055 #endif
1056 ]])], [
1057 AC_MSG_RESULT(yes)
1058 AC_DEFINE([HAVE_LIBGADU], [1],
1059 [Define to 1 if you have libgadu.])
1060 ], [
1061 AC_MSG_RESULT(no)
1062 echo
1063 echo
1064 echo "Your supplied copy of libgadu is too old."
1065 echo "Install version 1.9.0-rc2 or newer."
1066 echo "Then rerun this ./configure"
1067 echo
1068 echo "Falling back to using our own copy of libgadu"
1069 echo
1070 GADU_LIBS=""
1071 GADU_CFLAGS=""
1072 gadu_libs=no
1073 ])
1055 ], [ 1074 ], [
1056 AC_MSG_RESULT(no) 1075 AC_MSG_RESULT(no)
1057 echo 1076 echo
1058 echo 1077 echo
1059 echo "libgadu is not compatible with the GPL when compiled with OpenSSL support." 1078 echo "libgadu is not compatible with the GPL when compiled with OpenSSL support."