[geany/geany-plugins] 58d089: Autotools: define GP_GTK3 as an AM conditional

Colomban Wendling git-noreply at xxxxx
Tue Mar 19 23:08:57 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 19 Mar 2013 23:08:57 UTC
Commit:      58d089708aea4e2f1488f88d7d63236efba9b104
             https://github.com/geany/geany-plugins/commit/58d089708aea4e2f1488f88d7d63236efba9b104

Log Message:
-----------
Autotools: define GP_GTK3 as an AM conditional

This allows plugins to have conditionals in their Makefiles depending
on whether they are built against GTK2 or GTK3.


Modified Paths:
--------------
    build/gtk.m4

Modified: build/gtk.m4
4 files changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -1,6 +1,6 @@
 dnl checks for the GTK version to build against (2 or 3)
 dnl defines GP_GTK_PACKAGE (e.g. "gtk+-2.0"), GP_GTK_VERSION (e.g. "2.24") and
-dnl GP_GTK_VERSION_MAJOR (e.g. "2")
+dnl GP_GTK_VERSION_MAJOR (e.g. "2");  and defines the GP_GTK3 AM conditional
 AC_DEFUN([GP_CHECK_GTK_VERSION],
 [
     AC_REQUIRE([AC_PROG_AWK])
@@ -13,6 +13,8 @@ AC_DEFUN([GP_CHECK_GTK_VERSION],
     AC_SUBST([GP_GTK_PACKAGE])
     AC_SUBST([GP_GTK_VERSION])
     AC_SUBST([GP_GTK_VERSION_MAJOR])
+
+    AM_CONDITIONAL([GP_GTK3], [test "x$GP_GTK_VERSION_MAJOR" = x3])
 ])
 
 dnl executes $1 if GTK3 is used, and $2 otherwise



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list