From: Aaron Lipinski Date: Thu, 8 Aug 2019 02:28:58 +0000 (+1200) Subject: gtk3 X-Git-Tag: v0.94~25^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd8e6c3ba67fdb9445b1ddc3777aca3b0f7053e;p=thirdparty%2Fmtr.git gtk3 --- diff --git a/configure.ac b/configure.ac index ad81332..15a2074 100644 --- a/configure.ac +++ b/configure.ac @@ -86,12 +86,15 @@ AC_CHECK_LIB([m], [floor], [], [AC_MSG_ERROR([No math library found])]) # Find GTK AC_ARG_WITH([gtk], - [AS_HELP_STRING([--without-gtk], [Build without the GTK+2.0 interface])], + [AS_HELP_STRING([--without-gtk], [Build without the GTK+ interface])], [], [with_gtk=yes]) AS_IF([test "x$with_gtk" = "xyes"], - [PKG_CHECK_MODULES([GTK], [gtk+-2.0], - [AC_DEFINE([HAVE_GTK], [1], [Define if gtk+-2.0 library available])], - [with_gtk=no]) + [PKG_CHECK_MODULES([GTK], [gtk+-3.0], + [AC_DEFINE([HAVE_GTK], [1], [Define if gtk+ library available])] + [AC_DEFINE([HAVE_GTK3], [1], [Define if gtk+-3.0 library available])], + [PKG_CHECK_MODULES([GTK], [gtk+-2.0], + [AC_DEFINE([HAVE_GTK], [1], [Define if gtk+ library available])], + [with_gtk=no])]) ]) AM_CONDITIONAL([WITH_GTK], [test "x$with_gtk" = xyes])