source: rtems/testsuites/aclocal/rtems-top.m4 @ 306a66e

4.104.114.84.9
Last change on this file since 306a66e was c17ed71, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 1, 2003 at 9:38:43 PM

2003-12-01 Ralf Corsepius <corsepiu@…>

  • automake/compile.am: Add $(ARCH)/$(dirstamp) rules.
  • aclocal/lead-dot.m4: New (from automake-1.7f).
  • aclocal/rtems-top.m4: Require AM_SET_LEADING_DOT. Add AC_SUBST(dirstamp).
  • Property mode set to 100644
File size: 1.1 KB
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
28test -n "$with_target_subdir" || with_target_subdir="."
29
30if test "$with_target_subdir" = "." ; then
31# Native
32PROJECT_TOPdir="${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
33else
34# Cross
35dots=`echo $with_target_subdir|\
36sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
37PROJECT_TOPdir="${dots}${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
38fi
39AC_SUBST(PROJECT_TOPdir)
40
41PROJECT_ROOT="${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
42AC_SUBST(PROJECT_ROOT)
43
44AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])
45])dnl
Note: See TracBrowser for help on using the repository browser.