aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-15 12:32:15 +0100
committerMax Kellermann <max@duempel.org>2013-12-15 18:43:12 +0100
commitd5dfe7d457b559bd9c53d65d0315c55611cc6a79 (patch)
tree42825c13cc44e4fe1272d14f9dc26f03ce0ef596 /test
parent0db0b4e302f82165b763da7717059911a85c370f (diff)
downloadmpd-d5dfe7d457b559bd9c53d65d0315c55611cc6a79.tar.gz
mpd-d5dfe7d457b559bd9c53d65d0315c55611cc6a79.tar.xz
mpd-d5dfe7d457b559bd9c53d65d0315c55611cc6a79.zip
configure.ac: add option "--disable-glib"
Allows building without GLib. This fails to compile currently, because GLib is still used in the MPD core.
Diffstat (limited to '')
-rw-r--r--test/run_decoder.cxx4
-rw-r--r--test/run_input.cxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index 7db8dde22..56ef2068d 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -29,7 +29,9 @@
#include "Log.hxx"
#include "stdbin.h"
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <assert.h>
#include <unistd.h>
@@ -192,9 +194,11 @@ int main(int argc, char **argv)
decoder_name = argv[1];
decoder.uri = argv[2];
+#ifdef HAVE_GLIB
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#endif
+#endif
g_log_set_default_handler(my_log_func, NULL);
diff --git a/test/run_input.cxx b/test/run_input.cxx
index 3817ed418..23316b7c6 100644
--- a/test/run_input.cxx
+++ b/test/run_input.cxx
@@ -33,7 +33,9 @@
#include "ArchiveList.hxx"
#endif
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <unistd.h>
#include <stdlib.h>
@@ -120,9 +122,11 @@ int main(int argc, char **argv)
/* initialize GLib */
+#ifdef HAVE_GLIB
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#endif
+#endif
g_log_set_default_handler(my_log_func, NULL);