configure.ac: require GLib 2.32 (if enabled)

Since version 2.32, g_thread_init() is deprecated and a no-op.  Let's
upgrade that (optional) dependency so we can remove all those
g_thread_init() calls.
This commit is contained in:
Max Kellermann
2014-12-04 23:58:48 +01:00
parent d435dcdca4
commit 5cbc319e96
13 changed files with 1 additions and 130 deletions

View File

@@ -30,10 +30,6 @@
#include "Log.hxx"
#include "stdbin.h"
#ifdef HAVE_GLIB
#include <glib.h>
#endif
#include <assert.h>
#include <unistd.h>
#include <stdlib.h>
@@ -50,12 +46,6 @@ int main(int argc, char **argv)
const char *const decoder_name = argv[1];
const char *const uri = argv[2];
#ifdef HAVE_GLIB
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#endif
#endif
const ScopeIOThread io_thread;
Error error;