source: rtems/testsuites/aclocal/rtems-top.m4 @ 17ad82c

4.104.114.84.95
Last change on this file since 17ad82c was 17ad82c, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/19/04 at 05:40:02

2004-02-18 Ralf Corsepius <corsepiu@…>

  • configure.ac: AC_CONFIG_SRCDIR([PROBLEMS]).
  • aclocal/check-custom-bsp.m4: Sync with c/src/aclocal.
  • aclocal/project-root.m4: Remove obsolete comments.
  • aclocal/env-rtemsbsp.m4: Remove RTEMS_ROOT.
  • aclocal/rtems-top.m4: Rework.
  • Property mode set to 100644
File size: 1017 bytes
Line 
1dnl $Id$
2
3m4_define([RTEMS_API],[4.7])
4
5dnl
6dnl RTEMS_TOP($1)
7dnl
8dnl $1 .. relative path from this configure.in to the toplevel configure.in
9dnl
10AC_DEFUN([RTEMS_TOP],
11[dnl
12AC_REQUIRE([RTEMS_VERSIONING])
13AC_REQUIRE([AM_SET_LEADING_DOT])
14AC_CONFIG_AUX_DIR([$1])
15AC_CHECK_PROGS(MAKE, gmake make)
16AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
17
18AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API])
19
20## HACK to allow gnu-make conditionals in automake-Makefiles.
21ENDIF=endif
22AC_SUBST(ENDIF)
23
24RTEMS_TOPdir="$1";
25AC_SUBST(RTEMS_TOPdir)
26
27## with_target_subdirs is handled implicitly by autoconf
28dots=`echo $with_target_subdir|\
29sed -e 's,^\.$,,' -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
30PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
31AC_SUBST([PROJECT_TOPdir])
32
33RTEMS_ROOT=$with_rtems_root`echo "$1/" | sed 's,^../,,'`'$(top_builddir)'
34AC_SUBST(RTEMS_ROOT)
35
36PROJECT_ROOT=$with_project_root`echo "$1/" | sed 's,^../,,'`'$(top_builddir)'
37AC_SUBST(PROJECT_ROOT)
38
39AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])
40])dnl
Note: See TracBrowser for help on using the repository browser.