[mednaffe] 09/22: Check for minimum gtk and glib version

Stephen Kitt skitt at moszumanska.debian.org
Tue Nov 22 22:42:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

skitt pushed a commit to branch master
in repository mednaffe.

commit 62568c5fced7c5f793ea0f77cb1308c0d0b583a5
Author: AmatCoder <AmatCoder at users.noreply.github.com>
Date:   Fri Nov 18 23:30:07 2016 +0000

    Check for minimum gtk and glib version
---
 configure.ac | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8b5715f..748e931 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,14 +23,15 @@ else
 fi
 
 if test "x$enable_gtk3" = xyes; then
-  PKG_CHECK_MODULES([GTK],[gtk+-3.0 glib-2.0 gthread-2.0], AC_MSG_NOTICE([GTK 3.x selected explicitly]), AC_MSG_ERROR(Mednaffe needs GTK+ >= 3.4))
+  PKG_CHECK_MODULES([GTK],[gtk+-3.0 >= 3.4 glib-2.0 >= 2.28 gthread-2.0], AC_MSG_NOTICE([GTK 3.x selected explicitly]), AC_MSG_ERROR(Mednaffe needs GTK+ >= 3.4))
   GTK_DEFINES="-DGTK3_ENABLED"
   AC_DEFINE([GTK3_ENABLED],[1],[Define to 1 if you have GTK 3])
 else
-  PKG_CHECK_MODULES([GTK],[gtk+-2.0 glib-2.0 gthread-2.0], AC_MSG_NOTICE([selecting GTK 2.x automatically]), AC_MSG_ERROR(Mednaffe needs GTK+ >= 2.24))
+  PKG_CHECK_MODULES([GTK],[gtk+-2.0 >= 2.24 glib-2.0 >= 2.28 gthread-2.0], AC_MSG_NOTICE([selecting GTK 2.x automatically]), AC_MSG_ERROR(Mednaffe needs GTK+ >= 2.24))
   GTK_DEFINES="-DGTK2_ENABLED"
   AC_DEFINE([GTK2_ENABLED],[1],[Define to 1 if you have GTK 2])
 fi
+
 AC_SUBST(GTK_DEFINES)
 
 AC_CONFIG_FILES([Makefile share/Makefile src/Makefile])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mednaffe.git



More information about the Pkg-games-commits mailing list