source: rtems/aclocal/rtems-top.m4 @ b42cae7

4.11
Last change on this file since b42cae7 was b42cae7, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 4, 2011 at 4:22:17 PM

2011-03-04 Ralf Corsépius <ralf.corsepius@…>

  • Makefile.maint, aclocal/rpm.m4, aclocal/rtems-top.m4, aclocal/version.m4: Rename RTEMS_API into _RTEMS_API.
  • Property mode set to 100644
File size: 813 bytes
Line 
1dnl $Id$
2
3# AC_DISABLE_OPTION_CHECKING is not available before 2.62
4AC_PREREQ(2.62)
5
6dnl
7dnl RTEMS_TOP($1)
8dnl
9dnl $1 .. relative path from this configure.in to the toplevel configure.in
10dnl
11AC_DEFUN([RTEMS_TOP],
12[dnl
13AC_REQUIRE([RTEMS_VERSIONING])
14AC_REQUIRE([AC_DISABLE_OPTION_CHECKING])
15AC_CONFIG_AUX_DIR([$1])
16AC_CHECK_PROGS(MAKE, gmake make)
17AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
18
19AC_PREFIX_DEFAULT([/opt/rtems-][_RTEMS_API])
20
21RTEMS_TOPdir="$1";
22AC_SUBST(RTEMS_TOPdir)
23
24dots=`echo $with_target_subdir|\
25sed -e 's,^\.$,,' -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
26PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
27AC_SUBST(PROJECT_TOPdir)
28
29PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
30AC_SUBST(PROJECT_ROOT)
31
32AC_MSG_CHECKING([for RTEMS Version])
33AC_MSG_RESULT([_RTEMS_VERSION])
34])dnl
Note: See TracBrowser for help on using the repository browser.