From 76d527ec18676ddd8f0a8ea922b0aaab3824c6ba Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 28 Mar 2002 13:53:19 +0000 Subject: 2002-03-27 Ralf Corsepius * aclocal/version.m4: New file. * aclocal/rtems-top.m4: Add RTEMS_VERSIONING, replace VERSION w/ aclocal/version.m4. * bootstrap: Use aclocal/version.m4 instead of VERSION. * configure.ac: Use aclocal/version.m4 instead of VERSION. --- aclocal/rtems-top.m4 | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'aclocal') diff --git a/aclocal/rtems-top.m4 b/aclocal/rtems-top.m4 index 1ec8aa204a..82da20edd5 100644 --- a/aclocal/rtems-top.m4 +++ b/aclocal/rtems-top.m4 @@ -7,6 +7,7 @@ dnl $1 .. relative path from this configure.in to the toplevel configure.in dnl AC_DEFUN(RTEMS_TOP, [dnl +AC_REQUIRE([RTEMS_VERSIONING]) AC_CHECK_PROGS(MAKE, gmake make) AC_BEFORE([$0], [AC_CONFIG_AUX_DIR])dnl AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl @@ -43,17 +44,9 @@ PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)" fi AC_SUBST(PROJECT_ROOT) -dnl Determine RTEMS Version string from the VERSION file -dnl Hopefully, Joel never changes its format ;- AC_MSG_CHECKING([for RTEMS Version]) -if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then -RTEMS_VERSION=`grep 'RTEMS Version' ${srcdir}/${RTEMS_TOPdir}/VERSION | \ -sed -e 's%RTEMS[[ ]]*Version[[ ]]*\(.*\)[[ ]]*%\1%g'` -else -AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION) -fi -if test -z "$RTEMS_VERSION"; then -AC_MSG_ERROR(Unable to determine version) -fi -AC_MSG_RESULT($RTEMS_VERSION) +AS_IF([test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"], +[], +[AC_MSG_ERROR([Unable to find ${RTEMS_TOPdir}/aclocal/version.m4])]) +AC_MSG_RESULT([_RTEMS_VERSION]) ])dnl -- cgit v1.2.3