summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2011-07-01 16:20:32 +0100
committerNeil Roberts <neil@linux.intel.com>2011-07-01 16:47:42 +0100
commitb11f6c9e11b4f15c846d56259ef8d879d5d3d2f7 (patch)
treeb27fe61452f7ee897a7e378273d0102362f55694
parent50287dadffad6d96160e5233f7077e245cfa8c91 (diff)
downloadcogl-b11f6c9e11b4f15c846d56259ef8d879d5d3d2f7.tar.gz
README: Fix the required version number replacements
The README file is generated by the configure script so that it can include the required dependency version numbers. However there was no corresponding AC_SUBST calls for the versions so the README would be left with @THESE_MARKERS@.
-rw-r--r--README.in2
-rw-r--r--configure.ac28
2 files changed, 20 insertions, 10 deletions
diff --git a/README.in b/README.in
index c625f170..722c695d 100644
--- a/README.in
+++ b/README.in
@@ -43,7 +43,7 @@ Cogl also has optional dependencies:
The optional Cogl Pango library requires:
• Cairo ≥ @CAIRO_REQ_VERSION@
- • PangoCairo ≥ @PANGO_REQ_VERSION@
+ • PangoCairo ≥ @PANGOCAIRO_REQ_VERSION@
On X11, Cogl depends on the following extensions
diff --git a/configure.ac b/configure.ac
index 07ec0f2c..b3b69a65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,6 +72,11 @@ dnl ================================================================
# updating the version number in advance of a release.
m4_define([cogl_release_status], [git])
+AC_INIT(cogl, [cogl_1_version])
+AC_CONFIG_SRCDIR(cogl/cogl.h)
+AC_CONFIG_AUX_DIR([build])
+AC_CONFIG_MACRO_DIR([build/autotools])
+AC_CONFIG_HEADERS(config.h)
dnl ================================================================
dnl Required versions for dependencies
@@ -84,13 +89,18 @@ m4_define([uprof_req_version], [0.3])
m4_define([gtk_doc_req_version], [1.13])
m4_define([xfixes_req_version], [3])
m4_define([xcomposite_req_version], [0.4])
-
-
-AC_INIT(cogl, [cogl_1_version])
-AC_CONFIG_SRCDIR(cogl/cogl.h)
-AC_CONFIG_AUX_DIR([build])
-AC_CONFIG_MACRO_DIR([build/autotools])
-AC_CONFIG_HEADERS(config.h)
+m4_define([cairo_req_version], [1.10])
+
+dnl These variables get copied into the generated README
+AC_SUBST([GLIB_REQ_VERSION], [glib_req_version])
+AC_SUBST([GDK_PIXBUF_REQ_VERSION], [gdk_pixbuf_req_version])
+AC_SUBST([CAIRO_REQ_VERSION], [cairo_req_version])
+AC_SUBST([PANGOCAIRO_REQ_VERSION], [pangocairo_req_version])
+AC_SUBST([XCOMPOSITE_REQ_VERSION], [xcomposite_req_version])
+AC_SUBST([XFIXES_REQ_VERSION], [xfixes_req_version])
+AC_SUBST([GTK_DOC_REQ_VERSION], [gtk_doc_req_version])
+AC_SUBST([GI_REQ_VERSION], [gi_req_version])
+AC_SUBST([UPROF_REQ_VERSION], [uprof_req_version])
# Save this value here, since automake will set cflags later and we
# want to know if the user specified custom cflags or not.
@@ -188,7 +198,7 @@ dnl Enable cairo usage for debugging
dnl (debugging code can use cairo to dump the atlas)
dnl ============================================================
-PKG_CHECK_EXISTS([CAIRO], [cairo], [have_cairo=yes])
+PKG_CHECK_EXISTS([CAIRO], [cairo >= cairo_req_version], [have_cairo=yes])
AC_ARG_ENABLE(
[cairo],
[AC_HELP_STRING([--enable-cairo=@<:@no/yes@:>@], [Control Cairo usage in Cogl debugging code @<:@default=auto@:>@])],
@@ -204,7 +214,7 @@ AS_IF([test "x$enable_cairo" = "xyes" && test "x$enable_debug" = "xyes"],
AS_IF([test "x$have_cairo" != "xyes"],
[AC_MSG_ERROR([Could not find Cairo])])
- COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES cairo"
+ COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES cairo >= cairo_req_version"
AC_DEFINE([HAVE_CAIRO], [1], [Whether we have cairo or not])
])