* configure.ac: Bump version, append hg revision.
[cacao.git] / m4 / hgrev.m4
1 dnl m4/hgrev.m4
2 dnl
3 dnl Copyright (C) 2010
4 dnl CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 dnl 
6 dnl This file is part of CACAO.
7 dnl 
8 dnl This program is free software; you can redistribute it and/or
9 dnl modify it under the terms of the GNU General Public License as
10 dnl published by the Free Software Foundation; either version 2, or (at
11 dnl your option) any later version.
12 dnl 
13 dnl This program is distributed in the hope that it will be useful, but
14 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
15 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 dnl General Public License for more details.
17 dnl 
18 dnl You should have received a copy of the GNU General Public License
19 dnl along with this program; if not, write to the Free Software
20 dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 dnl 02110-1301, USA.
22
23
24 dnl Mercurial revision
25
26 AC_DEFUN([AC_CHECK_WITH_HGREV],[
27 AC_MSG_CHECKING(for the Mercurial revision)
28 AC_ARG_WITH([hg-revision],
29             [AS_HELP_STRING(--with-hg-revision=<hash>, the Mercurial revision used for this CACAO build)],
30             [CACAO_HGREV=${withval}])
31 AC_MSG_RESULT(${CACAO_HGREV-not specified})
32 AC_DEFINE_UNQUOTED([CACAO_HGREV], "${CACAO_HGREV}", [CACAO's Mercurial revision])
33 AC_SUBST(CACAO_HGREV)
34 ])