source: rtems/aclocal/rtems-top.m4 @ 509f8351

4.104.114.84.9
Last change on this file since 509f8351 was 509f8351, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 24, 2000 at 9:59:16 PM

2000-10-24 Ralf Corsepius <corsepiu@…>

  • macros/enable-hwapi.m4: Removed.
  • aclocal/rtems-top.m4, automake/compile.am, automake/lib.am: A small cleanup step towards gnu-canonicalization.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1dnl $Id$
2
3dnl
4dnl RTEMS_TOP($1)
5dnl
6dnl $1 .. relative path from this configure.in to the toplevel configure.in
7dnl
8AC_DEFUN(RTEMS_TOP,
9[dnl
10AC_CHECK_PROGS(MAKE, gmake make)
11AC_BEFORE([$0], [AC_CONFIG_AUX_DIR])dnl
12AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
13
14## HACK to allow gnu-make conditionals in automake-Makefiles.
15ENDIF=endif
16AC_SUBST(ENDIF)
17
18## HACK to destinguish between using GNU and RTEMS canonicalization
19AM_CONDITIONAL(RTEMS_CANONICALIZATION,test x=x)
20
21AC_ARG_WITH(target-subdir,
22[  --with-target-subdir=DIR],
23TARGET_SUBDIR="$withval",
24TARGET_SUBDIR=".")
25
26RTEMS_TOPdir="$1";
27AC_SUBST(RTEMS_TOPdir)
28
29dnl Determine RTEMS Version string from the VERSION file
30dnl Hopefully, Joel never changes its format ;-
31AC_MSG_CHECKING([for RTEMS Version])
32if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
33changequote(,)dnl
34RTEMS_VERSION=`grep 'RTEMS Version' ${srcdir}/${RTEMS_TOPdir}/VERSION | \
35sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
36changequote([,])dnl
37else
38AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
39fi
40if test -z "$RTEMS_VERSION"; then
41AC_MSG_ERROR(Unable to determine version)
42fi
43AC_MSG_RESULT($RTEMS_VERSION)
44])dnl
Note: See TracBrowser for help on using the repository browser.