configure.ac: remove GLib option

Not used anymore.
This commit is contained in:
Max Kellermann 2015-06-27 16:06:28 +02:00
parent 6f7bfa71a9
commit ccdb94b06c
5 changed files with 25 additions and 85 deletions

View File

@ -1,7 +1,7 @@
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign 1.11 dist-xz subdir-objects AUTOMAKE_OPTIONS = foreign 1.11 dist-xz subdir-objects
AM_CPPFLAGS += -I$(srcdir)/src $(GLIB_CFLAGS) $(BOOST_CPPFLAGS) AM_CPPFLAGS += -I$(srcdir)/src $(BOOST_CPPFLAGS)
AM_CPPFLAGS += -DSYSTEM_CONFIG_FILE_LOCATION='"$(sysconfdir)/mpd.conf"' AM_CPPFLAGS += -DSYSTEM_CONFIG_FILE_LOCATION='"$(sysconfdir)/mpd.conf"'
@ -61,8 +61,7 @@ src_mpd_LDADD = \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a \
$(ICU_LDADD) \ $(ICU_LDADD) \
$(SYSTEMD_DAEMON_LIBS) \ $(SYSTEMD_DAEMON_LIBS)
$(GLIB_LIBS)
src_mpd_SOURCES = \ src_mpd_SOURCES = \
src/Main.cxx src/Main.hxx src/Main.cxx src/Main.hxx
@ -489,11 +488,6 @@ libicu_a_CPPFLAGS = $(AM_CPPFLAGS) \
ICU_LDADD = libicu.a $(ICU_LIBS) ICU_LDADD = libicu.a $(ICU_LIBS)
if HAVE_ICU
else
ICU_LDADD += $(GLIB_LIBS)
endif
# PCM library # PCM library
libpcm_a_SOURCES = \ libpcm_a_SOURCES = \
@ -1590,16 +1584,14 @@ test_read_conf_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_read_conf_SOURCES = \ test_read_conf_SOURCES = \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
test/read_conf.cxx test/read_conf.cxx
test_run_resolver_LDADD = \ test_run_resolver_LDADD = \
libnet.a \ libnet.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_run_resolver_SOURCES = \ test_run_resolver_SOURCES = \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
test/run_resolver.cxx test/run_resolver.cxx
@ -1614,8 +1606,7 @@ test_DumpDatabase_LDADD = \
libevent.a \ libevent.a \
$(FS_LIBS) \ $(FS_LIBS) \
libsystem.a \ libsystem.a \
$(ICU_LDADD) \ $(ICU_LDADD)
$(GLIB_LIBS)
test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \ test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
src/protocol/Ack.cxx \ src/protocol/Ack.cxx \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
@ -1640,8 +1631,7 @@ test_run_storage_LDADD = \
libevent.a \ libevent.a \
libthread.a \ libthread.a \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_run_storage_SOURCES = \ test_run_storage_SOURCES = \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
src/IOThread.cxx \ src/IOThread.cxx \
@ -1660,8 +1650,7 @@ test_run_input_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_run_input_SOURCES = test/run_input.cxx \ test_run_input_SOURCES = test/run_input.cxx \
test/ScopeIOThread.hxx \ test/ScopeIOThread.hxx \
test/stdbin.h \ test/stdbin.h \
@ -1676,7 +1665,6 @@ test_run_neighbor_explorer_SOURCES = \
src/IOThread.cxx \ src/IOThread.cxx \
test/run_neighbor_explorer.cxx test/run_neighbor_explorer.cxx
test_run_neighbor_explorer_LDADD = $(AM_LDADD) \ test_run_neighbor_explorer_LDADD = $(AM_LDADD) \
$(GLIB_LIBS) \
$(NEIGHBOR_LIBS) \ $(NEIGHBOR_LIBS) \
$(INPUT_LIBS) \ $(INPUT_LIBS) \
$(ARCHIVE_LIBS) \ $(ARCHIVE_LIBS) \
@ -1707,8 +1695,7 @@ test_visit_archive_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_visit_archive_SOURCES = test/visit_archive.cxx \ test_visit_archive_SOURCES = test/visit_archive.cxx \
test/ScopeIOThread.hxx \ test/ScopeIOThread.hxx \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
@ -1729,7 +1716,6 @@ test_run_gzip_SOURCES = test/run_gzip.cxx
test_run_gunzip_SOURCES = test/run_gunzip.cxx \ test_run_gunzip_SOURCES = test/run_gunzip.cxx \
src/Log.cxx src/LogBackend.cxx src/Log.cxx src/LogBackend.cxx
test_run_gunzip_LDADD = \ test_run_gunzip_LDADD = \
$(GLIB_LIBS) \
libutil.a \ libutil.a \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
@ -1741,8 +1727,7 @@ test_WriteFile_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_WriteFile_SOURCES = \ test_WriteFile_SOURCES = \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
test/WriteFile.cxx test/WriteFile.cxx
@ -1757,8 +1742,7 @@ test_dump_text_file_LDADD = \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libthread.a \ libthread.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_dump_text_file_SOURCES = test/dump_text_file.cxx \ test_dump_text_file_SOURCES = test/dump_text_file.cxx \
test/ScopeIOThread.hxx \ test/ScopeIOThread.hxx \
test/stdbin.h \ test/stdbin.h \
@ -1779,8 +1763,7 @@ test_dump_playlist_LDADD = \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a \
libpcm.a \ libpcm.a
$(GLIB_LIBS)
test_dump_playlist_SOURCES = test/dump_playlist.cxx \ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
test/FakeDecoderAPI.cxx test/FakeDecoderAPI.hxx \ test/FakeDecoderAPI.cxx test/FakeDecoderAPI.hxx \
test/ScopeIOThread.hxx \ test/ScopeIOThread.hxx \
@ -1810,8 +1793,7 @@ test_run_decoder_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_run_decoder_SOURCES = test/run_decoder.cxx \ test_run_decoder_SOURCES = test/run_decoder.cxx \
test/FakeDecoderAPI.cxx test/FakeDecoderAPI.hxx \ test/FakeDecoderAPI.cxx test/FakeDecoderAPI.hxx \
test/ScopeIOThread.hxx \ test/ScopeIOThread.hxx \
@ -1837,8 +1819,7 @@ test_read_tags_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_read_tags_SOURCES = test/read_tags.cxx \ test_read_tags_SOURCES = test/read_tags.cxx \
test/FakeDecoderAPI.cxx test/FakeDecoderAPI.hxx \ test/FakeDecoderAPI.cxx test/FakeDecoderAPI.hxx \
test/ScopeIOThread.hxx \ test/ScopeIOThread.hxx \
@ -1851,8 +1832,7 @@ test_read_tags_SOURCES = test/read_tags.cxx \
if ENABLE_ID3TAG if ENABLE_ID3TAG
test_dump_rva2_LDADD = \ test_dump_rva2_LDADD = \
$(TAG_LIBS) \ $(TAG_LIBS) \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_dump_rva2_SOURCES = \ test_dump_rva2_SOURCES = \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
test/dump_rva2.cxx test/dump_rva2.cxx
@ -1864,8 +1844,7 @@ test_run_filter_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_run_filter_SOURCES = test/run_filter.cxx \ test_run_filter_SOURCES = test/run_filter.cxx \
test/FakeReplayGainConfig.cxx \ test/FakeReplayGainConfig.cxx \
test/stdbin.h \ test/stdbin.h \
@ -1893,8 +1872,7 @@ test_run_encoder_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
endif endif
if ENABLE_VORBISENC if ENABLE_VORBISENC
@ -1916,8 +1894,7 @@ test_test_vorbis_encoder_LDADD = $(MPD_LIBS) \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
endif endif
test_software_volume_SOURCES = test/software_volume.cxx \ test_software_volume_SOURCES = test/software_volume.cxx \
@ -1927,8 +1904,7 @@ test_software_volume_SOURCES = test/software_volume.cxx \
src/AudioParser.cxx src/AudioParser.cxx
test_software_volume_LDADD = \ test_software_volume_LDADD = \
$(PCM_LIBS) \ $(PCM_LIBS) \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_run_avahi_SOURCES = \ test_run_avahi_SOURCES = \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
@ -1941,7 +1917,6 @@ test_run_avahi_LDADD = \
libevent.a \ libevent.a \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a \
$(GLIB_LIBS) \
$(AVAHI_LIBS) $(AVAHI_LIBS)
test_run_normalize_SOURCES = test/run_normalize.cxx \ test_run_normalize_SOURCES = test/run_normalize.cxx \
@ -1950,8 +1925,7 @@ test_run_normalize_SOURCES = test/run_normalize.cxx \
src/AudioCompress/compress.c \ src/AudioCompress/compress.c \
src/AudioParser.cxx src/AudioParser.cxx
test_run_normalize_LDADD = \ test_run_normalize_LDADD = \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_run_convert_SOURCES = test/run_convert.cxx \ test_run_convert_SOURCES = test/run_convert.cxx \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
@ -1964,8 +1938,7 @@ test_run_convert_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a \
$(ICU_LDADD) \ $(ICU_LDADD)
$(GLIB_LIBS)
test_run_output_LDADD = $(MPD_LIBS) \ test_run_output_LDADD = $(MPD_LIBS) \
$(PCM_LIBS) \ $(PCM_LIBS) \
@ -1981,8 +1954,7 @@ test_run_output_LDADD = $(MPD_LIBS) \
libnet.a \ libnet.a \
libsystem.a \ libsystem.a \
libthread.a \ libthread.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_run_output_SOURCES = test/run_output.cxx \ test_run_output_SOURCES = test/run_output.cxx \
test/FakeReplayGainConfig.cxx \ test/FakeReplayGainConfig.cxx \
test/ScopeIOThread.hxx \ test/ScopeIOThread.hxx \
@ -2010,8 +1982,7 @@ test_read_mixer_LDADD = \
$(FS_LIBS) \ $(FS_LIBS) \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
test_read_mixer_SOURCES = test/read_mixer.cxx \ test_read_mixer_SOURCES = test/read_mixer.cxx \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
src/mixer/MixerControl.cxx \ src/mixer/MixerControl.cxx \
@ -2041,8 +2012,7 @@ test_run_inotify_SOURCES = test/run_inotify.cxx \
test_run_inotify_LDADD = \ test_run_inotify_LDADD = \
libevent.a \ libevent.a \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a
$(GLIB_LIBS)
endif endif
test_test_util_SOURCES = \ test_test_util_SOURCES = \
@ -2071,7 +2041,6 @@ test_test_rewind_SOURCES = \
test_test_rewind_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0 test_test_rewind_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_rewind_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations test_test_rewind_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_rewind_LDADD = \ test_test_rewind_LDADD = \
$(GLIB_LIBS) \
$(INPUT_LIBS) \ $(INPUT_LIBS) \
libthread.a \ libthread.a \
libtag.a \ libtag.a \
@ -2085,7 +2054,6 @@ test_test_mixramp_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTT
test_test_mixramp_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations test_test_mixramp_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_mixramp_LDADD = \ test_test_mixramp_LDADD = \
libutil.a \ libutil.a \
$(GLIB_LIBS) \
$(CPPUNIT_LIBS) $(CPPUNIT_LIBS)
if ENABLE_CURL if ENABLE_CURL
@ -2097,7 +2065,6 @@ test_test_icy_parser_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declaration
test_test_icy_parser_LDADD = \ test_test_icy_parser_LDADD = \
libtag.a \ libtag.a \
libutil.a \ libutil.a \
$(GLIB_LIBS) \
$(CPPUNIT_LIBS) $(CPPUNIT_LIBS)
endif endif
@ -2119,8 +2086,7 @@ test_test_pcm_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_pcm_LDADD = \ test_test_pcm_LDADD = \
$(PCM_LIBS) \ $(PCM_LIBS) \
libutil.a \ libutil.a \
$(CPPUNIT_LIBS) \ $(CPPUNIT_LIBS)
$(GLIB_LIBS)
test_test_archive_SOURCES = \ test_test_archive_SOURCES = \
src/Log.cxx src/LogBackend.cxx \ src/Log.cxx src/LogBackend.cxx \
@ -2130,7 +2096,6 @@ test_test_archive_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_archive_LDADD = \ test_test_archive_LDADD = \
libarchive.a \ libarchive.a \
libutil.a \ libutil.a \
$(GLIB_LIBS) \
$(CPPUNIT_LIBS) $(CPPUNIT_LIBS)
if ENABLE_DATABASE if ENABLE_DATABASE
@ -2151,7 +2116,6 @@ test_test_translate_song_LDADD = \
$(ICU_LDADD) \ $(ICU_LDADD) \
libsystem.a \ libsystem.a \
libutil.a \ libutil.a \
$(GLIB_LIBS) \
$(CPPUNIT_LIBS) $(CPPUNIT_LIBS)
endif endif

View File

@ -425,7 +425,6 @@ configure = [
'--enable-silent-rules', '--enable-silent-rules',
'--disable-glib',
'--disable-icu', '--disable-icu',
] + configure_args ] + configure_args

View File

@ -482,28 +482,6 @@ if test x$enable_iconv = xyes; then
AC_CHECK_FUNCS(iconv) AC_CHECK_FUNCS(iconv)
fi fi
AC_ARG_ENABLE(glib,
AS_HELP_STRING([--enable-glib],
[enable GLib (default: auto)]),,
enable_glib=auto)
if test x$enable_glib != xno; then
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.32],
[found_glib=yes],
[found_glib=no])
MPD_AUTO_RESULT([glib], [Glib], [GLib not found])
fi
if test x$enable_glib = xyes; then
if test x$GCC = xyes; then
# suppress warnings in the GLib headers
GLIB_CFLAGS=`echo $GLIB_CFLAGS |sed -e 's,-I/,-isystem /,g'`
fi
fi
MPD_DEFINE_CONDITIONAL(enable_glib, HAVE_GLIB, [GLib])
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl Protocol Options dnl Protocol Options
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------

View File

@ -112,7 +112,7 @@ apt-get install g++ \
libsystemd-daemon-dev libwrap0-dev \ libsystemd-daemon-dev libwrap0-dev \
libcppunit-dev xmlto \ libcppunit-dev xmlto \
libboost-dev \ libboost-dev \
libglib2.0-dev libicu-dev libicu-dev
</programlisting> </programlisting>
<para> <para>

View File

@ -396,7 +396,6 @@ configure = [
'--enable-silent-rules', '--enable-silent-rules',
'--disable-glib',
'--disable-icu', '--disable-icu',
] + configure_args ] + configure_args