summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2011-09-07 17:34:26 +0100
committerBastien Nocera <hadess@hadess.net>2011-09-07 17:34:26 +0100
commit5444e49ac5b2baf6ad8676581a53bcbcafd5ea9d (patch)
treed86bd5317a80378b805037ba6fa2b4c6ce25595c
parentf7b8d93fe1ef09baae5a6395ddcb1c19d8a53500 (diff)
build: Make error on older GTK+ nicer
"configure: error: GTK+-3.0 is required to compile gnome-themes-standard" But I have something even newer than that! And it's definitely installed, I hear you cry. Yeah, it wasn't you, it was us. No, really, it was us. "configure: error: GTK+ 3.1.18 is required to compile gnome-themes-standard"
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 4adf17cb..eef92da4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,8 +28,10 @@ AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
AM_GLIB_GNU_GETTEXT
-PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.1.18 librsvg-2.0,,
- AC_MSG_ERROR([GTK+-3.0 is required to compile gnome-themes-standard]))
+GTK_VERSION_REQUIRED=3.1.18
+
+PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_VERSION_REQUIRED librsvg-2.0,,
+ AC_MSG_ERROR([GTK+ $GTK_VERSION_REQUIRED is required to compile gnome-themes-standard]))
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)