[gaim-migrate @ 15688]

Wed, 22 Feb 2006 03:21:20 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Wed, 22 Feb 2006 03:21:20 +0000
changeset 13320
b562b1baf10a
parent 13319
a2513ca846e7
child 13321
7177bfd7a471

[gaim-migrate @ 15688]
We probably want to know when we have libgadu compiled in...

config.h.mingw file | annotate | diff | comparison | revisions
configure.ac file | annotate | diff | comparison | revisions
src/gtkdialogs.c file | annotate | diff | comparison | revisions
--- a/config.h.mingw	Wed Feb 22 03:07:46 2006 +0000
+++ b/config.h.mingw	Wed Feb 22 03:21:20 2006 +0000
@@ -204,6 +204,9 @@
 /* Define if your <locale.h> file defines LC_MESSAGES. */
 /* #define HAVE_LC_MESSAGES 1 */
 
+/* Define to 1 if you have libgadu. */
+#define HAVE_LIBGADU 1
+
 /* Define to 1 if you have the `nsl' library (-lnsl). */
 /* #define HAVE_LIBNSL 1 */
 
--- a/configure.ac	Wed Feb 22 03:07:46 2006 +0000
+++ b/configure.ac	Wed Feb 22 03:21:20 2006 +0000
@@ -309,17 +309,14 @@
 
 if test "x$gadu_libs" = "xyes"; then
 	AC_MSG_CHECKING(for libgadu GPL compatibility)
-	AC_TRY_COMPILE([], [
-#include <libgadu.h>
-int main()
-{
+	AC_TRY_COMPILE([#include <libgadu.h>], [
 #ifdef __GG_LIBGADU_HAVE_OPENSSL
 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support."
 #endif
-	return 0;
-}
 	], [
 		AC_MSG_RESULT(yes)
+		AC_DEFINE([HAVE_LIBGADU], [1],
+		          [Define to 1 if you have libgadu.])
 	], [
 		AC_MSG_RESULT(no)
 		echo
--- a/src/gtkdialogs.c	Wed Feb 22 03:07:46 2006 +0000
+++ b/src/gtkdialogs.c	Wed Feb 22 03:21:20 2006 +0000
@@ -412,6 +412,16 @@
 #endif
 #endif
 
+#ifdef HAVE_LIBGADU
+#ifdef _WIN32
+	g_string_append(str, "    <b>Gadu-Gadu library (libgadu):</b> Internal<br/>");
+#else
+	g_string_append(str, "    <b>Gadu-Gadu library (libgadu):</b> Enabled<br/>");
+#endif
+#else
+	g_string_append(str, "    <b>Gadu-Gadu library (libgadu):</b> Disabled<br/>");
+#endif
+
 #ifdef USE_GTKSPELL
 	g_string_append(str, "    <b>GtkSpell:</b> Enabled<br/>");
 #else

mercurial