summaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2007-07-20 18:20:43 +0200
committerMatthias Braun <matze@braunis.de>2007-07-20 18:20:43 +0200
commit626ac303960c581cf10c759238c993834a324761 (patch)
tree86c067188bd9e106deef8090b04a9b7178a1b33d /configure.ac
parent0df3478d562c7019750973ae053ab6e6fdd330b0 (diff)
automake updates, set version number from configure script
[r15275]
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index cecfe90..af89b0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,7 +9,12 @@ dnl Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
dnl
AC_PREREQ([2.54])
AC_REVISION([$Id$])
-AC_INIT([libfirm], [1.10.0], [firm@ipd.info.uni-karlsruhe.de])
+m4_define([firm_major_version], [1])
+m4_define([firm_minor_version], [10])
+m4_define([firm_micro_version], [0])
+m4_define([firm_version],
+ [firm_major_version.firm_minor_version.firm_micro_version])
+AC_INIT([libfirm], [firm_version], [firm@ipd.info.uni-karlsruhe.de])
AC_CONFIG_SRCDIR([ir/common/firm.c])
AM_INIT_AUTOMAKE([foreign dist-bzip2 1.9])
@@ -17,6 +22,10 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2 1.9])
LT_VERSION=0:0:0
AC_SUBST([LT_VERSION])
+AC_DEFINE([libfirm_VERSION_MAJOR], [firm_major_version], [Firms major version number])
+AC_DEFINE([libfirm_VERSION_MINOR], [firm_minor_version], [Firms minor version number])
+AC_DEFINE([libfirm_VERSION_MICRO], [firm_micro_version], [Firms micro version number])
+
dnl generate the config header file
AC_CONFIG_HEADER([config.h])