mirror of
https://github.com/AdaCore/PolyORB.git
synced 2026-02-12 13:01:15 -08:00
23 lines
711 B
Plaintext
23 lines
711 B
Plaintext
dnl Subversion infrastructure
|
|
dnl $Id$
|
|
|
|
dnl Usage: AM_SUBVERSION
|
|
dnl Set SVNREVISION from DISTRIB_SVNREVISION if provided by support/distrib.m4.
|
|
dnl If DISTRIB_SVNREVISION is undefined, assume we are configuring from a
|
|
dnl Subversion checkout, and use "svn info" to retrieve the values.
|
|
|
|
AC_DEFUN([AM_SUBVERSION],[
|
|
ifdef([DISTRIB_SVNREVISION], [SVNREVISION=DISTRIB_SVNREVISION],[
|
|
AC_CHECK_PROG([SVN],[svn],[`which svn`])
|
|
|
|
if ! test -z $SVN; then
|
|
SVNINFO=`cd ${srcdir} && ${SVN} info .`
|
|
if test $? = 0; then
|
|
last_changed_rev=`echo "$SVNINFO" | sed -n "s/^Last Changed Rev: \(.*\)\$/\1/p"`
|
|
fi
|
|
fi
|
|
SVNREVISION=${last_changed_rev:-unknown}
|
|
])
|
|
AC_SUBST(SVNREVISION)
|
|
])
|