From 1c8a7a232935d1c2b7f1916faae11d730624bdc3 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 25 May 2006 11:46:36 +0200 Subject: Fix typo --- protocols/nogaim.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/nogaim.h b/protocols/nogaim.h index 282a2455..8744054a 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -51,7 +51,7 @@ #define SELF_ALIAS_LEN 400 #define BUDDY_ALIAS_MAXLEN 388 /* because MSN names can be 387 characters */ -#define WEBSITE "http://www.bitlee.org/" +#define WEBSITE "http://www.bitlbee.org/" #define IM_FLAG_AWAY 0x0020 #define OPT_CONN_HTML 0x00000001 #define OPT_LOGGED_IN 0x00010000 -- cgit v1.2.3 From 0a69d7bf97b76852c25b7f6634204c5fb5532487 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 25 May 2006 11:53:53 +0200 Subject: Use iconv from GLib if available --- configure | 6 +++++- util.c | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configure b/configure index a602fe3a..63047303 100755 --- a/configure +++ b/configure @@ -162,24 +162,28 @@ if [ -z "$PKG_CONFIG" ]; then PKG_CONFIG=pkg-config fi +GLIB=0 + if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then cat<>Makefile.settings EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0` CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0` EOF echo '#define GLIB2' >> config.h + GLIB=2 elif type glib-config > /dev/null 2> /dev/null; then cat<>Makefile.settings EFLAGS+=`glib-config --libs` CFLAGS+=`glib-config --cflags` EOF echo '#define GLIB1' >> config.h + GLIB=1 else echo 'Cannot find glib development libraries, aborting. (Install libglib-dev?)' exit 1; fi -if [ -r /usr/include/iconv.h ]; then +if [ GLIB = 1 -o -r /usr/include/iconv.h ]; then :; elif [ -r /usr/local/include/iconv.h ]; then echo CFLAGS+=-I/usr/local/include >> Makefile.settings; diff --git a/util.c b/util.c index 43e1c19f..8f8ec7b3 100644 --- a/util.c +++ b/util.c @@ -38,7 +38,14 @@ #include #include #include +#ifdef GLIB2 +#define iconv_t GIConv +#define iconv_open g_iconv_open +#define iconv_close g_iconv_close +#define iconv g_iconv +#else #include +#endif void strip_linefeed(gchar *text) { -- cgit v1.2.3