summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/configure.in.in')
-rw-r--r--kopete/protocols/configure.in.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/kopete/protocols/configure.in.in b/kopete/protocols/configure.in.in
index bc946d92..05da3ea5 100644
--- a/kopete/protocols/configure.in.in
+++ b/kopete/protocols/configure.in.in
@@ -40,8 +40,20 @@ if test "x$with_external_libgadu" != xno; then
int main()
{
#if defined __GG_LIBGADU_HAVE_PTHREAD && defined GG_LOGIN60
- int maj, min, date;
- sscanf( gg_libgadu_version(), "%u.%u.%u", &maj,&min,&date );
+ int maj, min, date, items;
+ const char *libgadu_version = gg_libgadu_version();
+
+ items = sscanf( libgadu_version, "%u.%u.%u", &maj,&min,&date );
+
+ if ( items != 3 ) { /* version in YYYYDDMM format only */
+ sscanf( libgadu_version, "%u", &date );
+
+ if ( date < 20040520 )
+ return 1;
+ else
+ return 0;
+ }
+
if ( maj != 1 ) {
return 1;
}