]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
gtk3
authorAaron Lipinski <kris.lipinski@gmail.com>
Thu, 8 Aug 2019 02:28:58 +0000 (14:28 +1200)
committerAaron Lipinski <kris.lipinski@gmail.com>
Thu, 8 Aug 2019 08:40:47 +0000 (20:40 +1200)
configure.ac

index ad813322b9d02f5fe24ae5369ba91d69559844c1..15a20748b08ef98c3a3475e83049585cd7488670 100644 (file)
@@ -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])