/hg/icedtea-web: Introduced configure option --with-gtk=2|3|defa...
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Tue Jul 31 05:30:35 PDT 2012
changeset 363877daeedb in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=363877daeedb
author: Jiri Vanek <jvanek at redhat.com>
date: Tue Jul 31 14:34:51 2012 +0200
Introduced configure option --with-gtk=2|3|default to be able
to compile against different version of GTK+ (2.x or 3.x).
diffstat:
AUTHORS | 1 +
ChangeLog | 9 +++++++++
NEWS | 1 +
acinclude.m4 | 40 +++++++++++++++++++++++++++++++++++++++-
4 files changed, 50 insertions(+), 1 deletions(-)
diffs (94 lines):
diff -r 0c42aee7089e -r 363877daeedb AUTHORS
--- a/AUTHORS Tue Jul 24 10:38:51 2012 -0400
+++ b/AUTHORS Tue Jul 31 14:34:51 2012 +0200
@@ -8,6 +8,7 @@
Adam Domurad <adomurad at redhat.com>
Thomas Fitzsimmons <fitzsim at redhat.com>
Mark Greenwood <mark at dcs.shef.ac.uk>
+Peter Hatina <phatina at redhat.com>
Andrew John Hughes <ahughes at redhat.com>
Matthias Klose <doko at ubuntu.com>
MichaŠGórny < mgorny at gentoo.org >
diff -r 0c42aee7089e -r 363877daeedb ChangeLog
--- a/ChangeLog Tue Jul 24 10:38:51 2012 -0400
+++ b/ChangeLog Tue Jul 31 14:34:51 2012 +0200
@@ -1,3 +1,12 @@
+2012-07-31 Jiri Vanek <jvanek at redhat.com>
+ Peter Hatina <phatina at redhat.com>
+
+ Introduced configure option --with-gtk=2|3|default to be able
+ to compile against different version of GTK+ (2.x or 3.x).
+ * NEWS: mentioned bug fix
+ * acinclude.m4: (ITW_GTK_CHECK_VERSION) macro for getting GTK+ version
+ (ITW_GTK_CHECK) macro for checking GTK+ version
+
2012-07-24 Adam Domurad <adomurad at redhat.com>
* plugin/icedteanp/IcedTeaPluginUtils.cc
diff -r 0c42aee7089e -r 363877daeedb NEWS
--- a/NEWS Tue Jul 24 10:38:51 2012 -0400
+++ b/NEWS Tue Jul 31 14:34:51 2012 +0200
@@ -25,6 +25,7 @@
- PR918: java applet windows uses a low resulution black/white icon
- RH838417: Disambiguate signed applet security prompt from certificate warning
- RH838559: Disambiguate signed applet security prompt from certificate warning
+ - RH720836: project can be compiled against GTK+ 2 or 3 librarie
New in release 1.2 (2011-XX-XX):
* Security updates:
diff -r 0c42aee7089e -r 363877daeedb acinclude.m4
--- a/acinclude.m4 Tue Jul 24 10:38:51 2012 -0400
+++ b/acinclude.m4 Tue Jul 31 14:34:51 2012 +0200
@@ -359,13 +359,51 @@
AC_MSG_RESULT(${enable_plugin})
])
+dnl ITW_GTK_CHECK_VERSION([gtk version])
+AC_DEFUN([ITW_GTK_CHECK_VERSION],
+[
+ AC_MSG_CHECKING([for GTK$1 version])
+ GTK_VER=`$PKG_CONFIG --modversion gtk+-$1.0`
+ AC_MSG_RESULT([$GTK_VER])
+])
+
+dnl ITW_GTK_CHECK([gtk version])
+AC_DEFUN([ITW_GTK_CHECK],
+[
+ case "$1" in
+ default)
+ PKG_CHECK_MODULES(GTK, gtk+-3.0,
+ [ITW_GTK_CHECK_VERSION([3])],
+ [PKG_CHECK_MODULES(GTK, gtk+-2.0,
+ [ITW_GTK_CHECK_VERSION([2])],
+ [AC_MSG_ERROR([GTK $1 not found])]
+ )]
+ )
+ ;;
+ *)
+ PKG_CHECK_MODULES(GTK, gtk+-$1.0,
+ [ITW_GTK_CHECK_VERSION([$1])],
+ [AC_MSG_ERROR([GTK $1 not found])]
+ )
+ ;;
+ esac
+])
+
AC_DEFUN_ONCE([IT_CHECK_PLUGIN_DEPENDENCIES],
[
dnl Check for plugin support headers and libraries.
dnl FIXME: use unstable
AC_REQUIRE([IT_CHECK_PLUGIN])
if test "x${enable_plugin}" = "xyes" ; then
- PKG_CHECK_MODULES(GTK, gtk+-2.0)
+ AC_ARG_WITH([gtk],
+ [AS_HELP_STRING([--with-gtk=[2|3|default]],
+ [the GTK+ version to use (default: 3)])],
+ [case "$with_gtk" in
+ 2|3|default) ;;
+ *) AC_MSG_ERROR([invalid GTK version specified]) ;;
+ esac],
+ [with_gtk=default])
+ ITW_GTK_CHECK([$with_gtk])
PKG_CHECK_MODULES(GLIB, glib-2.0)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
More information about the distro-pkg-dev
mailing list