From 33186affc9e444e52113dab69ac96e15e598175c Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Sun, 6 Jan 2008 00:41:20 +0000
Subject: [PATCH] Version is defined in the dune.module file, configure reuses
 this version info (first step for #274)

[[Imported from SVN: r5037]]
---
 configure.ac | 6 +++++-
 dune.module  | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 179f538f2..4375d5395 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,11 @@
 #! /bin/bash
 # $Id$
 # Process this file with autoconf to produce a configure script.
-AC_INIT(dune-common, 0.0, dune@dune-project.org)
+
+# get module version from dune.module file
+m4_define([DUNE_MOD_VERSION],
+  [m4_esyscmd([grep ^Version: dune.module | sed -e 's/^.*://' -e 's/\s*//'])])
+AC_INIT(dune-common, DUNE_MOD_VERSION, dune@dune-project.org)
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([common/stdstreams.cc])
 AM_CONFIG_HEADER([config.h])
diff --git a/dune.module b/dune.module
index edd437bd7..05e0fcc25 100644
--- a/dune.module
+++ b/dune.module
@@ -1 +1,2 @@
 Module: dune-common
+Version: 1.1svn
-- 
GitLab