citadel/configure.in extract version number from source code
[citadel.git] / citadel / configure.ac
index 17a5259910debb47a673d7f2e744f5651a6a8c2f..16ad728958f06a0687637251db23914bc574c1da 100644 (file)
@@ -1,7 +1,8 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.52)
-AC_INIT([Citadel], [916], [http://www.citadel.org/])
-AC_REVISION([$Revision: 5108 $])
+
+AC_INIT([citadel],m4_esyscmd_s([grep REV_LEVEL citadel.h | sed 's/[^0-9]*//g']))
+AC_REVISION(m4_esyscmd_s([git log --pretty=%h | head -1])
 AC_CONFIG_SRCDIR([citserver.c])
 AC_CONFIG_HEADER(sysdep.h)
 AC_CONFIG_MACRO_DIR([m4])