Signed-off-by: Marc-Antoine Perennou <Marc-Antoine at Perennou.com> --- configure.ac | 28 ++++++++++++++-------------- src/Makefile.am | 8 ++++---- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/configure.ac b/configure.ac index f5f9b76..2831278 100644 --- a/configure.ac +++ b/configure.ac @@ -795,22 +795,22 @@ AC_SUBST(HAVE_GLIB20) AM_CONDITIONAL([HAVE_GLIB20], [test "x$HAVE_GLIB20" = x1]) AS_IF([test "x$HAVE_GLIB20" = "x1"], AC_DEFINE([HAVE_GLIB], 1, [Have GLIB?])) -#### GTK2 support (optional) #### +#### GTK3 support (optional) #### -AC_ARG_ENABLE([gtk2], - AS_HELP_STRING([--disable-gtk2],[Disable optional Gtk+ 2 support])) +AC_ARG_ENABLE([gtk3], + AS_HELP_STRING([--disable-gtk3],[Disable optional Gtk+ 3 support])) -AS_IF([test "x$enable_gtk2" != "xno"], - [PKG_CHECK_MODULES(GTK20, [ gtk+-2.0 >= 2.4.0 ], HAVE_GTK20=1, HAVE_GTK20=0)], - HAVE_GTK20=0) +AS_IF([test "x$enable_gtk3" != "xno"], + [PKG_CHECK_MODULES(GTK30, [ gtk+-3.0 ], HAVE_GTK30=1, HAVE_GTK30=0)], + HAVE_GTK30=0) -AS_IF([test "x$enable_gtk2" = "xyes" && test "x$HAVE_GTK20" = "x0"], - [AC_MSG_ERROR([*** Gtk+ 2 support not found])]) +AS_IF([test "x$enable_gtk3" = "xyes" && test "x$HAVE_GTK30" = "x0"], + [AC_MSG_ERROR([*** Gtk+ 3 support not found])]) -AC_SUBST(GTK20_CFLAGS) -AC_SUBST(GTK20_LIBS) -AM_CONDITIONAL([HAVE_GTK20], [test "x$HAVE_GTK20" = x1]) -AS_IF([test "x$HAVE_GTK20" = "x1"], AC_DEFINE([HAVE_GTK], 1, [Have GTK?])) +AC_SUBST(GTK30_CFLAGS) +AC_SUBST(GTK30_LIBS) +AM_CONDITIONAL([HAVE_GTK30], [test "x$HAVE_GTK30" = x1]) +AS_IF([test "x$HAVE_GTK30" = "x1"], AC_DEFINE([HAVE_GTK], 1, [Have GTK?])) #### GConf support (optional) #### @@ -1340,7 +1340,7 @@ AS_IF([test "x$HAVE_COREAUDIO" = "x1"], ENABLE_COREAUDIO=yes, ENABLE_COREAUDIO=n AS_IF([test "x$HAVE_SOLARIS" = "x1"], ENABLE_SOLARIS=yes, ENABLE_SOLARIS=no) AS_IF([test "x$HAVE_WAVEOUT" = "x1"], ENABLE_WAVEOUT=yes, ENABLE_WAVEOUT=no) AS_IF([test "x$HAVE_GLIB20" = "x1"], ENABLE_GLIB20=yes, ENABLE_GLIB20=no) -AS_IF([test "x$HAVE_GTK20" = "x1"], ENABLE_GTK20=yes, ENABLE_GTK20=no) +AS_IF([test "x$HAVE_GTK30" = "x1"], ENABLE_GTK30=yes, ENABLE_GTK30=no) AS_IF([test "x$HAVE_GCONF" = "x1"], ENABLE_GCONF=yes, ENABLE_GCONF=no) AS_IF([test "x$HAVE_AVAHI" = "x1"], ENABLE_AVAHI=yes, ENABLE_AVAHI=no) AS_IF([test "x$HAVE_JACK" = "x1"], ENABLE_JACK=yes, ENABLE_JACK=no) @@ -1391,7 +1391,7 @@ echo " Enable Solaris: ${ENABLE_SOLARIS} Enable WaveOut: ${ENABLE_WAVEOUT} Enable GLib 2.0: ${ENABLE_GLIB20} - Enable Gtk+ 2.0: ${ENABLE_GTK20} + Enable Gtk+ 3.0: ${ENABLE_GTK30} Enable GConf: ${ENABLE_GCONF} Enable Avahi: ${ENABLE_AVAHI} Enable Jack: ${ENABLE_JACK} diff --git a/src/Makefile.am b/src/Makefile.am index 127956a..a51ac67 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -280,7 +280,7 @@ TESTS_default += \ mainloop-test-glib endif -if HAVE_GTK20 +if HAVE_GTK30 TESTS_norun += \ gtk-test endif @@ -498,8 +498,8 @@ sigbus_test_CFLAGS = $(AM_CFLAGS) sigbus_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) gtk_test_SOURCES = tests/gtk-test.c -gtk_test_LDADD = $(AM_LDADD) $(GTK20_LIBS) libpulse-mainloop-glib.la libpulse.la -gtk_test_CFLAGS = $(AM_CFLAGS) $(GTK20_CFLAGS) +gtk_test_LDADD = $(AM_LDADD) $(GTK30_LIBS) libpulse-mainloop-glib.la libpulse.la +gtk_test_CFLAGS = $(AM_CFLAGS) $(GTK30_CFLAGS) gtk_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) alsa_time_test_SOURCES = tests/alsa-time-test.c @@ -613,7 +613,7 @@ libpulsecommon_ at PA_MAJORMINOR@_la_LDFLAGS += $(X11_LIBS) endif # proplist-util.h uses these header files, but not the library itself! -libpulsecommon_ at PA_MAJORMINOR@_la_CFLAGS += $(GLIB20_CFLAGS) $(GTK20_CFLAGS) +libpulsecommon_ at PA_MAJORMINOR@_la_CFLAGS += $(GLIB20_CFLAGS) $(GTK30_CFLAGS) ## Please note that libpulsecommon implicitly also depends on< ## libpulse! i.e. we have a cyclic dependancy here. Which is intended -- 1.7.10.3