summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal/rtems-top.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-02-19 05:40:02 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-02-19 05:40:02 +0000
commit17ad82ca8bfc48f4701791a5090a79331ddf360b (patch)
treecf2f22b87ace78ae56a25b5cca36fbd590e9d4cc /testsuites/aclocal/rtems-top.m4
parent2004-02-17 RTEMS (diff)
downloadrtems-17ad82ca8bfc48f4701791a5090a79331ddf360b.tar.bz2
2004-02-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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.
Diffstat (limited to 'testsuites/aclocal/rtems-top.m4')
-rw-r--r--testsuites/aclocal/rtems-top.m419
1 files changed, 7 insertions, 12 deletions
diff --git a/testsuites/aclocal/rtems-top.m4 b/testsuites/aclocal/rtems-top.m4
index 86720143a1..8e8052896e 100644
--- a/testsuites/aclocal/rtems-top.m4
+++ b/testsuites/aclocal/rtems-top.m4
@@ -25,20 +25,15 @@ RTEMS_TOPdir="$1";
AC_SUBST(RTEMS_TOPdir)
## with_target_subdirs is handled implicitly by autoconf
-test -n "$with_target_subdir" || with_target_subdir="."
-
-if test "$with_target_subdir" = "." ; then
-# Native
-PROJECT_TOPdir="${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
-else
-# Cross
dots=`echo $with_target_subdir|\
-sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
-PROJECT_TOPdir="${dots}${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
-fi
-AC_SUBST(PROJECT_TOPdir)
+sed -e 's,^\.$,,' -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
+PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
+AC_SUBST([PROJECT_TOPdir])
+
+RTEMS_ROOT=$with_rtems_root`echo "$1/" | sed 's,^../,,'`'$(top_builddir)'
+AC_SUBST(RTEMS_ROOT)
-PROJECT_ROOT="${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
+PROJECT_ROOT=$with_project_root`echo "$1/" | sed 's,^../,,'`'$(top_builddir)'
AC_SUBST(PROJECT_ROOT)
AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])