Nico Golde:
[apps/madmutt.git] / configure.in
index 62515b2..8b26bfd 100644 (file)
@@ -7,7 +7,13 @@ AC_PREREQ([2.50])
 AC_INIT([mutt.h])
 AM_CONFIG_HEADER(config.h)
 
-mutt_cv_version=`cat $srcdir/VERSION`
+if test -f "$srcdir/.svn/entries" ; then
+  echo "`cat $srcdir/VERSION.in`-r`grep revision $srcdir/.svn/entries | sort -r | uniq | head -n 1 | cut -d '"' -f 2`" > "$srcdir/VERSION"
+else
+  cp "$srcdir/VERSION.in" "$srcdir/VERSION"
+fi
+
+mutt_cv_version=`cat "$srcdir/VERSION"`
 
 AM_INIT_AUTOMAKE(muttng, $mutt_cv_version)
 dnl AC_GNU_SOURCE
@@ -918,7 +924,7 @@ AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching])
         LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
         AC_DEFINE(HAVE_DB4, 1, [Sleepycat DB4 Support])
     else
-        AC_MSG_ERROR(You need QDBM, GDBM or Sleepycat DB4 for --enable-hcache)
+        AC_MSG_ERROR([You need one of: QDBM, GDBM or Sleepycat DB4 for --enable-hcache])
     fi
 fi])
 dnl -- end cache --