Skip to content

Commit

Permalink
Deprecate GTK_CHECK_BACKEND in favour of PKG_CHECK_MODULES
Browse files Browse the repository at this point in the history
This is easy to do with pkg-config too.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=641638
Bug-Debian: https://bugs.debian.org/756476
Reviewed-by: Matthias Clasen
  • Loading branch information
smcv committed Aug 21, 2014
1 parent 169f064 commit d975cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m4macros/gtk-3.0.m4
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ dnl GTK_CHECK_BACKEND(BACKEND-NAME [, MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTI
dnl Tests for BACKEND-NAME in the GTK targets list
dnl
AC_DEFUN([GTK_CHECK_BACKEND],
[
[m4_warn([obsolete], [GTK_CHECK_BACKEND is deprecated, use PKG_CHECK_MODULES([GTK_X11], [gtk+-x11-3.0]) or similar instead])
pkg_config_args=ifelse([$1],,gtk+-3.0, gtk+-$1-3.0)
min_gtk_version=ifelse([$2],,3.0.0,$2)
pkg_config_args="$pkg_config_args >= $min_gtk_version"
Expand Down

0 comments on commit d975cd5

Please sign in to comment.