summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal/rtems-top.m4
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/aclocal/rtems-top.m4')
-rw-r--r--testsuites/aclocal/rtems-top.m410
1 files changed, 7 insertions, 3 deletions
diff --git a/testsuites/aclocal/rtems-top.m4 b/testsuites/aclocal/rtems-top.m4
index 9c5072f526..5ecd9c0e37 100644
--- a/testsuites/aclocal/rtems-top.m4
+++ b/testsuites/aclocal/rtems-top.m4
@@ -29,13 +29,17 @@ AC_ARG_ENABLE([rtems-root],[
AS_HELP_STRING(--enable-rtems-root,directory containing make/custom)],
[case ${enable_rtems_root} in
[[\\/$]]* | ?:[[\\/]]* ) # absolute directory
- RTEMS_ROOT=${enable_rtems_root}
+ rtems_rootdir=${enable_rtems_root}
+ RTEMS_RTEMS=${enable_rtems_root}
;;
*) # relative directory
+ rtems_rootdir=${enable_rtems_root}${rtems_updir}
RTEMS_ROOT=${enable_rtems_root}${rtems_updir}'$(top_builddir)'
;;
-esac],
-[RTEMS_ROOT=${rtems_updir}'$(top_builddir)'])
+esac],[
+rtems_rootdir=${rtems_updir}
+RTEMS_ROOT=${rtems_updir}'$(top_builddir)'
+])
AC_SUBST([RTEMS_ROOT])
AC_SUBST([PROJECT_TOPdir],[${with_project_top}${rtems_updir}'$(top_builddir)'])