changeset 73:1fc66b6c08ef

[/trunk] Changeset 87 by mikael * Check for glib and update Makefiles to use it.
author mikael
date Sat, 16 Apr 2005 11:59:26 +0000
parents 9b7f0d313e33
children b392112ab995
files mcabber/configure.ac mcabber/macros/glib-2.0.m4 mcabber/src/Makefile.am
diffstat 3 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/configure.ac	Sat Apr 16 10:14:55 2005 +0000
+++ b/mcabber/configure.ac	Sat Apr 16 11:59:26 2005 +0000
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.59)
-AC_INIT(mcabber, 0.6.0-dev, bmikael@lists.lilotux.net)
+AC_INIT([mcabber],[0.6.0-dev],[bmikael@lists.lilotux.net])
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([src])
 AC_CONFIG_HEADER(config.h)
@@ -43,6 +43,9 @@
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii memmove memset modf select setlocale socket strcasecmp strchr strdup strncasecmp strrchr strstr])
 
+# Check for glib
+AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append])
+
 AC_ARG_WITH(ssl, [  --with-ssl              enable SSL secured connections using either OpenSSL
 			  or GnuTLS],
 	[with_ssl=$withval])
--- a/mcabber/macros/glib-2.0.m4	Sat Apr 16 10:14:55 2005 +0000
+++ b/mcabber/macros/glib-2.0.m4	Sat Apr 16 11:59:26 2005 +0000
@@ -5,7 +5,7 @@
 dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or 
 dnl gthread is specified in MODULES, pass to pkg-config
 dnl
-AC_DEFUN(AM_PATH_GLIB_2_0,
+AC_DEFUN([AM_PATH_GLIB_2_0],
 [dnl 
 dnl Get the cflags and libraries from pkg-config
 dnl
--- a/mcabber/src/Makefile.am	Sat Apr 16 10:14:55 2005 +0000
+++ b/mcabber/src/Makefile.am	Sat Apr 16 11:59:26 2005 +0000
@@ -1,12 +1,14 @@
 bin_PROGRAMS = mcabber
 mcabber_SOURCES = main.c jabglue.c jabglue.h commands.c commands.h \
-		  buddies.c buddies.h screen.c screen.h \
+		  roster.c roster.h hbuf.c hbuf.h screen.c screen.h \
+		  buddies.c buddies.h \
 		  parsecfg.c parsecfg.h utf8.c utf8.h \
 		  utils.c utils.h lang.c lang.h list.h harddefines.h
 
-LDADD = -lncurses -lpanel -lssl \
+LDADD = -lglib-2.0 -lncurses -lpanel -lssl \
 	../libjabber/liblibjabber.a ../connwrap/libconnwrap.a
 
+INCLUDES = $(GLIB_CFLAGS)
+
 #SUBDIRS =
-#INCLUDES =