summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-05 17:40:47 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-05 17:40:47 +0000
commit136ef5f3b5b307a9d70215ac1f0684b5c50e2cb4 (patch)
treeaeaf10c613b2cf6a259bf2931b65d67568b61394
parent7e69f9241280cd6e30fe01d963829b1ebdc37ed5 (diff)
parent8a12857da6438ee25152e7d24ce0f27fae59b3de (diff)
Merge branch 'master' into next
Conflicts: configure.ac
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac14
-rw-r--r--extensions/Makefile.am2
-rw-r--r--lib/gibber/gibber-bytestream-oob.c2
-rw-r--r--lib/gibber/gibber-debug.c4
-rw-r--r--lib/gibber/gibber-debug.h27
-rw-r--r--m4/salut-args.m419
-rw-r--r--src/debug.c4
-rw-r--r--src/debug.h21
-rw-r--r--src/salut.c2
-rw-r--r--tests/debug.c2
11 files changed, 6 insertions, 93 deletions
diff --git a/Makefile.am b/Makefile.am
index 9981d7e3..588b9685 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = tools extensions lib src data m4 salut plugins tests docs
-DISTCHECK_CONFIGURE_FLAGS = --disable-debug --enable-gtk-doc
+DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
valgrind:
cd tests && $(MAKE) valgrind
diff --git a/configure.ac b/configure.ac
index 1be79d63..69f050d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_PREREQ([2.59])
+AC_PREREQ([2.60])
# Making releases:
# set the new version number:
@@ -24,7 +24,7 @@ AC_INIT([Telepathy Salut], [salut_version],
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_LANG([C])
-AM_INIT_AUTOMAKE([1.9 -Wno-portability tar-ustar])
+AM_INIT_AUTOMAKE([1.9 -Wno-portability tar-ustar subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AM_PROG_LIBTOOL
AM_CONFIG_HEADER(config.h)
@@ -33,10 +33,9 @@ dnl check for tools
AC_PROG_CC
AC_PROG_CC_STDC
AM_PROG_AS
-AM_PROG_MKDIR_P
+AC_PROG_MKDIR_P
dnl add common command line switches
-SALUT_ARG_DEBUG
SALUT_ARG_VALGRIND
SALUT_ARG_COVERAGE
@@ -90,13 +89,6 @@ TP_COMPILER_WARNINGS([ERROR_CFLAGS], [test "x$enable_fatal_warnings" = xyes],
unused-parameter])
AC_SUBST([ERROR_CFLAGS])
-AC_ARG_ENABLE([debug],
- [AC_HELP_STRING([--disable-debug], [compile without debug code])],
- [], [enable_debug=yes])
-
-AS_IF([test x$enable_debug = xyes],
- [AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])])
-
dnl Check for code generation tools
XSLTPROC=
AC_CHECK_PROGS([XSLTPROC], [xsltproc])
diff --git a/extensions/Makefile.am b/extensions/Makefile.am
index 895fcbde..39f94e96 100644
--- a/extensions/Makefile.am
+++ b/extensions/Makefile.am
@@ -47,7 +47,7 @@ AM_LDFLAGS = $(GCOV_LIBS) @DBUS_LIBS@ @GLIB_LIBS@ @TELEPATHY_GLIB_LIBS@
XSLTPROCFLAGS = --nonet --novalid
_gen/%.xml: %.xml $(wildcard *.xml) $(tools_dir)/identity.xsl
- $(mkdir_p) _gen
+ $(MKDIR_P) _gen
$(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
$< > $@
diff --git a/lib/gibber/gibber-bytestream-oob.c b/lib/gibber/gibber-bytestream-oob.c
index ca9214cc..4751d3e9 100644
--- a/lib/gibber/gibber-bytestream-oob.c
+++ b/lib/gibber/gibber-bytestream-oob.c
@@ -573,7 +573,7 @@ make_porter_connections (GibberBytestreamOOB *self)
jid = wocky_contact_dup_jid (priv->contact);
priv->stanza_received_id = wocky_porter_register_handler_from (priv->porter,
- WOCKY_STANZA_TYPE_IQ, WOCKY_STANZA_TYPE_NONE, jid,
+ WOCKY_STANZA_TYPE_IQ, WOCKY_STANZA_SUB_TYPE_NONE, jid,
WOCKY_PORTER_HANDLER_PRIORITY_NORMAL, received_stanza_cb, self, NULL);
g_free (jid);
diff --git a/lib/gibber/gibber-debug.c b/lib/gibber/gibber-debug.c
index 69d24884..bf26d457 100644
--- a/lib/gibber/gibber-debug.c
+++ b/lib/gibber/gibber-debug.c
@@ -5,8 +5,6 @@
#include <glib.h>
-#ifdef ENABLE_DEBUG
-
static DebugFlags flags = 0;
static gboolean initialized = FALSE;
@@ -95,5 +93,3 @@ gibber_debug_stanza (DebugFlags flag,
g_free (node_str);
}
}
-
-#endif
diff --git a/lib/gibber/gibber-debug.h b/lib/gibber/gibber-debug.h
index c7ec2603..9f919d28 100644
--- a/lib/gibber/gibber-debug.h
+++ b/lib/gibber/gibber-debug.h
@@ -10,8 +10,6 @@
G_BEGIN_DECLS
-#ifdef ENABLE_DEBUG
-
typedef enum
{
DEBUG_TRANSPORT = 1 << 0,
@@ -51,31 +49,6 @@ void gibber_debug_stanza (DebugFlags flag, WockyStanza *stanza,
#endif /* DEBUG_FLAG */
-#else /* ENABLE_DEBUG */
-
-#ifdef DEBUG_FLAG
-
-static inline void
-DEBUG (
- const gchar *format,
- ...)
-{
-}
-
-static inline void
-DEBUG_STANZA (
- WockyStanza *stanza,
- const gchar *format,
- ...)
-{
-}
-
-#define DEBUGGING 0
-
-#endif /* DEBUG_FLAG */
-
-#endif /* ENABLE_DEBUG */
-
G_END_DECLS
#endif
diff --git a/m4/salut-args.m4 b/m4/salut-args.m4
index f95ad9df..6e5944c6 100644
--- a/m4/salut-args.m4
+++ b/m4/salut-args.m4
@@ -1,27 +1,8 @@
dnl configure-time options for Telepathy Salut
-dnl SALUT_ARG_DEBUG
dnl SALUT_ARG_VALGRIND
dnl SALUT_ARG_COVERAGE
-AC_DEFUN([SALUT_ARG_DEBUG],
-[
- dnl debugging stuff
- AC_ARG_ENABLE(debug,
- AC_HELP_STRING([--disable-debug],[compile without debug code]),
- [
- case "${enableval}" in
- yes|no) enable="${enableval}" ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
- esac
- ],
- [enable=yes])
-
- if test "$enable" = yes; then
- AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
- fi
-])
-
AC_DEFUN([SALUT_ARG_VALGRIND],
[
dnl valgrind inclusion
diff --git a/src/debug.c b/src/debug.c
index 365cb7d8..2315cc52 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -13,8 +13,6 @@
#include <telepathy-glib/telepathy-glib.h>
-#ifdef ENABLE_DEBUG
-
static DebugFlags flags = 0;
GDebugKey keys[] = {
@@ -138,5 +136,3 @@ void debug (DebugFlags flag,
g_free (message);
}
-
-#endif /* ENABLE_DEBUG */
diff --git a/src/debug.h b/src/debug.h
index 9e97ed3d..f3e80d3b 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -8,8 +8,6 @@
#include <wocky/wocky.h>
-#ifdef ENABLE_DEBUG
-
typedef enum
{
DEBUG_PRESENCE = 1 << 0,
@@ -52,25 +50,6 @@ void debug_free (void);
#endif /* DEBUG_FLAG */
-#else /* ENABLE_DEBUG */
-
-#ifdef DEBUG_FLAG
-
-static inline void
-DEBUG (
- const gchar *format,
- ...)
-{
-}
-
-#define DEBUGGING 0
-
-#endif /* DEBUG_FLAG */
-
-#define debug_free() G_STMT_START { } G_STMT_END
-
-#endif /* ENABLE_DEBUG */
-
G_END_DECLS
#endif
diff --git a/src/salut.c b/src/salut.c
index f61c29fe..17d85370 100644
--- a/src/salut.c
+++ b/src/salut.c
@@ -59,13 +59,11 @@ main (int argc, char **argv)
fatal_mask |= G_LOG_LEVEL_CRITICAL;
g_log_set_always_fatal (fatal_mask);
-#ifdef ENABLE_DEBUG
tp_debug_divert_messages (g_getenv ("SALUT_LOGFILE"));
debug_set_flags_from_env ();
if (g_getenv ("SALUT_PERSIST"))
tp_debug_set_persistent (TRUE);
-#endif
loader = salut_plugin_loader_dup ();
diff --git a/tests/debug.c b/tests/debug.c
index cef4515b..941a297d 100644
--- a/tests/debug.c
+++ b/tests/debug.c
@@ -23,13 +23,11 @@ main (int argc, char **argv)
g_type_init ();
g_set_prgname ("telepathy-salut");
-#ifdef ENABLE_DEBUG
tp_debug_divert_messages (g_getenv ("SALUT_LOGFILE"));
debug_set_flags_from_env ();
if (g_getenv ("SALUT_PERSIST"))
tp_debug_set_persistent (TRUE);
-#endif
return tp_run_connection_manager ("telepathy-salut", VERSION,
salut_create_connection_manager,