summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal/rtems-top.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-07-05 16:13:07 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-07-05 16:13:07 +0000
commit1b16e63c4fd963c51bcfc536d0855eae9163f3a1 (patch)
treee298922ac3ca47810a7e820481bf2574efb0fd09 /cpukit/aclocal/rtems-top.m4
parent2002-07-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-1b16e63c4fd963c51bcfc536d0855eae9163f3a1.tar.bz2
2002-07-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake/multilib.am: Add install-multi. * aclocal/rtems-top.m4: Reflect new RTEMS_TOPdir to detecting version.m4. Add --with-project-root. Reflect --with-project-root to setting up PROJECT_ROOT. * aclocal/env-rtemscpu.m4: Reflect new RTEMS_TOPdir (HACK). * aclocal/check-cpu.m4: Reflect new RTEMS_TOPdir. * aclocal/check-bsps.m4: Reflect new RTEMS_TOPdir.
Diffstat (limited to 'cpukit/aclocal/rtems-top.m4')
-rw-r--r--cpukit/aclocal/rtems-top.m414
1 files changed, 5 insertions, 9 deletions
diff --git a/cpukit/aclocal/rtems-top.m4 b/cpukit/aclocal/rtems-top.m4
index 82da20edd5..c49a6f4a95 100644
--- a/cpukit/aclocal/rtems-top.m4
+++ b/cpukit/aclocal/rtems-top.m4
@@ -35,18 +35,14 @@ PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
fi
AC_SUBST(PROJECT_TOPdir)
-if test "$with_target_subdir" = "." ; then
-# Native
-PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
-else
-# Cross
-PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
-fi
+AS_IF([test "${with_project_root+set}" = set],
+ [PROJECT_ROOT="${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"],
+ [PROJECT_ROOT="../../${RTEMS_TOPdir}/\$(top_builddir)"])
AC_SUBST(PROJECT_ROOT)
AC_MSG_CHECKING([for RTEMS Version])
-AS_IF([test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"],
+AS_IF([test -r "${srcdir}/${RTEMS_TOPdir}/exec/aclocal/version.m4"],
[],
-[AC_MSG_ERROR([Unable to find ${RTEMS_TOPdir}/aclocal/version.m4])])
+[AC_MSG_ERROR([Unable to find ${RTEMS_TOPdir}/exec/aclocal/version.m4])])
AC_MSG_RESULT([_RTEMS_VERSION])
])dnl