* configure.in (date): echo the version number during configuration, and show $date for cvs versions.
diff --git a/ChangeLog b/ChangeLog index bc950ab..beaf78f 100644 --- a/ChangeLog +++ b/ChangeLog
@@ -1,5 +1,8 @@ 1999-01-22 Gary V. Vaughan <garyv@oranda.demon.co.uk> + * configure.in (date): echo the version number during + configuration, and show $date for cvs versions. + * Makefile.am ($(srcdir)/ltconfig): Oops. cvs co keyword expansion ate the sed expression! Changed sed separator to '%' because there are '/' in the date. Added missing '\(' to search
diff --git a/configure.in b/configure.in index 54d6e0d..ce061c2 100644 --- a/configure.in +++ b/configure.in
@@ -1,9 +1,32 @@ dnl Process this file with autoconf to create configure. + AC_INIT(ltmain.in) -AM_INIT_AUTOMAKE(libtool,1.2e) +# This is a sanity check so we can see which version is used in bug reports. +# It is assumed that we only want to see the date extension for cvs libtool +# versions (i.e. "odd" letters) and not actual alpha releases. +version=`egrep '^[AM_INIT_AUTOMAKE]' $srcdir/configure.in | \ + sed 's/^.*,//;s/).*$//'` +date= +changequote(,) +case $version in + *[acegikmoqsuwy]) + date=`sed 's%.*\$''Date: \([0-9 /]*[0-9:]*\) \$.*% (\1)%;t;d' < \ + $srcdir/ChangeLog` + ;; +esac +changequote([,]) +banner="Configuring libtool-$version$date" +dashes=`echo "$banner" | sed 's/./-/g'` -pkgdatadir='${datadir}/libtool' +# Display an obvious version banner +echo $dashes +echo "$banner" +echo $dashes +echo + +AM_INIT_AUTOMAKE(libtool, 1.2e) + AC_SUBST(pkgdatadir) aclocaldir='${datadir}/aclocal' AC_SUBST(aclocaldir)