1.1 --- a/configure.ac Tue Sep 16 08:51:02 2008 +0100
1.2 +++ b/configure.ac Sun Sep 21 08:48:08 2008 +0100
1.3 @@ -1,9 +1,15 @@
1.4 dnl Process this file with autoconf to produce a configure script.
1.5
1.6 dnl Version information.
1.7 -m4_define([lemon_version_number], [])
1.8 +m4_define([lemon_version_number],
1.9 + [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
1.10 +dnl m4_define([lemon_version_number], [])
1.11 +m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))])
1.12 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))])
1.13 -m4_define([lemon_version], [ifelse(lemon_version_number(), [], [lemon_hg_revision()], [lemon_version_number()])])
1.14 +m4_define([lemon_version], [ifelse(lemon_version_number(),
1.15 + [],
1.16 + [lemon_hg_path().lemon_hg_revision()],
1.17 + [lemon_version_number()])])
1.18
1.19 AC_PREREQ([2.59])
1.20 AC_INIT([LEMON], [lemon_version()], [lemon-user@lemon.cs.elte.hu], [lemon])